-
Notifications
You must be signed in to change notification settings - Fork 13
/
locale.js
315 lines (275 loc) · 10.4 KB
/
locale.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
//Do not translate text here! Add section for new language below.
if (lang=="") {
lang = app_lang;
}
if (lang=="") {
lang = "en_EN";
}
var Tdate='Date\xA0\xA0\xA0\xA0\xA0\xA0';
var Tyear='Year';
var Tyearmonth='Year-month';
var Tmonth='Month';
var Tyearweek = 'Year-week';
var Tweek = 'week';
var Tdayofweek ='Day Of Week';
var Tday ='Day';
var TInBedMin ='Total Sleep, mins';
var TDeepSleepMin ='Deep\xA0Sleep, mins';
var TLightSleepMin ='Light\xA0Sleep, mins';
var TAwakeMin ='Awake, mins';
var TDailyDistanceMeter ='Daily distance, meters';
var TDailySteps ='Daily steps';
var TDailyBurnCalories ='Daily calories burned';
var TWalkDistance ='Walk distance, meters';
var TWalkTimeMin = 'Walk time, minutes';
var TWalkBurnCalories ='Walk calories burned';
var TRunDistanceMeter ='Run distance, meters';
var TRunTimeMin ='Run time, minutes';
var TRunBurnCalories ='Run calories burned';
var TSleepStartOffset ='SleepStartOffset';
var TSleepEndOffset ='SleepEndOffset';
var TSleep = 'Sleep';
var TActivity = 'Daily Activity';
var TDistanceSumM = 'Total monthly distance';
var TDistanceSumW = 'Total weekly distance';
var TDistanceAvg = 'Average daily distance, meters';
var TStepsSumM = 'Total monthly steps';
var TStepsSumW = 'Total weekly steps';
var TStepsAvg = 'Average daily steps';
var TDailyGoals = 'Daily goals';
var TGoalSleep = 'Sleep';
var TGoalSteps = 'Steps';
var TAggregate = 'Aggregate data by';
var TAggregateDay = 'day';
var TAggregateWeek = 'week';
var TAggregateMonth = 'month';
var TD0 = 'Sunday';
var TD1 = 'Monday';
var TD2 = 'Tuesday';
var TD3 = 'Wednesday';
var TD4 = 'Thursday';
var TD5 = 'Friday';
var TD6 = 'Saturday';
var TDL = 'SMTWTFS';
var TASleepTime = 'Fall asleep, HH';
var TAwakeTime = 'Wake up, HH';
if (lang == "ru_RU") {
var Tdate = 'число\xA0\xA0\xA0\xA0\xA0\xA0';
var Tyear = 'Year';
var Tyearmonth = 'Year-month';
var Tmonth ='Month';
var Tyearweek ='Year-week';
var Tweek = 'Неделя';
var Tdayofweek ='День недели';
var Tday ='Day';
var TInBedMin ='общий сон, минут';
var TDeepSleepMin ='глубокий\xA0сон, минут';
var TLightSleepMin ='легкий\xA0сон, минут';
var TAwakeMin ='без сна, минут';
var TDailyDistanceMeter ='Общая дистанция, метров';
var TDailySteps ='Всего шагов';
var TDailyBurnCalories ='Сожжено калорий';
var TWalkDistance = 'ходьба, метров';
var TWalkTimeMin = 'ходьба, минут';
var TWalkBurnCalories = 'ходьба, калорий';
var TRunDistanceMeter = 'бег, метров';
var TRunTimeMin = 'бег, минут';
var TRunBurnCalories = 'бег, калорий';
var TSleepStartOffset = 'SleepStartOffset';
var TSleepEndOffset = 'SleepEndOffset';
var TSleep = 'Сон';
var TActivity = 'Дневная активность';
var TDistanceSumM = 'Дистанция за месяц, метров';
var TDistanceSumW = 'Дистанция за неделю, метров';
var TDistanceAvg = 'Средняя дневная дистанция, метров';
var TStepsSumM = 'Всего шагов за неделю';
var TStepsSumW = 'Всего шагов за неделю';
var TStepsAvg = 'Среднее дневное число шагов';
var TDailyGoals = 'Дневная норма';
var TGoalSleep = 'Сон';
var TGoalSteps = 'Шагов';
var TAggregate = 'Усреднять данные за';
var TAggregateDay = 'день';
var TAggregateWeek = 'неделю';
var TAggregateMonth = 'месяц';
var TD0 = 'Воскресенье';
var TD1 = 'Понедельник';
var TD2 = 'Вторник';
var TD3 = 'Среда';
var TD4 = 'Четверг';
var TD5 = 'Пятница';
var TD6 = 'Суббота';
var TDL = 'ВПВСЧПС';
var TASleepTime = 'Засыпание, ЧЧ';
var TAwakeTime = 'Пробуждение, ЧЧ';
}
else if (lang == "fr_FR") {
var Tdate = 'Date\xA0\xA0\xA0\xA0\xA0\xA0';
var Tyear = 'Année';
var Tyearmonth = 'Année-Mois';
var Tmonth = 'Mois';
var Tyearweek = 'Année-Semaine';
var Tweek = 'Semaine';
var Tdayofweek = 'Jour de la semaine';
var Tday = 'Jour';
var TInBedMin = 'Total Sommeil, mins';
var TDeepSleepMin = 'Sommeil\xA0\xA0 Profond, mins';
var TLightSleepMin ='Sommeil\xA0\xA0 Léger, mins';
var TAwakeMin = 'Réveillé, mins';
var TDailyDistanceMeter = 'Distance journalière mètres';
var TDailySteps = 'Pas quotidien';
var TDailyBurnCalories = 'Cal. brulées ce jour';
var TWalkDistance = 'Distance de marche, metres';
var TWalkTimeMin = 'Temps de marche, minutes';
var TWalkBurnCalories = 'Cal. brulées en marchant';
var TRunDistanceMeter = 'Distance en courant, meters';
var TRunTimeMin = 'Temps à courir, minutes';
var TRunBurnCalories = 'Cal. brulées en courant';
var TSleepStartOffset = 'SleepStartOffset';
var TSleepEndOffset = 'SleepEndOffset';
var TSleep = 'Sommeil';
var TActivity = 'Activité quotidienne';
var TDistanceSumM = 'Distance totale mensuelle';
var TDistanceSumW = 'Distance totale hebdomadaire';
var TDistanceAvg = 'Distance moyenne quotidienne, mètres';
var TStepsSumM = 'Total pas mensuel';
var TStepsSumW = 'Total pas hebdomadaire';
var TStepsAvg = 'Moyenne de pas quotidienne';
var TDailyGoals = 'Objectifs quotidiens';
var TGoalSleep = 'Sommeil';
var TGoalSteps = 'Pas';
var TAggregate = 'Regrouper données par';
var TAggregateDay = 'jour';
var TAggregateWeek = 'semaine';
var TAggregateMonth = 'mois';
var TD0 = 'dimanche';
var TD1 = 'lundi';
var TD2 = 'mardi';
var TD3 = 'mercredi';
var TD4 = 'jeudi';
var TD5 = 'vendredi';
var TD6 = 'samedi';
var TDL = 'SLMMJVS';
}
if (lang == "es_ES") {
var Tdate='Fecha\xA0\xA0\xA0\xA0\xA0';
var Tyear='Año';
var Tyearmonth='Año-Mes';
var Tmonth='Mes';
var Tyearweek = 'Año-Semana';
var Tweek = 'Semana';
var Tdayofweek ='Día de la Semana';
var Tday ='Día';
var TInBedMin ='Total Dormido, mins';
var TDeepSleepMin ='Sueño\xA0Profundo, mins';
var TLightSleepMin ='Sueño\xA0Ligero, mins';
var TAwakeMin ='Despierto, mins';
var TDailyDistanceMeter ='Distancia Diaria, metros';
var TDailySteps ='Pasos Diarios';
var TDailyBurnCalories ='Calorías quemadas Diarias';
var TWalkDistance ='Distancia Andando, metros';
var TWalkTimeMin = 'Tiempo Andando, minutos';
var TWalkBurnCalories ='Calorías quemadas Andando';
var TRunDistanceMeter ='Distancia Corriendo, metros';
var TRunTimeMin ='Tiempo Corriendo, minutos';
var TRunBurnCalories ='Calorías quemadas Corriendo';
var TSleepStartOffset ='SleepStartOffset';
var TSleepEndOffset ='SleepEndOffset';
var TSleep = 'Sueño';
var TActivity = 'Actividad Diaria';
var TDistanceSumM = 'Distancia total Mensual';
var TDistanceSumW = 'Distancia total Semanal';
var TDistanceAvg = 'Promedio distancia diaria, metros';
var TStepsSumM = 'Total pasos mensuales';
var TStepsSumW = 'Total pasos semanales';
var TStepsAvg = 'Promedio pasos diarios';
var TDailyGoals = 'Objetivos Diarios';
var TGoalSleep = 'Sueño';
var TGoalSteps = 'Pasos';
var TAggregate = 'Agrupar datos por';
var TAggregateDay = 'dia';
var TAggregateWeek = 'semana';
var TAggregateMonth = 'mes';
var TD0 = 'Domingo';
var TD1 = 'Lunes';
var TD2 = 'Martes';
var TD3 = 'Miércoles';
var TD4 = 'Jueves';
var TD5 = 'Viernes';
var TD6 = 'Sábado';
var TDL = 'DLMXJVS';
}
if (lang == "de_DE") {
var Tdate='Datum\xA0\xA0\xA0\xA0\xA0';
var Tyear='Jahr';
var Tyearmonth='Jahr-Monat';
var Tmonth='Monat';
var Tyearweek = 'Jahr-Woche';
var Tweek = 'Woche';
var Tdayofweek ='Wochentag';
var Tday ='Tag';
var TInBedMin ='Summe Schlaf, Minuten';
var TDeepSleepMin ='Tiefer\xA0Schlaf, Minuten';
var TLightSleepMin ='Leichter\xA0Schlaf, Minuten';
var TAwakeMin ='Wach, Minuten';
var TDailyDistanceMeter ='Entfernung pro Tag, Meter';
var TDailySteps ='Schritte pro Tag';
var TDailyBurnCalories ='Verbrannte kcal pro Tag';
var TWalkDistance ='Entfernung Gehen, Meter';
var TWalkTimeMin = 'Zeit Gehen, Minuten';
var TWalkBurnCalories ='Verbrannte kcal, Gehen';
var TRunDistanceMeter ='Entfernung Laufen, Meter';
var TRunTimeMin ='Zeit Laufen, Minuten';
var TRunBurnCalories ='Verbrannte kcal, Laufen';
var TSleepStartOffset ='SchlafStartOffset';
var TSleepEndOffset ='SchlafEndeOffset';
var TSleep = 'Schlaf';
var TActivity = 'Tagesaktivität';
var TDistanceSumM = 'Summe monatliche Entfernung';
var TDistanceSumW = 'Summe wöchentliche Entfernung';
var TDistanceAvg = 'Durchschnittliche tägliche Entfernung, Meter';
var TStepsSumM = 'Summe Schritte pro Monat';
var TStepsSumW = 'Summe Schritte pro Woche';
var TStepsAvg = 'Durchschnittliche Anzahl von Schritten pro Tag';
var TDailyGoals = 'Tagesziele:';
var TGoalSleep = 'Schlaf:';
var TGoalSteps = 'Schritte:';
var TAggregate = 'Aufsummierte Daten pro:';
var TAggregateDay = 'Tag';
var TAggregateWeek = 'Woche';
var TAggregateMonth = 'Monat';
var TASleepTime = 'Einschlafzeit, HH';
var TAwakeTime = 'Aufwachzeit, HH';
var TD0 = 'Sonntag';
var TD1 = 'Montag';
var TD2 = 'Dienstag';
var TD3 = 'Mittwoch';
var TD4 = 'Donnerstag';
var TD5 = 'Freitag';
var TD6 = 'Samstag';
var TDL = 'SMDMDFS';
}
var data = new google.visualization.DataTable();
data.addColumn('date',Tdate, 'date');
data.addColumn('number',Tyear, 'year');
data.addColumn('string',Tyearmonth , 'yearmonth');
data.addColumn('number',Tmonth, 'month');
data.addColumn('string',Tyearweek, 'yearweek');
data.addColumn('number',Tweek, 'week');
data.addColumn('number',Tdayofweek, 'dayofweek');
data.addColumn('number',Tday, 'day');
data.addColumn('number',TInBedMin, 'InBedMin');
data.addColumn('number',TDeepSleepMin, 'DeepSleepMin');
data.addColumn('number',TLightSleepMin, 'LightSleepMin');
data.addColumn('number',TAwakeMin, 'AwakeMin');
data.addColumn('number',TDailyDistanceMeter, 'DailyDistanceMeter');
data.addColumn('number',TDailySteps, 'DailySteps');
data.addColumn('number',TDailyBurnCalories, 'DailyBurnCalories');
data.addColumn('number',TWalkDistance, 'WalkDistance');
data.addColumn('number',TWalkTimeMin, 'WalkTimeMin');
data.addColumn('number',TWalkBurnCalories, 'WalkBurnCalories');
data.addColumn('number',TRunDistanceMeter, 'RunDistanceMeter');
data.addColumn('number',TRunTimeMin, 'RunTimeMin');
data.addColumn('number',TRunBurnCalories, 'RunBurnCalories');
data.addColumn('date',TSleepStartOffset, 'SleepStartOffset');
data.addColumn('date',TSleepEndOffset, 'SleepEndOffset');