"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, an euphemism meaning multilingual translations for international markets and customers. The most common location to see and find a string-table is in layout or route map config.txt files, which can be viewed from content manager using the view config.txt tool. Industry names, trackmarks and other labels added to the map manually including such items as renamed junctions will be listed in a Map string table.

  • In versions previous to TS2009 SP2 inclusive, all rolling stock used in any session on the route was listed in the map's string table.
  • From the point where layer technologies were introduced in TS2010 SP0 (also TS2009 SP3) rolling stock and industry string tables might instead be located in the session config.txt file, depending upon the route-builder/session writer's preferences and use of layers.

The 'string-table' container (no suffix) always supplies English string data. Whenever the 'string-table' container is supplied, then and only then it is also legal to provide equivalent localized variants (translated text) 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-table English
string-table-cn Traditional Chinese
string-table-c2 Simplified Chinese
string-table-cz Czech
string-table-nl Dutch
string-table-fr French
string-table-de German
string-table-kr Korean
string-table-it Italian
string-table-pl Polish
string-table-ru Russian
string-table-es Spanish
string-table-hu Hungarian
string-table-sv Swedish
string-table-fi Finnish
string-table-da Danish
string-table-no Norwegian
string-table-jp Japanese
string-table-pt Portuguese
string-table-za Afrikaans


"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

Personal tools