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