Changes between Version 3 and Version 4 of documentation/Localisation

Show
Ignore:
Author:
peterc (IP: 203.96.63.172)
Timestamp:
03/13/08 17:31:23 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/Localisation

    v3 v4  
    4545}}} 
    4646 
    47 If we were to localise Rocket Invaders, we'd want to move all of the strings out from the RML and into a string table. The raw text in the RML would then be replaced with the string table tokens: 
     47If we were to localise Rocket Invaders, we'd want to move all of the English strings out from the RML and into a string table. The raw text in the RML would then be replaced with the string table tokens: 
    4848 
    4949{{{ 
    6060}}} 
    6161 
    62 Our sample translator would then become: 
     62Assuming the appliation has a StringTable class that has loaded the appropriate string table for the language, our sample translator would then become: 
    6363 
    6464{{{ 
    7575}}} 
    7676 
    77 And now (assuming the application's StringTable::GetString() returns the appropriate string) the strings will be valid for whatever language we specify a string table for. Note that you can place RML into the translated string, and it will be parsed appropriately. For example, you could replace a token with an <img> tag to render an icon for a controller button. 
     77Now the strings will be valid for whatever language we specify a string table for. In practice, you might need a more sophisticated translator that could replace multiple tokens within a string. 
     78 
     79Note that you can place RML into the translated string, and it will be parsed appropriately. For example, you could replace a token with an <img> tag to render an icon for a controller button. 
    7880 
    7981== Font charsets ==