Changes between Version 1 and Version 2 of documentation/Localisation
- Timestamp:
- 03/13/08 14:42:22 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/Localisation
v1 v2 9 9 Once libRocket has parsed text (and run it through the translator, see below), the strings will be converted into UCS-2, strictly for performance reasons. 10 10 11 == String tables==11 == Translation == 12 12 13 13 All raw text that libRocket reads while parsing RML (i.e., everything other than XML tags) is sent through the ''TranslateString()'' function on the [wiki:documentation/C++Manual/Interfaces#Thesysteminterface system interface]. The function is given the raw string as read, and the application can make any modifications necessary before returning the translated string (and the number of substitutions made) back to libRocket. 26 26 } 27 27 }}} 28 29 === String tables === 28 30 29 31 The ''TranslateString()'' method can be used in conjunction with an application's string table to make text substitutions on a document's text. For example, take the pause.rml file in the Rocket Invaders sample: