comparison Discovery/Inc/text_multilanguage.h @ 38:5f11787b4f42

include in ostc4 repository
author heinrichsweikamp
date Sat, 28 Apr 2018 11:52:34 +0200
parents
children 926098fb116a
comparison
equal deleted inserted replaced
37:ccc45c0e1ea2 38:5f11787b4f42
1 ///////////////////////////////////////////////////////////////////////////////
2 /// -*- coding: UTF-8 -*-
3 ///
4 /// \file Discovery/Inc/text_multilanguage.h
5 /// \brief Header file of TXT Multilanguage Support
6 /// \author heinrichs weikamp gmbh
7 /// \date 20-April-2014
8 ///
9 /// $Id$
10 ///////////////////////////////////////////////////////////////////////////////
11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh
12 ///
13 /// This program is free software: you can redistribute it and/or modify
14 /// it under the terms of the GNU General Public License as published by
15 /// the Free Software Foundation, either version 3 of the License, or
16 /// (at your option) any later version.
17 ///
18 /// This program is distributed in the hope that it will be useful,
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 /// GNU General Public License for more details.
22 ///
23 /// You should have received a copy of the GNU General Public License
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>.
25 //////////////////////////////////////////////////////////////////////////////
26
27 /* Define to prevent recursive inclusion -------------------------------------*/
28 #ifndef TEXT_MULTILINGUAGE_H
29 #define TEXT_MULTILINGUAGE_H
30
31 /* Includes ------------------------------------------------------------------*/
32 #include <stdint.h>
33
34 /* Exported types ------------------------------------------------------------*/
35
36 enum LANGUAGES
37 {
38 LANGUAGE_English = 0,
39 LANGUAGE_German,
40 LANGUAGE_French,
41 LANGUAGE_Italian,
42 LANGUAGE_Espanol,
43 LANGUAGE_END
44 };
45 #define NUMBER_OF_LANGUAGES LANGUAGE_END
46
47 typedef struct {
48 const uint8_t code;
49 const uint8_t* text[NUMBER_OF_LANGUAGES];
50 } tText;
51 extern const tText text_array[];
52 extern const tText text_array2[];
53
54 /* Text codes ---------------------------------------------------------------*/
55 enum TXT_MULTILANGUAGE
56 {
57 TXT_Language = '\x80',
58 TXT_LanguageName,
59 TXT_Depth,
60 TXT_Divetime,
61 TXT_MaxDepth,
62 TXT_AvgDepth,
63 TXT_Ceiling,
64 TXT_ActualGradient,
65 TXT_Stopwatch,
66 TXT_Decostop,
67 TXT_Nullzeit,
68 TXT_ppO2,
69 TXT_TTS,
70 TXT_CNS,
71 TXT_Temperature,
72 TXT_FutureTTS,
73 TXT_Gas,
74 TXT_Time,
75 TXT_Date,
76 TXT_Format,
77 TXT_Warning,
78 TXT_o2Sensors,
79 TXT_Brightness,
80 TXT_Cave,
81 TXT_Eco,
82 TXT_Normal,
83 TXT_Bright,
84 TXT_Ultrabright,
85 /* */
86 TXT_OC_Gas_Edit,
87 TXT_Diluent_Gas_Edit,
88 TXT_Mix,
89 TXT_First,
90 TXT_Deco,
91 TXT_Travel,
92 TXT_Inactive,
93 TXT_ChangeDepth,
94 TXT_Active,
95 TXT_Default,
96 TXT_Type,
97 /* */
98 TXT_Setpoint_Edit,
99 /* */
100 TXT_DecoAlgorithm,
101 TXT_ZHL16GF,
102 TXT_aGF,
103 TXT_VPM,
104 TXT_SafetyStop,
105 TXT_low_high,
106 TXT_ppO2Name,
107 TXT_Minimum,
108 TXT_Maximum,
109 TXT_Minutes,
110 TXT_Seconds,
111 TXT_CCRmode,
112 TXT_AtemGasVorrat,
113 TXT_LiterproMinute,
114 TXT_Reserve,
115 TXT_Salinity,
116 TXT_DiveMode,
117 TXT_OpenCircuit,
118 TXT_ClosedCircuit,
119 TXT_Apnoe,
120 TXT_Gauge,
121 TXT_Sensor,
122 TXT_FixedSP,
123 TXT_Decoparameters,
124 TXT_LastDecostop,
125 TXT_Fallback,
126 /* */
127 TXT_DateAndTime,
128 TXT_DateConfig,
129 TXT_TimeConfig,
130 TXT_Daylightsaving,
131 /* */
132 TXT_Logbook,
133 TXT_LogbookEmpty,
134 /* */
135 TXT_Start_Calculation,
136 /* */
137 TXT_Information,
138 /* */
139 TXT_END,
140 /* */
141 // unused TXT_Conservatism,
142 // unused TXT_enter,
143 // unused TXT_down,
144 // unused TXT_Change,
145 // unused TXT_Luftintegration,
146 // unused TXT_FirmwareUpdate,
147 // unused TXT_ppo2_setting,
148 // unused TXT_Yes,
149 // unused TXT_No,
150
151 TXT_MINIMAL = '\xFE',
152 TXT_2BYTE = '\xFF',
153 };
154
155 /* Text codes ---------------------------------------------------------------*/
156 /* don't use the chars before as those break if(text == '\n') etc. pp.*/
157 enum TXT2BYTE_MULTILANGUAGE
158 {
159 TXT2BYTE_START = '\x1F',
160 TXT2BYTE_ResetMenu,
161 TXT2BYTE_LogbookOffset,
162 TXT2BYTE_AreYouSure,
163 TXT2BYTE_Abort,
164 TXT2BYTE_RebootRTE,
165 TXT2BYTE_ResetAll,
166 TXT2BYTE_ResetDeco,
167 TXT2BYTE_ResetLogbook,
168 TXT2BYTE_RebootMainCPU,
169 TXT2BYTE_Exit,
170 /* */
171 TXT2BYTE_ShowDebug,
172 TXT2BYTE_PleaseUpdate,
173 TXT2BYTE_RTE,
174 TXT2BYTE_Fonts,
175 /* */
176 TXT2BYTE_ResetStopwatch,
177 TXT2BYTE_SetMarker,
178 TXT2BYTE_CompassHeading,
179 /* */
180 TXT2BYTE_Simulator,
181 TXT2BYTE_StartSimulator,
182 TXT2BYTE_Intervall,
183 TXT2BYTE_SimDiveTime,
184 TXT2BYTE_SimMaxDepth,
185 TXT2BYTE_SimTravelGas,
186 TXT2BYTE_SimDecoGas,
187 TXT2BYTE_SimConsumption,
188 TXT2BYTE_SimSummary,
189 TXT2BYTE_SimDecTo,
190 TXT2BYTE_SimLevel,
191 TXT2BYTE_SimAscTo,
192 TXT2BYTE_SimSurface,
193 TXT2BYTE_CalculateDeco,
194 TXT2BYTE_Calculating,
195 TXT2BYTE_PleaseWait,
196
197 /* */
198 TXT2BYTE_Decolist,
199 /* */
200 TXT2BYTE_Bluetooth,
201 TXT2BYTE_ButtonSensitivity,
202 TXT2BYTE_SpecialDiveGas,
203 TXT2BYTE_SpecialDiveGasMenu,
204 TXT2BYTE_SpecialDiveGasMenuCCR,
205 TXT2BYTE_CompassCalib,
206 TXT2BYTE_UseSensor,
207 /* */
208 TXT2BYTE_WarnDecoMissed,
209 TXT2BYTE_WarnPPO2Low,
210 TXT2BYTE_WarnPPO2High,
211 TXT2BYTE_WarnBatteryLow,
212 TXT2BYTE_WarnSensorLinkLost,
213 TXT2BYTE_WarnFallback,
214 TXT2BYTE_WarnCnsHigh,
215 /* */
216 TXT2BYTE_O2monitor,
217 TXT2BYTE_O2voltage,
218 TXT2BYTE_Tissues,
219 TXT2BYTE_Nitrogen,
220 TXT2BYTE_Helium,
221 TXT2BYTE_CNS,
222 TXT2BYTE_OTU,
223 TXT2BYTE_Profile,
224 TXT2BYTE_Compass,
225 TXT2BYTE_SafetyStop2,
226 TXT2BYTE_noFly,
227 TXT2BYTE_Desaturation,
228 TXT2BYTE_TimeSinceLastDive,
229 TXT2BYTE_ButtonLogbook,
230 TXT2BYTE_ButtonMenu,
231 TXT2BYTE_ButtonView,
232 TXT2BYTE_ButtonBack,
233 TXT2BYTE_ButtonEnter,
234 TXT2BYTE_ButtonNext,
235 TXT2BYTE_ButtonMinus,
236 TXT2BYTE_ButtonPlus,
237 TXT2BYTE_SimFollowDecoStops,
238 /* */
239 TXT2BYTE_Usage_Battery,
240 TXT2BYTE_Usage_Dives,
241 TXT2BYTE_Usage_Environment,
242 /* */
243 TXT2BYTE_ChargeCycles,
244 TXT2BYTE_LowestVoltage,
245 TXT2BYTE_HoursOfOperation,
246 TXT2BYTE_NumberOfDives,
247 TXT2BYTE_AmbientTemperature,
248 /* */
249 TXT2BYTE_Bottle,
250 TXT2BYTE_WirelessSender,
251 TXT2BYTE_WirelessDisconnect,
252 /* */
253 TXT2BYTE_Gaslist,
254 TXT2BYTE_Clock,
255 TXT2BYTE_Sunday,
256 TXT2BYTE_Monday,
257 TXT2BYTE_Tuesday,
258 TXT2BYTE_Wednesday,
259 TXT2BYTE_Thursday,
260 TXT2BYTE_Friday,
261 TXT2BYTE_Saturday,
262 /* */
263 TXT2BYTE_ScooterRestkapazitaet,
264 TXT2BYTE_ScooterTemperature,
265 TXT2BYTE_ScooterSpeed,
266 /* */
267 TXT2BYTE_Layout,
268 TXT2BYTE_Units,
269 TXT2BYTE_Units_metric,
270 TXT2BYTE_Units_feet,
271 TXT2BYTE_Farbschema,
272 TXT2BYTE_Customviews,
273 TXT2BYTE_CViewTimeout,
274 TXT2BYTE_CViewStandard,
275 TXT2BYTE_CornerTimeout,
276 TXT2BYTE_CornerStandard,
277 TXT2BYTE_SetToMOD,
278 /* */
279 TXT2BYTE_HUDbattery,
280 TXT2BYTE_LowerIsLess,
281 TXT2BYTE_DiveMenuQ,
282 TXT2BYTE_DiveQuitQ,
283 TXT2BYTE_DiveBearingQ,
284 TXT2BYTE_DiveResetAvgQ,
285 /* */
286 TXT2BYTE_ExtraDisplay,
287 TXT2BYTE_ExtraBigFont,
288 TXT2BYTE_ExtraDecoGame,
289 TXT2BYTE_ExtraNone,
290 /* */
291 TXT2BYTE_DecoDataLost,
292 TXT2BYTE_Info,
293 TXT2BYTE_Korrekturwerte,
294 TXT2BYTE_ScooterMonitor,
295 TXT2BYTE_SetBearing,
296 TXT2BYTE_ResetBearing,
297 TXT2BYTE_ScooterSetup,
298 TXT2BYTE_ScooterDrag,
299 TXT2BYTE_ScooterLoad,
300 TXT2BYTE_ScooterD0Apnoe,
301 TXT2BYTE_ScooterD1Scuba,
302 TXT2BYTE_ScooterD2Tech,
303 TXT2BYTE_ScooterD3Heavy,
304 TXT2BYTE_ScooterL0None,
305 TXT2BYTE_ScooterL1Small,
306 TXT2BYTE_ScooterL2Stages,
307 TXT2BYTE_ScooterL3Full,
308 TXT2BYTE_ScooterL4Towing,
309 TXT2BYTE_ScooterBattTyp,
310 TXT2BYTE_ScooterVolt,
311 TXT2BYTE_Sensor,
312 TXT2BYTE_Maintenance,
313 TXT2BYTE_SetBatteryCharge,
314 TXT2BYTE_SetFactoryDefaults,
315 TXT2BYTE_Reboot,
316 TXT2BYTE_ButtonLeft,
317 TXT2BYTE_ButtonMitte,
318 TXT2BYTE_ButtonRight,
319 /* */
320 TXT2BYTE_Summary,
321 TXT2BYTE_ApneaLast,
322 TXT2BYTE_ApneaTotal,
323 TXT2BYTE_ApneaSurface,
324 /* */
325 TXT2BYTE_END
326
327 // unused TXT2BYTE_Button1,
328 // unused TXT2BYTE_Button2,
329 // unused TXT2BYTE_Button3,
330 // unused TXT2BYTE_Button4,
331
332 };
333
334 #endif /* TEXT_MULTILINGUAGE_H */
335