5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef _TRANSLATIONS_H_
22 #define _TRANSLATIONS_H_
24 #include "translations/untranslated.h"
26 #if defined(TRANSLATIONS_FR)
27 #include "translations/fr.h"
28 #define LEN_SPECIAL_CHARS 3
29 #elif defined(TRANSLATIONS_IT)
30 #include "translations/it.h"
31 #define LEN_SPECIAL_CHARS 1
32 #elif defined(TRANSLATIONS_SE)
33 #include "translations/se.h"
34 #define LEN_SPECIAL_CHARS 6
35 #elif defined(TRANSLATIONS_FI)
36 #include "translations/fi.h"
37 #define LEN_SPECIAL_CHARS 6
38 #elif defined(TRANSLATIONS_DE)
39 #include "translations/de.h"
40 #define LEN_SPECIAL_CHARS 6
41 #elif defined(TRANSLATIONS_CZ)
42 #include "translations/cz.h"
43 #define LEN_SPECIAL_CHARS 17
44 #elif defined(TRANSLATIONS_ES)
45 #include "translations/es.h"
46 #define LEN_SPECIAL_CHARS 0
47 #elif defined(TRANSLATIONS_PL)
48 #include "translations/pl.h"
49 #define LEN_SPECIAL_CHARS 0
50 #elif defined(TRANSLATIONS_PT)
51 #include "translations/pt.h"
52 #define LEN_SPECIAL_CHARS 0
53 #elif defined(TRANSLATIONS_NL)
54 #include "translations/nl.h"
55 #define LEN_SPECIAL_CHARS 0
57 #include "translations/en.h"
58 #define LEN_SPECIAL_CHARS 0
61 #define PSIZE(x) ( sizeof(x) - 1 )
63 #if defined(PCBTARANIS)
64 #define HINT(s) " " s " "
70 #define TR3(x, y, z) z
73 #define TR3(x, y, z) y
76 #define TR3(x, y, z) x
80 #define TR(x, y) TR2(x, y) // for compatibility
85 #define BUTTON(x) "[" x "]"
89 #define LCDW_128_480_LINEBREAK ""
91 #define LCDW_128_480_LINEBREAK "\036"
94 extern const char STR_OFFON
[];
95 extern const char STR_MMMINV
[];
96 extern const char STR_VBEEPMODE
[];
97 extern const char STR_TRNMODE
[];
98 extern const char STR_TRNCHN
[];
99 extern const char STR_AUX_SERIAL_MODES
[];
100 extern const char STR_SWTYPES
[];
101 extern const char STR_POTTYPES
[];
102 extern const char STR_SLIDERTYPES
[];
103 extern const char STR_VTRIMINC
[];
104 extern const char STR_VDISPLAYTRIMS
[];
105 extern const char STR_RETA123
[];
107 #if defined(PCBSKY9X) && defined(REVX)
108 extern const char STR_VOUTPUT_TYPE
[];
111 extern const char STR_VBLMODE
[];
112 extern const char STR_VCURVEFUNC
[];
113 extern const char STR_VMLTPX
[];
114 extern const char STR_VMLTPX2
[];
115 extern const char STR_VMIXTRIMS
[];
116 extern const char STR_VCSWFUNC
[];
117 extern const char STR_VFSWFUNC
[];
118 extern const char STR_VFSWRESET
[];
119 extern const char STR_FUNCSOUNDS
[];
120 extern const char STR_VTELEMUNIT
[];
121 extern const char STR_GPSFORMAT
[];
122 extern const char STR_VTELEMSCREENTYPE
[];
125 extern const char STR_VSWASHTYPE
[];
128 extern const char STR_VKEYS
[];
129 extern const char STR_VSWITCHES
[];
130 extern const char STR_VSRCRAW
[];
132 #if defined(TRANSLATIONS_CZ)
133 extern const char STR_INPUTNAMES
[];
136 extern const char STR_VTMRMODES
[];
137 extern const char STR_VPERSISTENT
[];
139 extern const char STR_VLCD
[];
140 extern const char STR_VUNITSSYSTEM
[];
141 extern const char STR_VBEEPCOUNTDOWN
[];
142 extern const char STR_VVARIOCENTER
[];
144 extern const char STR_COUNTRYCODES
[];
145 extern const char STR_USBMODES
[];
146 extern const char STR_JACKMODES
[];
147 extern const char STR_VFAILSAFE
[];
149 extern const char STR_VTRAINERMODES
[];
150 extern const char STR_EXTERNAL_MODULE_PROTOCOLS
[];
151 extern const char STR_INTERNAL_MODULE_PROTOCOLS
[];
152 extern const char STR_R9M_REGION
[];
153 extern const char STR_R9M_FCC_POWER_VALUES
[];
154 extern const char STR_R9M_LBT_POWER_VALUES
[];
155 extern const char STR_R9M_LITE_FCC_POWER_VALUES
[];
156 extern const char STR_R9M_LITE_LBT_POWER_VALUES
[];
157 extern const char STR_TELEMETRY_PROTOCOLS
[];
158 extern const char STR_XJT_ACCST_RF_PROTOCOLS
[];
159 extern const char STR_ISRM_RF_PROTOCOLS
[];
160 extern const char STR_R9M_PXX2_RF_PROTOCOLS
[];
161 extern const char STR_DSM_PROTOCOLS
[];
163 #if defined(MULTIMODULE)
164 extern const char STR_MULTI_PROTOCOLS
[];
167 extern const char STR_CURVE_TYPES
[];
168 extern const char STR_VSENSORTYPES
[];
169 extern const char STR_VFORMULAS
[];
170 extern const char STR_VPREC
[];
171 extern const char STR_VCELLINDEX
[];
173 #if defined(BLUETOOTH)
174 extern const char STR_BLUETOOTH
[];
175 extern const char STR_BLUETOOTH_DISC
[];
176 extern const char STR_BLUETOOTH_INIT
[];
177 extern const char STR_BLUETOOTH_DIST_ADDR
[];
178 extern const char STR_BLUETOOTH_LOCAL_ADDR
[];
179 extern const char STR_BLUETOOTH_PIN_CODE
[];
180 extern const char STR_BLUETOOTH_MODES
[];
183 #define NO_INDENT(x) (x)+LEN_INDENT
185 extern const char STR_POPUPS_ENTER_EXIT
[];
186 extern const char STR_OK
[];
187 extern const char STR_EXIT
[];
189 #if !defined(PCBHORUS)
190 extern const char STR_MENUWHENDONE
[];
193 extern const char STR_FREE
[];
194 #define LEN_FREE PSIZE(TR_FREE)
195 extern const char STR_DELETEMODEL
[];
196 extern const char STR_COPYINGMODEL
[];
197 extern const char STR_MOVINGMODEL
[];
198 extern const char STR_LOADINGMODEL
[];
199 extern const char STR_NAME
[];
200 extern const char STR_BITMAP
[];
201 extern const char STR_TIMER
[];
202 extern const char STR_ELIMITS
[];
203 extern const char STR_ETRIMS
[];
204 extern const char STR_TRIMINC
[];
205 extern const char STR_DISPLAY_TRIMS
[];
206 extern const char STR_TTRACE
[];
207 extern const char STR_TTRIM
[];
208 extern const char STR_BEEPCTR
[];
209 extern const char STR_USE_GLOBAL_FUNCS
[];
211 #if defined(PCBSKY9X) && defined(REVX)
212 extern const char STR_OUTPUT_TYPE
[];
215 extern const char STR_PPMFRAME
[];
216 extern const char STR_REFRESHRATE
[];
217 extern const char STR_MS
[];
218 extern const char STR_SWITCH
[];
219 extern const char STR_TRIMS
[];
220 extern const char STR_FADEIN
[];
221 extern const char STR_FADEOUT
[];
222 extern const char STR_DEFAULT
[];
223 extern const char STR_CHECKTRIMS
[];
224 extern const char STR_SWASHTYPE
[];
225 extern const char STR_COLLECTIVE
[];
226 extern const char STR_AILERON
[];
227 extern const char STR_ELEVATOR
[];
228 extern const char STR_SWASHRING
[];
229 extern const char STR_MODE
[];
231 #if defined(AUDIO) && defined(BUZZER)
232 extern const char STR_SPEAKER
[];
233 extern const char STR_BUZZER
[];
235 #define STR_SPEAKER STR_MODE
236 #define STR_BUZZER STR_MODE
239 extern const char STR_NOFREEEXPO
[];
240 extern const char STR_NOFREEMIXER
[];
241 extern const char STR_SOURCE
[];
242 extern const char STR_WEIGHT
[];
243 extern const char STR_SIDE
[];
244 extern const char STR_OFFSET
[];
245 extern const char STR_TRIM
[];
246 extern const char STR_DREX
[];
247 extern const char STR_CURVE
[];
248 extern const char STR_FLMODE
[];
249 extern const char STR_MIXWARNING
[];
250 extern const char STR_OFF
[];
251 extern const char STR_ANTENNA
[];
252 extern const char STR_NO_INFORMATION
[];
253 extern const char STR_MULTPX
[];
254 extern const char STR_DELAYDOWN
[];
255 extern const char STR_DELAYUP
[];
256 extern const char STR_SLOWDOWN
[];
257 extern const char STR_SLOWUP
[];
258 extern const char STR_MIXES
[];
259 extern const char STR_CV
[];
260 extern const char STR_GV
[];
261 extern const char STR_RANGE
[];
262 extern const char STR_CENTER
[];
263 extern const char STR_ALARM
[];
264 extern const char STR_BLADES
[];
265 extern const char STR_SCREEN
[];
266 extern const char STR_SOUND_LABEL
[];
267 extern const char STR_LENGTH
[];
268 extern const char STR_BEEP_LENGTH
[];
269 extern const char STR_SPKRPITCH
[];
270 extern const char STR_HAPTIC_LABEL
[];
271 extern const char STR_HAPTICSTRENGTH
[];
272 extern const char STR_GYRO_LABEL
[];
273 extern const char STR_GYRO_OFFSET
[];
274 extern const char STR_GYRO_MAX
[];
275 extern const char STR_CONTRAST
[];
276 extern const char STR_ALARMS_LABEL
[];
277 extern const char STR_BATTERY_RANGE
[];
278 extern const char STR_BATTERYWARNING
[];
279 extern const char STR_INACTIVITYALARM
[];
280 extern const char STR_MEMORYWARNING
[];
281 extern const char STR_ALARMWARNING
[];
282 extern const char STR_RSSISHUTDOWNALARM
[];
283 extern const char STR_MODEL_STILL_POWERED
[];
284 extern const char STR_MODEL_SHUTDOWN
[];
285 extern const char STR_PRESS_ENTER_TO_CONFIRM
[];
286 extern const char STR_THROTTLEREVERSE
[];
287 extern const char STR_MINUTEBEEP
[];
288 extern const char STR_BEEPCOUNTDOWN
[];
289 extern const char STR_PERSISTENT
[];
290 extern const char STR_BACKLIGHT_LABEL
[];
291 extern const char STR_BLDELAY
[];
293 #if defined(PWM_BACKLIGHT) || defined(COLORLCD)
294 extern const char STR_BLONBRIGHTNESS
[];
295 extern const char STR_BLOFFBRIGHTNESS
[];
298 extern const char STR_SPLASHSCREEN
[];
299 #if defined(PWR_BUTTON_PRESS)
300 extern const char STR_PWR_ON_DELAY
[];
301 extern const char STR_PWR_OFF_DELAY
[];
303 extern const char STR_THROTTLEWARNING
[];
304 extern const char STR_SWITCHWARNING
[];
305 extern const char STR_POTWARNINGSTATE
[];
306 extern const char STR_POTWARNING
[];
307 extern const char STR_SLIDERWARNING
[];
308 extern const char STR_TIMEZONE
[];
309 extern const char STR_ADJUST_RTC
[];
310 extern const char STR_GPS
[];
311 extern const char STR_GPSCOORD
[];
312 extern const char STR_VARIO
[];
313 extern const char STR_PITCH_AT_ZERO
[];
314 extern const char STR_PITCH_AT_MAX
[];
315 extern const char STR_REPEAT_AT_ZERO
[];
316 extern const char STR_RXCHANNELORD
[];
317 extern const char STR_STICKS
[];
318 extern const char STR_POTS
[];
319 extern const char STR_SWITCHES
[];
320 extern const char STR_SWITCHES_DELAY
[];
321 extern const char STR_SLAVE
[];
322 extern const char STR_MODESRC
[];
323 extern const char STR_MULTIPLIER
[];
324 #define LEN_MULTIPLIER PSIZE(TR_MULTIPLIER)
325 extern const char STR_CAL
[];
326 extern const char STR_VTRIM
[];
327 extern const char STR_MENUTOSTART
[];
328 extern const char STR_SETMIDPOINT
[];
329 extern const char STR_MOVESTICKSPOTS
[];
330 extern const char STR_TX
[];
331 #define STR_RX (STR_TX+OFS_RX)
332 extern const char STR_NODATA
[];
333 extern const char STR_US
[];
334 extern const char STR_TMIXMAXMS
[];
335 extern const char STR_FREE_STACK
[];
336 extern const char STR_MENUTORESET
[];
337 extern const char STR_PPM_TRAINER
[];
338 extern const char STR_CH
[];
339 extern const char STR_MODEL
[];
340 extern const char STR_FM
[];
341 extern const char STR_EEPROMLOWMEM
[];
342 extern const char STR_PRESSANYKEYTOSKIP
[];
343 extern const char STR_THROTTLENOTIDLE
[];
344 extern const char STR_ALARMSDISABLED
[];
345 extern const char STR_PRESSANYKEY
[];
346 extern const char STR_BAD_RADIO_DATA
[];
347 extern const char STR_STORAGE_FORMAT
[];
348 extern const char STR_EEPROMOVERFLOW
[];
349 extern const char STR_TRIMS2OFFSETS
[];
350 extern const char STR_CHANNELS2FAILSAFE
[];
351 extern const char STR_CHANNEL2FAILSAFE
[];
352 extern const char STR_MENURADIOSETUP
[];
353 extern const char STR_MENUTRAINER
[];
354 extern const char STR_MENUSPECIALFUNCS
[];
355 extern const char STR_MENUVERSION
[];
356 extern const char STR_MENU_RADIO_SWITCHES
[];
357 extern const char STR_MENU_RADIO_ANALOGS
[];
358 extern const char STR_MENUCALIBRATION
[];
359 extern const char STR_MENUMODELSEL
[];
360 extern const char STR_MENUSETUP
[];
361 extern const char STR_MENUFLIGHTMODE
[];
362 extern const char STR_MENUFLIGHTMODES
[];
363 extern const char STR_MENUHELISETUP
[];
364 extern const char STR_MENUINPUTS
[];
365 extern const char STR_MENULIMITS
[];
366 extern const char STR_MENUCURVES
[];
367 extern const char STR_MENUCURVE
[];
368 extern const char STR_MENULOGICALSWITCH
[];
369 extern const char STR_MENULOGICALSWITCHES
[];
370 extern const char STR_MENUCUSTOMFUNC
[];
371 extern const char STR_MENUCUSTOMSCRIPTS
[];
372 extern const char STR_MENUTELEMETRY
[];
373 extern const char STR_MENUTEMPLATES
[];
374 extern const char STR_MENUSTAT
[];
375 extern const char STR_MENUDEBUG
[];
376 extern const char * const STR_MONITOR_CHANNELS
[];
377 extern const char STR_MONITOR_SWITCHES
[];
378 extern const char STR_MONITOR_OUTPUT_DESC
[];
379 extern const char STR_MONITOR_MIXER_DESC
[];
380 extern const char STR_MENUGLOBALVARS
[];
381 extern const char STR_AND_SWITCH
[];
382 extern const char STR_SF
[];
383 extern const char STR_GF
[];
385 extern const char STR_MULTI_CUSTOM
[];
386 extern const char STR_MULTI_FIXEDID
[];
387 extern const char STR_MULTI_OPTION
[];
388 extern const char STR_MULTI_VIDFREQ
[];
389 extern const char STR_MULTI_RFTUNE
[];
390 extern const char STR_MULTI_TELEMETRY
[];
391 extern const char STR_MULTI_AUTOBIND
[];
392 extern const char STR_DISABLE_CH_MAP
[];
393 extern const char STR_DISABLE_TELEM
[];
394 extern const char STR_MULTI_DSM_AUTODTECT
[];
395 extern const char STR_MULTI_LOWPOWER
[];
396 extern const char STR_MODULE_NO_SERIAL_MODE
[];
397 extern const char STR_MODULE_NO_INPUT
[];
398 extern const char STR_MODULE_WAITFORBIND
[];
399 extern const char STR_MODULE_NO_TELEMETRY
[];
400 extern const char STR_MODULE_BINDING
[];
401 extern const char STR_MODULE_UPGRADE
[];
402 extern const char STR_PROTOCOL_INVALID
[];
403 extern const char STR_MODULE_STATUS
[];
404 extern const char STR_MODULE_SYNC
[];
405 extern const char STR_MULTI_SERVOFREQ
[];
406 extern const char STR_MULTI_MAX_THROW
[];
407 extern const char STR_MULTI_RFCHAN
[];
409 extern const char STR_SUBTYPE
[];
412 #if defined(DSM2) || defined(PXX)
413 extern const char STR_RECEIVER_NUM
[];
414 extern const char STR_RECEIVER
[];
415 extern const char STR_REBIND
[];
416 extern const char STR_REG_OK
[];
417 extern const char STR_BIND_OK
[];
420 extern const char STR_INTERNALRF
[];
421 extern const char STR_INTERNAL_MODULE
[];
422 extern const char STR_EXTERNAL_MODULE
[];
423 extern const char STR_OPENTX_UPGRADE_REQUIRED
[];
424 extern const char STR_TELEMETRY_DISABLED
[];
425 extern const char STR_MORE_OPTIONS_AVAILABLE
[];
426 extern const char STR_NO_MODULE_INFORMATION
[];
427 extern const char STR_EXTERNALRF
[];
428 extern const char STR_MODULE_TELEMETRY
[];
429 extern const char STR_MODULE_TELEM_ON
[];
430 extern const char STR_FAILSAFE
[];
431 extern const char STR_FAILSAFESET
[];
432 extern const char STR_RECEIVER
[];
433 extern const char STR_REG_ID
[];
434 extern const char STR_OWNER_ID
[];
435 extern const char STR_HOLD
[];
436 extern const char STR_HOLD_UPPERCASE
[];
437 extern const char STR_NONE
[];
438 extern const char STR_NONE_UPPERCASE
[];
439 extern const char STR_MENUSENSOR
[];
440 extern const char STR_POWERMETER_PEAK
[];
441 extern const char STR_POWERMETER_POWER
[];
442 extern const char STR_POWERMETER_ATTN
[];
443 extern const char STR_POWERMETER_FREQ
[];
444 extern const char STR_MENUTOOLS
[];
445 extern const char STR_TURN_OFF_RECEIVER
[];
446 extern const char STR_STOPPING
[];
447 extern const char STR_MENU_SPECTRUM_ANALYSER
[];
448 extern const char STR_MENU_POWER_METER
[];
449 extern const char STR_SENSOR
[];
450 extern const char STR_COUNTRYCODE
[];
451 extern const char STR_USBMODE
[];
452 extern const char STR_JACKMODE
[];
453 extern const char STR_DISABLE_INTERNAL
[];
454 extern const char STR_BATT_CALIB
[];
455 extern const char STR_VOLTAGE
[];
456 extern const char STR_CURRENT_CALIB
[];
457 extern const char STR_UNITSSYSTEM
[];
458 extern const char STR_VOICELANG
[];
459 extern const char STR_MODELIDUSED
[];
460 extern const char STR_BEEP_VOLUME
[];
461 extern const char STR_WAV_VOLUME
[];
462 extern const char STR_BG_VOLUME
[];
463 extern const char STR_SELECT_MODEL
[];
464 extern const char STR_CREATE_CATEGORY
[];
465 extern const char STR_RENAME_CATEGORY
[];
466 extern const char STR_DELETE_CATEGORY
[];
467 extern const char STR_CREATE_MODEL
[];
468 extern const char STR_DUPLICATE_MODEL
[];
469 extern const char STR_COPY_MODEL
[];
470 extern const char STR_MOVE_MODEL
[];
471 extern const char STR_DELETE_MODEL
[];
472 extern const char STR_EDIT
[];
473 extern const char STR_INSERT_BEFORE
[];
474 extern const char STR_INSERT_AFTER
[];
475 extern const char STR_COPY
[];
476 extern const char STR_MOVE
[];
477 extern const char STR_PASTE
[];
478 extern const char STR_INSERT
[];
479 extern const char STR_DELETE
[];
480 extern const char STR_RESET_FLIGHT
[];
481 extern const char STR_RESET_TIMER1
[];
482 extern const char STR_RESET_TIMER2
[];
483 extern const char STR_RESET_TIMER3
[];
484 extern const char STR_RESET_TELEMETRY
[];
485 extern const char STR_STATISTICS
[];
486 extern const char STR_ABOUT_US
[];
487 extern const char STR_USB_JOYSTICK
[];
488 extern const char STR_USB_MASS_STORAGE
[];
489 extern const char STR_USB_SERIAL
[];
490 extern const char STR_SETUP_SCREENS
[];
491 extern const char STR_MONITOR_SCREENS
[];
492 extern const char STR_RESET_BTN
[];
493 extern const char STR_DEBUG
[];
494 extern const char STR_KEYS_BTN
[];
495 extern const char STR_ANALOGS_BTN
[];
496 extern const char STR_CALIBRATION
[];
497 extern const char STR_NO_TOOLS
[];
498 extern const char STR_NORMAL
[];
499 extern const char STR_NOT_INVERTED
[];
500 extern const char STR_NOT_CONNECTED
[];
501 extern const char STR_CONNECTED
[];
502 extern const char STR_FLEX_915
[];
503 extern const char STR_FLEX_868
[];
504 extern const char STR_16CH_WITHOUT_TELEMETRY
[];
505 extern const char STR_16CH_WITH_TELEMETRY
[];
506 extern const char STR_8CH_WITH_TELEMETRY
[];
507 extern const char STR_EXT_ANTENNA
[];
508 extern const char STR_PIN
[];
509 extern const char STR_UPDATE_RX_OPTIONS
[];
510 extern const char STR_UPDATE_TX_OPTIONS
[];
511 extern const char STR_MENU_MODULES_RX_VERSION
[];
512 extern const char STR_MENU_FIRM_OPTIONS
[];
513 extern const char STR_GYRO
[];
514 extern const char STR_STICKS_POTS_SLIDERS
[];
515 extern const char STR_PWM_STICKS_POTS_SLIDERS
[];
516 extern const char STR_RF_PROTOCOL
[];
517 extern const char STR_MODULE_OPTIONS
[];
518 extern const char STR_POWER
[];
519 extern const char STR_NO_TX_OPTIONS
[];
520 extern const char STR_RTC_BATT
[];
521 extern const char STR_POWER_METER_EXT
[];
522 extern const char STR_POWER_METER_INT
[];
523 extern const char STR_SPECTRUM_ANALYSER_EXT
[];
524 extern const char STR_SPECTRUM_ANALYSER_INT
[];
525 extern const char STR_WAITING_FOR_RX
[];
526 extern const char STR_WAITING_FOR_TX
[];
529 extern const char STR_BACKUP_MODEL
[];
530 extern const char STR_RESTORE_MODEL
[];
531 extern const char STR_DELETE_ERROR
[];
532 extern const char STR_SDCARD_ERROR
[];
533 extern const char STR_NO_SDCARD
[];
534 extern const char STR_SDCARD_FULL
[];
535 extern const char STR_INCOMPATIBLE
[];
536 extern const char STR_LOGS_PATH
[];
537 extern const char STR_LOGS_EXT
[];
538 extern const char STR_MODELS_PATH
[];
539 extern const char STR_MODELS_EXT
[];
540 #define STR_UPDATE_LIST STR_DELAYDOWN
543 extern const char STR_NEEDS_FILE
[];
544 extern const char STR_EXT_MULTI_SPEC
[];
545 extern const char STR_INT_MULTI_SPEC
[];
546 extern const char STR_CAT_NOT_EMPTY
[];
547 extern const char STR_WARNING
[];
548 extern const char STR_STORAGE_WARNING
[];
549 extern const char STR_EEPROM_CONVERTING
[];
550 extern const char STR_THROTTLEWARN
[];
551 extern const char STR_ALARMSWARN
[];
552 extern const char STR_SWITCHWARN
[];
553 extern const char STR_FAILSAFEWARN
[];
554 extern const char STR_NIGHTLY_WARNING
[];
555 extern const char STR_NIGHTLY_NOTSAFE
[];
556 extern const char STR_WRONG_SDCARDVERSION
[];
557 extern const char STR_WARN_RTC_BATTERY_LOW
[];
558 extern const char STR_WARN_MULTI_LOWPOWER
[];
559 extern const char STR_BATTERY
[];
560 extern const char STR_WRONG_PCBREV
[];
561 extern const char STR_EMERGENCY_MODE
[];
562 extern const char STR_NO_FAILSAFE
[];
563 extern const char STR_KEYSTUCK
[];
565 extern const char STR_SPEAKER_VOLUME
[];
566 extern const char STR_LCD
[];
567 extern const char STR_BRIGHTNESS
[];
568 extern const char STR_CPU_TEMP
[];
569 extern const char STR_CPU_CURRENT
[];
570 extern const char STR_CPU_MAH
[];
571 extern const char STR_COPROC
[];
572 extern const char STR_COPROC_TEMP
[];
573 extern const char STR_CAPAWARNING
[];
574 extern const char STR_TEMPWARNING
[];
575 extern const char STR_FUNC
[];
576 extern const char STR_V1
[];
577 extern const char STR_V2
[];
578 extern const char STR_DURATION
[];
579 extern const char STR_DELAY
[];
580 extern const char STR_SD_CARD
[];
581 extern const char STR_SDHC_CARD
[];
582 extern const char STR_NO_SOUNDS_ON_SD
[];
583 extern const char STR_NO_MODELS_ON_SD
[];
584 extern const char STR_NO_BITMAPS_ON_SD
[];
585 extern const char STR_NO_SCRIPTS_ON_SD
[];
586 extern const char STR_SCRIPT_SYNTAX_ERROR
[];
587 extern const char STR_SCRIPT_PANIC
[];
588 extern const char STR_SCRIPT_KILLED
[];
589 extern const char STR_SCRIPT_ERROR
[];
590 extern const char STR_PLAY_FILE
[];
591 extern const char STR_ASSIGN_BITMAP
[];
592 #if defined(PCBHORUS)
593 extern const char STR_ASSIGN_SPLASH
[];
595 extern const char STR_EXECUTE_FILE
[];
596 extern const char STR_DELETE_FILE
[];
597 extern const char STR_COPY_FILE
[];
598 extern const char STR_RENAME_FILE
[];
599 extern const char STR_REMOVED
[];
600 extern const char STR_SD_INFO
[];
601 extern const char STR_SD_FORMAT
[];
602 extern const char STR_NA
[];
603 extern const char STR_HARDWARE
[];
604 extern const char STR_FORMATTING
[];
605 extern const char STR_TEMP_CALIB
[];
606 extern const char STR_TIME
[];
607 extern const char STR_MAXBAUDRATE
[];
608 extern const char STR_BAUDRATE
[];
609 extern const char STR_SD_INFO_TITLE
[];
610 extern const char STR_SD_TYPE
[];
611 extern const char STR_SD_SPEED
[];
612 extern const char STR_SD_SECTORS
[];
613 extern const char STR_SD_SIZE
[];
614 extern const char STR_TYPE
[];
615 extern const char STR_GLOBAL_VARS
[];
616 extern const char STR_GVARS
[];
617 extern const char STR_GLOBAL_VAR
[];
618 extern const char STR_OWN
[];
619 extern const char STR_DATE
[];
620 extern const char STR_ROTARY_ENCODER
[];
621 extern const char STR_CHANNELS_MONITOR
[];
622 extern const char STR_MIXERS_MONITOR
[];
623 extern const char STR_PATH_TOO_LONG
[];
624 extern const char STR_VIEW_TEXT
[];
625 extern const char STR_FLASH_BOOTLOADER
[];
626 extern const char STR_FLASH_EXTERNAL_DEVICE
[];
627 extern const char STR_FLASH_RECEIVER_OTA
[];
628 extern const char STR_FLASH_BLUETOOTH_MODULE
[];
629 extern const char STR_FLASH_POWER_MANAGEMENT_UNIT
[];
630 extern const char STR_CURRENT_VERSION
[];
631 extern const char STR_FLASH_INTERNAL_MODULE
[];
632 extern const char STR_FLASH_INTERNAL_MULTI
[];
633 extern const char STR_FLASH_EXTERNAL_MODULE
[];
634 extern const char STR_FLASH_EXTERNAL_MULTI
[];
635 extern const char STR_FIRMWARE_UPDATE_ERROR
[];
636 extern const char STR_FIRMWARE_UPDATE_SUCCESS
[];
637 extern const char STR_WRITING
[];
638 extern const char STR_CONFIRM_FORMAT
[];
639 extern const char STR_CONFIRMRESET
[];
640 extern const char STR_TOO_MANY_LUA_SCRIPTS
[];
641 extern const char STR_BLCOLOR
[];
643 struct LanguagePack
{
646 void (*playNumber
)(getvalue_t number
, uint8_t unit
, uint8_t flags
, uint8_t id
);
647 void (*playDuration
)(int seconds
, uint8_t flags
, uint8_t id
);
650 extern const LanguagePack
* currentLanguagePack
;
651 extern uint8_t currentLanguagePackIdx
;
653 extern const LanguagePack czLanguagePack
;
654 extern const LanguagePack deLanguagePack
;
655 extern const LanguagePack enLanguagePack
;
656 extern const LanguagePack esLanguagePack
;
657 extern const LanguagePack frLanguagePack
;
658 extern const LanguagePack huLanguagePack
;
659 extern const LanguagePack itLanguagePack
;
660 extern const LanguagePack nlLanguagePack
;
661 extern const LanguagePack plLanguagePack
;
662 extern const LanguagePack ptLanguagePack
;
663 extern const LanguagePack ruLanguagePack
;
664 extern const LanguagePack seLanguagePack
;
665 extern const LanguagePack skLanguagePack
;
666 extern const LanguagePack
* const languagePacks
[];
668 #if defined(LANGUAGE_PACKS_DEFINITION)
669 const LanguagePack
* const languagePacks
[] = {
670 // alphabetical order
689 #define LANGUAGE_PACK_DECLARE(lng, name) const LanguagePack lng ## LanguagePack = { #lng, name, lng ## _ ## playNumber, lng ## _ ## playDuration }
691 #define LANGUAGE_PACK_DECLARE(lng, name) extern const LanguagePack lng ## LanguagePack = { #lng, name, lng ## _ ## playNumber, lng ## _ ## playDuration }
694 #define LANGUAGE_PACK_DECLARE_DEFAULT(lng, name) LANGUAGE_PACK_DECLARE(lng, name); const LanguagePack * currentLanguagePack = & lng ## LanguagePack; uint8_t currentLanguagePackIdx
695 inline PLAY_FUNCTION(playNumber
, getvalue_t number
, uint8_t unit
, uint8_t flags
) { currentLanguagePack
->playNumber(number
, unit
, flags
, id
); }
696 inline PLAY_FUNCTION(playDuration
, int seconds
, uint8_t flags
) { currentLanguagePack
->playDuration(seconds
, flags
, id
); }
698 extern const char STR_MODELNAME
[];
699 extern const char STR_PHASENAME
[];
700 extern const char STR_MIXNAME
[];
701 extern const char STR_INPUTNAME
[];
702 extern const char STR_EXPONAME
[];
704 #if defined(COLORLCD)
705 #define TR_PHASES_HEADERS { TR_PHASES_HEADERS_NAME, TR_PHASES_HEADERS_SW, TR_PHASES_HEADERS_RUD_TRIM, TR_PHASES_HEADERS_ELE_TRIM, TR_PHASES_HEADERS_THT_TRIM, TR_PHASES_HEADERS_AIL_TRIM, TR_PHASES_HEADERS_CH5_TRIM, TR_PHASES_HEADERS_CH6_TRIM, TR_PHASES_HEADERS_FAD_IN, TR_PHASES_HEADERS_FAD_OUT }
706 #elif defined(PCBTARANIS)
707 #define TR_PHASES_HEADERS { HINT(TR_PHASES_HEADERS_NAME), HINT(TR_PHASES_HEADERS_SW), HINT(TR_PHASES_HEADERS_RUD_TRIM), HINT(TR_PHASES_HEADERS_ELE_TRIM), HINT(TR_PHASES_HEADERS_THT_TRIM), HINT(TR_PHASES_HEADERS_AIL_TRIM), HINT(TR_PHASES_HEADERS_FAD_IN), HINT(TR_PHASES_HEADERS_FAD_OUT) }
710 #define TR_LIMITS_HEADERS { HINT(TR_LIMITS_HEADERS_NAME), HINT(TR_LIMITS_HEADERS_SUBTRIM), HINT(TR_LIMITS_HEADERS_MIN), HINT(TR_LIMITS_HEADERS_MAX), HINT(TR_LIMITS_HEADERS_DIRECTION), HINT(TR_LIMITS_HEADERS_CURVE), HINT(TR_LIMITS_HEADERS_PPMCENTER), HINT(TR_LIMITS_HEADERS_SUBTRIMMODE) }
711 #define TR_LSW_HEADERS { HINT(TR_LSW_HEADERS_FUNCTION), HINT(TR_LSW_HEADERS_V1), HINT(TR_LSW_HEADERS_V2), HINT(TR_LSW_HEADERS_V2), HINT(TR_LSW_HEADERS_ANDSW), HINT(TR_LSW_HEADERS_DURATION), HINT(TR_LSW_HEADERS_DELAY) }
712 #define TR_GVAR_HEADERS { HINT(TR_GVAR_HEADERS_FM0), HINT(TR_GVAR_HEADERS_FM1), HINT(TR_GVAR_HEADERS_FM2), HINT(TR_GVAR_HEADERS_FM3), HINT(TR_GVAR_HEADERS_FM4), HINT(TR_GVAR_HEADERS_FM5), HINT(TR_GVAR_HEADERS_FM6), HINT(TR_GVAR_HEADERS_FM7), HINT(TR_GVAR_HEADERS_FM8) }
715 extern const char * const STR_PHASES_HEADERS
[];
716 extern const char * const STR_LIMITS_HEADERS
[];
717 extern const char * const STR_LSW_HEADERS
[];
718 extern const char * const STR_LSW_DESCRIPTIONS
[];
719 extern const char * const STR_GVAR_HEADERS
[];
722 extern const char STR_TRAINER
[];
723 extern const char STR_CHANS
[];
724 extern const char STR_MODULE_BIND
[];
725 extern const char STR_POWERMETER_ATTN_NEEDED
[];
726 extern const char STR_PXX2_SELECT_RX
[];
727 extern const char STR_PXX2_DEFAULT
[];
728 extern const char STR_BT_SELECT_DEVICE
[];
729 extern const char STR_DISCOVER
[];
730 extern const char STR_BUTTON_INIT
[];
731 extern const char STR_WAITING
[];
732 extern const char STR_RECEIVER_DELETE
[];
733 extern const char STR_RECEIVER_RESET
[];
734 extern const char STR_SHARE
[];
735 extern const char STR_BIND
[];
736 extern const char STR_REGISTER
[];
737 extern const char STR_BINDING_1_8_TELEM_ON
[];
738 extern const char STR_BINDING_1_8_TELEM_OFF
[];
739 extern const char STR_BINDING_9_16_TELEM_ON
[];
740 extern const char STR_BINDING_9_16_TELEM_OFF
[];
741 extern const char STR_CHANNELRANGE
[];
742 extern const char STR_ANTENNASELECTION
[];
743 extern const char STR_ANTENNACONFIRM1
[];
744 extern const char STR_ANTENNACONFIRM2
[];
745 extern const char STR_ANTENNA_MODES
[];
746 extern const char STR_USE_INTERNAL_ANTENNA
[];
747 extern const char STR_USE_EXTERNAL_ANTENNA
[];
748 extern const char STR_MODULE_PROTOCOL_FLEX_WARN_LINE1
[];
749 extern const char STR_MODULE_PROTOCOL_FCC_WARN_LINE1
[];
750 extern const char STR_MODULE_PROTOCOL_EU_WARN_LINE1
[];
751 extern const char STR_MODULE_PROTOCOL_WARN_LINE2
[];
752 extern const char STR_SET
[];
753 extern const char STR_PREFLIGHT
[];
754 extern const char STR_CHECKLIST
[];
755 extern const char STR_VIEW_NOTES
[];
756 extern const char STR_MODEL_SELECT
[];
757 extern const char STR_RESET_SUBMENU
[];
758 extern const char STR_LOWALARM
[];
759 extern const char STR_CRITICALALARM
[];
760 extern const char STR_RSSIALARM_WARN
[];
761 extern const char STR_NO_RSSIALARM
[];
762 extern const char STR_DISABLE_ALARM
[];
763 extern const char STR_TELEMETRY_TYPE
[];
764 extern const char STR_TELEMETRY_SENSORS
[];
765 extern const char STR_VALUE
[];
766 extern const char STR_TOPLCDTIMER
[];
767 extern const char STR_UNIT
[] ;
768 extern const char STR_TELEMETRY_NEWSENSOR
[];
769 extern const char STR_ID
[];
770 extern const char STR_PRECISION
[];
771 extern const char STR_RATIO
[];
772 extern const char STR_FORMULA
[];
773 extern const char STR_CELLINDEX
[];
774 extern const char STR_LOGS
[];
775 extern const char STR_OPTIONS
[];
776 extern const char STR_FIRMWARE_OPTIONS
[];
777 extern const char STR_ALTSENSOR
[];
778 extern const char STR_CELLSENSOR
[];
779 extern const char STR_GPSSENSOR
[];
780 extern const char STR_CURRENTSENSOR
[];
781 extern const char STR_AUTOOFFSET
[];
782 extern const char STR_ONLYPOSITIVE
[];
783 extern const char STR_FILTER
[];
784 extern const char STR_TELEMETRYFULL
[];
785 extern const char STR_INVERTED_SERIAL
[];
786 extern const char STR_IGNORE_INSTANCE
[];
787 extern const char STR_DISCOVER_SENSORS
[];
788 extern const char STR_STOP_DISCOVER_SENSORS
[];
789 extern const char STR_DELETE_ALL_SENSORS
[];
790 extern const char STR_CONFIRMDELETE
[];
791 extern const char STR_SELECT_WIDGET
[];
792 extern const char STR_REMOVE_WIDGET
[];
793 extern const char STR_WIDGET_SETTINGS
[];
794 extern const char STR_REMOVE_SCREEN
[];
795 extern const char STR_SETUP_WIDGETS
[];
796 extern const char STR_USER_INTERFACE
[];
797 extern const char STR_THEME
[];
798 extern const char STR_SETUP
[];
799 extern const char STR_LAYOUT
[];
800 extern const char STR_ADDMAINVIEW
[];
801 extern const char STR_BACKGROUND_COLOR
[];
802 extern const char STR_MAIN_COLOR
[];
803 extern const char STR_TEXT_VIEWER
[];
804 extern const char STR_RFPOWER
[];
806 extern const char STR_BYTES
[];
807 extern const char STR_ANTENNAPROBLEM
[];
808 extern const char STR_MODULE
[];
809 extern const char STR_RX_NAME
[];
810 extern const char STR_POPUP
[];
811 extern const char STR_MIN
[];
812 extern const char STR_MAX
[];
813 extern const char STR_CURVE_PRESET
[];
814 extern const char STR_PRESET
[];
815 extern const char STR_MIRROR
[];
816 extern const char STR_CLEAR
[];
817 extern const char STR_RESET
[];
818 extern const char STR_COUNT
[];
819 extern const char STR_PT
[];
820 extern const char STR_PTS
[];
821 extern const char STR_SMOOTH
[];
822 extern const char STR_COPY_STICKS_TO_OFS
[];
823 extern const char STR_COPY_TRIMS_TO_OFS
[];
824 extern const char STR_INCDEC
[];
825 extern const char STR_GLOBALVAR
[];
826 extern const char STR_MIXSOURCE
[];
827 extern const char STR_CONSTANT
[];
828 extern const char STR_TOP_BAR
[];
829 extern const char STR_FLASH_ERASE
[];
830 extern const char STR_FLASH_WRITE
[];
831 extern const char STR_OTA_UPDATE
[];
832 extern const char STR_MODULE_RESET
[];
833 extern const char STR_UNKNOWN_RX
[];
834 extern const char STR_UNSUPPORTED_RX
[];
835 extern const char STR_OTA_UPDATE_ERROR
[];
836 extern const char STR_DEVICE_RESET
[];
837 extern const char STR_ALTITUDE
[];
838 extern const char STR_SCALE
[];
839 extern const char STR_VIEW_CHANNELS
[];
840 extern const char STR_POTWARNING
[];
841 extern const char STR_AUX_SERIAL_MODE
[];
842 extern const char STR_THROTTLE_LABEL
[];
843 extern const char STR_SCRIPT
[];
844 extern const char STR_INPUTS
[];
845 extern const char STR_OUTPUTS
[];
846 extern const char STR_MENU_INPUTS
[];
847 extern const char STR_MENU_LUA
[];
848 extern const char STR_MENU_STICKS
[];
849 extern const char STR_MENU_POTS
[];
850 extern const char STR_MENU_MAX
[];
851 extern const char STR_MENU_HELI
[];
852 extern const char STR_MENU_TRIMS
[];
853 extern const char STR_MENU_SWITCHES
[];
854 extern const char STR_MENU_LOGICAL_SWITCHES
[];
855 extern const char STR_MENU_TRAINER
[];
856 extern const char STR_MENU_CHANNELS
[];
857 extern const char STR_MENU_GVARS
[];
858 extern const char STR_MENU_TELEMETRY
[];
859 extern const char STR_MENU_DISPLAY
[];
860 extern const char STR_MENU_OTHER
[];
861 extern const char STR_MENU_INVERT
[];
862 extern const char STR_JITTER_FILTER
[];
863 extern const char STR_RTC_CHECK
[];
866 extern const char STR_UNLOCKED
[];
867 extern const char STR_MODS_FORBIDDEN
[];
870 extern const char STR_MODULE_RANGE
[];
871 extern const char STR_RECEIVER_OPTIONS
[];
873 extern const char STR_ABOUTUS
[];
874 extern const char STR_ABOUT_OPENTX_1
[];
875 extern const char STR_ABOUT_OPENTX_2
[];
876 extern const char STR_ABOUT_OPENTX_3
[];
877 extern const char STR_ABOUT_OPENTX_4
[];
878 extern const char STR_ABOUT_OPENTX_5
[];
880 extern const char STR_ABOUT_BERTRAND_1
[];
881 extern const char STR_ABOUT_BERTRAND_2
[];
882 extern const char STR_ABOUT_BERTRAND_3
[];
884 extern const char STR_ABOUT_MIKE_1
[];
885 extern const char STR_ABOUT_MIKE_2
[];
886 extern const char STR_ABOUT_MIKE_3
[];
887 extern const char STR_ABOUT_MIKE_4
[];
889 extern const char STR_ABOUT_ROMOLO_1
[];
890 extern const char STR_ABOUT_ROMOLO_2
[];
891 extern const char STR_ABOUT_ROMOLO_3
[];
893 extern const char STR_ABOUT_ANDRE_1
[];
894 extern const char STR_ABOUT_ANDRE_2
[];
895 extern const char STR_ABOUT_ANDRE_3
[];
897 extern const char STR_ABOUT_ROB_1
[];
898 extern const char STR_ABOUT_ROB_2
[];
900 extern const char STR_ABOUT_MARTIN_1
[];
901 extern const char STR_ABOUT_MARTIN_2
[];
903 extern const char STR_ABOUT_KJELL_1
[];
904 extern const char STR_ABOUT_KJELL_2
[];
905 extern const char STR_ABOUT_KJELL_3
[];
906 extern const char STR_ABOUT_KJELL_4
[];
908 extern const char STR_ABOUT_HARDWARE_1
[];
909 extern const char STR_ABOUT_HARDWARE_2
[];
910 extern const char STR_ABOUT_HARDWARE_3
[];
912 extern const char STR_ABOUT_PARENTS_1
[];
913 extern const char STR_ABOUT_PARENTS_2
[];
914 extern const char STR_ABOUT_PARENTS_3
[];
915 extern const char STR_ABOUT_PARENTS_4
[];
917 extern const char STR_AUTH_FAILURE
[];
919 #define CHR_HOUR TR_CHR_HOUR
920 #define CHR_INPUT TR_CHR_INPUT
922 #endif // _TRANSLATIONS_H_