Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2136 - 1
/****************************************************************************************
2
 *   Copyright (C) 2011 Christian "Cebra" Brandtner, brandtner@brandtner.net            *
3
 *                                                                                      *
4
 *   This program is free software; you can redistribute it and/or modify               *
5
 *   it under the terms of the GNU General Public License as published by               *
6
 *   the Free Software Foundation; either version 2 of the License.                     *
7
 *                                                                                      *
8
 *   This program is distributed in the hope that it will be useful,                    *
9
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of                     *
10
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                      *
11
 *   GNU General Public License for more details.                                       *
12
 *                                                                                      *
13
 *   You should have received a copy of the GNU General Public License                  *
14
 *   along with this program; if not, write to the                                      *
15
 *   Free Software Foundation, Inc.,                                                    *
16
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.                          *
17
 *                                                                                      *
18
 *                                                                                      *
19
 *   Languagesupport:                                                                   *
20
 *   http://www.netrino.com/Embedded-Systems/How-To/Firmware-Internationalization       *
21
 *   Nigel Jones                                                                        *
22
 ****************************************************************************************/
23
 
24
//############################################################################
25
//# HISTORY  messages.c
26
//#
27
//# 08.08.2015 cebra
28
//# - add: STR_WAITNMEA
29
//#
30
//# 28.06.2014 OG
31
//# - chg: Text von ERROR_NODATA statt "Datenverlust!" jetzt "MK Datenverlust!"
32
//# - chg: Text von OSD_ERROR statt "FEHLER: Datenverlust!" jetzt "MK Datenverlust!"
33
//#
34
//# 27.06.2014 OG
35
//# - add: STR_BT_SEARCHTIME, STR_METERS, STR_BT_LOSTDATA
36
//#
37
//# 25.06.2014 OG
38
//# - add: STR_SEARCH_BT_ASK, STR_SEARCH_BT, STR_NO_BT_FOUND, STR_BT_DEVICES
39
//#
40
//# 24.06.2014 OG
41
//# - add: STR_NOBTM222, STR_NOGPSMOUSE, STR_GPSMOUSECONNECTION
42
//# - add: STR_GPSMOUSECONNECT, STR_GPSMOUSEDISCONNECT
43
//#
44
//# 23.06.2014 OG
45
//# - add: STR_WAITSATFIX
46
//#
47
//# 13.06.2014 OG
48
//# - add: STR_PKT_SWITCHOFF_NOW, STR_PKT_RESTART_NOW, STR_WI232_ACTIVATE
49
//# - del: mehrere CONNECT.. Strings
50
//# - del: DISPLAY3
51
//#
52
//# 11.06.2014 OG
53
//# - add: strGetLanguage()
54
//# - add: KEYLINE5
55
//# - del: TESTSTRING
56
//#
57
//# 10.06.2014 OG
58
//# - add: STR_WI232CONFIG, STR_USBCONNECTED, STR_SEEMKWIKI
59
//# - add: STR_ATTENTION, STR_SWITCHOFFMK
60
//# - del: CONNECT21, CONNECT22, CONNECT24, CONNECT25
61
//#
62
//# 08.06.2014 OG
63
//# - add: STR_EXTSV2MODULE
64
//#
65
//# 04.06.2014 OG
66
//# - add: STR_DATA
67
//# - add: STR_READING, STR_LABELS
68
//#
69
//# 01.06.2014 OG
70
//# - del: weitere unbenoetigte Strings geloescht
71
//#
72
//# 31.05.2014 OG
73
//# - add: STR_WITH, STR_WITHOUT
74
//# - del: etliche Strings die nicht mehr benoetigt werden geloescht
75
//#
76
//# 30.05.2014 OG
77
//# - add: STR_HELP_LIPOOFFSET1, STR_HELP_LIPOOFFSET2
78
//# - add: STR_HELP_LOWBAT1, STR_HELP_LOWBAT2
79
//#
80
//# 29.05.2014 OG
81
//# - del: etliche Strings die nicht mehr benoetigt werden geloescht
82
//#
83
//# 28.05.2014 OG
84
//# - add: STR_HELP_PKTLIGHTOFF1
85
//#
86
//# 26.05.2014 OG
87
//# - add: STR_OSDSCREEN_WAYPOINTS
88
//# - del: CHANGENORMREV1, CHANGENORMREV2
89
//#
90
//# 11.05.2014 OG
91
//# - chg: STR_SAVE_de - jetzt "Speichern" statt "speichern"
92
//#
93
//# 06.05.2014 OG
94
//# - add: STR_MENUCTRL_DELITEM, STR_MENUCTRL_DELASK, STR_MENUCTRL_NOTPOSSIBLE
95
//# - del: STR_FAV_DELETE
96
//#
97
//# 03.05.2014 OG
98
//# - add: STR_FAV_ADD, STR_FAV_DELETE, STR_FAV_FULL, STR_FAV_EXIST, STR_FAV_NOTEXIST
99
//#
100
//# 28.04.2014 OG
101
//# - add: STR_LONGPRESS
102
//# - chg: OSD_ERROR_de,OSD_ERROR_en Space am Ende entfernt / Ausrufungszeichen hinzugefuegt
103
//#
104
//# 09.04.2014 OG
105
//# - chg: WL1 von "WiFly vorh.:" zu "WiFly Modus:"
106
//#
107
//# 04.04.2014 OG
108
//# - add: STR_SEARCH, STR_FOUND, STR_SET
109
//#
110
//# 03.04.2014 OG
111
//# - add: STR_INITIALIZE
112
//#
113
//# 02.04.2014 OG
114
//# - chg: Text WL1_de gekuerzt
115
//#
116
//# 01.04.2014 OG
117
//# - add: BLE_EXIST, MODULE_EXIST
118
//#
119
//# 30.03.2014 OG
120
//# - chg: Text zu WL1 geaendert von "Wlan eingebaut" zu "WiFly vorhanden"
121
//#        -> das ist ein Aufsteckmodul und wird nicht eingebaut
122
//# - chg: strGet() angepasst auf 2 Sprachen (Deutsch, Englisch)
123
//# - del: Hollaendisch vollstaendig geloescht
124
//#
125
//# 29.03.2014 OG
126
//# - chg: Test geaendert von START_LASTPOS2 zu "löschen          Nein"
127
//# - chg: einige Texte bzgl. OSD-Data gekuerzt wegen Umstellung auf lcdx_printp_center()
128
//#
129
//# 27.03.2014 OG
130
//# - add: STR_SAVE, STR_DISCARD, STR_COPY, STR_SWITCHMOTOROFF, STR_SAVING
131
//#
132
//# 19.03.2014 OG
133
//# - add: KEYCANCEL
134
//#
135
//# 27.02.2014 OG
136
//# - add: STR_ACTIVE
137
//#
138
//# 20.02.2014 OG
139
//# - chg: Texte von BOOT1, BOOT2, TESTSTRING
140
//# - add: STR_VON, STR_NACH, STR_PKT
141
//#
142
//# 17.02.2014 OG
143
//# - add: EDIT_SETTING
144
//# - add: STR_ERROR, ERROR_NODATA, MSG_LOADSETTINGS, MSG_ACTIVATESETTING
145
//#
146
//# 12.02.2014 OG
147
//# - del: STARTMSG2
148
//# - add: NOMKFOUND
149
//#
150
//# 04.02.2014 OG
151
//# - add: CHANGENORMREV1, CHANGENORMREV2
152
//#
153
//# 03.02.2014 OG
154
//# - add: SHOWCELLU
155
//#
156
//# 02.02.2014 OG
157
//# - chg: START_LASTPOS
158
//# - chg: START_LASTPOS1
159
//# - chg: START_LASTPOS3
160
//# - del: START_LASTPOSDEL
161
//#
162
//# 24.01.2014 OG
163
//# - del: etliche ":" aus Bezeichnungen geloescht (bei verschiedenen Einstellungen)
164
//#        -> woher kamen die ueberhaupt? In der Historie sehe ich dazu nichts!
165
//# - add: MSG_WARNUNG, UPDATE3
166
//# - chg: UPDATE1, UPDATE2 (PKT Update)
167
//# - chg: SHUTDOWN (Space's entfernt)
168
//# - chg: START_VERSIONCHECK3: angepasst auf neue flexibilitaet des PKT wenn
169
//#        FC-Revision nicht unterstuetzt wird
170
//# - chg: OK_de von "Ok" nach "OK"
171
//#
172
//# 15.07.2013 Cebra
173
//# - add: Wlan Security erweitert
174
//#
175
//# 07.07.2013 OG
176
//# - add: OSD-Screen Namen
177
//#
178
//# 02.07.2013 Cebra
179
//# - add: Menuetexte fuer Wlan
180
//#
181
//# 27.06.2013 OG
182
//# - del: OSD_HOMEMKVIEW
183
//#
184
//# 26.06.2013 OG
185
//# - del: einige nicht mehr benoetigte Texte
186
//# - chg: Texte geaendert von START_VERSIONCHECK...
187
//# - chg: START_VERSIONCHECK5 zu MSG_FEHLER2
188
//#
189
//# 15.06.2013 OG
190
//# - add: OSD_MKSetting (fuer Setup: ein-/ausschalten der MK-Settingsanzeige)
191
//# - del: DISPLAY8 (ehemals LCD-Orientierung, nicht mehr benoetigt)
192
//# - chg: Code-Layout
193
//#
194
//# 13.06.2013 OG
195
//# - chg: kleine Textaenderung an STARTMSG2
196
//# - chg: Code-Layout
197
//#
198
//# 13.06.2013 CB
199
//# - add: Texte für OSD Statistik erweitert
200
//#
201
//# 25.05.2013 OG
202
//# - chg: redundante Strings durch define ersetzt um Speicherplatz zu sparen
203
//#
204
//# 05.05.2013 Cebra
205
//# - add: Erweiterung PKT Zeitsetup
206
//#
207
//# 25.04.2013 Cebra
208
//# - chg: LIPO entfernt, Text doppelt
209
//############################################################################
210
 
211
#include <avr/pgmspace.h>
212
#include "eeprom/eeprom.h"
213
#include "messages.h"
214
 
215
 
216
typedef enum
217
{
218
    GERMAN,
219
    ENGLISH,
220
    NETHERLAND,
221
    LAST_LANGUAGE,
222
} LANGUAGE;
223
 
224
 
225
static const char KEYLINE1_de[]                     PROGMEM = " \x1a     \x1b    Ende   OK";
226
static const char KEYLINE1_en[]                     PROGMEM = " \x1a     \x1b    end    OK";
227
 
228
static const char KEYLINE2_de[]                     PROGMEM = " \x18     \x19    Ende   OK";
229
static const char KEYLINE2_en[]                     PROGMEM = " \x18     \x19    end    OK";
230
 
231
static const char KEYLINE3_de[]                     PROGMEM = " \x18     \x19    Ende ";
232
static const char KEYLINE3_en[]                     PROGMEM = " \x18     \x19    end  ";
233
 
234
static const char KEYLINE4_de[]                     PROGMEM = "Ende   OK";
235
static const char KEYLINE4_en[]                     PROGMEM = "end    OK";
236
 
237
static const char KEYLINE5_de[]                     PROGMEM = " \x18     \x19    Abbr.  OK";
238
static const char KEYLINE5_en[]                     PROGMEM = " \x18     \x19   cancel  OK";
239
 
240
static const char KEYCANCEL_de[]                    PROGMEM = " Abbr.";
241
static const char KEYCANCEL_en[]                    PROGMEM = "cancel";
242
 
243
static const char BOOT1_de[]                        PROGMEM = "Taste 1 Sekunde";
244
static const char BOOT1_en[]                        PROGMEM = "press button";
245
 
246
static const char BOOT2_de[]                        PROGMEM = "festhalten!";
247
static const char BOOT2_en[]                        PROGMEM = "for 1 second!";
248
 
249
static const char START_LASTPOS_de[]                PROGMEM = "Letzte Position";
250
static const char START_LASTPOS_en[]                PROGMEM = "last position";
251
 
252
static const char START_LASTPOS1_de[]               PROGMEM = "Breitengr. Längengr.";
253
static const char START_LASTPOS1_en[]               PROGMEM = "latitude   longitude";
254
 
255
static const char START_LASTPOS2_de[]               PROGMEM = "löschen          Nein";
256
static const char START_LASTPOS2_en[]               PROGMEM = "delete            No";
257
 
258
static const char START_LASTPOS3_de[]               PROGMEM = "Google Eingabe:";
259
static const char START_LASTPOS3_en[]               PROGMEM = "Google Input:";
260
 
261
static const char START_SEARCHFC_de[]               PROGMEM = "suche Mikrokopter...";
262
static const char START_SEARCHFC_en[]               PROGMEM = "searching Kopter...";
263
 
264
static const char ENDE_de[]                         PROGMEM = "Ende";
265
static const char ENDE_en[]                         PROGMEM = "end";
266
 
267
static const char OK_de[]                           PROGMEM = "OK";
268
static const char OK_en[]                           PROGMEM = "ok";
269
 
270
static const char FEHLER_de[]                       PROGMEM = "Fehler";
271
static const char FEHLER_en[]                       PROGMEM = "error";
272
 
273
static const char AKTIV_de[]                        PROGMEM = "aktiv";
274
static const char AKTIV_en[]                        PROGMEM = "activ";
275
 
276
static const char STR_SAVE_de[]                     PROGMEM = "Speichern";
277
static const char STR_SAVE_en[]                     PROGMEM = "save";
278
 
279
static const char STR_SAVING_de[]                   PROGMEM = "wird gespeichert...";
280
static const char STR_SAVING_en[]                   PROGMEM = "saving...";
281
 
282
static const char STR_DISCARD_de[]                  PROGMEM = "Verwerfen";
283
static const char STR_DISCARD_en[]                  PROGMEM = "discard";
284
 
285
static const char STR_COPY_de[]                     PROGMEM = "Kopieren";
286
static const char STR_COPY_en[]                     PROGMEM = "copy";
287
 
288
static const char STR_SEARCH_de[]                   PROGMEM = "suche";
289
static const char STR_SEARCH_en[]                   PROGMEM = "search";
290
 
291
static const char STR_FOUND_de[]                    PROGMEM = "gefunden";
292
static const char STR_FOUND_en[]                    PROGMEM = "found";
293
 
294
static const char STR_SET_de[]                      PROGMEM = "setze";
295
static const char STR_SET_en[]                      PROGMEM = "set";
296
 
297
static const char STR_WITH_de[]                     PROGMEM = "mit";
298
static const char STR_WITH_en[]                     PROGMEM = "with";
299
 
300
static const char STR_WITHOUT_de[]                  PROGMEM = "ohne";
301
static const char STR_WITHOUT_en[]                  PROGMEM = "without";
302
 
303
static const char STR_SWITCHMOTOROFF_de[]           PROGMEM = "Motoren ausschalten!";
304
static const char STR_SWITCHMOTOROFF_en[]           PROGMEM = "switch motors off!";
305
 
306
static const char ON_de[]                           PROGMEM = "Ein  ";
307
static const char ON_en[]                           PROGMEM = "On   ";
308
 
309
static const char OFF_de[]                          PROGMEM = "Aus  ";
310
static const char OFF_en[]                          PROGMEM = "off  ";
311
 
312
static const char ESC_de[]                          PROGMEM = "ESC";
313
#define           ESC_en                            ESC_de
314
 
315
static const char SHUTDOWN_de[]                     PROGMEM = "PKT ausschalten?";
316
static const char SHUTDOWN_en[]                     PROGMEM = "shutdown PKT?";
317
 
318
static const char YESNO_de[]                        PROGMEM = "Ja   Nein";
319
static const char YESNO_en[]                        PROGMEM = "yes    no";
320
 
321
static const char NOYES_de[]                        PROGMEM = "Nein   Ja";
322
static const char NOYES_en[]                        PROGMEM = "no    yes";
323
 
324
static const char DELETEDATA_de[]                   PROGMEM = "Daten löschen?";
325
static const char DELETEDATA_en[]                   PROGMEM = "delete data?";
326
 
327
static const char UPDATE1_de[]                      PROGMEM = "Verbinde PKT mit PC!";
328
static const char UPDATE1_en[]                      PROGMEM = "Connect PKT to PC";
329
 
330
static const char UPDATE2_de[]                      PROGMEM = "Drücke 'Start' für";
331
static const char UPDATE2_en[]                      PROGMEM = "Press 'Start' for";
332
 
333
static const char UPDATE3_de[]                      PROGMEM = "min. 2 Sekunden";
334
static const char UPDATE3_en[]                      PROGMEM = "min. 2 seconds";
335
 
336
static const char ENDSTART_de[]                     PROGMEM = "Ende Start";
337
static const char ENDSTART_en[]                     PROGMEM = "End  Start";
338
 
339
static const char CONNECT13_de[]                    PROGMEM = "Modul eingebaut";
340
static const char CONNECT13_en[]                    PROGMEM = "Modul built in";
341
 
342
static const char KABEL_de[]                        PROGMEM = "Kabel";
343
static const char KABEL_en[]                        PROGMEM = "cable";
344
 
345
static const char SLAVE_de[]                        PROGMEM = "Slave";
346
#define           SLAVE_en                          SLAVE_de
347
 
348
static const char NORMAL_de[]                       PROGMEM = "Normal";
349
#define           NORMAL_en                         NORMAL_de
350
 
351
static const char REVERSE_de[]                      PROGMEM = "Reverse";
352
static const char REVERSE_en[]                      PROGMEM = "inverse";
353
 
354
static const char ENDOK_de[]                        PROGMEM = "Ende   OK";
355
static const char ENDOK_en[]                        PROGMEM = "End    OK";
356
 
357
static const char EEPROM1_de[]                      PROGMEM = "PKT-EEProm";
358
static const char EEPROM1_en[]                      PROGMEM = "Realy delete";
359
 
360
static const char EEPROM2_de[]                      PROGMEM = "wirklich löschen?";
361
static const char EEPROM2_en[]                      PROGMEM = "PKT-EEProm?";
362
 
363
static const char DEUTSCH_de[]                      PROGMEM = "deutsch";
364
static const char DEUTSCH_en[]                      PROGMEM = "german";
365
 
366
static const char ENGLISCH_de[]                     PROGMEM = "englisch";
367
static const char ENGLISCH_en[]                     PROGMEM = "english";
368
 
369
static const char YES_de[]                          PROGMEM = "Ja  ";
370
static const char YES_en[]                          PROGMEM = "yes ";
371
 
372
static const char NOO_de[]                          PROGMEM = "Nein";
373
static const char NOO_en[]                          PROGMEM = "no  ";
374
 
375
static const char OSD_3D_V_de[]                     PROGMEM = "V";
376
static const char OSD_3D_V_en[]                     PROGMEM = "F";
377
 
378
static const char OSD_3D_H_de[]                     PROGMEM = "H";
379
static const char OSD_3D_H_en[]                     PROGMEM = "B";
380
 
381
static const char OSD_3D_L_de[]                     PROGMEM = "L";
382
#define           OSD_3D_L_en                       OSD_3D_L_de
383
 
384
static const char OSD_3D_R_de[]                     PROGMEM = "R";
385
#define           OSD_3D_R_en                       OSD_3D_R_de
386
 
387
static const char OSD_3D_NICK_de[]                  PROGMEM = "Ni";
388
#define           OSD_3D_NICK_en                    OSD_3D_NICK_de
389
 
390
static const char OSD_3D_ROLL_de[]                  PROGMEM = "Ro";
391
#define           OSD_3D_ROLL_en                    OSD_3D_ROLL_de
392
 
393
static const char OSD_ERROR_de[]                    PROGMEM = "MK Datenverlust!";
394
static const char OSD_ERROR_en[]                    PROGMEM = "MK Data lost!";
395
 
396
static const char PARA_AKTIVI_de[]                  PROGMEM = "Aktivieren";
397
static const char PARA_AKTIVI_en[]                  PROGMEM = "activate";
398
 
399
static const char PARA_COPY_de[]                    PROGMEM = "Kopiere Setting";
400
static const char PARA_COPY_en[]                    PROGMEM = "copy settings";
401
 
402
static const char PARA_COPYQ_de[]                   PROGMEM = "Wirklich kopieren?";
403
static const char PARA_COPYQ_en[]                   PROGMEM = "really copy?";
404
 
405
static const char GPS2_de[]                         PROGMEM =  "gewähltes GPS Gerät  ";
406
static const char GPS2_en[]                         PROGMEM =  "selected GPS device  ";
407
 
408
static const char STATS_ITEM_0_de[]                 PROGMEM =  "max Höhe    :";
409
static const char STATS_ITEM_0_en[]                 PROGMEM =  "max altitude:";
410
 
411
static const char STATS_ITEM_1_de[]                 PROGMEM =  "max Geschw. :";
412
static const char STATS_ITEM_1_en[]                 PROGMEM =  "max speed   :";
413
 
414
static const char STATS_ITEM_2_de[]                 PROGMEM =  "max Entfern.:";
415
static const char STATS_ITEM_2_en[]                 PROGMEM =  "max distance:";
416
 
417
static const char STATS_ITEM_3_de[]                 PROGMEM =  "min Spannung:";
418
static const char STATS_ITEM_3_en[]                 PROGMEM =  "min voltage :";
419
 
420
static const char STATS_ITEM_4_de[]                 PROGMEM =  "max Zeit    :";
421
static const char STATS_ITEM_4_en[]                 PROGMEM =  "max time    :";
422
 
423
static const char STATS_ITEM_5_de[]                 PROGMEM =  "max Strom   :";
424
static const char STATS_ITEM_5_en[]                 PROGMEM =  "max current :";
425
 
426
static const char STATS_ITEM_6_de[]                 PROGMEM =  "Ent.Kapazit.:";
427
static const char STATS_ITEM_6_en[]                 PROGMEM =  "UsedCapacity:";
428
 
429
static const char POTI_de[]                         PROGMEM =  "Poti  ";
430
static const char POTI_en[]                         PROGMEM =  "poti  ";
431
 
432
static const char TASTER_de[]                       PROGMEM =  "Taster";
433
static const char TASTER_en[]                       PROGMEM =  "switch";
434
 
435
static const char STAT_OSDBL_de[]                   PROGMEM =  "OSD- und BL-Daten";
436
static const char STAT_OSDBL_en[]                   PROGMEM =  "OSD- and BL-Data";
437
 
438
static const char STAT_ERROR_de[]                   PROGMEM =  "MK Fehlerliste";
439
static const char STAT_ERROR_en[]                   PROGMEM =  "MK errorlist";
440
 
441
static const char STAT_GPS_de[]                     PROGMEM =  "User GPS-Daten";
442
static const char STAT_GPS_en[]                     PROGMEM =  "User GPS-data";
443
 
444
static const char STAT_POS_de[]                     PROGMEM =  "letzte Position";
445
static const char STAT_POS_en[]                     PROGMEM =  "last position";
446
 
447
static const char STAT_ALL_de[]                     PROGMEM =  "ALLE Daten";
448
static const char STAT_ALL_en[]                     PROGMEM =  "ALL data";
449
 
450
static const char DELETE_de[]                       PROGMEM =  "löschen?";
451
static const char DELETE_en[]                       PROGMEM =  "delete?";
452
 
453
static const char STR_OSDSCREEN_GENERAL_de[]        PROGMEM = "General";
454
#define           STR_OSDSCREEN_GENERAL_en          STR_OSDSCREEN_GENERAL_de
455
 
456
static const char STR_OSDSCREEN_NAVIGATION_de[]     PROGMEM = "Navigation";
457
#define           STR_OSDSCREEN_NAVIGATION_en       STR_OSDSCREEN_NAVIGATION_de
458
 
459
static const char STR_OSDSCREEN_WAYPOINTS_de[]      PROGMEM = "Waypoints";
460
#define           STR_OSDSCREEN_WAYPOINTS_en        STR_OSDSCREEN_NAVIGATION_de
461
 
462
static const char STR_OSDSCREEN_ELECTRIC_de[]       PROGMEM = "Electric";
463
#define           STR_OSDSCREEN_ELECTRIC_en         STR_OSDSCREEN_ELECTRIC_de
464
 
