Commit 3b9fef9666651ae2b95cf3a7fd415079f4fdceae
Merge branch 'master' of http://service.routetopa.eu:7480/WebCompDev/COMPONENTS
Showing
6 changed files
with
92 additions
and
51 deletions
controllets/fullsize-page-with-card-controllet/fullsize-page-with-card-controllet.html
... | ... | @@ -38,7 +38,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN |
38 | 38 | <div id="fixed" class="fixed" style$="background-color:{{color}}"></div> |
39 | 39 | <div id="card" class="card" style$="background-color:{{color}}"> |
40 | 40 | <template is="dom-if" if="{{_checkUndefined(publicRoom)}}"> |
41 | - <iframe id="public_room_iframe" src="public-room/{{publicRoom}}" width="100%" height="100%"></iframe> | |
41 | + <iframe id="public_room_iframe" src="/public-room/{{publicRoom}}" width="100%" height="100%"></iframe> | |
42 | 42 | </template> |
43 | 43 | </div> |
44 | 44 | ... | ... |
controllets/items-vslider-controllet/items-vslider-controllet.html
... | ... | @@ -108,7 +108,7 @@ |
108 | 108 | |
109 | 109 | <paper-material id="items_vslider_container" elevation="5"> |
110 | 110 | |
111 | - <paper-input id="items_vslider_search" value={{filter}} no-label-float label="search"> | |
111 | + <paper-input id="items_vslider_search" value={{filter}} no-label-float> <!--label="search"--> | |
112 | 112 | <iron-icon class="search" icon="search" prefix></iron-icon> |
113 | 113 | <paper-icon-button class="clear" suffix on-click="_clearInput" icon="clear" tabindex="0"></paper-icon-button> |
114 | 114 | </paper-input> | ... | ... |
controllets/room-controllet/room-controllet.html
... | ... | @@ -6,6 +6,8 @@ |
6 | 6 | <link rel="import" href="../../bower_components/iron-icons/communication-icons.html"> |
7 | 7 | <link rel="import" href="../../bower_components/iron-icon/iron-icon.html"> |
8 | 8 | |
9 | +<script src="../../locales/room_controllet_ln.js"></script> | |
10 | + | |
9 | 11 | <dom-module id="room-controllet"> |
10 | 12 | |
11 | 13 | <template> |
... | ... | @@ -69,11 +71,11 @@ |
69 | 71 | |
70 | 72 | <paper-dialog id="room_info" class="room-tooltip"> |
71 | 73 | <iron-icon icon="communication:call-made" class="this" style="color: #2196F3;"></iron-icon> |
72 | - <p class="ptop">This room <b style="color: #2196F3;">{{subject}}</b>,</p> | |
73 | - <p>created by <b style="color: #2196F3;">{{roomOwner}}</b> has:</p> | |
74 | - <p><iron-icon class="div_icon" style$="background-color: {{roomColor}};"></iron-icon><b style$="color: {{roomColor}};">{{_howMany(roomShape, 0)}} views</b> (<b style$="color: {{roomColor}};">{{roomViews}}</b>),</p> | |
75 | - <p><iron-icon icon="editor:border-left"></iron-icon> <b>{{_howMany(roomShape, 1)}} comments</b> (<b>{{comments}}</b>) and</p> | |
76 | - <p><iron-icon icon="editor:border-bottom"></iron-icon> <b>{{_howMany(roomShape, 2)}} datasets</b> (<b>{{datasets}}</b>).</p> | |
74 | + <p class="ptop">{{_thisRoom}} <b style="color: #2196F3;">{{subject}}</b>,</p> | |
75 | + <p>{{_createdBy}} <b style="color: #2196F3;">{{roomOwner}}</b> {{_has}}:</p> | |
76 | + <p><iron-icon class="div_icon" style$="background-color: {{roomColor}};"></iron-icon><b style$="color: {{roomColor}};">{{_howManyViews}} {{_views}}</b> (<b style$="color: {{roomColor}};">{{roomViews}}</b>),</p> | |
77 | + <p><iron-icon icon="editor:border-left"></iron-icon> <b>{{_howManyComments}} {{_comments}}</b> (<b>{{comments}}</b>) {{_and}}</p> | |
78 | + <p><iron-icon icon="editor:border-bottom"></iron-icon> <b>{{_howManyDatasets}} {{_datasets}}</b> (<b>{{datasets}}</b>).</p> | |
77 | 79 | </paper-dialog> |
78 | 80 | </div> |
79 | 81 | |
... | ... | @@ -145,12 +147,38 @@ |
145 | 147 | datasets : { |
146 | 148 | type : Number, |
147 | 149 | value : undefined |
148 | - } | |
150 | + }, | |
149 | 151 | |
152 | + //LN | |
153 | + _thisRoom : { type : String }, | |
154 | + _createdBy : { type : String }, | |
155 | + _has : { type : String }, | |
156 | + _views : { type : String }, | |
157 | + _comments : { type : String }, | |
158 | + _datasets : { type : String }, | |
159 | + _and : { type : String }, | |
160 | + _howManyViews : { type : String }, | |
161 | + _howManyComments : { type : String }, | |
162 | + _howManyDatasets : { type : String } | |
150 | 163 | }, |
151 | 164 | |
152 | 165 | attached : function() { |
153 | - //console.log(this.views); | |
166 | + this._translate(); | |
167 | + }, | |
168 | + | |
169 | + _translate : function() { | |
170 | + room_ln["ln"] = ODE.user_language; | |
171 | + | |
172 | + this._thisRoom = room_ln["thisRoom_" + room_ln["ln"]]; | |
173 | + this._createdBy = room_ln["createdBy_" + room_ln["ln"]]; | |
174 | + this._has = room_ln["has_" + room_ln["ln"]]; | |
175 | + this._views = room_ln["views_" + room_ln["ln"]]; | |
176 | + this._comments = room_ln["comments_" + room_ln["ln"]]; | |
177 | + this._datasets = room_ln["datasets_" + room_ln["ln"]]; | |
178 | + this._and = room_ln["and_" + room_ln["ln"]]; | |
179 | + this._howManyViews = room_ln[this.roomShape[0] + "_" + room_ln["ln"]]; | |
180 | + this._howManyComments = room_ln[this.roomShape[1] + "_" + room_ln["ln"]]; | |
181 | + this._howManyDatasets = room_ln[this.roomShape[2] + "_" + room_ln["ln"]]; | |
154 | 182 | }, |
155 | 183 | |
156 | 184 | _showTooltip: function() { |
... | ... | @@ -159,12 +187,6 @@ |
159 | 187 | |
160 | 188 | _hideTooltip: function() { |
161 | 189 | this.$.room_info.close(); |
162 | - }, | |
163 | - | |
164 | - _howMany: function(A, i) { | |
165 | -// return this.roomShape[i]; | |
166 | -// console.log(i); | |
167 | - return A[i]; | |
168 | 190 | } |
169 | 191 | |
170 | 192 | }); | ... | ... |
datalets/scatterchart-datalet/scatterchart-datalet.html
... | ... | @@ -119,36 +119,6 @@ Example: |
119 | 119 | title: { |
120 | 120 | text: "" + this._component.title |
121 | 121 | }, |
122 | - subtitle: { | |
123 | - text: "" + this._component.subTitle | |
124 | - }, | |
125 | - /* xAxis: { | |
126 | - categories: this.properties.categories.value, | |
127 | - title: { | |
128 | - enabled: true, | |
129 | - text: this._component.xAxisLabel, | |
130 | - startOnTick: true, | |
131 | - endOnTick: true, | |
132 | - showLastLabel: true | |
133 | - } | |
134 | - },*/ | |
135 | - /* yAxis: { | |
136 | - categories: this.properties.categories.value, | |
137 | - title: { | |
138 | - text: this._component.yAxisLabel | |
139 | - } | |
140 | - },*/ | |
141 | - /*legend: { | |
142 | - layout: 'vertical', | |
143 | - align: 'bottom', | |
144 | - verticalAlign: 'top', | |
145 | - x: -40, | |
146 | - y: 100, | |
147 | - floating: true, | |
148 | - backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF', | |
149 | - borderWidth: 1, | |
150 | - shadow: true | |
151 | - },*/ | |
152 | 122 | plotOptions: { |
153 | 123 | scatter: { |
154 | 124 | marker: { | ... | ... |
locales/lnHashMap.js
... | ... | @@ -245,19 +245,19 @@ ln["Z values_fr"] = "Z values"; |
245 | 245 | ln["cellDescription_fr"] = "Cellules du tableau."; |
246 | 246 | ln["levelDescription_fr"] = "C’est le niveau local que le graphique utilisera pour grouper les valeurs correspondantes au nombre de niveaux de champs"; |
247 | 247 | |
248 | -ln["categoriesDescription_fr"] = "Catégories de graphiques. Ses valeurs seront insérées dans l’axe horizontal. Vous devez insérer une valeur pour chaque série."; | |
249 | -ln["seriesDescription_fr"] = "Catégories de graphique. Ses valeurs seront insérées dans l’axe vertical."; | |
248 | +ln["categoriesDescription_fr"] = "Catégories de graphiques. Ces valeurs seront insérées dans l’axe horizontal. Vous devez insérer une valeur pour chaque série."; | |
249 | +ln["seriesDescription_fr"] = "Catégories de graphique. Ces valeurs seront insérées dans l’axe vertical."; | |
250 | 250 | |
251 | 251 | ln["XAxisLabelDescription_fr"] = "Vignette pour l’axe X."; |
252 | 252 | ln["YAxisLabelDescription_fr"] = "Vignette pour l’axe Y."; |
253 | 253 | ln["suffixDescription_fr"] = "Unités de mesures (ex: dollars, euros."; |
254 | 254 | |
255 | -ln["pieSeriesDescription_fr"] = "Série de graphiques. Ses valeurs seront intégrées au sein des segments de chaque série."; | |
255 | +ln["pieSeriesDescription_fr"] = "Série de graphiques. Ces valeurs seront intégrées au sein des segments de chaque série."; | |
256 | 256 | ln["pieSizeDescription_fr"] = "Taille de chaque série afin de créer un anneau concentrique."; |
257 | 257 | |
258 | -ln["bubbleCategoriesDescription_fr"] = "Catégories de graphique. Ses valeurs seront insérées dans l’axe horizontal. Vous devez insérer une valeur pour chaque série."; | |
259 | -ln["bubbleYValuesDescription_fr"] = "Le graphique présente les valeurs Y. Ses valeurs seront insérées dans l’axe vertical."; | |
260 | -ln["bubbleZValuesDescription_fr"] = "Le graphique présente les valeurs Z. Ses valeurs représentent la taille des bulles."; | |
258 | +ln["bubbleCategoriesDescription_fr"] = "Catégories de graphique. Ces valeurs seront insérées dans l’axe horizontal. Vous devez insérer une valeur pour chaque série."; | |
259 | +ln["bubbleYValuesDescription_fr"] = "Le graphique présente les valeurs Y. Ces valeurs seront insérées dans l’axe vertical."; | |
260 | +ln["bubbleZValuesDescription_fr"] = "Le graphique présente les valeurs Z. Ces valeurs représentent la taille des bulles."; | |
261 | 261 | ln["bubbleSeriesDescription_fr"] = "The chart series. Its values visualize multi- series bubbles chart."; |
262 | 262 | |
263 | 263 | ln["scatterCategoriesDescription_fr"] = "The chart categories. You need one value for each series."; | ... | ... |
locales/room_controllet_ln.js
0 → 100755
1 | +room_ln = []; | |
2 | + | |
3 | +/* EN */ | |
4 | + | |
5 | +room_ln["thisRoom_en"] = "This room"; | |
6 | +room_ln["createdBy_en"] = "created by"; | |
7 | +room_ln["has_en"] = "has"; | |
8 | +room_ln["many_en"] = "many"; | |
9 | +room_ln["few_en"] = "few"; | |
10 | +room_ln["views_en"] = "views"; | |
11 | +room_ln["comments_en"] = "comments"; | |
12 | +room_ln["datasets_en"] = "datasets"; | |
13 | +room_ln["and_en"] = "and"; | |
14 | + | |
15 | +/* IT */ | |
16 | + | |
17 | +room_ln["thisRoom_it"] = "Questa stanza"; | |
18 | +room_ln["createdBy_it"] = "creata da"; | |
19 | +room_ln["has_it"] = "ha"; | |
20 | +room_ln["many_it"] = "molte/i"; | |
21 | +room_ln["few_it"] = "poche/i"; | |
22 | +room_ln["views_it"] = "visite"; | |
23 | +room_ln["comments_it"] = "commenti"; | |
24 | +room_ln["datasets_it"] = "dataset"; | |
25 | +room_ln["and_it"] = "e"; | |
26 | + | |
27 | +/* FR */ | |
28 | + | |
29 | +room_ln["thisRoom_fr"] = "This room"; | |
30 | +room_ln["createdBy_fr"] = "created by"; | |
31 | +room_ln["has_fr"] = "has"; | |
32 | +room_ln["many_fr"] = "many"; | |
33 | +room_ln["few_fr"] = "few"; | |
34 | +room_ln["views_fr"] = "views"; | |
35 | +room_ln["comments_fr"] = "comments"; | |
36 | +room_ln["datasets_fr"] = "datasets"; | |
37 | +room_ln["and_fr"] = "and"; | |
38 | + | |
39 | +/* NL */ | |
40 | + | |
41 | +room_ln["thisRoom_nl"] = "This room"; | |
42 | +room_ln["createdBy_nl"] = "created by"; | |
43 | +room_ln["has_nl"] = "has"; | |
44 | +room_ln["many_nl"] = "many"; | |
45 | +room_ln["few_nl"] = "few"; | |
46 | +room_ln["views_nl"] = "views"; | |
47 | +room_ln["comments_nl"] = "comments"; | |
48 | +room_ln["datasets_nl"] = "datasets"; | |
49 | +room_ln["and_nl"] = "and"; | |
0 | 50 | \ No newline at end of file | ... | ... |