Changes between Version 12 and Version 13 of Internationalization
- Timestamp:
- Apr 16, 2014, 1:44:08 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internationalization
v12 v13 137 137 138 138 {{{ 139 dateString = Engine. formatMillisecondsIntoDateString(unixTime*1000, translate("yyyy-MM-dd HH:mm:ss"));139 dateString = Engine.FormatMillisecondsIntoDateString(unixTime*1000, translate("yyyy-MM-dd HH:mm:ss")); 140 140 }}} 141 141 You can modify the format string (second parameter) as you wish, using any [https://sites.google.com/site/icuprojectuserguide/formatparse/datetime?pli=1#TOC-Date-Field-Symbol-Table ICU date formatting symbols]. … … 166 166 167 167 {{{ 168 fileContent = Engine. translateLines(Engine.ReadFile(pathToFile));168 fileContent = Engine.TranslateLines(Engine.ReadFile(pathToFile)); 169 169 }}} 170 170 If the !JavaScript file obtains the data as an object, you can use the `translateObjectKeys()` global function instead, which expects the object with the data and an array with the names of the object properties that must be translated. For example, from the game code: