forked from bracci/Qlockwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Languages.h
496 lines (482 loc) · 11.2 KB
/
Languages.h
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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
//*****************************************************************************
// Languages.h
//*****************************************************************************
#ifndef LANGUAGES_H
#define LANGUAGES_H
enum eFrontCover : uint8_t
{
FRONTCOVER_DE_DE,
FRONTCOVER_DE_SW,
FRONTCOVER_DE_BA,
FRONTCOVER_DE_SA,
FRONTCOVER_D3,
FRONTCOVER_CH_BE,
FRONTCOVER_CH_ZH,
FRONTCOVER_EN,
FRONTCOVER_ES,
FRONTCOVER_FR,
FRONTCOVER_IT,
FRONTCOVER_NL,
FRONTCOVER_SW,
FRONTCOVER_BINARY,
FRONTCOVER_COUNT
};
const char sLanguageStr[][20] PROGMEM =
{
{ "German" }, // 00
{ "German SW" }, // 01
{ "German BA" }, // 02
{ "German SA" }, // 03
{ "German Schwaebisch"}, // 04
{ "Swiss German BE" }, // 05
{ "Swiss German ZH" }, // 06
{ "English" }, // 07
{ "Spanish" }, // 08
{ "French" }, // 09
{ "Italian" }, // 10
{ "Dutch" }, // 11
{ "Swedish" },// 12
{ "Binary" }// 13
};
#ifdef LANGUAGE_EN
const char sWeekday[][2] = {
{ ' ', ' ' }, // 00
{ 'S', 'U' }, // 01
{ 'M', 'O' }, // 02
{ 'T', 'U' }, // 03
{ 'W', 'E' }, // 04
{ 'T', 'H' }, // 05
{ 'F', 'R' }, // 06
{ 'S', 'A' } // 07
};
const char sColorStr[][15] PROGMEM =
{
"White",
"Red",
"Red 75%",
"Red 20%",
"Orange",
"Yellow",
"Yellow 25%",
"Yellow 50%",
"Green-Yellow",
"Green",
"Green 25%",
"Green 50%",
"Mintgreen",
"Cyan",
"Cyan 25%",
"Cyan 50%",
"Light Blue",
"Blue",
"Blue 25%",
"Blue 50%",
"Purple",
"Magenta",
"Magenta 25%",
"Magenta 50%",
"Pink",
"Mood"
};
#define LANGSTR "en"
#define TXT_SETTINGS "Settings"
#define TXT_ALARM "Alarm"
#define TXT_ON "on"
#define TXT_OFF "off"
#define TXT_HOURBEEP "Hourly beep"
#define TXT_TIMER "Timer"
#define TXT_MINUTES "minutes"
#define TXT_COLOR "Color"
#define TXT_COLORCHANGE "Color change"
#define TXT_BRIGHTNESS "Brightness"
#define TXT_SHOW_TEMP "Show temperature"
#define TXT_AUTO_BRIGHTNESS "Auto brightness"
#define TXT_TRANSITION "Transition animation"
#define TXT_TIMEOUT "Back to clock timeout"
#define TXT_NIGHT_OFF "Switch off at"
#define TXT_DAY_ON "Switch on at"
#define TXT_PURIST_MODE "Purist Mode"
#define TXT_SHOW_GSI "Show \"GSI\""
#define TXT_SET_DATE_TIME "Set date/time"
#define TXT_ACTIVE "Active"
#define TXT_DATE "Date"
#define TXT_TEXT "Text"
#define TXT_ANIMATION "Animation"
#define TXT_REP_RATE "Repetition rate"
#define TXT_ADMIN "Admin"
#define TXT_TIME_SERVER "Time Server URL"
#define TXT_OW_API_KEY "OpenWeather API Key"
#define TXT_OW_LOCATION "OpenWeather Location"
#define TXT_COVER_LANGUAGE "Language/Dialect"
#endif
#ifdef LANGUAGE_DE
const char sWeekday[][2] = {
{ ' ', ' ' }, // 00
{ 'S', 'O' }, // 01
{ 'M', 'O' }, // 02
{ 'D', 'I' }, // 03
{ 'M', 'I' }, // 04
{ 'D', 'O' }, // 05
{ 'F', 'R' }, // 06
{ 'S', 'A' } // 07
};
const char sColorStr[][15] PROGMEM =
{
"Weiss",
"Rot",
"Rot 75%",
"Rot 20%",
"Orange",
"Gelb",
"Gelb 25%",
"Gelb 50%",
"Grün-Gelb",
"Grün",
"Grün 25%",
"Grün 50%",
"Mintgrün",
"Cyan",
"Cyan 25%",
"Cyan 50%",
"Hellblau",
"Blau",
"Blau 25%",
"Blau 50%",
"Violett",
"Magenta",
"Magenta 25%",
"Magenta 50%",
"Pink",
"Mood"
};
#define LANGSTR "de"
#define TXT_SETTINGS "Einstellungen"
#define TXT_ALARM "Wecker"
#define TXT_ON "ein"
#define TXT_OFF "aus"
#define TXT_HOURBEEP "Stundenalarm"
#define TXT_TIMER "Timer"
#define TXT_MINUTES "Minuten"
#define TXT_COLOR "Farbe"
#define TXT_COLORCHANGE "Farbwechsel"
#define TXT_BRIGHTNESS "Helligkeit"
#define TXT_SHOW_TEMP "Temperaturanzeige"
#define TXT_AUTO_BRIGHTNESS "Auto. Helligkeit"
#define TXT_TRANSITION "Animation für Übergänge"
#define TXT_TIMEOUT "Zurück zur Zeitanzeige nach"
#define TXT_NIGHT_OFF "Ausschalten um"
#define TXT_DAY_ON "Einschalten um"
#define TXT_PURIST_MODE "Puristenmodus"
#define TXT_SHOW_GSI "\"GSI\" anzeigen"
#define TXT_SET_DATE_TIME "Datum/Zeit setzen"
#define TXT_ACTIVE "Aktiv"
#define TXT_DATE "Datum"
#define TXT_TEXT "Text"
#define TXT_ANIMATION "Animation"
#define TXT_REP_RATE "Wiederholrate"
#define TXT_ADMIN "Admin"
#define TXT_TIME_SERVER "Zeitserver"
#define TXT_OW_API_KEY "OpenWeather API Key"
#define TXT_OW_LOCATION "OpenWeather Standort"
#define TXT_COVER_LANGUAGE "Sprache/Dialekt"
#endif
#ifdef LANGUAGE_FR
const char sWeekday[][2] = {
{ ' ', ' ' }, // 00
{ 'D', 'I' }, // 01
{ 'L', 'U' }, // 02
{ 'M', 'A' }, // 03
{ 'M', 'E' }, // 04
{ 'J', 'E' }, // 05
{ 'V', 'E' }, // 06
{ 'S', 'A' } // 07
};
const char sColorStr[][15] PROGMEM =
{
"White",
"Red",
"Red 75%",
"Red 20%",
"Orange",
"Yellow",
"Yellow 25%",
"Yellow 50%",
"Green-Yellow",
"Green",
"Green 25%",
"Green 50%",
"Mintgreen",
"Cyan",
"Cyan 25%",
"Cyan 50%",
"Light Blue",
"Blue",
"Blue 25%",
"Blue 50%",
"Purple",
"Magenta",
"Magenta 25%",
"Magenta 50%",
"Pink",
"Mood"
};
#define LANGSTR "fr"
#define TXT_SETTINGS "Param�tres"
#define TXT_ALARM "R�veil"
#define TXT_ON "on"
#define TXT_OFF "off"
#define TXT_HOURBEEP "Alarme heure"
#define TXT_TIMER "Minuteur"
#define TXT_MINUTES "Minutes"
#define TXT_COLOR "Coleur"
#define TXT_COLORCHANGE "Color change"
#define TXT_BRIGHTNESS "Brightness"
#define TXT_SHOW_TEMP "Show temperature"
#define TXT_AUTO_BRIGHTNESS "Auto brightness"
#define TXT_TRANSITION "Transition animation"
#define TXT_TIMEOUT "Back to clock timeout"
#define TXT_NIGHT_OFF "Switch off at"
#define TXT_DAY_ON "Switch on at"
#define TXT_PURIST_MODE "Purist Mode"
#define TXT_SHOW_GSI "Show \"GSI\""
#define TXT_SET_DATE_TIME "Set date/time"
#define TXT_ACTIVE "Active"
#define TXT_DATE "Date"
#define TXT_TEXT "Text"
#define TXT_ANIMATION "Animation"
#define TXT_REP_RATE "Repetition rate"
#define TXT_ADMIN "Admin"
#define TXT_TIME_SERVER "Time Server URL"
#define TXT_OW_API_KEY "OpenWeather API Key"
#define TXT_OW_LOCATION "OpenWeather Location"
#define TXT_COVER_LANGUAGE "Language/Dialect"
#endif
#ifdef LANGUAGE_IT
const char sWeekday[][2] = {
{ ' ', ' ' }, // 00
{ 'D', 'O' }, // 01
{ 'L', 'U' }, // 02
{ 'M', 'A' }, // 03
{ 'M', 'E' }, // 04
{ 'G', 'I' }, // 05
{ 'V', 'E' }, // 06
{ 'S', 'A' } // 07
};
const char sMonths[][3] = {
{ ' ', ' ', ' ' }, // 00
{ 'G', 'E', 'N' }, // 01
{ 'F', 'E', 'B' }, // 02
{ 'M', 'A', 'R' }, // 03
{ 'A', 'P', 'R' }, // 04
{ 'M', 'A', 'G' }, // 05
{ 'G', 'I', 'U' }, // 06
{ 'L', 'U', 'G' }, // 07
{ 'A', 'G', 'O' }, // 08
{ 'S', 'E', 'T' }, // 09
{ 'O', 'T', 'T' }, // 10
{ 'N', 'O', 'V' }, // 11
{ 'D', 'I', 'C' }, // 12
};
const char sColorStr[][15] PROGMEM =
{
"White",
"Red",
"Red 75%",
"Red 20%",
"Orange",
"Yellow",
"Yellow 25%",
"Yellow 50%",
"Green-Yellow",
"Green",
"Green 25%",
"Green 50%",
"Mintgreen",
"Cyan",
"Cyan 25%",
"Cyan 50%",
"Light Blue",
"Blue",
"Blue 25%",
"Blue 50%",
"Purple",
"Magenta",
"Magenta 25%",
"Magenta 50%",
"Pink",
"Mood"
};
#define LANGSTR "it"
#define TXT_SETTINGS "Settings"
#define TXT_ALARM "Alarm"
#define TXT_ON "on"
#define TXT_OFF "off"
#define TXT_HOURBEEP "Hourly beep"
#define TXT_TIMER "Timer"
#define TXT_MINUTES "minutes"
#define TXT_COLOR "Colori"
#define TXT_COLORCHANGE "Color Change"
#define TXT_BRIGHTNESS "Brightness"
#define TXT_SHOW_TEMP "Show temperature"
#define TXT_AUTO_BRIGHTNESS "Auto brightness"
#define TXT_TRANSITION "Transition animation"
#define TXT_TIMEOUT "Back to clock timeout"
#define TXT_NIGHT_OFF "Switch off at"
#define TXT_DAY_ON "Switch on at"
#define TXT_PURIST_MODE "Purist Mode"
#define TXT_SHOW_GSI "Show \"GSI\""
#define TXT_SET_DATE_TIME "Set date/time"
#define TXT_ACTIVE "Active"
#define TXT_DATE "Date"
#define TXT_TEXT "Text"
#define TXT_ANIMATION "Animation"
#define TXT_REP_RATE "Repetition rate"
#define TXT_ADMIN "Admin"
#define TXT_TIME_SERVER "Time Server URL"
#define TXT_OW_API_KEY "OpenWeather API Key"
#define TXT_OW_LOCATION "OpenWeather Location"
#define TXT_COVER_LANGUAGE "Language/Dialect"
#endif
#ifdef LANGUAGE_ES
const char sWeekday[][2] = {
{ ' ', ' ' }, // 00
{ 'D', 'O' }, // 01
{ 'L', 'U' }, // 02
{ 'M', 'A' }, // 03
{ 'M', 'I' }, // 04
{ 'J', 'U' }, // 05
{ 'V', 'I' }, // 06
{ 'S', 'A' } // 07
};
const char sColorStr[][15] PROGMEM =
{
"White",
"Red",
"Red 75%",
"Red 20%",
"Orange",
"Yellow",
"Yellow 25%",
"Yellow 50%",
"Green-Yellow",
"Green",
"Green 25%",
"Green 50%",
"Mintgreen",
"Cyan",
"Cyan 25%",
"Cyan 50%",
"Light Blue",
"Blue",
"Blue 25%",
"Blue 50%",
"Purple",
"Magenta",
"Magenta 25%",
"Magenta 50%",
"Pink",
"Mood"
};
#define LANGSTR "es"
#define TXT_SETTINGS "Settings"
#define TXT_ALARM "Alarm"
#define TXT_ON "on"
#define TXT_OFF "off"
#define TXT_HOURBEEP "Hourly beep"
#define TXT_TIMER "Timer"
#define TXT_MINUTES "minutes"
#define TXT_COLOR "Color"
#define TXT_COLORCHANGE "Color Change"
#define TXT_BRIGHTNESS "Brightness"
#define TXT_SHOW_TEMP "Show temperature"
#define TXT_AUTO_BRIGHTNESS "Auto brightness"
#define TXT_TRANSITION "Transition animation"
#define TXT_TIMEOUT "Back to clock timeout"
#define TXT_NIGHT_OFF "Switch off at"
#define TXT_DAY_ON "Switch on at"
#define TXT_PURIST_MODE "Purist Mode"
#define TXT_SHOW_GSI "Show \"GSI\""
#define TXT_SET_DATE_TIME "Set date/time"
#define TXT_ACTIVE "Active"
#define TXT_DATE "Date"
#define TXT_TEXT "Text"
#define TXT_ANIMATION "Animation"
#define TXT_REP_RATE "Repetition rate"
#define TXT_ADMIN "Admin"
#define TXT_TIME_SERVER "Time Server URL"
#define TXT_OW_API_KEY "OpenWeather API Key"
#define TXT_OW_LOCATION "OpenWeather Location"
#define TXT_COVER_LANGUAGE "Language/Dialect"
#endif
#ifdef LANGUAGE_NL
const char sWeekday[][2] = {
{ ' ', ' ' }, // 00
{ 'Z', 'O' }, // 01
{ 'M', 'A' }, // 02
{ 'D', 'I' }, // 03
{ 'W', 'O' }, // 04
{ 'D', 'O' }, // 05
{ 'V', 'R' }, // 06
{ 'Z', 'A' } // 07
};
const char sColorStr[][15] PROGMEM =
{
"White",
"Red",
"Red 75%",
"Red 20%",
"Orange",
"Yellow",
"Yellow 25%",
"Yellow 50%",
"Green-Yellow",
"Green",
"Green 25%",
"Green 50%",
"Mintgreen",
"Cyan",
"Cyan 25%",
"Cyan 50%",
"Light Blue",
"Blue",
"Blue 25%",
"Blue 50%",
"Purple",
"Magenta",
"Magenta 25%",
"Magenta 50%",
"Pink",
"Mood"
};
#define LANGSTR "nl"
#define TXT_SETTINGS "Settings"
#define TXT_ALARM "Alarm"
#define TXT_ON "on"
#define TXT_OFF "off"
#define TXT_HOURBEEP "Hourly beep"
#define TXT_TIMER "Timer"
#define TXT_MINUTES "minutes"
#define TXT_COLOR "Color"
#define TXT_COLORCHANGE "Color Change"
#define TXT_BRIGHTNESS "Brightness"
#define TXT_SHOW_TEMP "Show temperature"
#define TXT_AUTO_BRIGHTNESS "Auto brightness"
#define TXT_TRANSITION "Transition animation"
#define TXT_TIMEOUT "Back to clock timeout"
#define TXT_NIGHT_OFF "Switch off at"
#define TXT_DAY_ON "Switch on at"
#define TXT_PURIST_MODE "Purist Mode"
#define TXT_SHOW_GSI "Show \"GSI\""
#define TXT_SET_DATE_TIME "Set date/time"
#define TXT_ACTIVE "Active"
#define TXT_DATE "Date"
#define TXT_TEXT "Text"
#define TXT_ANIMATION "Animation"
#define TXT_REP_RATE "Repetition rate"
#define TXT_ADMIN "Admin"
#define TXT_TIME_SERVER "Time Server URL"
#define TXT_OW_API_KEY "OpenWeather API Key"
#define TXT_OW_LOCATION "OpenWeather Location"
#define TXT_COVER_LANGUAGE "Language/Dialect"
#endif
#endif