Commit 56945b67cad1bb690ca6b4df6c2beec48189f2e9

Authored by Andrea Petta
1 parent 16032a5e

l20n bug fix

controllets/data-sevc-controllet/data-sevc-controllet.html
... ... @@ -5,6 +5,7 @@
5 5 <link rel="stylesheet" href="../shared_js/perfect-scrollbar/css/perfect-scrollbar.min.css">
6 6  
7 7 <script defer src="../../bower_components/l20n/dist/compat/web/l20n.min.js"></script>
  8 +<script defer src="../../locales/lnHashMap.js"></script>
8 9 /********************************************************************************************************************************
9 10  
10 11 <link rel="import" href="../../bower_components/polymer/polymer.html">
... ... @@ -124,12 +125,14 @@
124 125 switch (e.detail.selected) {
125 126 case 0:
126 127 /* document.l10n.formatValues('slide1Title', 'slide1Subtitle').then(A => slider.setTitle(A[0], A[1]));*/
127   - document.l10n.formatValues('slide1Title', 'slide1Subtitle').then(function(A){
  128 + /*document.l10n.formatValues('slide1Title', 'slide1Subtitle').then(function(A){
128 129 slider.setTitle(A[0], A[1])
129 130 }, function(reason){
130 131 var a = reason;
131 132 console.log(a);
132   - });
  133 + });*/
  134 + slider.setTitle(ln["slide1Title_it"], ln["slide1Subtitle_it"]);
  135 +
133 136 // slider.setTitle("SELECT DATASET", "Search or copy and paste the url of dataset.");
134 137 slider.chevronLeft("invisible");
135 138 slider.chevronRight(false);
... ...