Commit eae8bcd80c7f10512e30bf7057d258dcf1f5bd50
1 parent
97e0b0f8
localization
Showing
4 changed files
with
18 additions
and
6 deletions
controllets/data-sevc-controllet/data-sevc-controllet.html
... | ... | @@ -3,6 +3,8 @@ |
3 | 3 | <!--<script src="../../bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>--> |
4 | 4 | <script src="../shared_js/perfect-scrollbar/js/min/perfect-scrollbar.jquery.min.js"></script> |
5 | 5 | <link rel="stylesheet" href="../shared_js/perfect-scrollbar/css/perfect-scrollbar.min.css"> |
6 | + | |
7 | +<script defer src="../../bower_components/l20n/dist/compat/web/l20n.min.js"></script> | |
6 | 8 | /******************************************************************************************************************************** |
7 | 9 | |
8 | 10 | <link rel="import" href="../../bower_components/polymer/polymer.html"> |
... | ... | @@ -114,8 +116,12 @@ |
114 | 116 | this.$.slider.selected = 1; |
115 | 117 | // console.log(this.selectedDatalet); |
116 | 118 | this.dataUrl = this.dataletPreset["data-url"]; |
117 | - | |
118 | 119 | } |
120 | + | |
121 | +// var languageLink = document.createElement("link"); | |
122 | +// languageLink.rel = "localization"; | |
123 | +// languageLink.href = "../../../locales/it.l20n"; | |
124 | +// document.getElementsByTagName("head")[0].appendChild(languageLink); | |
119 | 125 | }, |
120 | 126 | |
121 | 127 | _updateSlider : function(e){ | ... | ... |
controllets/data-sevc-controllet/demo/index.html
... | ... | @@ -9,11 +9,11 @@ |
9 | 9 | <script src="../../shared_js/perfect-scrollbar/js/min/perfect-scrollbar.jquery.min.js"></script> |
10 | 10 | <link rel="stylesheet" href="../../shared_js/perfect-scrollbar/css/perfect-scrollbar.min.css"> |
11 | 11 | |
12 | - <!--<meta name="defaultLanguage" content="en-EN">--> | |
13 | - <meta name="availableLanguages" content="en-EN, it-IT"> | |
14 | - <!--<link rel="localization" href="../../../locales/{locale}.l20n">--> | |
15 | - <link rel="localization" href="../../../locales/it-IT.l20n"> | |
16 | - <script defer src="../../../bower_components/l20n/dist/compat/web/l20n.min.js"></script> | |
12 | + <!--<!–<meta name="defaultLanguage" content="en">–>--> | |
13 | + <!--<meta name="availableLanguages" content="en, it">--> | |
14 | + <!--<!–<link rel="localization" href="../../../locales/{locale}.l20n">–>--> | |
15 | + <link rel="localization" href="../../../locales/it.l20n"> | |
16 | + <!--<script defer src="../../../bower_components/l20n/dist/compat/web/l20n.min.js"></script>--> | |
17 | 17 | |
18 | 18 | <link rel="import" href="../data-sevc-controllet.html" /> |
19 | 19 | </head> |
... | ... | @@ -24,6 +24,12 @@ |
24 | 24 | <data-sevc-controllet id="dsc" deep-url="http://172.16.15.89/DEEalerProvider/DEEP/" datalets-list-url="http://172.16.15.89/DEEalerProvider/DEEP/datalets-list"></data-sevc-controllet> |
25 | 25 | |
26 | 26 | <script> |
27 | + | |
28 | +// var languageLink = document.createElement("link"); | |
29 | +// languageLink.rel = "localization"; | |
30 | +// languageLink.href = "../../../locales/it.l20n"; | |
31 | +// document.getElementsByTagName("head")[0].appendChild(languageLink); | |
32 | + | |
27 | 33 | var description = "aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaa "+ |
28 | 34 | " aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaa "+ |
29 | 35 | " aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaa "+ | ... | ... |
locales/en-EN.l20n renamed to locales/en.l20n
locales/it-IT.l20n renamed to locales/it.l20n