465
static const char STR_OSDSCREEN_MKSTATUS_de[]       PROGMEM = "MK-Status";
466
#define           STR_OSDSCREEN_MKSTATUS_en         STR_OSDSCREEN_MKSTATUS_de
467
 
468
static const char STR_OSDSCREEN_USERGPS_de[]        PROGMEM = "User GPS";
469
#define           STR_OSDSCREEN_USERGPS_en          STR_OSDSCREEN_USERGPS_de
470
 
471
static const char STR_OSDSCREEN_3DLAGE_de[]         PROGMEM = "3D Lage";
472
#define           STR_OSDSCREEN_3DLAGE_en           STR_OSDSCREEN_3DLAGE_de
473
 
474
static const char STR_OSDSCREEN_STATISTIC_de[]      PROGMEM = "Statistics";
475
#define           STR_OSDSCREEN_STATISTIC_en        STR_OSDSCREEN_STATISTIC_de
476
 
477
static const char STR_OSDSCREEN_OSD0_de[]           PROGMEM = "OSD0";
478
#define           STR_OSDSCREEN_OSD0_en             STR_OSDSCREEN_OSD0_de
479
 
480
static const char STR_OSDSCREEN_OSD1_de[]           PROGMEM = "OSD1";
481
#define           STR_OSDSCREEN_OSD1_en             STR_OSDSCREEN_OSD1_de
482
 
483
static const char STR_OSDSCREEN_OSD2_de[]           PROGMEM = "OSD2";
484
#define           STR_OSDSCREEN_OSD2_en             STR_OSDSCREEN_OSD2_de
485
 
486
static const char NOMKFOUND_de[]                    PROGMEM = "keinen MK gefunden!";
487
static const char NOMKFOUND_en[]                    PROGMEM = "no MK found!";
488
 
489
static const char STR_ERROR_de[]                    PROGMEM = "FEHLER";
490
static const char STR_ERROR_en[]                    PROGMEM = "ERROR";
491
 
492
static const char ERROR_NODATA_de[]                 PROGMEM = "MK Datenverlust!";
493
static const char ERROR_NODATA_en[]                 PROGMEM = "MK Data lost!";
494
 
495
static const char MSG_LOADSETTINGS_de[]             PROGMEM = "lade Settings...";
496
static const char MSG_LOADSETTINGS_en[]             PROGMEM = "loading settings...";
497
 
498
static const char MSG_ACTIVATESETTING_de[]          PROGMEM = "aktiviere Setting...";
499
static const char MSG_ACTIVATESETTING_en[]          PROGMEM = "activate setting...";
500
 
501
static const char EDIT_SETTING_de[]                 PROGMEM = "Bearbeiten";
502
static const char EDIT_SETTING_en[]                 PROGMEM = "edit";
503
 
504
static const char STR_VON_de[]                      PROGMEM = "von";
505
static const char STR_VON_en[]                      PROGMEM = "from";
506
 
507
static const char STR_NACH_de[]                     PROGMEM = "nach";
508
static const char STR_NACH_en[]                     PROGMEM = "to";
509
 
510
static const char STR_PKT_de[]                      PROGMEM = "PKT";
511
#define           STR_PKT_en                        STR_PKT_de
512
 
513
static const char STR_ACTIVE_de[]                   PROGMEM = "AKTIV!";
514
static const char STR_ACTIVE_en[]                   PROGMEM = "ACTIVE!";
515
 
516
static const char MODULE_EXIST_de[]                 PROGMEM = "Modul vorhanden";
517
static const char MODULE_EXIST_en[]                 PROGMEM = "Module exist";
518
 
519
static const char STR_INITIALIZE_de[]               PROGMEM = "Initialisieren";
520
static const char STR_INITIALIZE_en[]               PROGMEM = "Initialize";
521
 
522
static const char STR_LONGPRESS_de[]                PROGMEM = "langer Tastendruck:";
523
static const char STR_LONGPRESS_en[]                PROGMEM = "long press:";
524
 
525
static const char STR_FAV_ADD_de[]                  PROGMEM = "Fav hinzugefügt!";
526
static const char STR_FAV_ADD_en[]                  PROGMEM = "fav added!";
527
 
528
static const char STR_FAV_FULL_de[]                 PROGMEM = "* Fav ist voll *";
529
static const char STR_FAV_FULL_en[]                 PROGMEM = "* fav is full *";
530
 
531
static const char STR_FAV_EXIST_de[]                PROGMEM = "* Fav vorhanden *";
532
static const char STR_FAV_EXIST_en[]                PROGMEM = "* fav exists*";
533
 
534
static const char STR_FAV_NOTEXIST_de[]             PROGMEM = "kein Fav vorhanden!";
535
static const char STR_FAV_NOTEXIST_en[]             PROGMEM = "no fav exist!";
536
 
537
static const char STR_MENUCTRL_DELITEM_de[]         PROGMEM = "Eintrag entfernt!";
538
static const char STR_MENUCTRL_DELITEM_en[]         PROGMEM = "item deleted!";
539
 
540
static const char STR_MENUCTRL_DELASK_de[]          PROGMEM = "Eintrag entfernen?";
541
static const char STR_MENUCTRL_DELASK_en[]          PROGMEM = "delete item?";
542
 
543
static const char STR_MENUCTRL_NOTPOSSIBLE_de[]     PROGMEM = "nicht möglich!";
544
static const char STR_MENUCTRL_NOTPOSSIBLE_en[]     PROGMEM = "not possible";
545
 
546
static const char STR_HELP_PKTOFFTIME1_de[]         PROGMEM = "Minuten (0=Aus)";
547
static const char STR_HELP_PKTOFFTIME1_en[]         PROGMEM = "minutes (0=off)";
548
 
549
static const char STR_HELP_LOWBAT1_de[]             PROGMEM = "<4.20 Einzelzelle  ";
550
static const char STR_HELP_LOWBAT1_en[]             PROGMEM = "<4.20 single cell  ";
551
 
552
static const char STR_HELP_LOWBAT2_de[]             PROGMEM = ">4.20 Gesamtspannu.";
553
static const char STR_HELP_LOWBAT2_en[]             PROGMEM = ">4.20 total voltage";
554
 
