Commit ac237fdd0de964b6ded86708e14ecee24dd2c4ae
1 parent
d6845748
controllet ln
Showing
3 changed files
with
157 additions
and
10 deletions
controllets/datalet-selection-controllet/datalet-selection-controllet.html
@@ -214,7 +214,7 @@ | @@ -214,7 +214,7 @@ | ||
214 | <div class="input_header"><span id="inputs"></span></div> | 214 | <div class="input_header"><span id="inputs"></span></div> |
215 | <template is="dom-repeat" items="{{inputs}}" index-as="ddl_index"> | 215 | <template is="dom-repeat" items="{{inputs}}" index-as="ddl_index"> |
216 | <div class="inputs"> | 216 | <div class="inputs"> |
217 | - <paper-dropdown-menu id={{ddl_index}} label={{item.name}}> | 217 | + <paper-dropdown-menu id={{ddl_index}} label={{_getLabelName(item.name)}}> |
218 | <paper-menu class="dropdown-content"> | 218 | <paper-menu class="dropdown-content"> |
219 | <template is="dom-repeat" items={{fields}}> | 219 | <template is="dom-repeat" items={{fields}}> |
220 | <paper-item id={{index}} on-tap="_addInput">{{_fieldName(item)}}</paper-item> | 220 | <paper-item id={{index}} on-tap="_addInput">{{_fieldName(item)}}</paper-item> |
@@ -223,7 +223,7 @@ | @@ -223,7 +223,7 @@ | ||
223 | </paper-menu> | 223 | </paper-menu> |
224 | </paper-dropdown-menu> | 224 | </paper-dropdown-menu> |
225 | <div class="info_button"> | 225 | <div class="info_button"> |
226 | - <paper-icon-button id="info_button" on-click="_showInfo" icon="info-outline" title="{{item.name}} info"></paper-icon-button> | 226 | + <paper-icon-button id={{item.name}} on-click="_showInfo" icon="info-outline" title="{{_getLabelName(item.name)}} info"></paper-icon-button> |
227 | </div> | 227 | </div> |
228 | </div> | 228 | </div> |
229 | </template> | 229 | </template> |
@@ -233,20 +233,20 @@ | @@ -233,20 +233,20 @@ | ||
233 | <div class="input_header"><span id="baseInfo"></span></div> | 233 | <div class="input_header"><span id="baseInfo"></span></div> |
234 | 234 | ||
235 | <div class="inputs"> | 235 | <div class="inputs"> |
236 | - <paper-input maxlength="32" label="title" class="base_input"></paper-input> | 236 | + <paper-input id="base_title" maxlength="32" class="base_input"></paper-input> |
237 | </div> | 237 | </div> |
238 | 238 | ||
239 | <div class="inputs"> | 239 | <div class="inputs"> |
240 | - <paper-textarea maxlength="100" label="description" class="base_input"></paper-textarea> | 240 | + <paper-textarea id="base_description" maxlength="100" class="base_input"></paper-textarea> |
241 | </div> | 241 | </div> |
242 | 242 | ||
243 | <div class="input_header"><span id="layouts"></span></div> | 243 | <div class="input_header"><span id="layouts"></span></div> |
244 | 244 | ||
245 | <template is="dom-repeat" items="{{labels}}" index-as="index"> | 245 | <template is="dom-repeat" items="{{labels}}" index-as="index"> |
246 | <div class="inputs"> | 246 | <div class="inputs"> |
247 | - <paper-input label={{item.name}}></paper-input> | 247 | + <paper-input label={{_getLabelName(item.name)}}></paper-input> |
248 | <div class="info_button"> | 248 | <div class="info_button"> |
249 | - <paper-icon-button id="info_button" on-click="_showInfo" icon="info-outline" title="{{item.name}} info"></paper-icon-button> | 249 | + <paper-icon-button id={{item.name}} on-click="_showInfo" icon="info-outline" title="{{_getLabelName(item.name)}} info"></paper-icon-button> |
250 | </div> | 250 | </div> |
251 | </div> | 251 | </div> |
252 | </template> | 252 | </template> |
@@ -417,6 +417,9 @@ | @@ -417,6 +417,9 @@ | ||
417 | this.$.layouts.innerHTML = ln["layouts_" + ln["localization"]]; | 417 | this.$.layouts.innerHTML = ln["layouts_" + ln["localization"]]; |
418 | this.$.dataletPreview.innerHTML = ln["dataletPreview_" + ln["localization"]]; | 418 | this.$.dataletPreview.innerHTML = ln["dataletPreview_" + ln["localization"]]; |
419 | 419 | ||
420 | + this.$.base_title.label = ln["title_" + ln["localization"]]; | ||
421 | + this.$.base_description.label = ln["description_" + ln["localization"]]; | ||
422 | + | ||
420 | if(this.modify) | 423 | if(this.modify) |
421 | this.$.add_button.innerHTML = ln["modifyDatalet_" + ln["localization"]]; | 424 | this.$.add_button.innerHTML = ln["modifyDatalet_" + ln["localization"]]; |
422 | }, | 425 | }, |
@@ -617,13 +620,14 @@ | @@ -617,13 +620,14 @@ | ||
617 | if(t.tagName.indexOf("IRON-ICON") != -1) | 620 | if(t.tagName.indexOf("IRON-ICON") != -1) |
618 | t = $(e.target).parents("paper-icon-button")[0]; | 621 | t = $(e.target).parents("paper-icon-button")[0]; |
619 | 622 | ||
620 | - var name = t.getAttribute("title").replace(" info", ""); | 623 | +// var name = t.getAttribute("title").replace(" info", ""); |
624 | + var name = t.getAttribute("id"); | ||
621 | 625 | ||
622 | var dataset = $.grep(this.inputs, function(e){ return e.name == name; })[0]; | 626 | var dataset = $.grep(this.inputs, function(e){ return e.name == name; })[0]; |
623 | if(!dataset) | 627 | if(!dataset) |
624 | dataset = $.grep(this.labels, function(e){ return e.name == name; })[0]; | 628 | dataset = $.grep(this.labels, function(e){ return e.name == name; })[0]; |
625 | 629 | ||
626 | - this.$.dialog_name.innerHTML = dataset.name; | 630 | + this.$.dialog_name.innerHTML = ln[dataset.name + "_" + ln["localization"]]; |
627 | this.$.dialog_description.innerHTML = ln[dataset.description + "_" + ln["localization"]]; | 631 | this.$.dialog_description.innerHTML = ln[dataset.description + "_" + ln["localization"]]; |
628 | this.$.dialog_info_input.open(); | 632 | this.$.dialog_info_input.open(); |
629 | 633 | ||
@@ -646,6 +650,10 @@ | @@ -646,6 +650,10 @@ | ||
646 | return out; | 650 | return out; |
647 | }, | 651 | }, |
648 | 652 | ||
653 | + _getLabelName: function(key) { | ||
654 | + return ln[key + "_" +ln["localization"]]; | ||
655 | + }, | ||
656 | + | ||
649 | _resize : function(){ | 657 | _resize : function(){ |
650 | var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) - 16; | 658 | var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) - 16; |
651 | h = h - 64 - 8; //height with page scroller | 659 | h = h - 64 - 8; //height with page scroller |
controllets/items-vslider-controllet/items-vslider-controllet.html
@@ -120,7 +120,7 @@ | @@ -120,7 +120,7 @@ | ||
120 | <div id="div_datalets_container" class="flex"> | 120 | <div id="div_datalets_container" class="flex"> |
121 | <template is="dom-repeat" items="{{filteredDatalets}}"> | 121 | <template is="dom-repeat" items="{{filteredDatalets}}"> |
122 | <paper-material id={{item.imageName}} elevation="1" class='content-card' on-click="_selectDatalet"> | 122 | <paper-material id={{item.imageName}} elevation="1" class='content-card' on-click="_selectDatalet"> |
123 | - <div class="legend">{{item.imageName}}</div> | 123 | + <div class="legend">{{_getChartName(item.imageName)}}</div> |
124 | <div><img src={{item.imageUrl}}></div> | 124 | <div><img src={{item.imageUrl}}></div> |
125 | </paper-material> | 125 | </paper-material> |
126 | </template> | 126 | </template> |
@@ -297,6 +297,10 @@ | @@ -297,6 +297,10 @@ | ||
297 | 297 | ||
298 | }, | 298 | }, |
299 | 299 | ||
300 | + _getChartName: function(key) { | ||
301 | + return ln[key + "_" +ln["localization"]]; | ||
302 | + } | ||
303 | + | ||
300 | // _resize : function(){ | 304 | // _resize : function(){ |
301 | // var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) - 16; | 305 | // var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) - 16; |
302 | // h = h - 64 - 8; //height with page scroller | 306 | // h = h - 64 - 8; //height with page scroller |
locales/lnHashMap.js
@@ -28,6 +28,40 @@ ln["dataletPreview_it"] = "ANTEPRIMA"; | @@ -28,6 +28,40 @@ ln["dataletPreview_it"] = "ANTEPRIMA"; | ||
28 | ln["addDatalet_it"] = "AGGIUNGI"; | 28 | ln["addDatalet_it"] = "AGGIUNGI"; |
29 | ln["modifyDatalet_it"] = "MODIFICA"; | 29 | ln["modifyDatalet_it"] = "MODIFICA"; |
30 | 30 | ||
31 | +ln["datatable_it"] = "tabella"; | ||
32 | +ln["barchart_it"] = "bar-chart"; | ||
33 | +ln["columnchart_it"] = "column-chart"; | ||
34 | +ln["linechart_it"] = "line-chart"; | ||
35 | +ln["column3Dchart_it"] = "3D column-chart"; | ||
36 | +ln["areachart_it"] = "area-chart"; | ||
37 | +ln["donutpie3dchart_it"] = "3D donutpie-chart"; | ||
38 | +ln["piechart_it"] = "pie-chart"; | ||
39 | +ln["treemap_it"] = "tree-map"; | ||
40 | +ln["leafletjs_it"] = "map"; | ||
41 | +ln["bubble3d_it"] = "3D bubble-chart"; | ||
42 | +ln["bubblechart_it"] = "bubble-chart"; | ||
43 | +ln["scatterchart_it"] = "scatter-chart"; | ||
44 | +ln["heatmap_it"] = "heat-map"; | ||
45 | + | ||
46 | +ln["title_it"] = "titolo"; | ||
47 | +ln["description_it"] = "descrizione"; | ||
48 | + | ||
49 | +ln["Cell_it"] = "Cella"; | ||
50 | +ln["Level_it"] = "Livello"; | ||
51 | +ln["Categories_it"] = "Categorie"; | ||
52 | +ln["Series_it"] = "Serie"; | ||
53 | +ln["x-axis-label_it"] = "etichetta asse X"; | ||
54 | +ln["y-axis-label_it"] = "etichetta asse Y"; | ||
55 | +ln["z-axis-label_it"] = "etichetta asse Z"; | ||
56 | +ln["suffix_it"] = "Suffisso"; | ||
57 | +ln["Size_it"] = "Dimensione"; | ||
58 | +ln["Latitude_it"] = "Latitudine"; | ||
59 | +ln["Longitude_it"] = "Longitudine"; | ||
60 | +ln["Balloon content_it"] = "Contenuto della bolla"; | ||
61 | +ln["X values_it"] = "Valori asse X"; | ||
62 | +ln["Y values_it"] = "Valori asse Y"; | ||
63 | +ln["Z values_it"] = "Valori asse Z"; | ||
64 | + | ||
31 | ln["cellDescription_it"] = "Cella della tabella."; | 65 | ln["cellDescription_it"] = "Cella della tabella."; |
32 | ln["levelDescription_it"] = "Livello utilizzato per il raggruppamento dei valori corrispondenti."; | 66 | ln["levelDescription_it"] = "Livello utilizzato per il raggruppamento dei valori corrispondenti."; |
33 | 67 | ||
@@ -84,6 +118,40 @@ ln["dataletPreview_en"] = "PREVIEW"; | @@ -84,6 +118,40 @@ ln["dataletPreview_en"] = "PREVIEW"; | ||
84 | ln["addDatalet_en"] = "ADD"; | 118 | ln["addDatalet_en"] = "ADD"; |
85 | ln["modifyDatalet_en"] = "MODIFY"; | 119 | ln["modifyDatalet_en"] = "MODIFY"; |
86 | 120 | ||
121 | +ln["datatable_en"] = "table"; | ||
122 | +ln["barchart_en"] = "bar-chart"; | ||
123 | +ln["columnchart_en"] = "column-chart"; | ||
124 | +ln["linechart_en"] = "line-chart"; | ||
125 | +ln["column3Dchart_en"] = "3D column-chart"; | ||
126 | +ln["areachart_en"] = "area-chart"; | ||
127 | +ln["donutpie3dchart_en"] = "3D donutpie-chart"; | ||
128 | +ln["piechart_en"] = "pie-chart"; | ||
129 | +ln["treemap_en"] = "tree-map"; | ||
130 | +ln["leafletjs_en"] = "map"; | ||
131 | +ln["bubble3d_en"] = "3D bubble-chart"; | ||
132 | +ln["bubblechart_en"] = "bubble-chart"; | ||
133 | +ln["scatterchart_en"] = "scatter-chart"; | ||
134 | +ln["heatmap_en"] = "heat-map"; | ||
135 | + | ||
136 | +ln["title_en"] = "title"; | ||
137 | +ln["description_en"] = "description"; | ||
138 | + | ||
139 | +ln["Cell_en"] = "Cell"; | ||
140 | +ln["Level_en"] = "Level"; | ||
141 | +ln["Categories_en"] = "Categories"; | ||
142 | +ln["Series_en"] = "Series"; | ||
143 | +ln["x-axis-label_en"] = "X axis label"; | ||
144 | +ln["y-axis-label_en"] = "Y axis label"; | ||
145 | +ln["z-axis-label_en"] = "Z axis label"; | ||
146 | +ln["suffix_en"] = "Suffix"; | ||
147 | +ln["Size_en"] = "Size"; | ||
148 | +ln["Latitude_en"] = "Latitude"; | ||
149 | +ln["Longitude_en"] = "Longitude"; | ||
150 | +ln["Balloon content_en"] = "Balloon content"; | ||
151 | +ln["X values_en"] = "X values"; | ||
152 | +ln["Y values_en"] = "Y values"; | ||
153 | +ln["Z values_en"] = "Z values"; | ||
154 | + | ||
87 | ln["cellDescription_en"] = "The cell of table."; | 155 | ln["cellDescription_en"] = "The cell of table."; |
88 | ln["levelDescription_en"] = "It is the level field that the datalet will use to group the values at corrisponding field number level."; | 156 | ln["levelDescription_en"] = "It is the level field that the datalet will use to group the values at corrisponding field number level."; |
89 | 157 | ||
@@ -112,7 +180,6 @@ ln["LatitudeDescription_en"] = "It is latitude of the points you want to show in | @@ -112,7 +180,6 @@ ln["LatitudeDescription_en"] = "It is latitude of the points you want to show in | ||
112 | ln["LongitudeDescription_en"] = "It is longitude of the points you want to show in the map."; | 180 | ln["LongitudeDescription_en"] = "It is longitude of the points you want to show in the map."; |
113 | ln["BalloonContentDescription_en"] = "It is the text associated to the marker or the link to the image related to the camera associated to each points."; | 181 | ln["BalloonContentDescription_en"] = "It is the text associated to the marker or the link to the image related to the camera associated to each points."; |
114 | 182 | ||
115 | - | ||
116 | /* FR */ | 183 | /* FR */ |
117 | ln["slide1Title_fr"] = "SELECTIONNER UN JEU DE DONNEES"; | 184 | ln["slide1Title_fr"] = "SELECTIONNER UN JEU DE DONNEES"; |
118 | ln["slide1Subtitle_fr"] = "Rechercher ou copier/coller l’url du jeu de données."; | 185 | ln["slide1Subtitle_fr"] = "Rechercher ou copier/coller l’url du jeu de données."; |
@@ -141,6 +208,40 @@ ln["dataletPreview_fr"] = "PREVISUALISATION"; | @@ -141,6 +208,40 @@ ln["dataletPreview_fr"] = "PREVISUALISATION"; | ||
141 | ln["addDatalet_fr"] = "AJOUTER"; | 208 | ln["addDatalet_fr"] = "AJOUTER"; |
142 | ln["modifyDatalet_fr"] = "MODIFIER"; | 209 | ln["modifyDatalet_fr"] = "MODIFIER"; |
143 | 210 | ||
211 | +ln["datatable_fr"] = "table fr"; | ||
212 | +ln["barchart_fr"] = "barchart"; | ||
213 | +ln["columnchart_fr"] = "columnchart"; | ||
214 | +ln["linechart_fr"] = "linechart"; | ||
215 | +ln["column3Dchart_fr"] = "column3Dchart"; | ||
216 | +ln["areachart_fr"] = "areachart"; | ||
217 | +ln["donutpie3dchart_fr"] = "donutpie3dchart"; | ||
218 | +ln["piechart_fr"] = "piechart"; | ||
219 | +ln["treemap_fr"] = "treemap"; | ||
220 | +ln["leafletjs_fr"] = "map"; | ||
221 | +ln["bubble3d_fr"] = "bubble3d"; | ||
222 | +ln["bubblechart_fr"] = "bubblechart"; | ||
223 | +ln["scatterchart_fr"] = "scatterchart"; | ||
224 | +ln["heatmap_fr"] = "heatmap"; | ||
225 | + | ||
226 | +ln["title_fr"] = "title"; | ||
227 | +ln["description_fr"] = "description"; | ||
228 | + | ||
229 | +ln["Cell_fr"] = "Cell"; | ||
230 | +ln["Level_fr"] = "Level"; | ||
231 | +ln["Categories_fr"] = "Categories"; | ||
232 | +ln["Series_fr"] = "Series"; | ||
233 | +ln["x-axis-label_fr"] = "x-axis-label"; | ||
234 | +ln["y-axis-label_fr"] = "y-axis-label"; | ||
235 | +ln["z-axis-label_fr"] = "z-axis-label"; | ||
236 | +ln["suffix_fr"] = "suffix"; | ||
237 | +ln["Size_fr"] = "Size"; | ||
238 | +ln["Latitude_fr"] = "Latitude"; | ||
239 | +ln["Longitude_fr"] = "Longitude"; | ||
240 | +ln["Balloon content_fr"] = "Balloon content"; | ||
241 | +ln["X values_fr"] = "X values"; | ||
242 | +ln["Y values_fr"] = "Y values"; | ||
243 | +ln["Z values_fr"] = "Z values"; | ||
244 | + | ||
144 | ln["cellDescription_fr"] = "Cellules du tableau."; | 245 | ln["cellDescription_fr"] = "Cellules du tableau."; |
145 | ln["levelDescription_fr"] = "C’est le niveau local que le graphique utilisera pour grouper les valeurs correspondantes au nombre de niveaux de champs"; | 246 | ln["levelDescription_fr"] = "C’est le niveau local que le graphique utilisera pour grouper les valeurs correspondantes au nombre de niveaux de champs"; |
146 | 247 | ||
@@ -197,6 +298,40 @@ ln["dataletPreview_nl"] = "VOORBEELD"; | @@ -197,6 +298,40 @@ ln["dataletPreview_nl"] = "VOORBEELD"; | ||
197 | ln["addDatalet_nl"] = "TOEVOEGEN"; | 298 | ln["addDatalet_nl"] = "TOEVOEGEN"; |
198 | ln["modifyDatalet_nl"] = "WIJZIGEN"; | 299 | ln["modifyDatalet_nl"] = "WIJZIGEN"; |
199 | 300 | ||
301 | +ln["datatable_nl"] = "tafel"; | ||
302 | +ln["barchart_nl"] = "barchart"; | ||
303 | +ln["columnchart_nl"] = "columnchart"; | ||
304 | +ln["linechart_nl"] = "linechart"; | ||
305 | +ln["column3Dchart_nl"] = "column3Dchart"; | ||
306 | +ln["areachart_nl"] = "areachart"; | ||
307 | +ln["donutpie3dchart_nl"] = "donutpie3dchart"; | ||
308 | +ln["piechart_nl"] = "piechart"; | ||
309 | +ln["treemap_nl"] = "treemap"; | ||
310 | +ln["leafletjs_nl"] = "map"; | ||
311 | +ln["bubble3d_nl"] = "bubble3d"; | ||
312 | +ln["bubblechart_nl"] = "bubblechart"; | ||
313 | +ln["scatterchart_nl"] = "scatterchart"; | ||
314 | +ln["heatmap_nl"] = "heatmap"; | ||
315 | + | ||
316 | +ln["title_fr"] = "title"; | ||
317 | +ln["description_fr"] = "description"; | ||
318 | + | ||
319 | +ln["Cell_nl"] = "Cell"; | ||
320 | +ln["Level_nl"] = "Level"; | ||
321 | +ln["Categories_nl"] = "Categories"; | ||
322 | +ln["Series_nl"] = "Series"; | ||
323 | +ln["x-axis-label_nl"] = "x-axis-label"; | ||
324 | +ln["y-axis-label_nl"] = "y-axis-label"; | ||
325 | +ln["z-axis-label_nl"] = "z-axis-label"; | ||
326 | +ln["suffix_nl"] = "suffix"; | ||
327 | +ln["Size_nl"] = "Size"; | ||
328 | +ln["Latitude_nl"] = "Latitude"; | ||
329 | +ln["Longitude_nl"] = "Longitude"; | ||
330 | +ln["Balloon content_nl"] = "Balloon content"; | ||
331 | +ln["X values_nl"] = "X values"; | ||
332 | +ln["Y values_nl"] = "Y values"; | ||
333 | +ln["Z values_nl"] = "Z values"; | ||
334 | + | ||
200 | ln["cellDescription_nl"] = "De cel van een tabel."; | 335 | ln["cellDescription_nl"] = "De cel van een tabel."; |
201 | ln["levelDescription_nl"] = "Het is het veldniveau dat de datalet gebruikt om waarden te groeperen die corresponderen met veldniveau aantallen."; | 336 | ln["levelDescription_nl"] = "Het is het veldniveau dat de datalet gebruikt om waarden te groeperen die corresponderen met veldniveau aantallen."; |
202 | 337 |