Pyrogenesis  trunk
Functions
JSI_L10n Namespace Reference

Namespace for the functions of the JavaScript interface for internationalization and localization. More...

Functions

L10nL10nGetter (const ScriptRequest &, JS::CallArgs &)
 
std::vector< std::string > TranslateArray (const std::vector< std::string > &sourceArray)
 
std::string FormatMillisecondsIntoDateStringLocal (UDate milliseconds, const std::string &formatString)
 
std::string FormatMillisecondsIntoDateStringGMT (UDate milliseconds, const std::string &formatString)
 
void RegisterScriptFunctions (const ScriptRequest &rq)
 Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context. More...
 

Detailed Description

Namespace for the functions of the JavaScript interface for internationalization and localization.

This namespace defines JavaScript interfaces to functions defined in L10n and related helper functions.

See also
http://trac.wildfiregames.com/wiki/Internationalization_and_Localization

Function Documentation

◆ FormatMillisecondsIntoDateStringGMT()

std::string JSI_L10n::FormatMillisecondsIntoDateStringGMT ( UDate  milliseconds,
const std::string &  formatString 
)

◆ FormatMillisecondsIntoDateStringLocal()

std::string JSI_L10n::FormatMillisecondsIntoDateStringLocal ( UDate  milliseconds,
const std::string &  formatString 
)

◆ L10nGetter()

L10n* JSI_L10n::L10nGetter ( const ScriptRequest ,
JS::CallArgs &   
)

◆ RegisterScriptFunctions()

void JSI_L10n::RegisterScriptFunctions ( const ScriptRequest rq)

Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context.

Parameters
ScriptRequestScript Request where RegisterScriptFunctions() registers the functions.
See also
GuiScriptingInit()

◆ TranslateArray()

std::vector<std::string> JSI_L10n::TranslateArray ( const std::vector< std::string > &  sourceArray)