Changes between Version 21 and Version 22 of Internationalization
- Timestamp:
- May 1, 2014, 1:25:30 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internationalization
v21 v22 58 58 the locale that the game is currently using, such as ‘en_US’." 59 59 >Locale:</translatableAttribute> 60 </object> 61 }}} 62 63 == Defining a Translation Context == 64 65 Translation context are keywords associated by developers with English strings. Contexts are used to indicate that an English string might have a different translation that the same English string used somewhere else. For more information, see “Using Context Functions” below. 66 67 To define a context in an XML element, simply define a `context` attribute with the context keyword. For example: 68 69 {{{ 70 <object type="label"> 71 <translatableAttribute id="caption" context="newGame">Start</translatableAttribute> 60 72 </object> 61 73 }}}