555
static const char STR_HELP_LIPOOFFSET1_de[]         PROGMEM = "verstellen, bis die";
556
static const char STR_HELP_LIPOOFFSET1_en[]         PROGMEM = "adjust offset until";
557
 
558
static const char STR_HELP_LIPOOFFSET2_de[]         PROGMEM = "Spannung passt!";
559
static const char STR_HELP_LIPOOFFSET2_en[]         PROGMEM = "voltage fits!";
560
 
561
static const char STR_DATA_de[]                     PROGMEM = "Daten";
562
static const char STR_DATA_en[]                     PROGMEM = "data";
563
 
564
static const char STR_READING_de[]                  PROGMEM = "lese";
565
static const char STR_READING_en[]                  PROGMEM = "reading";
566
 
567
static const char STR_LABELS_de[]                   PROGMEM = "Labels";
568
static const char STR_LABELS_en[]                   PROGMEM = "labels";
569
 
570
static const char STR_EXTSV2MODULE_de[]             PROGMEM = "externes SV2-Modul";
571
static const char STR_EXTSV2MODULE_en[]             PROGMEM = "external SV2 module";
572
 
573
static const char STR_ATTENTION_de[]                PROGMEM = "* ACHTUNG *";
574
static const char STR_ATTENTION_en[]                PROGMEM = "* ATTENTION *";
575
 
576
static const char STR_SWITCHOFFMK_de[]              PROGMEM = "Kopter ausschalten!";
577
static const char STR_SWITCHOFFMK_en[]              PROGMEM = "switch off kopter!";
578
 
579
static const char STR_WI232CONFIG_de[]              PROGMEM = "Wi.232 Konfig.";
580
static const char STR_WI232CONFIG_en[]              PROGMEM = "Wi.232 Config";
581
 
582
static const char STR_USBCONNECTED_de[]             PROGMEM = "mit USB verbunden";
583
static const char STR_USBCONNECTED_en[]             PROGMEM = "connected with USB";
584
 
585
static const char STR_SEEMKWIKI_de[]                PROGMEM = "siehe MK-Wiki:";
586
static const char STR_SEEMKWIKI_en[]                PROGMEM = "see MK-Wiki:";
587
 
588
static const char STR_PKT_SWITCHOFF_NOW_de[]        PROGMEM = "jetzt ausschalten?";
589
static const char STR_PKT_SWITCHOFF_NOW_en[]        PROGMEM = "switch off now?";
590
 
591
static const char STR_PKT_RESTART_NOW_de[]          PROGMEM = "PKT neu starten!";
592
static const char STR_PKT_RESTART_NOW_en[]          PROGMEM = "restart PKT!";
593
 
594
static const char STR_WI232_ACTIVATE_de[]           PROGMEM = "aktiviere Wi.232!";
595
static const char STR_WI232_ACTIVATE_en[]           PROGMEM = "activate Wi.232!";
596
 
597
static const char STR_WAITSATFIX_de[]               PROGMEM = "* warte auf Satfix *";
598
static const char STR_WAITSATFIX_en[]               PROGMEM = "* waiting satfix *";
599
 
600
static const char STR_GPSMOUSECONNECT_de[]          PROGMEM = "verbinde GPS-Maus";
601
static const char STR_GPSMOUSECONNECT_en[]          PROGMEM = "search gps-mouse";
602
 
603
static const char STR_GPSMOUSEDISCONNECT_de[]       PROGMEM = "trenne GPS-Maus";
604
static const char STR_GPSMOUSEDISCONNECT_en[]       PROGMEM = "disjoin gps-mouse";
605
 
606
static const char STR_NOBTM222_de[]                 PROGMEM = "kein BTM222 vorh.";
607
static const char STR_NOBTM222_en[]                 PROGMEM = "no BTM222 installed";
608
 
609
static const char STR_NOGPSMOUSE_de[]               PROGMEM = "keine GPS-Maus!";
610
static const char STR_NOGPSMOUSE_en[]               PROGMEM = "no gps-mouse!";
611
 
612
static const char STR_GPSMOUSECONNECTION_de[]       PROGMEM = "GPS-Maus Verbindung";
613
static const char STR_GPSMOUSECONNECTION_en[]       PROGMEM = "gps-mouse connection";
614
 
615
static const char STR_SEARCH_BT_ASK_de[]            PROGMEM = "BT Geräte suchen?";
616
static const char STR_SEARCH_BT_ASK_en[]            PROGMEM = "search BT devices?";
617
 
618
static const char STR_SEARCH_BT_de[]                PROGMEM = "suche BT Geräte";
619
static const char STR_SEARCH_BT_en[]                PROGMEM = "search BT devices";
620
 
621
static const char STR_NO_BT_FOUND_de[]              PROGMEM = "kein Gerät gefunden";
622
static const char STR_NO_BT_FOUND_en[]              PROGMEM = "no device found";
623
 
624
static const char STR_BT_DEVICES_de[]               PROGMEM = "BT Geräte";
625
static const char STR_BT_DEVICES_en[]               PROGMEM = "BT devices";
626
 
627
static const char STR_BT_SEARCHTIME_de[]            PROGMEM = "(ca. 2 Minuten)";
628
static const char STR_BT_SEARCHTIME_en[]            PROGMEM = "(ca. 2 minutes)";
629
 
630
static const char STR_BT_LOSTDATA_de[]              PROGMEM = "BT Datenverlust";
631
static const char STR_BT_LOSTDATA_en[]              PROGMEM = "BT data loss";
632
 
633
static const char STR_METERS_de[]                   PROGMEM = "Meter";
634
static const char STR_METERS_en[]                   PROGMEM = "meters";
635
 
636
 
637
static const char STR_WAITNMEA_de[]                 PROGMEM = "Warte auf GPS Daten";
638
static const char STR_WAITNMEA_en[]                 PROGMEM = "waiting for GPS Data";
639
 
640
 
641
//******************************************************************
642
// hier stehen lassen, alle neuen Strings hier drüber einfügen
643
static const char LAST_STR_de[]         PROGMEM =  "Lastring";
644
#define           LAST_STR_en           LAST_STR_de
645
//******************************************************************
646
 
647
 
648
 
649
//--------------------------------------------------------------
650
//--------------------------------------------------------------
651
const char * const strings[] PROGMEM =
652
{
653
  KEYLINE1_de,                  KEYLINE1_en,
654
  KEYLINE2_de,                  KEYLINE2_en,
655
  KEYLINE3_de,                  KEYLINE3_en,
656
  KEYLINE4_de,                  KEYLINE4_en,
657
  KEYLINE5_de,                  KEYLINE5_en,
658
  KEYCANCEL_de,                 KEYCANCEL_en,
659
  BOOT1_de,                     BOOT1_en,
660
  BOOT2_de,                     BOOT2_en,
661
  START_LASTPOS_de,             START_LASTPOS_en,
662
  START_LASTPOS1_de,            START_LASTPOS1_en,
663
  START_LASTPOS2_de,            START_LASTPOS2_en,
664
  START_LASTPOS3_de,            START_LASTPOS3_en,
665
  START_SEARCHFC_de,            START_SEARCHFC_en,
666
  ENDE_de,                      ENDE_en,
667
  OK_de,                        OK_en,
668
  FEHLER_de,                    FEHLER_en,
669
  AKTIV_de,                     AKTIV_en,
670
  STR_SAVE_de,                  STR_SAVE_en,
671
  STR_SAVING_de,                STR_SAVING_en,
672
  STR_DISCARD_de,               STR_DISCARD_en,
673
  STR_COPY_de,                  STR_COPY_en,
674
  STR_SEARCH_de,                STR_SEARCH_en,
675
  STR_FOUND_de,                 STR_FOUND_en,
676
  STR_SET_de,                   STR_SET_en,
677
  STR_WITH_de,                  STR_WITH_en,
678
  STR_WITHOUT_de,               STR_WITHOUT_en,
679
  STR_SWITCHMOTOROFF_de,        STR_SWITCHMOTOROFF_en,
680
  ON_de,                        ON_en,
681
  OFF_de,                       OFF_en,
682
  ESC_de,                       ESC_en,
683
  SHUTDOWN_de,                  SHUTDOWN_en,
684
  YESNO_de,                     YESNO_en,
685
  NOYES_de,                     NOYES_en,
686
  DELETEDATA_de,                DELETEDATA_en,
687
  UPDATE1_de,                   UPDATE1_en,
688
  UPDATE2_de,                   UPDATE2_en,
689
  UPDATE3_de,                   UPDATE3_en,
690
  ENDSTART_de,                  ENDSTART_en,
691
  CONNECT13_de,                 CONNECT13_en,
692
  KABEL_de,                     KABEL_en,
693
  SLAVE_de,                     SLAVE_en,
694
  NORMAL_de,                    NORMAL_en,
695
  REVERSE_de,                   REVERSE_en,
696
  ENDOK_de,                     ENDOK_en,
697
  EEPROM1_de,                   EEPROM1_en,
698
  EEPROM2_de,                   EEPROM2_en,
699
  DEUTSCH_de,                   DEUTSCH_en,
700
  ENGLISCH_de,                  ENGLISCH_en,
701
  YES_de,                       YES_en,
702
  NOO_de,                       NOO_en,
703
  OSD_3D_V_de,                  OSD_3D_V_en,
704
  OSD_3D_H_de,                  OSD_3D_H_en,
705
  OSD_3D_L_de,                  OSD_3D_L_en,
706
  OSD_3D_R_de,                  OSD_3D_R_en,
707
  OSD_3D_NICK_de,               OSD_3D_NICK_en,
708
  OSD_3D_ROLL_de,               OSD_3D_ROLL_en,
709
  OSD_ERROR_de,                 OSD_ERROR_en,
710
  PARA_AKTIVI_de,               PARA_AKTIVI_en,
711
  PARA_COPY_de,                 PARA_COPY_en,
712
  PARA_COPYQ_de,                PARA_COPYQ_en,
713
  GPS2_de,                      GPS2_en,
714
  STATS_ITEM_0_de,              STATS_ITEM_0_en,
715
  STATS_ITEM_1_de,              STATS_ITEM_1_en,
716
  STATS_ITEM_2_de,              STATS_ITEM_2_en,
717
  STATS_ITEM_3_de,              STATS_ITEM_3_en,
718
  STATS_ITEM_4_de,              STATS_ITEM_4_en,
719
  STATS_ITEM_5_de,              STATS_ITEM_5_en,
720
  STATS_ITEM_6_de,              STATS_ITEM_6_en,
721
  POTI_de,                      POTI_en,
722
  TASTER_de,                    TASTER_en,
723
  STAT_OSDBL_de,                STAT_OSDBL_en,
724
  STAT_ERROR_de,                STAT_ERROR_en,
725
  STAT_GPS_de,                  STAT_GPS_en,
726
  STAT_POS_de,                  STAT_POS_en,
727
  STAT_ALL_de,                  STAT_ALL_en,
728
  DELETE_de,                    DELETE_en,
729
  STR_OSDSCREEN_GENERAL_de,     STR_OSDSCREEN_GENERAL_en,
730
  STR_OSDSCREEN_NAVIGATION_de,  STR_OSDSCREEN_NAVIGATION_en,
731
  STR_OSDSCREEN_WAYPOINTS_de,   STR_OSDSCREEN_WAYPOINTS_en,
732
  STR_OSDSCREEN_ELECTRIC_de,    STR_OSDSCREEN_ELECTRIC_en,
733
  STR_OSDSCREEN_MKSTATUS_de,    STR_OSDSCREEN_MKSTATUS_en,
734
  STR_OSDSCREEN_USERGPS_de,     STR_OSDSCREEN_USERGPS_en,
735
  STR_OSDSCREEN_3DLAGE_de,      STR_OSDSCREEN_3DLAGE_en,
736
  STR_OSDSCREEN_STATISTIC_de,   STR_OSDSCREEN_STATISTIC_en,
737
  STR_OSDSCREEN_OSD0_de,        STR_OSDSCREEN_OSD0_en,
738
  STR_OSDSCREEN_OSD1_de,        STR_OSDSCREEN_OSD1_en,
739
  STR_OSDSCREEN_OSD2_de,        STR_OSDSCREEN_OSD2_en,
740
  NOMKFOUND_de,                 NOMKFOUND_en,
741
  STR_ERROR_de,                 STR_ERROR_en,
742
  ERROR_NODATA_de,              ERROR_NODATA_en,
743
  MSG_LOADSETTINGS_de,          MSG_LOADSETTINGS_en,
744
  MSG_ACTIVATESETTING_de,       MSG_ACTIVATESETTING_en,
745
  EDIT_SETTING_de,              EDIT_SETTING_en,
746
  STR_VON_de,                   STR_VON_en,
747
  STR_NACH_de,                  STR_NACH_en,
748
  STR_PKT_de,                   STR_PKT_en,
749
  STR_ACTIVE_de,                STR_ACTIVE_en,
750
  MODULE_EXIST_de,              MODULE_EXIST_en,
751
  STR_INITIALIZE_de,            STR_INITIALIZE_en,
752
  STR_LONGPRESS_de,             STR_LONGPRESS_en,
753
  STR_FAV_ADD_de,               STR_FAV_ADD_en,
754
  STR_FAV_FULL_de,              STR_FAV_FULL_en,
755
  STR_FAV_EXIST_de,             STR_FAV_EXIST_en,
756
  STR_FAV_NOTEXIST_de,          STR_FAV_NOTEXIST_en,
757
  STR_MENUCTRL_DELITEM_de,      STR_MENUCTRL_DELITEM_en,
758
  STR_MENUCTRL_DELASK_de,       STR_MENUCTRL_DELASK_en,
759
  STR_MENUCTRL_NOTPOSSIBLE_de,  STR_MENUCTRL_NOTPOSSIBLE_en,
760
  STR_HELP_PKTOFFTIME1_de,      STR_HELP_PKTOFFTIME1_en,
761
  STR_HELP_LOWBAT1_de,          STR_HELP_LOWBAT1_en,
762
  STR_HELP_LOWBAT2_de,          STR_HELP_LOWBAT2_en,
763
  STR_HELP_LIPOOFFSET1_de,      STR_HELP_LIPOOFFSET1_en,
764
  STR_HELP_LIPOOFFSET2_de,      STR_HELP_LIPOOFFSET2_en,
765
  STR_DATA_de,                  STR_DATA_en,
766
  STR_READING_de,               STR_READING_en,
767
  STR_LABELS_de,                STR_LABELS_en,
768
  STR_EXTSV2MODULE_de,          STR_EXTSV2MODULE_en,
769
  STR_ATTENTION_de,             STR_ATTENTION_en,
770
  STR_SWITCHOFFMK_de,           STR_SWITCHOFFMK_en,
771
  STR_WI232CONFIG_de,           STR_WI232CONFIG_en,
772
  STR_USBCONNECTED_de,          STR_USBCONNECTED_en,
773
  STR_SEEMKWIKI_de,             STR_SEEMKWIKI_en,
774
  STR_PKT_SWITCHOFF_NOW_de,     STR_PKT_SWITCHOFF_NOW_en,
775
  STR_PKT_RESTART_NOW_de,       STR_PKT_RESTART_NOW_en,
776
  STR_WI232_ACTIVATE_de,        STR_WI232_ACTIVATE_en,
777
  STR_WAITSATFIX_de,            STR_WAITSATFIX_en,
778
  STR_GPSMOUSECONNECT_de,       STR_GPSMOUSECONNECT_en,
779
  STR_GPSMOUSEDISCONNECT_de,    STR_GPSMOUSEDISCONNECT_en,
780
  STR_NOBTM222_de,              STR_NOBTM222_en,
781
  STR_NOGPSMOUSE_de,            STR_NOGPSMOUSE_en,
782
  STR_GPSMOUSECONNECTION_de,    STR_GPSMOUSECONNECTION_en,
783
  STR_SEARCH_BT_ASK_de,         STR_SEARCH_BT_ASK_en,
784
  STR_SEARCH_BT_de,             STR_SEARCH_BT_en,
785
  STR_NO_BT_FOUND_de,           STR_NO_BT_FOUND_de,
786
  STR_BT_DEVICES_de,            STR_BT_DEVICES_en,
787
  STR_BT_SEARCHTIME_de,         STR_BT_SEARCHTIME_en,
788
  STR_BT_LOSTDATA_de,           STR_BT_LOSTDATA_en,
789
  STR_METERS_de,                STR_METERS_en,
790
  STR_WAITNMEA_de,              STR_WAITNMEA_en,
791
 
792
 
793
  //******************************************************************
794
  // hier stehen lassen, alle neuen Strings hier drüber einfügen
795
  LAST_STR_de,                  LAST_STR_en,
796
 
797
}; // end: strings
798
 
