Debian Codegraph @

Languages.h

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 /*
2 RailControl - Model Railway Control Software
3
4 Copyright (c) 2017-2025 by Teddy / Dominik Mahrer - www.railcontrol.org
5
6 RailControl is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 3, or (at your option) any
9 later version.
10
11 RailControl is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 See the GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with RailControl; see the file LICENCE. If not see
18 <http://www.gnu.org/licenses/>.
19 */
20
21 #pragma once
22
23 #include <map>
24 #include <string>
25
26 #include "DataModel/AccessoryBase.h"
27 #include "DataTypes.h"
28
29 class Languages
30 {
31 public:
32 enum TextSelector : unsigned short
33 {
34 Text180Deg,
35 Text90DegAntiClockwise,
36 Text90DegClockwise,
37 TextAccessories,
38 TextAccessory,
39 TextAccessoryAddressDccTooHigh,
40 TextAccessoryAddressMmTooHigh,
41 TextAccessoryControlProtocolAddressDoesNotExist,
42 TextAccessoryDeleted,
43 TextAccessoryDoesNotExist,
44 TextAccessoryIsLocked,
45 TextAccessoryIsUsedByRoute,
46 TextAccessorySaved,
47 TextAccessorySenderThreadStarted,
48 TextAccessoryStateIsGreen,
49 TextAccessoryStateIsRed,
50 TextAccessoryTypeDecoupler,
51 TextAccessoryTypeLight,
52 TextAccessoryTypeLightInhouse,
53 TextAccessoryTypeLightStreet,
54 TextAccessoryTypeOnOff,
55 TextAccessoryTypeOnOn,
56 TextAccessoryTypeOnPush,
57 TextAccessoryUpdated,
58 TextActualAndStoredProtocolsDiffer,
59 TextAddAccessory,
60 TextAddFeedback,
61 TextAddRoute,
62 TextAddSignal,
63 TextAddSwitch,
64 TextAddText,
65 TextAddTrack,
66 TextAddingFeedback,
67 TextAddingRouteToTimetable,
68 TextAddress,
69 TextAddressMustBeHigherThen0,
70 TextAddresses,
71 TextAllTrains,
72 TextAllowLocoTurn,
73 TextAllowedPropulsions,
74 TextAllowedPushPull,
75 TextAllowedTrainTypes,
76 TextAlways,
77 TextAreYouSureToDelete,
78 TextAreYouSureToShutdown,
79 TextAtLock,
80 TextAtUnlock,
81 TextAutomaticallyAddUnknownFeedbacks,
82 TextAutomode,
83 TextBaseAddress,
84 TextBasic,
85 TextBlockTrack,
86 TextBooster,
87 TextBoosterIsTurnedOff,
88 TextBoosterIsTurnedOn,
89 TextBridge,
90 TextBrowserInfo,
91 TextBufferStop,
92 TextCS2ServerStarted,
93 TextCS2ServerStopped,
94 TextCV,
95 TextCanNotStartAlreadyRunning,
96 TextCanNotStartInErrorState,
97 TextCanNotStartNotOnTrack,
98 TextChDwarf,
99 TextChLDistant,
100 TextChLMain,
101 TextChNDistant,
102 TextChNMain,
103 TextChange,
104 TextCheckSumError,
105 TextClosingSQLite,
106 TextCluster,
107 TextClusterDeleted,
108 TextClusterDoesNotExist,
109 TextClusterSaved,
110 TextClusterUpdated,
111 TextClusters,
112 TextCommandUnknown,
113 TextCompileDate,
114 TextConfigFileNotFound,
115 TextConfigFileReceivedWithSize,
116 TextConfigMenu,
117 TextConfigureControlFirst,
118 TextConnectedTo,
119 TextConnection,
120 TextConnectionFailed,
121 TextConnectionHint,
122 TextConnectionRefused,
123 TextConnectionReset,
124 TextControl,
125 TextControlDeleted,
126 TextControlDoesNotAnswer,
127 TextControlDoesNotExist,
128 TextControlReturnedBadParameter,
129 TextControlReturnedError,
130 TextControlReturnedOnHalt,
131 TextControlReturnedPowerOff,
132 TextControlReturnedQueueFull,
133 TextControlReturnedQueueNearlyFull,
134 TextControlReturnedUnknownErrorCode,
135 TextControlSaved,
136 TextControls,
137 TextCopyingFromTo,
138 TextCrcMissmatch,
139 TextCreatingTable,
140 TextCreepAt,
141 TextCreepingSpeed,
142 TextCrossingLeft,
143 TextCrossingRight,
144 TextCrossingSymetric,
145 TextCs2MainFound,
146 TextCs2MainLocoFunctionIconType,
147 TextCs2MainLocoFunctionIconTypeTimer,
148 TextCs2MainLocoName,
149 TextCs2MainLocoOldName,
150 TextCs2MainLocoProtocolAddress,
151 TextCs2MainLocoRemove,
152 TextCs2MainLocoSlaveName,
153 TextCs2MainLocoSlaveProtocolAddress,
154 TextCs2MinorVersionIsUnknown,
155 TextDcc,
156 TextDeBlock,
157 TextDeCombined,
158 TextDeHVMain,
159 TextDebounceThreadStarted,
160 TextDebounceThreadTerminated,
161 TextDebouncer,
162 TextDebug,
163 TextDefault,
164 TextDefaultSwitchingDuration,
165 TextDelete,
166 TextDeleteAccessory,
167 TextDeleteCluster,
168 TextDeleteControl,
169 TextDeleteFeedback,
170 TextDeleteLayer,
171 TextDeleteLoco,
172 TextDeleteMultipleUnit,
173 TextDeleteRoute,
174 TextDeleteSignal,
175 TextDeleteSwitch,
176 TextDeleteText,
177 TextDeleteTrack,
178 TextDestinationTrack,
179 TextDeviceOnCanBus,
180 TextDeviceType,
181 TextDifferentOrientations,
182 TextDifferentPropulsions,
183 TextDifferentPushpullTypes,
184 TextDifferentTrainTypes,
185 TextDirect,
186 TextDisplayName,
187 TextDoNotCare,
188 TextDroppingTable,
189 TextDuration,
190 TextEdit,
191 TextEditAccessories,
192 TextEditAccessory,
193 TextEditClusters,
194 TextEditControls,
195 TextEditFeedback,
196 TextEditFeedbacks,
197 TextEditLayers,
198 TextEditLocos,
199 TextEditMultipleUnits,
200 TextEditRoute,
201 TextEditRoutes,
202 TextEditSettings,
203 TextEditSignal,
204 TextEditSignals,
205 TextEditSwitch,
206 TextEditSwitches,
207 TextEditText,
208 TextEditTexts,
209 TextEditTrack,
210 TextEditTracks,
211 TextEnglish,
212 TextError,
213 TextErrorReadingData,
214 TextExecuteAccessory,
215 TextExecuteRoute,
216 TextExecutingRoute,
217 TextExitRailControl,
218 TextFeedback,
219 TextFeedbackChange,
220 TextFeedbackDeleted,
221 TextFeedbackDoesNotExist,
222 TextFeedbackIsUsedByTrack,
223 TextFeedbackSaved,
224 TextFeedbackStateIsOff,
225 TextFeedbackStateIsOn,
226 TextFeedbackUpdated,
227 TextFeedbacks,
228 TextFileNotFound,
229 TextFollowUpRoute,
230 TextFoundAccessoryInEcosDatabase,
231 TextFoundFeedbackModuleInEcosDatabase,
232 TextFoundLocoInEcosDatabase,
233 TextFullScreen,
234 TextFunctions,
235 TextGerman,
236 TextGitDate,
237 TextGitDirty,
238 TextGitHash,
239 TextGreen,
240 TextHasAlreadyReservedRoute,
241 TextHasNotReachedDestination,
242 TextHeadingToVia,
243 TextHeadingToViaVia,
244 TextHeartBeatThreadStarted,
245 TextHeightIs0,
246 TextHint,
247 TextHintCcSchnitte,
248 TextHintCs2Tcp,
249 TextHintCs2Udp,
250 TextHintDccPpExSerial,
251 TextHintDccPpExTcp,
252 TextHintEcos,
253 TextHintHsi88,
254 TextHintIntellibox,
255 TextHintIntellibox2,
256 TextHintLocoNetAdapter63120,
257 TextHintLocoNetAdapter63820,
258 TextHintM6051,
259 TextHintMasterControl,
260 TextHintMasterControl2,
261 TextHintOpenDcc,
262 TextHintPositionMove,
263 TextHintPositionRotate,
264 TextHintRedBox,
265 TextHintSystemControl7,
266 TextHintTwinCenter,
267 TextHintVirtual,
268 TextHintZ21,
269 TextHitOverrun,
270 TextHsi88Configured,
271 TextHsi88ErrorConfiguring,
272 TextHttpRequest,
273 TextIPAddress,
274 TextImport,
275 TextIndependentOfControl,
276 TextIndex,
277 TextInfo,
278 TextInvalidControlID,
279 TextInvalidDataReceived,
280 TextInverted,
281 TextInverted2,
282 TextIsInAutomodeWithoutRouteTrack,
283 TextIsInErrorState,
284 TextIsInInvalidAutomodeState,
285 TextIsInManualState,
286 TextIsInTerminatedState,
287 TextIsLockedBy,
288 TextIsNotFree,
289 TextIsNotOnTrack,
290 TextIsNowInAutoMode,
291 TextIsNowInManualMode,
292 TextIsOnOcupiedTrack,
293 TextIsRunningWaitingUntilDestination,
294 TextIsUpToDate,
295 TextLanguage,
296 TextLayer1,
297 TextLayer1IsUndeletable,
298 TextLayerDeleted,
299 TextLayerDoesNotExist,
300 TextLayerIsUsedByAccessory,
301 TextLayerIsUsedByFeedback,
302 TextLayerIsUsedByRoute,
303 TextLayerIsUsedBySignal,
304 TextLayerIsUsedBySwitch,
305 TextLayerIsUsedByText,
306 TextLayerIsUsedByTrack,
307 TextLayerSaved,
308 TextLayerUpdated,
309 TextLayers,
310 TextLeft,
311 TextLength,
312 TextLink,
313 TextLoadedAccessory,
314 TextLoadedCluster,
315 TextLoadedControl,
316 TextLoadedFeedback,
317 TextLoadedLayer,
318 TextLoadedLoco,
319 TextLoadedMultipleUnit,
320 TextLoadedRoute,
321 TextLoadedSignal,
322 TextLoadedSwitch,
323 TextLoadedText,
324 TextLoadedTrack,
325 TextLoco,
326 TextLocoAddressDccTooHigh,
327 TextLocoAddressMm1TooHigh,
328 TextLocoAddressMm2TooHigh,
329 TextLocoDeleted,
330 TextLocoDirectionOfTravelIsLeft,
331 TextLocoDirectionOfTravelIsRight,
332 TextLocoDoesNotExist,
333 TextLocoFunctionIconAirPump,
334 TextLocoFunctionIconBacklightForward,
335 TextLocoFunctionIconBacklightReverse,
336 TextLocoFunctionIconBell,
337 TextLocoFunctionIconBlinkingLight,
338 TextLocoFunctionIconBreak,
339 TextLocoFunctionIconBreak1,
340 TextLocoFunctionIconBreak2,
341 TextLocoFunctionIconBufferPush,
342 TextLocoFunctionIconCabLight1,
343 TextLocoFunctionIconCabLight12,
344 TextLocoFunctionIconCabLight2,
345 TextLocoFunctionIconCloseDoor,
346 TextLocoFunctionIconCompressedAir,
347 TextLocoFunctionIconCoupler,
348 TextLocoFunctionIconCrane,
349 TextLocoFunctionIconCraneHook,
350 TextLocoFunctionIconCurve,
351 TextLocoFunctionIconDefault,
352 TextLocoFunctionIconDown,
353 TextLocoFunctionIconDrainValve,
354 TextLocoFunctionIconDriversDeskLight,
355 TextLocoFunctionIconEngine1,
356 TextLocoFunctionIconEngine2,
357 TextLocoFunctionIconEngineLight,
358 TextLocoFunctionIconFan,
359 TextLocoFunctionIconFan1,
360 TextLocoFunctionIconFan2,
361 TextLocoFunctionIconFan3,
362 TextLocoFunctionIconFillDiesel,
363 TextLocoFunctionIconFillGas,
364 TextLocoFunctionIconFillWater,
365 TextLocoFunctionIconFireBox,
366 TextLocoFunctionIconGearBox,
367 TextLocoFunctionIconGearDown,
368 TextLocoFunctionIconGearUp,
369 TextLocoFunctionIconGenerator,
370 TextLocoFunctionIconHeadlightHighBeamForward,
371 TextLocoFunctionIconHeadlightHighBeamReverse,
372 TextLocoFunctionIconHeadlightLowBeamForward,
373 TextLocoFunctionIconHeadlightLowBeamReverse,
374 TextLocoFunctionIconHorn1,
375 TextLocoFunctionIconHorn2,
376 TextLocoFunctionIconInertia,
377 TextLocoFunctionIconInteriorLight1,
378 TextLocoFunctionIconInteriorLight2,
379 TextLocoFunctionIconLeft,
380 TextLocoFunctionIconLeftRight,
381 TextLocoFunctionIconLight,
382 TextLocoFunctionIconLocomotiveNumberIndicator,
383 TextLocoFunctionIconMagnet,
384 TextLocoFunctionIconMainSwitch,
385 TextLocoFunctionIconMusic1,
386 TextLocoFunctionIconMusic2,
387 TextLocoFunctionIconNoBreak,
388 TextLocoFunctionIconNoSound,
389 TextLocoFunctionIconOpenDoor,
390 TextLocoFunctionIconPanto,
391 TextLocoFunctionIconPanto1,
392 TextLocoFunctionIconPanto12,
393 TextLocoFunctionIconPanto2,
394 TextLocoFunctionIconRadio,
395 TextLocoFunctionIconRailJoint,
396 TextLocoFunctionIconReliefValve,
397 TextLocoFunctionIconRight,
398 TextLocoFunctionIconRunning1,
399 TextLocoFunctionIconRunning2,
400 TextLocoFunctionIconSand,
401 TextLocoFunctionIconShakingRust,
402 TextLocoFunctionIconShovelCoal,
403 TextLocoFunctionIconShuntingLight,
404 TextLocoFunctionIconShuntingMode,
405 TextLocoFunctionIconSmokeGenerator,
406 TextLocoFunctionIconSoundGeneral,
407 TextLocoFunctionIconSoundLouder,
408 TextLocoFunctionIconSoundLower,
409 TextLocoFunctionIconSpeak,
410 TextLocoFunctionIconStairsLight,
411 TextLocoFunctionIconStationAnnouncement1,
412 TextLocoFunctionIconStationAnnouncement2,
413 TextLocoFunctionIconStationAnnouncement3,
414 TextLocoFunctionIconSteamBlow,
415 TextLocoFunctionIconSteamBlowOut,
416 TextLocoFunctionIconTableLight1,
417 TextLocoFunctionIconTableLight2,
418 TextLocoFunctionIconTableLight3,
419 TextLocoFunctionIconTelex1,
420 TextLocoFunctionIconTelex12,
421 TextLocoFunctionIconTelex2,
422 TextLocoFunctionIconTrainDestinationIndicator,
423 TextLocoFunctionIconTurn,
424 TextLocoFunctionIconTurnLeft,
425 TextLocoFunctionIconTurnRight,
426 TextLocoFunctionIconUp,
427 TextLocoFunctionIconUpDown1,
428 TextLocoFunctionIconUpDown2,
429 TextLocoFunctionIconWaterPump,
430 TextLocoFunctionIconWhistle1,
431 TextLocoFunctionIconWhistle2,
432 TextLocoFunctionIsOff,
433 TextLocoFunctionIsOn,
434 TextLocoFunctionTypeFlashing,
435 TextLocoFunctionTypeMoment,
436 TextLocoFunctionTypeNone,
437 TextLocoFunctionTypePermanent,
438 TextLocoFunctionTypeTimer,
439 TextLocoHasReachedDestination,
440 TextLocoIsInAutoMode,
441 TextLocoIsInManualMode,
442 TextLocoIsInUse,
443 TextLocoIsOnTrack,
444 TextLocoIsReleased,
445 TextLocoSaved,
446 TextLocoSpeedIs,
447 TextLocoUpdated,
448 TextLocos,
449 TextLogLevel,
450 TextLongestUnused,
451 TextLookingForDestination,
452 TextMaerklinLeft,
453 TextMaerklinMotorola,
454 TextMaerklinRight,
455 TextMainDevice,
456 TextMainTrack,
457 TextMainTrackHint,
458 TextManager,
459 TextMaxSpeed,
460 TextMaxTrainLength,
461 TextMembers,
462 TextMethodNotImplemented,
463 TextMinTrackLength,
464 TextMinTrainLength,
465 TextMultipleUnit,
466 TextMultipleUnitDeleted,
467 TextMultipleUnitDoesNotExist,
468 TextMultipleUnitIsInUse,
469 TextMultipleUnitSaved,
470 TextMultipleUnits,
471 TextMyUidHash,
472 TextName,
473 TextNameInControl,
474 TextNetworkUnreachable,
475 TextNew,
476 TextNoAnswerFromDecoder,
477 TextNoControlSupportsProgramming,
478 TextNoPushPull,
479 TextNoRotation,
480 TextNoS88Modules,
481 TextNoValidRouteFound,
482 TextNone,
483 TextNotImplemented,
484 TextNrOfFunctions,
485 TextNrOfS88Modules,
486 TextNrOfS88ModulesConfigured,
487 TextNrOfS88ModulesOnBus,
488 TextNrOfTracksToReserve,
489 TextObjectIsUsedByRoute,
490 TextOff,
491 TextOn,
492 TextOnPush,
493 TextOpeningSQLite,
494 TextOrientation,
495 TextOverrunAt,
496 TextParameterFoundInConfigFile,
497 TextPause,
498 TextPin,
499 TextPingSenderStarted,
500 TextPleaseSelectLoco,
501 TextPosX,
502 TextPosY,
503 TextPosZ,
504 TextPosition,
505 TextPositionAlreadyInUse,
506 TextProgramDccDirectRead,
507 TextProgramDccDirectWrite,
508 TextProgramDccPageRead,
509 TextProgramDccPageWrite,
510 TextProgramDccPomAccessoryRead,
511 TextProgramDccPomAccessoryWrite,
512 TextProgramDccPomLocoRead,
513 TextProgramDccPomLocoWrite,
514 TextProgramDccRegisterRead,
515 TextProgramDccRegisterWrite,
516 TextProgramMfxRead,
517 TextProgramMfxWrite,
518 TextProgramMm,
519 TextProgramMmPom,
520 TextProgramMode,
521 TextProgramModeDccDirect,
522 TextProgramModeDccPage,
523 TextProgramModeDccPomAccessory,
524 TextProgramModeDccPomLoco,
525 TextProgramModeDccRegister,
526 TextProgramModeMfx,
527 TextProgramModeMm,
528 TextProgramModeMmPom,
529 TextProgramReadValue,
530 TextProgrammer,
531 TextProgrammingMode,
532 TextPropulsion,
533 TextPropulsionAccu,
534 TextPropulsionAll,
535 TextPropulsionDiesel,
536 TextPropulsionElectric,
537 TextPropulsionGas,
538 TextPropulsionHydrogen,
539 TextPropulsionOther,
540 TextPropulsionSteam,
541 TextPropulsionUnknown,
542 TextProtocol,
543 TextProtocolNotSupported,
544 TextPushPullOnly,
545 TextPushPullTrain,
546 TextQuery,
547 TextQueryAffected,
548 TextRailControlStarted,
549 TextRailControlUpdateAvailable,
550 TextRandom,
551 TextReachedItsDestination,
552 TextRead,
553 TextReadingConfigFile,
554 TextReceivedAccessoryCommand,
555 TextReceivedDirectionCommand,
556 TextReceivedFunctionCommand,
557 TextReceivedSignalKill,
558 TextReceivedSpeedCommand,
559 TextReceiverThreadStarted,
560 TextRed,
561 TextReducedSpeed,
562 TextReducedSpeedAt,
563 TextRegister,
564 TextRelationTargetNotFound,
565 TextRelease,
566 TextReleaseAccessory,
567 TextReleaseLoco,
568 TextReleaseRoute,
569 TextReleaseSignal,
570 TextReleaseSwitch,
571 TextReleaseTrack,
572 TextReleaseTrackAndLoco,
573 TextReleaseWhenFree,
574 TextReleasingLoco,
575 TextReleasingMultipleUnit,
576 TextRemoveBackupFile,
577 TextRenamingFromTo,
578 TextReservingRoute,
579 TextRestarting,
580 TextRight,
581 TextRotation,
582 TextRoute,
583 TextRouteDeleted,
584 TextRouteDoesNotExist,
585 TextRouteIsInUse,
586 TextRouteIsLocked,
587 TextRouteIsReleased,
588 TextRouteIsUsedByRoute,
589 TextRouteSaved,
590 TextRouteUpdated,
591 TextRoutes,
592 TextSQLiteErrorQuery,
593 TextSaving,
594 TextSecondaryDevice,
595 TextSelectAutomatically,
596 TextSelectLocoForTrack,
597 TextSelectRouteBy,
598 TextSenderSocketCreated,
599 TextSenderThreadStarted,
600 TextSendingLocoInfo,
601 TextSendingTurnoutInfo,
602 TextSeparator,
603 TextSerialNumberIs,
604 TextSerialPort,
605 TextServerAddress,
606 TextSetAllLocosToAutomode,
607 TextSetAllLocosToManualMode,
608 TextSetLoco,
609 TextSettingAccessory,
610 TextSettingAccessoryOnOff,
611 TextSettingAccessoryWithProtocol,
612 TextSettingDirectionOfTravel,
613 TextSettingDirectionOfTravelWithProtocol,
614 TextSettingFunction,
615 TextSettingFunctionWithProtocol,
616 TextSettingFunctions17_28,
617 TextSettingFunctions1_8,
618 TextSettingFunctions9_16,
619 TextSettingOrientation,
620 TextSettingSpeed,
621 TextSettingSpeedOrientationLight,
622 TextSettingSpeedWithProtocol,
623 TextSettings,
624 TextSettingsSaved,
625 TextSeveral,
626 TextShortCircuit,
627 TextShowName,
628 TextShutdown,
629 TextShutdownRailControl,
630 TextShutdownRequestedBySignal,
631 TextShutdownRequestedByWebClient,
632 TextSignal,
633 TextSignalDeleted,
634 TextSignalDoesNotExist,
635 TextSignalHasAssociatedFeedback,
636 TextSignalIsLocked,
637 TextSignalIsUsedByLoco,
638 TextSignalIsUsedByRoute,
639 TextSignalIsUsedByTrack,
640 TextSignalSaved,
641 TextSignalStateCaution,
642 TextSignalStateClear,
643 TextSignalStateClear100,
644 TextSignalStateClear100Expected,
645 TextSignalStateClear110,
646 TextSignalStateClear110Expected,
647 TextSignalStateClear120,
648 TextSignalStateClear120Expected,
649 TextSignalStateClear40,
650 TextSignalStateClear40Expected,
651 TextSignalStateClear50,
652 TextSignalStateClear50Expected,
653 TextSignalStateClear60,
654 TextSignalStateClear60Expected,
655 TextSignalStateClear70,
656 TextSignalStateClear70Expected,
657 TextSignalStateClear80,
658 TextSignalStateClear80Expected,
659 TextSignalStateClear90,
660 TextSignalStateClear90Expected,
661 TextSignalStateClearExpected,
662 TextSignalStateDark,
663 TextSignalStateIsAspect10,
664 TextSignalStateIsAspect10Expected,
665 TextSignalStateIsAspect2,
666 TextSignalStateIsAspect2Expected,
667 TextSignalStateIsAspect3,
668 TextSignalStateIsAspect3Expected,
669 TextSignalStateIsAspect4,
670 TextSignalStateIsAspect4Expected,
671 TextSignalStateIsAspect5,
672 TextSignalStateIsAspect5Expected,
673 TextSignalStateIsAspect6,
674 TextSignalStateIsAspect6Expected,
675 TextSignalStateIsAspect7,
676 TextSignalStateIsAspect7Expected,
677 TextSignalStateIsAspect8,
678 TextSignalStateIsAspect8Expected,
679 TextSignalStateIsAspect9,
680 TextSignalStateIsAspect9Expected,
681 TextSignalStateIsClear,
682 TextSignalStateIsClearExpected,
683 TextSignalStateIsDark,
684 TextSignalStateIsStop,
685 TextSignalStateIsStopExpected,
686 TextSignalStateShortClear,
687 TextSignalStateShunting,
688 TextSignalStateSlow,
689 TextSignalStateStop,
690 TextSignalStateStopExpected,
691 TextSignalStateZs7,
692 TextSignalUpdated,
693 TextSignals,
694 TextSimpleLeft,
695 TextSimpleRight,
696 TextSlotHasAddress,
697 TextSpanish,
698 TextSpeed,
699 TextStartArgument,
700 TextStartLocoAutomode,
701 TextStartTrack,
702 TextStarting,
703 TextStartup,
704 TextStartupInitLocos,
705 TextStartupInitLocosAll,
706 TextStartupInitLocosNone,
707 TextStartupInitLocosSpeed,
708 TextStop,
709 TextStopAllLocos,
710 TextStopAt,
711 TextStopLoco,
712 TextStopOnFeedbackInFreeTrack,
713 TextStraight,
714 TextSwitch,
715 TextSwitchDeleted,
716 TextSwitchDoesNotExist,
717 TextSwitchIsLocked,
718 TextSwitchIsUsedByRoute,
719 TextSwitchSaved,
720 TextSwitchStateIsStraight,
721 TextSwitchStateIsThird,
722 TextSwitchStateIsTurnout,
723 TextSwitchStateLeft,
724 TextSwitchStateRight,
725 TextSwitchStateStraight,
726 TextSwitchUpdated,
727 TextSwitches,
728 TextSystemDefault,
729 TextTcpConnectionClosed,
730 TextTcpConnectionEstablished,
731 TextTerminatingAccessorySenderThread,
732 TextTerminatingHeartBeatThread,
733 TextTerminatingPingSender,
734 TextTerminatingReceiverThread,
735 TextTerminatingSenderSocket,
736 TextTerminatingSenderThread,
737 TextText,
738 TextTextDeleted,
739 TextTextDoesNotExist,
740 TextTextSaved,
741 TextTextUpdated,
742 TextTexts,
743 TextThreeWay,
744 TextTimestampAlreadySet,
745 TextTimestampNotSet,
746 TextTimestampSet,
747 TextTooManyS88Modules,
748 TextTrack,
749 TextTrackDeleted,
750 TextTrackDoesNotExist,
751 TextTrackIsUsedByLoco,
752 TextTrackIsUsedByRoute,
753 TextTrackSaved,
754 TextTrackStatusIsBlocked,
755 TextTrackStatusIsBlockedAndOccupied,
756 TextTrackStatusIsBlockedAndReserved,
757 TextTrackStatusIsFree,
758 TextTrackStatusIsOccupied,
759 TextTrackStatusIsReserved,
760 TextTrackUpdated,
761 TextTracks,
762 TextTrainIsToLong,
763 TextTrainIsToShort,
764 TextTrainLength,
765 TextTrainType,
766 TextTrainTypeAll,
767 TextTrainTypeCargo,
768 TextTrainTypeCargoBlock,
769 TextTrainTypeCargoExpress,
770 TextTrainTypeCargoLocal,
771 TextTrainTypeCargoLongDistance,
772 TextTrainTypeCargoTractor,
773 TextTrainTypeCargoWithPassenger,
774 TextTrainTypeCleaning,
775 TextTrainTypeConstruction,
776 TextTrainTypeEmpty,
777 TextTrainTypeExtra,
778 TextTrainTypeFastLocal,
779 TextTrainTypeHistoric,
780 TextTrainTypeInternationalHighSpeed,
781 TextTrainTypeInternationalLongDistance,
782 TextTrainTypeInternationalNight,
783 TextTrainTypeLocal,
784 TextTrainTypeLoco,
785 TextTrainTypeLongDistanceFastLocal,
786 TextTrainTypeNationalHighSpeed,
787 TextTrainTypeNationalLongDistance,
788 TextTrainTypeNationalNight,
789 TextTrainTypeOther,
790 TextTrainTypePassenger,
791 TextTrainTypePassengerWithCargo,
792 TextTrainTypeRescue,
793 TextTrainTypeSuburban,
794 TextTrainTypeUnderground,
795 TextTrainTypeUnknown,
796 TextTravelSpeed,
797 TextTunnelOneSide,
798 TextTunnelTwoSides,
799 TextTurn,
800 TextTurnDirectionOfTravelToLeft,
801 TextTurnDirectionOfTravelToRight,
802 TextTurningBoosterOff,
803 TextTurningBoosterOn,
804 TextTurningBoosterOnOrOff,
805 TextTurnout,
806 TextType,
807 TextUdpConnectionClosed,
808 TextUdpConnectionEstablished,
809 TextUnableToAddAccessory,
810 TextUnableToAddCluster,
811 TextUnableToAddControl,
812 TextUnableToAddFeedback,
813 TextUnableToAddLayer,
814 TextUnableToAddLayer1,
815 TextUnableToAddLoco,
816 TextUnableToAddLocoToTrack,
817 TextUnableToAddMultipleUnit,
818 TextUnableToAddRoute,
819 TextUnableToAddSignal,
820 TextUnableToAddSwitch,
821 TextUnableToAddText,
822 TextUnableToAddTrack,
823 TextUnableToBindSocketToPort,
824 TextUnableToBindUdpSocket,
825 TextUnableToCalculatePosition,
826 TextUnableToCreateStorageHandler,
827 TextUnableToCreateTcpSocket,
828 TextUnableToCreateUdpSocket,
829 TextUnableToCreateUdpSocketForReceivingData,
830 TextUnableToCreateUdpSocketForSendingData,
831 TextUnableToFindSymbol,
832 TextUnableToLock,
833 TextUnableToOpenFile,
834 TextUnableToOpenSQLite,
835 TextUnableToOpenSerial,
836 TextUnableToReceiveData,
837 TextUnableToReserve,
838 TextUnableToReserveRouteElement,
839 TextUnableToReserveRouteToTrack,
840 TextUnableToResolveAddress,
841 TextUnableToSendDataToControl,
842 TextUnblockTrack,
843 TextUnknownElement,
844 TextUnknownHardware,
845 TextUnknownObjectType,
846 TextUnloadingControl,
847 TextUsingRouteFromTimetable,
848 TextValue,
849 TextVersion,
850 TextVisible,
851 TextWaitAfterRelease,
852 TextWaitingTimeBetweenMembers,
853 TextWaitingUntilHasStopped,
854 TextWarning,
855 TextWebServerStarted,
856 TextWebServerStopped,
857 TextWhenWrongPosition,
858 TextWidth,
859 TextWidthIs0,
860 TextWrite,
861 TextZ21Black2012,
862 TextZ21Black2013,
863 TextZ21DoesNotUnderstand,
864 TextZ21NotRestricted,
865 TextZ21RestrictionsUnknown,
866 TextZ21ServerStarted,
867 TextZ21ServerStopped,
868 TextZ21SmartRail2012,
869 TextZ21Start2016,
870 TextZ21StartLocked,
871 TextZ21StartUnlocked,
872 TextZ21Type,
873 TextZ21Unknown,
874 TextZ21White2013,
875 MaxTexts
876 };
877
878 enum Language : unsigned char
879 {
880 EN = 0,
881 DE,
882 ES,
883 MaxLanguages
884 };
885
886 static inline void SetDefaultLanguage(Language language)
887 {
888 defaultLanguage = language >= MaxLanguages ? EN : language;
889 }
890
891 static inline Language GetDefaultLanguage()
892 {
893 return defaultLanguage;
894 }
895
896 static inline const char* GetText(const TextSelector selector)
897 {
898 return GetText(defaultLanguage, selector);
899 }
900
901 static const char* GetText(const Language language, const TextSelector selector);
902
903 static const std::string GetText(const TextSelector text, const TextSelector tooltip);
904
905 static inline const char* GetOnOff(const bool on)
906 {
907 return GetText(on ? TextOn : TextOff);
908 }
909
910 static inline const char* GetLeftRight(const Orientation direction)
911 {
912 return GetText(direction == OrientationRight ? TextRight : TextLeft);
913 }
914
915 static inline const char* GetGreenRed(const DataModel::AccessoryState state)
916 {
917 return GetText(state == DataModel::AccessoryStateOn ? TextGreen : TextRed);
918 }
919
920 static const char* languages[MaxTexts][MaxLanguages];
921 static Language defaultLanguage;
922 };