|
31 | 31 | alias: "Earthquakes with magnitude greater than 4.5 in the last seven days",
|
32 | 32 | columns: cols
|
33 | 33 | };
|
34 |
| - |
| 34 | + |
35 | 35 | schemaCallback([tableInfo]);
|
36 | 36 | };
|
37 | 37 |
|
|
82 | 82 | });
|
83 | 83 | })();
|
84 | 84 |
|
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) { |
91 | 91 | switch (tableau.locale) {
|
92 | 92 | case tableau.localeEnum.china:
|
93 | 93 | $("#submitButton").text("获取地震数据");
|
94 | 94 | break;
|
95 |
| - case tableau.localeEnum.germany: |
| 95 | + case tableau.localeEnum.germany: |
96 | 96 | $("#submitButton").text("Erhalten Erdbebendaten!");
|
97 | 97 | 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!"); |
100 | 100 | 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!"); |
103 | 103 | break;
|
104 |
| - case tableau.localeEnum.japan: |
| 104 | + case tableau.localeEnum.japan: |
105 | 105 | $("#submitButton").text("地震データの取得");
|
106 | 106 | break;
|
107 |
| - case tableau.localeEnum.korea: |
| 107 | + case tableau.localeEnum.korea: |
108 | 108 | $("#submitButton").text("지진 데이터 가져 오기");
|
109 | 109 | 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!"); |
112 | 112 | break;
|
113 |
| - default: |
| 113 | + default: |
114 | 114 | $("#submitButton").text("Get Earthquake Data!");
|
115 | 115 | }
|
116 | 116 | clearInterval(pollLocale);
|
117 | 117 | }
|
118 | 118 | }, 10);
|
119 |
| -} |
| 119 | +}; |
0 commit comments