799
 
800
 
801
//--------------------------------------------------------------
802
// gibt je nach konfigurierter Sprache den entsprechenden String
803
// aus der obigen Stringtabelle zureuck
804
//--------------------------------------------------------------
805
const char * strGet( int str_no)
806
{
807
    if( Config.DisplayLanguage > 1 )    Config.DisplayLanguage = 1;
808
 
809
    if( Config.DisplayLanguage == 1 )   return (const char*) pgm_read_word( &strings[(str_no*2)+1] );       // Englisch (=1)
810
 
811
    return  (const char*) pgm_read_word( &strings[str_no*2] );                                              // Deutsch  (=0)
812
}
813
 
814
 
815
 
816
//--------------------------------------------------------------
817
// gibt je nach konfigurierter Sprache Parameter str_de oder
818
// Parameter str_en zurueck
819
//
820
// wird z.B. in Verbindung mit de/en-Menuetexten verwendet
821
//--------------------------------------------------------------
822
const char * strGetLanguage( char const *str_de, char const *str_en)
823
{
824
    if( Config.DisplayLanguage > 1 )    Config.DisplayLanguage = 1;
825
 
826
    if( Config.DisplayLanguage == 1 )   return  str_en;     // Englisch (=1)
827
 
828
    return  str_de;                                         // Deutsch  (=0)
829
}