Skip to content

Commit f4f0038

Browse files
committed
Minor translation and indenting fixes
1 parent 4cfe5dd commit f4f0038

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Examples/js/earthquakeMultilingual.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
alias: "Earthquakes with magnitude greater than 4.5 in the last seven days",
3232
columns: cols
3333
};
34-
34+
3535
schemaCallback([tableInfo]);
3636
};
3737

@@ -82,38 +82,38 @@
8282
});
8383
})();
8484

85-
// Value attached to tableau object are loaded asyncronously,
86-
// here we poll the value of locale until it is properly loaded
87-
// and defined, then we turn off the polling and translate the text
88-
var translateButton = function(){
89-
var pollLocale = setInterval(function(){
90-
if (tableau.locale){
85+
// Values attached to the tableau object are loaded asyncronously.
86+
// Here we poll the value of locale until it is properly loaded
87+
// and defined, then we turn off the polling and translate the text.
88+
var translateButton = function() {
89+
var pollLocale = setInterval(function() {
90+
if (tableau.locale) {
9191
switch (tableau.locale) {
9292
case tableau.localeEnum.china:
9393
$("#submitButton").text("获取地震数据");
9494
break;
95-
case tableau.localeEnum.germany:
95+
case tableau.localeEnum.germany:
9696
$("#submitButton").text("Erhalten Erdbebendaten!");
9797
break;
98-
case tableau.localeEnum.brazil:
99-
$("#submitButton").text("Obtener Datos de Terremotos!");
98+
case tableau.localeEnum.brazil:
99+
$("#submitButton").text("Obter Dados de Terremoto!");
100100
break;
101-
case tableau.localeEnum.france:
102-
$("#submitButton").text("Obtenir les données Earthquake!");
101+
case tableau.localeEnum.france:
102+
$("#submitButton").text("Obtenir les Données de Séismes!");
103103
break;
104-
case tableau.localeEnum.japan:
104+
case tableau.localeEnum.japan:
105105
$("#submitButton").text("地震データの取得");
106106
break;
107-
case tableau.localeEnum.korea:
107+
case tableau.localeEnum.korea:
108108
$("#submitButton").text("지진 데이터 가져 오기");
109109
break;
110-
case tableau.localeEnum.spain:
111-
$("#submitButton").text("Obter Terremoto de dados!");
110+
case tableau.localeEnum.spain:
111+
$("#submitButton").text("Obtener Datos de Terremotos!");
112112
break;
113-
default:
113+
default:
114114
$("#submitButton").text("Get Earthquake Data!");
115115
}
116116
clearInterval(pollLocale);
117117
}
118118
}, 10);
119-
}
119+
};

0 commit comments

Comments
 (0)