Changes between Version 12 and Version 13 of Internationalization


Ignore:
Timestamp:
Apr 16, 2014, 1:44:08 PM (10 years ago)
Author:
leper
Comment:

Exported Engine functions are PascalCase.

Legend:

Unmodified
Added
Removed
Modified
  • Internationalization

    v12 v13  
    137137
    138138{{{
    139 dateString = Engine.formatMillisecondsIntoDateString(unixTime*1000, translate("yyyy-MM-dd HH:mm:ss"));
     139dateString = Engine.FormatMillisecondsIntoDateString(unixTime*1000, translate("yyyy-MM-dd HH:mm:ss"));
    140140}}}
    141141You 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].
     
    166166
    167167{{{
    168 fileContent = Engine.translateLines(Engine.ReadFile(pathToFile));
     168fileContent = Engine.TranslateLines(Engine.ReadFile(pathToFile));
    169169}}}
    170170If 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: