You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'];
31
-
if(feature.iata) {
55
+
var name = global.ux_language_text_source_fn(feature);
56
+
if(feature.iata) {
32
57
if (name) {
33
58
return name + ' (' + feature.iata + ')';
34
59
}
@@ -41,26 +66,25 @@ global:
41
66
}
42
67
ux_language_text_source_ocean: |
43
68
function() {
44
-
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
69
+
var name = global.ux_language_text_source_fn(feature);
45
70
return name.split('').join(' ');
46
71
}
47
72
ux_language_text_source_sea: |
48
73
function() {
49
-
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
74
+
var name = global.ux_language_text_source_fn(feature);
50
75
return name.split('').join(' ');
51
76
}
52
77
ux_language_text_source_continent: |
53
78
function() {
54
-
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
79
+
var name = global.ux_language_text_source_fn(feature);
55
80
return name.split('').join(' ');
56
81
}
57
82
ux_language_text_source_road_ref_and_name: |
58
83
function() {
59
-
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
0 commit comments