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.h |
||
26 | //# |
||
27 | //# 08.08.2015 cebra |
||
28 | //# - add: STR_WAITNMEA |
||
29 | //# |
||
30 | //# 27.06.2014 OG |
||
31 | //# - add: STR_BT_SEARCHTIME, STR_METERS, STR_BT_LOSTDATA |
||
32 | //# |
||
33 | //# 25.06.2014 OG |
||
34 | //# - add: STR_SEARCH_BT_ASK, STR_SEARCH_BT, STR_NO_BT_FOUND |
||
35 | //# |
||
36 | //# 24.06.2014 OG |
||
37 | //# - add: STR_NOBTM222, STR_NOGPSMOUSE, STR_GPSMOUSECONNECTION |
||
38 | //# - add: STR_GPSMOUSECONNECT, STR_GPSMOUSEDISCONNECT |
||
39 | //# |
||
40 | //# 23.06.2014 OG |
||
41 | //# - add: STR_WAITSATFIX |
||
42 | //# |
||
43 | //# 13.06.2014 OG |
||
44 | //# - add: STR_PKT_SWITCHOFF_NOW, STR_PKT_RESTART_NOW, STR_WI232_ACTIVATE |
||
45 | //# - del: mehrere CONNECT.. Strings |
||
46 | //# - del: DISPLAY3 |
||
47 | //# |
||
48 | //# 11.06.2014 OG |
||
49 | //# - add: strGetLanguage() |
||
50 | //# - add: KEYLINE5 |
||
51 | //# - del: TESTSTRING |
||
52 | //# |
||
53 | //# 10.06.2014 OG |
||
54 | //# - add: STR_WI232CONFIG, STR_USBCONNECTED, STR_SEEMKWIKI |
||
55 | //# - add: STR_ATTENTION, STR_SWITCHOFFMK |
||
56 | //# - del: CONNECT21, CONNECT22, CONNECT24, CONNECT25 |
||
57 | //# |
||
58 | //# 08.06.2014 OG |
||
59 | //# - add: STR_EXTSV2MODULE |
||
60 | //# |
||
61 | //# 04.06.2014 OG |
||
62 | //# - add: STR_DATA |
||
63 | //# - add: STR_READING, STR_LABELS |
||
64 | //# |
||
65 | //# 01.06.2014 OG |
||
66 | //# - del: weitere unbenoetigte Strings geloescht |
||
67 | //# |
||
68 | //# 31.05.2014 OG |
||
69 | //# - add: STR_WITH, STR_WITHOUT |
||
70 | //# - del: etliche Strings die nicht mehr benoetigt werden geloescht |
||
71 | //# |
||
72 | //# 30.05.2014 OG |
||
73 | //# - add: STR_HELP_LIPOOFFSET1, STR_HELP_LIPOOFFSET2 |
||
74 | //# - add: STR_HELP_LOWBAT1, STR_HELP_LOWBAT2 |
||
75 | //# |
||
76 | //# 29.05.2014 OG |
||
77 | //# - del: etliche Strings die nicht mehr benoetigt werden geloescht |
||
78 | //# |
||
79 | //# 28.05.2014 OG |
||
80 | //# - add: STR_HELP_PKTLIGHTOFF1 |
||
81 | //# |
||
82 | //# 26.05.2014 OG |
||
83 | //# - add: STR_OSDSCREEN_WAYPOINTS |
||
84 | //# - del: CHANGENORMREV1, CHANGENORMREV2 |
||
85 | //# |
||
86 | //# 06.05.2014 OG |
||
87 | //# - add: STR_MENUCTRL_DELITEM, STR_MENUCTRL_DELASK, STR_MENUCTRL_NOTPOSSIBLE |
||
88 | //# - del: STR_FAV_DELETE |
||
89 | //# |
||
90 | //# 03.05.2014 OG |
||
91 | //# - add: STR_FAV_ADD, STR_FAV_DELETE, STR_FAV_FULL, STR_FAV_EXIST, STR_FAV_NOTEXIST |
||
92 | //# |
||
93 | //# 28.04.2014 OG |
||
94 | //# - add: STR_LONGPRESS |
||
95 | //# |
||
96 | //# 04.04.2014 OG |
||
97 | //# - add: STR_SEARCH, STR_FOUND, STR_SET |
||
98 | //# |
||
99 | //# 03.04.2014 OG |
||
100 | //# - add: STR_INITIALIZE |
||
101 | //# |
||
102 | //# 01.04.2014 OG |
||
103 | //# - add: BLE_EXIST, MODULE_EXIST |
||
104 | //# |
||
105 | //# 30.03.2014 OG |
||
106 | //# - chg: NUM_LANG von 3 auf 2 reduziert (Hollaendisch vollstaendig geloescht) |
||
107 | //# |
||
108 | //# 27.03.2014 OG |
||
109 | //# - add: STR_SAVE, STR_DISCARD, STR_COPY, STR_SWITCHMOTOROFF, STR_SAVING |
||
110 | //# |
||
111 | //# 19.03.2014 OG |
||
112 | //# - add: KEYCANCEL |
||
113 | //# |
||
114 | //# 27.02.2014 OG |
||
115 | //# - add: STR_ACTIVE |
||
116 | //# |
||
117 | //# 20.02.2014 OG |
||
118 | //# - add: STR_VON, STR_NACH |
||
119 | //# |
||
120 | //# 17.02.2014 OG |
||
121 | //# - add: EDIT_SETTING |
||
122 | //# - add: STR_ERROR, ERROR_NODATA, MSG_LOADSETTINGS, MSG_ACTIVATESETTING |
||
123 | //# |
||
124 | //# 12.02.2014 OG |
||
125 | //# - del: START_MSG2 |
||
126 | //# - add:: NOMKFOUND |
||
127 | //# |
||
128 | //# 04.02.2014 OG |
||
129 | //# - add: CHANGENORMREV1, CHANGENORMREV2 |
||
130 | //# |
||
131 | //# 03.02.2014 OG |
||
132 | //# - add: SHOWCELLU |
||
133 | //# |
||
134 | //# 02.02.2014 OG |
||
135 | //# - del: START_LASTPOSDEL |
||
136 | //# |
||
137 | //# 24.01.2014 OG |
||
138 | //# - add: MSG_WARNUNG, UPDATE3 |
||
139 | //# |
||
140 | //# 15.07.2013 Cebra |
||
141 | //# - add: Wlan Security erweitert |
||
142 | //# |
||
143 | //# 07.07.2013 OG |
||
144 | //# - add: OSD-Screen Namen |
||
145 | //# |
||
146 | //# 02.07.2013 Cebra |
||
147 | //# - add: Menuetexte fuer Wlan |
||
148 | //# |
||
149 | //# 27.06.2013 OG |
||
150 | //# - del: OSD_HOMEMKVIEW |
||
151 | //# |
||
152 | //# 26.06.2013 OG |
||
153 | //# - del: einige nicht mehr benoetigte Texte |
||
154 | //# - chg: START_VERSIONCHECK5 zu MSG_FEHLER2 |
||
155 | //# |
||
156 | //# 15.06.2013 OG |
||
157 | //# - add: OSD_MKSetting |
||
158 | //# |
||
159 | //# 13.06.2013 CB |
||
160 | //# - add: ENUM Texte für OSD Statistik erweitert |
||
161 | //# |
||
162 | //############################################################################ |
||
163 | |||
164 | #ifndef MESSAGES_H |
||
165 | #define MESSAGES_H |
||
166 | |||
167 | //--------------------------------------------------------------------------------------------------------------------- |
||
168 | // Typdefinitionen für alle verwendeten Strings, LAST_STR muss am Ende stehen bleiben |
||
169 | typedef enum |
||
170 | { |
||
171 | KEYLINE1, KEYLINE2, KEYLINE3, KEYLINE4, KEYLINE5, KEYCANCEL, BOOT1, BOOT2, |
||
172 | START_LASTPOS, START_LASTPOS1, START_LASTPOS2, START_LASTPOS3, |
||
173 | START_SEARCHFC, ENDE, OK, FEHLER, AKTIV, STR_SAVE, STR_SAVING, STR_DISCARD, STR_COPY, STR_SEARCH, |
||
174 | STR_FOUND, STR_SET, STR_WITH, STR_WITHOUT, STR_SWITCHMOTOROFF, |
||
175 | ON, OFF, ESC, SHUTDOWN, YESNO, NOYES,DELETEDATA, UPDATE1, UPDATE2, UPDATE3, ENDSTART, CONNECT13, |
||
176 | KABEL, SLAVE, NORMAL, REVERSE, ENDOK, EEPROM1, EEPROM2, DEUTSCH, ENGLISCH, |
||
177 | YES, NOO, OSD_3D_V, OSD_3D_H, OSD_3D_L, |
||
178 | OSD_3D_R, OSD_3D_NICK, OSD_3D_ROLL, OSD_ERROR, PARA_AKTIVI, PARA_COPY, PARA_COPYQ, |
||
179 | GPS2, STATS_ITEM_0, STATS_ITEM_1, STATS_ITEM_2, STATS_ITEM_3, STATS_ITEM_4, STATS_ITEM_5, STATS_ITEM_6, |
||
180 | POTI, TASTER, STAT_OSDBL, STAT_ERROR, STAT_GPS, STAT_POS, STAT_ALL, DELETE, |
||
181 | STR_OSDSCREEN_GENERAL, STR_OSDSCREEN_NAVIGATION, STR_OSDSCREEN_WAYPOINTS, STR_OSDSCREEN_ELECTRIC, STR_OSDSCREEN_MKSTATUS, STR_OSDSCREEN_USERGPS, STR_OSDSCREEN_3DLAGE, |
||
182 | STR_OSDSCREEN_STATISTIC, STR_OSDSCREEN_OSD0, STR_OSDSCREEN_OSD1, STR_OSDSCREEN_OSD2, NOMKFOUND, |
||
183 | STR_ERROR, ERROR_NODATA, MSG_LOADSETTINGS, MSG_ACTIVATESETTING, EDIT_SETTING, |
||
184 | STR_VON, STR_NACH, STR_PKT, STR_ACTIVE, MODULE_EXIST, STR_INITIALIZE, STR_LONGPRESS, |
||
185 | STR_FAV_ADD, STR_FAV_FULL, STR_FAV_EXIST, STR_FAV_NOTEXIST, STR_MENUCTRL_DELITEM, STR_MENUCTRL_DELASK, STR_MENUCTRL_NOTPOSSIBLE, |
||
186 | STR_HELP_PKTOFFTIME1, STR_HELP_LOWBAT1, STR_HELP_LOWBAT2, STR_HELP_LIPOOFFSET1, STR_HELP_LIPOOFFSET2, |
||
187 | STR_DATA, STR_READING, STR_LABELS, STR_EXTSV2MODULE, STR_ATTENTION, STR_SWITCHOFFMK, STR_WI232CONFIG, STR_USBCONNECTED, STR_SEEMKWIKI, |
||
188 | STR_PKT_SWITCHOFF_NOW, STR_PKT_RESTART_NOW, STR_WI232_ACTIVATE, |
||
189 | STR_WAITSATFIX, STR_GPSMOUSECONNECT, STR_GPSMOUSEDISCONNECT, STR_NOBTM222, STR_NOGPSMOUSE, STR_GPSMOUSECONNECTION, STR_SEARCH_BT_ASK, |
||
190 | STR_SEARCH_BT, STR_NO_BT_FOUND, STR_BT_DEVICES, STR_BT_SEARCHTIME, STR_BT_LOSTDATA, STR_METERS,STR_WAITNMEA, |
||
191 | LAST_STR |
||
192 | } STR; |
||
193 | |||
194 | |||
195 | #define NUM_LANG 2 // German, English |
||
196 | |||
197 | |||
198 | const char * strGet( int str_no); |
||
199 | const char * strGetLanguage( char const *str_de, char const *str_en); |
||
200 | |||
201 | void Test_Language (void); // bleibt für Tests |
||
202 | |||
203 | |||
204 | |||
205 | #endif /* _MESSAGES_H_ */ |