/* RailControl - Model Railway Control Software Copyright (c) 2017-2025 by Teddy / Dominik Mahrer - www.railcontrol.org RailControl is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. RailControl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with RailControl; see the file LICENCE. If not see . */ #pragma once #include #include #include "DataModel/AccessoryBase.h" #include "DataTypes.h" class Languages { public: enum TextSelector : unsigned short { Text180Deg, Text90DegAntiClockwise, Text90DegClockwise, TextAccessories, TextAccessory, TextAccessoryAddressDccTooHigh, TextAccessoryAddressMmTooHigh, TextAccessoryControlProtocolAddressDoesNotExist, TextAccessoryDeleted, TextAccessoryDoesNotExist, TextAccessoryIsLocked, TextAccessoryIsUsedByRoute, TextAccessorySaved, TextAccessorySenderThreadStarted, TextAccessoryStateIsGreen, TextAccessoryStateIsRed, TextAccessoryTypeDecoupler, TextAccessoryTypeLight, TextAccessoryTypeLightInhouse, TextAccessoryTypeLightStreet, TextAccessoryTypeOnOff, TextAccessoryTypeOnOn, TextAccessoryTypeOnPush, TextAccessoryUpdated, TextActualAndStoredProtocolsDiffer, TextAddAccessory, TextAddCounter, TextAddFeedback, TextAddRoute, TextAddSignal, TextAddSwitch, TextAddText, TextAddTrack, TextAddingFeedback, TextAddingRouteToTimetable, TextAddress, TextAddressMustBeHigherThen0, TextAddresses, TextAllTrains, TextAllowLocoTurn, TextAllowedPropulsions, TextAllowedPushPull, TextAllowedTrainTypes, TextAlways, TextAreYouSureToDelete, TextAreYouSureToShutdown, TextAtLock, TextAtUnlock, TextAutomaticallyAddUnknownFeedbacks, TextAutomode, TextBaseAddress, TextBasic, TextBlockTrack, TextBooster, TextBoosterIsTurnedOff, TextBoosterIsTurnedOn, TextBridge, TextBrowserInfo, TextBufferStop, TextCS2ServerStarted, TextCS2ServerStopped, TextCV, TextCanNotStartAlreadyRunning, TextCanNotStartInErrorState, TextCanNotStartNotOnTrack, TextChDwarf, TextChLDistant, TextChLMain, TextChNDistant, TextChNMain, TextChange, TextCheckSumError, TextClosingSQLite, TextCluster, TextClusterDeleted, TextClusterDoesNotExist, TextClusterSaved, TextClusterUpdated, TextClusters, TextCommandUnknown, TextCompileDate, TextConfigFileNotFound, TextConfigFileReceivedWithSize, TextConfigMenu, TextConfigureControlFirst, TextConnectedTo, TextConnection, TextConnectionFailed, TextConnectionHint, TextConnectionRefused, TextConnectionReset, TextControl, TextControlDeleted, TextControlDoesNotAnswer, TextControlDoesNotExist, TextControlReturnedBadParameter, TextControlReturnedError, TextControlReturnedOnHalt, TextControlReturnedPowerOff, TextControlReturnedQueueFull, TextControlReturnedQueueNearlyFull, TextControlReturnedUnknownErrorCode, TextControlSaved, TextControls, TextCopyingFromTo, TextCounter, TextCounterDecrement, TextCounterDecremented, TextCounterDeleted, TextCounterDoesNotExist, TextCounterIncrement, TextCounterIncremented, TextCounterReachedLimit, TextCounterSaved, TextCounterUpdated, TextCounters, TextCrcMissmatch, TextCreatingTable, TextCreepAt, TextCreepingSpeed, TextCrossingLeft, TextCrossingRight, TextCrossingSymetric, TextCs2MainFound, TextCs2MainLocoFunctionIconType, TextCs2MainLocoFunctionIconTypeTimer, TextCs2MainLocoName, TextCs2MainLocoOldName, TextCs2MainLocoProtocolAddress, TextCs2MainLocoRemove, TextCs2MainLocoSlaveName, TextCs2MainLocoSlaveProtocolAddress, TextCs2MinorVersionIsUnknown, TextDcc, TextDeBlock, TextDeCombined, TextDeHVMain, TextDebounceThreadStarted, TextDebounceThreadTerminated, TextDebouncer, TextDebug, TextDecrement, TextDefault, TextDefaultSwitchingDuration, TextDelete, TextDeleteAccessory, TextDeleteCluster, TextDeleteControl, TextDeleteCounter, TextDeleteFeedback, TextDeleteLayer, TextDeleteLoco, TextDeleteMultipleUnit, TextDeleteRoute, TextDeleteSignal, TextDeleteSwitch, TextDeleteText, TextDeleteTrack, TextDestinationTrack, TextDeviceOnCanBus, TextDeviceType, TextDifferentOrientations, TextDifferentPropulsions, TextDifferentPushpullTypes, TextDifferentTrainTypes, TextDirect, TextDisplayName, TextDoNotCare, TextDroppingTable, TextDuration, TextEdit, TextEditAccessories, TextEditAccessory, TextEditClusters, TextEditControls, TextEditCounter, TextEditCounters, TextEditFeedback, TextEditFeedbacks, TextEditLayers, TextEditLocos, TextEditMultipleUnits, TextEditRoute, TextEditRoutes, TextEditSettings, TextEditSignal, TextEditSignals, TextEditSwitch, TextEditSwitches, TextEditText, TextEditTexts, TextEditTrack, TextEditTracks, TextEnglish, TextError, TextErrorReadingData, TextExecuteAccessory, TextExecuteRoute, TextExecutingRoute, TextExitRailControl, TextFeedback, TextFeedbackChange, TextFeedbackDeleted, TextFeedbackDoesNotExist, TextFeedbackIsUsedByTrack, TextFeedbackSaved, TextFeedbackStateIsOff, TextFeedbackStateIsOn, TextFeedbackUpdated, TextFeedbacks, TextFileNotFound, TextFollowUpRoute, TextFoundAccessoryInEcosDatabase, TextFoundFeedbackModuleInEcosDatabase, TextFoundLocoInEcosDatabase, TextFullScreen, TextFunctions, TextGerman, TextGitDate, TextGitDirty, TextGitHash, TextGreen, TextHasAlreadyReservedRoute, TextHasNotReachedDestination, TextHeadingToVia, TextHeadingToViaVia, TextHeartBeatThreadStarted, TextHeightIs0, TextHint, TextHintCcSchnitte, TextHintCs2Tcp, TextHintCs2Udp, TextHintDccPpExSerial, TextHintDccPpExTcp, TextHintEcos, TextHintHsi88, TextHintIntellibox, TextHintIntellibox2, TextHintLocoNetAdapter63120, TextHintLocoNetAdapter63820, TextHintM6051, TextHintMasterControl, TextHintMasterControl2, TextHintOpenDcc, TextHintPositionMove, TextHintPositionRotate, TextHintRedBox, TextHintSystemControl7, TextHintTwinCenter, TextHintVirtual, TextHintZ21, TextHitOverrun, TextHsi88Configured, TextHsi88ErrorConfiguring, TextHttpRequest, TextIPAddress, TextImport, TextIncrement, TextIndependentOfControl, TextIndex, TextInfo, TextInvalidControlID, TextInvalidDataReceived, TextInverted, TextInverted2, TextIsInAutomodeWithoutRouteTrack, TextIsInErrorState, TextIsInInvalidAutomodeState, TextIsInManualState, TextIsInTerminatedState, TextIsLockedBy, TextIsNotFree, TextIsNotOnTrack, TextIsNowInAutoMode, TextIsNowInManualMode, TextIsOnOcupiedTrack, TextIsRunningWaitingUntilDestination, TextIsUpToDate, TextLanguage, TextLayer1, TextLayer1IsUndeletable, TextLayerDeleted, TextLayerDoesNotExist, TextLayerIsUsedByAccessory, TextLayerIsUsedByCounter, TextLayerIsUsedByFeedback, TextLayerIsUsedByRoute, TextLayerIsUsedBySignal, TextLayerIsUsedBySwitch, TextLayerIsUsedByText, TextLayerIsUsedByTrack, TextLayerSaved, TextLayerUpdated, TextLayers, TextLeft, TextLength, TextLink, TextLoadedAccessory, TextLoadedCluster, TextLoadedControl, TextLoadedCounter, TextLoadedFeedback, TextLoadedLayer, TextLoadedLoco, TextLoadedMultipleUnit, TextLoadedRoute, TextLoadedSignal, TextLoadedSwitch, TextLoadedText, TextLoadedTrack, TextLoco, TextLocoAddressDccTooHigh, TextLocoAddressMm1TooHigh, TextLocoAddressMm2TooHigh, TextLocoDeleted, TextLocoDirectionOfTravelIsLeft, TextLocoDirectionOfTravelIsRight, TextLocoDoesNotExist, TextLocoFunctionIconAirPump, TextLocoFunctionIconBacklightForward, TextLocoFunctionIconBacklightReverse, TextLocoFunctionIconBell, TextLocoFunctionIconBlinkingLight, TextLocoFunctionIconBreak, TextLocoFunctionIconBreak1, TextLocoFunctionIconBreak2, TextLocoFunctionIconBufferPush, TextLocoFunctionIconCabLight1, TextLocoFunctionIconCabLight12, TextLocoFunctionIconCabLight2, TextLocoFunctionIconCloseDoor, TextLocoFunctionIconCompressedAir, TextLocoFunctionIconCoupler, TextLocoFunctionIconCrane, TextLocoFunctionIconCraneHook, TextLocoFunctionIconCurve, TextLocoFunctionIconDefault, TextLocoFunctionIconDown, TextLocoFunctionIconDrainValve, TextLocoFunctionIconDriversDeskLight, TextLocoFunctionIconEngine1, TextLocoFunctionIconEngine2, TextLocoFunctionIconEngineLight, TextLocoFunctionIconFan, TextLocoFunctionIconFan1, TextLocoFunctionIconFan2, TextLocoFunctionIconFan3, TextLocoFunctionIconFillDiesel, TextLocoFunctionIconFillGas, TextLocoFunctionIconFillWater, TextLocoFunctionIconFireBox, TextLocoFunctionIconGearBox, TextLocoFunctionIconGearDown, TextLocoFunctionIconGearUp, TextLocoFunctionIconGenerator, TextLocoFunctionIconHeadlightHighBeamForward, TextLocoFunctionIconHeadlightHighBeamReverse, TextLocoFunctionIconHeadlightLowBeamForward, TextLocoFunctionIconHeadlightLowBeamReverse, TextLocoFunctionIconHorn1, TextLocoFunctionIconHorn2, TextLocoFunctionIconInertia, TextLocoFunctionIconInteriorLight1, TextLocoFunctionIconInteriorLight2, TextLocoFunctionIconLeft, TextLocoFunctionIconLeftRight, TextLocoFunctionIconLight, TextLocoFunctionIconLocomotiveNumberIndicator, TextLocoFunctionIconMagnet, TextLocoFunctionIconMainSwitch, TextLocoFunctionIconMusic1, TextLocoFunctionIconMusic2, TextLocoFunctionIconNoBreak, TextLocoFunctionIconNoSound, TextLocoFunctionIconOpenDoor, TextLocoFunctionIconPanto, TextLocoFunctionIconPanto1, TextLocoFunctionIconPanto12, TextLocoFunctionIconPanto2, TextLocoFunctionIconRadio, TextLocoFunctionIconRailJoint, TextLocoFunctionIconReliefValve, TextLocoFunctionIconRight, TextLocoFunctionIconRunning1, TextLocoFunctionIconRunning2, TextLocoFunctionIconSand, TextLocoFunctionIconShakingRust, TextLocoFunctionIconShovelCoal, TextLocoFunctionIconShuntingLight, TextLocoFunctionIconShuntingMode, TextLocoFunctionIconSmokeGenerator, TextLocoFunctionIconSoundGeneral, TextLocoFunctionIconSoundLouder, TextLocoFunctionIconSoundLower, TextLocoFunctionIconSpeak, TextLocoFunctionIconStairsLight, TextLocoFunctionIconStationAnnouncement1, TextLocoFunctionIconStationAnnouncement2, TextLocoFunctionIconStationAnnouncement3, TextLocoFunctionIconSteamBlow, TextLocoFunctionIconSteamBlowOut, TextLocoFunctionIconTableLight1, TextLocoFunctionIconTableLight2, TextLocoFunctionIconTableLight3, TextLocoFunctionIconTelex1, TextLocoFunctionIconTelex12, TextLocoFunctionIconTelex2, TextLocoFunctionIconTrainDestinationIndicator, TextLocoFunctionIconTurn, TextLocoFunctionIconTurnLeft, TextLocoFunctionIconTurnRight, TextLocoFunctionIconUp, TextLocoFunctionIconUpDown1, TextLocoFunctionIconUpDown2, TextLocoFunctionIconWaterPump, TextLocoFunctionIconWhistle1, TextLocoFunctionIconWhistle2, TextLocoFunctionIsOff, TextLocoFunctionIsOn, TextLocoFunctionTypeFlashing, TextLocoFunctionTypeMoment, TextLocoFunctionTypeNone, TextLocoFunctionTypePermanent, TextLocoFunctionTypeTimer, TextLocoHasReachedDestination, TextLocoIsInAutoMode, TextLocoIsInManualMode, TextLocoIsInUse, TextLocoIsOnTrack, TextLocoIsReleased, TextLocoSaved, TextLocoSpeedIs, TextLocoUpdated, TextLocos, TextLogLevel, TextLongestUnused, TextLookingForDestination, TextMaerklinLeft, TextMaerklinMotorola, TextMaerklinRight, TextMainDevice, TextMainTrack, TextMainTrackHint, TextManager, TextMax, TextMaxSpeed, TextMaxTrainLength, TextMembers, TextMethodNotImplemented, TextMin, TextMinTrackLength, TextMinTrainLength, TextMultipleUnit, TextMultipleUnitDeleted, TextMultipleUnitDoesNotExist, TextMultipleUnitIsInUse, TextMultipleUnitSaved, TextMultipleUnits, TextMyUidHash, TextName, TextNameInControl, TextNetworkUnreachable, TextNew, TextNoAnswerFromDecoder, TextNoControlSupportsProgramming, TextNoPushPull, TextNoRotation, TextNoS88Modules, TextNoValidRouteFound, TextNone, TextNotImplemented, TextNrOfFunctions, TextNrOfS88Modules, TextNrOfS88ModulesConfigured, TextNrOfS88ModulesOnBus, TextNrOfTracksToReserve, TextObjectIsUsedByRoute, TextOff, TextOn, TextOnPush, TextOpeningSQLite, TextOrientation, TextOverrunAt, TextParameterFoundInConfigFile, TextPause, TextPin, TextPingSenderStarted, TextPleaseSelectLoco, TextPosX, TextPosY, TextPosZ, TextPosition, TextPositionAlreadyInUse, TextProgramDccDirectRead, TextProgramDccDirectWrite, TextProgramDccPageRead, TextProgramDccPageWrite, TextProgramDccPomAccessoryRead, TextProgramDccPomAccessoryWrite, TextProgramDccPomLocoRead, TextProgramDccPomLocoWrite, TextProgramDccRegisterRead, TextProgramDccRegisterWrite, TextProgramMfxRead, TextProgramMfxWrite, TextProgramMm, TextProgramMmPom, TextProgramMode, TextProgramModeDccDirect, TextProgramModeDccPage, TextProgramModeDccPomAccessory, TextProgramModeDccPomLoco, TextProgramModeDccRegister, TextProgramModeMfx, TextProgramModeMm, TextProgramModeMmPom, TextProgramReadValue, TextProgrammer, TextProgrammingMode, TextPropulsion, TextPropulsionAccu, TextPropulsionAll, TextPropulsionDiesel, TextPropulsionElectric, TextPropulsionGas, TextPropulsionHydrogen, TextPropulsionOther, TextPropulsionSteam, TextPropulsionUnknown, TextProtocol, TextProtocolNotSupported, TextPushPullOnly, TextPushPullTrain, TextQuery, TextQueryAffected, TextRailControlStarted, TextRailControlUpdateAvailable, TextRandom, TextReachedItsDestination, TextRead, TextReadingConfigFile, TextReceivedAccessoryCommand, TextReceivedDirectionCommand, TextReceivedFunctionCommand, TextReceivedSignalKill, TextReceivedSpeedCommand, TextReceiverThreadStarted, TextRed, TextReducedSpeed, TextReducedSpeedAt, TextRegister, TextRelationTargetNotFound, TextRelease, TextReleaseAccessory, TextReleaseLoco, TextReleaseRoute, TextReleaseSignal, TextReleaseSwitch, TextReleaseTrack, TextReleaseTrackAndLoco, TextReleaseWhenFree, TextReleasingLoco, TextReleasingMultipleUnit, TextRemoveBackupFile, TextRenamingFromTo, TextReservingRoute, TextRestarting, TextRight, TextRotation, TextRoute, TextRouteDeleted, TextRouteDoesNotExist, TextRouteIsInUse, TextRouteIsLocked, TextRouteIsReleased, TextRouteIsUsedByRoute, TextRouteSaved, TextRouteUpdated, TextRoutes, TextSQLiteErrorQuery, TextSaving, TextSecondaryDevice, TextSelectAutomatically, TextSelectLocoForTrack, TextSelectRouteBy, TextSenderSocketCreated, TextSenderThreadStarted, TextSendingLocoInfo, TextSendingTurnoutInfo, TextSeparator, TextSerialNumberIs, TextSerialPort, TextServerAddress, TextSetAllLocosToAutomode, TextSetAllLocosToManualMode, TextSetLoco, TextSettingAccessory, TextSettingAccessoryOnOff, TextSettingAccessoryWithProtocol, TextSettingDirectionOfTravel, TextSettingDirectionOfTravelWithProtocol, TextSettingFunction, TextSettingFunctionWithProtocol, TextSettingFunctions17_28, TextSettingFunctions1_8, TextSettingFunctions9_16, TextSettingOrientation, TextSettingSpeed, TextSettingSpeedOrientationLight, TextSettingSpeedWithProtocol, TextSettings, TextSettingsSaved, TextSeveral, TextShortCircuit, TextShowName, TextShutdown, TextShutdownRailControl, TextShutdownRequestedBySignal, TextShutdownRequestedByWebClient, TextSignal, TextSignalDeleted, TextSignalDoesNotExist, TextSignalHasAssociatedFeedback, TextSignalIsLocked, TextSignalIsUsedByLoco, TextSignalIsUsedByRoute, TextSignalIsUsedByTrack, TextSignalSaved, TextSignalStateCaution, TextSignalStateClear, TextSignalStateClear100, TextSignalStateClear100Expected, TextSignalStateClear110, TextSignalStateClear110Expected, TextSignalStateClear120, TextSignalStateClear120Expected, TextSignalStateClear40, TextSignalStateClear40Expected, TextSignalStateClear50, TextSignalStateClear50Expected, TextSignalStateClear60, TextSignalStateClear60Expected, TextSignalStateClear70, TextSignalStateClear70Expected, TextSignalStateClear80, TextSignalStateClear80Expected, TextSignalStateClear90, TextSignalStateClear90Expected, TextSignalStateClearExpected, TextSignalStateDark, TextSignalStateIsAspect10, TextSignalStateIsAspect10Expected, TextSignalStateIsAspect2, TextSignalStateIsAspect2Expected, TextSignalStateIsAspect3, TextSignalStateIsAspect3Expected, TextSignalStateIsAspect4, TextSignalStateIsAspect4Expected, TextSignalStateIsAspect5, TextSignalStateIsAspect5Expected, TextSignalStateIsAspect6, TextSignalStateIsAspect6Expected, TextSignalStateIsAspect7, TextSignalStateIsAspect7Expected, TextSignalStateIsAspect8, TextSignalStateIsAspect8Expected, TextSignalStateIsAspect9, TextSignalStateIsAspect9Expected, TextSignalStateIsClear, TextSignalStateIsClearExpected, TextSignalStateIsDark, TextSignalStateIsStop, TextSignalStateIsStopExpected, TextSignalStateShortClear, TextSignalStateShunting, TextSignalStateSlow, TextSignalStateStop, TextSignalStateStopExpected, TextSignalStateZs7, TextSignalUpdated, TextSignals, TextSimpleLeft, TextSimpleRight, TextSlotHasAddress, TextSpanish, TextSpeed, TextStartArgument, TextStartLocoAutomode, TextStartTrack, TextStarting, TextStartup, TextStartupInitLocos, TextStartupInitLocosAll, TextStartupInitLocosNone, TextStartupInitLocosSpeed, TextStop, TextStopAllLocos, TextStopAt, TextStopLoco, TextStopOnFeedbackInFreeTrack, TextStraight, TextSwitch, TextSwitchDeleted, TextSwitchDoesNotExist, TextSwitchIsLocked, TextSwitchIsUsedByRoute, TextSwitchSaved, TextSwitchStateIsStraight, TextSwitchStateIsThird, TextSwitchStateIsTurnout, TextSwitchStateLeft, TextSwitchStateRight, TextSwitchStateStraight, TextSwitchUpdated, TextSwitches, TextSystemDefault, TextTcpConnectionClosed, TextTcpConnectionEstablished, TextTerminatingAccessorySenderThread, TextTerminatingHeartBeatThread, TextTerminatingPingSender, TextTerminatingReceiverThread, TextTerminatingSenderSocket, TextTerminatingSenderThread, TextText, TextTextDeleted, TextTextDoesNotExist, TextTextSaved, TextTextUpdated, TextTexts, TextThreeWay, TextTimestampAlreadySet, TextTimestampNotSet, TextTimestampSet, TextTooManyS88Modules, TextTrack, TextTrackDeleted, TextTrackDoesNotExist, TextTrackIsUsedByLoco, TextTrackIsUsedByRoute, TextTrackSaved, TextTrackStatusIsBlocked, TextTrackStatusIsBlockedAndOccupied, TextTrackStatusIsBlockedAndReserved, TextTrackStatusIsFree, TextTrackStatusIsOccupied, TextTrackStatusIsReserved, TextTrackUpdated, TextTracks, TextTrainIsToLong, TextTrainIsToShort, TextTrainLength, TextTrainType, TextTrainTypeAll, TextTrainTypeCargo, TextTrainTypeCargoBlock, TextTrainTypeCargoExpress, TextTrainTypeCargoLocal, TextTrainTypeCargoLongDistance, TextTrainTypeCargoTractor, TextTrainTypeCargoWithPassenger, TextTrainTypeCleaning, TextTrainTypeConstruction, TextTrainTypeEmpty, TextTrainTypeExtra, TextTrainTypeFastLocal, TextTrainTypeHistoric, TextTrainTypeInternationalHighSpeed, TextTrainTypeInternationalLongDistance, TextTrainTypeInternationalNight, TextTrainTypeLocal, TextTrainTypeLoco, TextTrainTypeLongDistanceFastLocal, TextTrainTypeNationalHighSpeed, TextTrainTypeNationalLongDistance, TextTrainTypeNationalNight, TextTrainTypeOther, TextTrainTypePassenger, TextTrainTypePassengerWithCargo, TextTrainTypeRescue, TextTrainTypeSuburban, TextTrainTypeUnderground, TextTrainTypeUnknown, TextTravelSpeed, TextTunnelOneSide, TextTunnelTwoSides, TextTurn, TextTurnDirectionOfTravelToLeft, TextTurnDirectionOfTravelToRight, TextTurningBoosterOff, TextTurningBoosterOn, TextTurningBoosterOnOrOff, TextTurnout, TextType, TextUdpConnectionClosed, TextUdpConnectionEstablished, TextUnableToAddAccessory, TextUnableToAddCluster, TextUnableToAddControl, TextUnableToAddCounter, TextUnableToAddFeedback, TextUnableToAddLayer, TextUnableToAddLayer1, TextUnableToAddLoco, TextUnableToAddLocoToTrack, TextUnableToAddMultipleUnit, TextUnableToAddRoute, TextUnableToAddSignal, TextUnableToAddSwitch, TextUnableToAddText, TextUnableToAddTrack, TextUnableToBindSocketToPort, TextUnableToBindUdpSocket, TextUnableToCalculatePosition, TextUnableToCreateStorageHandler, TextUnableToCreateTcpSocket, TextUnableToCreateUdpSocket, TextUnableToCreateUdpSocketForReceivingData, TextUnableToCreateUdpSocketForSendingData, TextUnableToFindSymbol, TextUnableToLock, TextUnableToOpenFile, TextUnableToOpenSQLite, TextUnableToOpenSerial, TextUnableToReceiveData, TextUnableToReserve, TextUnableToReserveRouteElement, TextUnableToReserveRouteToTrack, TextUnableToResolveAddress, TextUnableToSendDataToControl, TextUnblockTrack, TextUnknownElement, TextUnknownHardware, TextUnknownObjectType, TextUnloadingControl, TextUsingRouteFromTimetable, TextValue, TextVersion, TextVisible, TextWaitAfterRelease, TextWaitingTimeBetweenMembers, TextWaitingUntilHasStopped, TextWarning, TextWebServerStarted, TextWebServerStopped, TextWhenWrongPosition, TextWidth, TextWidthIs0, TextWrite, TextZ21Black2012, TextZ21Black2013, TextZ21DoesNotUnderstand, TextZ21NotRestricted, TextZ21RestrictionsUnknown, TextZ21ServerStarted, TextZ21ServerStopped, TextZ21SmartRail2012, TextZ21Start2016, TextZ21StartLocked, TextZ21StartUnlocked, TextZ21Type, TextZ21Unknown, TextZ21White2013, MaxTexts }; enum Language : unsigned char { EN = 0, DE, ES, MaxLanguages }; static inline void SetDefaultLanguage(Language language) { defaultLanguage = language >= MaxLanguages ? EN : language; } static inline Language GetDefaultLanguage() { return defaultLanguage; } static inline const char* GetText(const TextSelector selector) { return GetText(defaultLanguage, selector); } static const char* GetText(const Language language, const TextSelector selector); static const std::string GetText(const TextSelector text, const TextSelector tooltip); static inline const char* GetOnOff(const bool on) { return GetText(on ? TextOn : TextOff); } static inline const char* GetLeftRight(const Orientation direction) { return GetText(direction == OrientationRight ? TextRight : TextLeft); } static inline const char* GetGreenRed(const DataModel::AccessoryState state) { return GetText(state == DataModel::AccessoryStateOn ? TextGreen : TextRed); } static const char* languages[MaxTexts][MaxLanguages]; static Language defaultLanguage; };