"String-table" container

From TrainzOnline

Jump to: navigation, search

The "String-table" container is a top-level config.txt file entry that is used to provide localization support. The 'string-table' container always supplies English string data. Whenever the 'string-table' container is supplied, it is also legal to provide equivalent localized variants for one or more locales (eg. 'string-table-de'). It is not legal to provide a localized variant without the base English form (ie. 'string-table-de' without 'string-table'), nor is it legal to provide a localized variant instead of the English form (ie. a 'string-table' which actually contains non-English text.)


The complete set of supported string-table containers are as follows:

string-tableEnglish
string-table-cnChinese
string-table-czCzech
string-table-nlDutch
string-table-frFrench
string-table-deGerman
string-table-huHungarian
string-table-itItalian
string-table-plPolish
string-table-ruRussian
string-table-esSpanish

"String-table" container Example

The following example shows the use of a "String-table" container including localized variants.

 string-table
 {
   html_description1                     "Current control method is <a href=live://property/control-method>Cab mode</a>."
   html_description2                     "Current control method is <a href=live://property/control-method>DCC mode</a>."
   html_description3                     "Current control method is <a href=live://property/control-method>Ask user</a>."
   driver_default_msg                    "Defaulting to DCC mode for user train."
   description                           "Set the control method (DCC mode or Cab mode) and realism."
 }
 
 string-table-fr
 {
   html_description1                     "Méthode de contrôle actuelle : <a href=live://property/control-method>mode Cabine</a>."
   html_description2                     "Méthode de contrôle actuelle : <a href=live://property/control-method>mode DCC</a>."
   html_description3                     "Méthode de contrôle actuelle : <a href=live://property/control-method>Demander à l'utilisateur</a>."
   driver_default_msg                    "Activation par défaut du mode DCC pour le train de l'utilisateur."
   description                           "Permet de sélectionner la méthode de contrôle (mode DCC ou Cabine) et le niveau de réalisme."
 }
 
 string-table-de
 {
   html_description1                     "Aktuelle Steuerung ist <a href=live://property/control-method>Führerstandsmodus</a>."
   html_description2                     "Aktuelle Steuerung ist <a href=live://property/control-method>Trafo-Modus</a>."
   html_description3                     "Aktuelle Steuerung ist <a href=live://property/control-method>Benutzer fragen</a>."
   driver_default_msg                    "Zurück zum Trafo-Modus für den Zug des Benutzers."
   description                           "Steuerungs-Methode (Trafo- oder Führerstands-Modus) und Realismus auswählen."
 }


See Also