Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.vxLocalizer Class Reference

Holds, converts and localizes content for different regions. More...

Static Public Member Functions

static void Init ()
 Initialises the Localization Manager. The supported languages are defined in a file at "Content/local/_languages.json". This should be a dictionary of 2-digit language codes and language name.
 
static bool SetLocalization (string key)
 Set's the current loca.
 
static string GetText (string key)
 Returns the localised text for the give key. If no key exists in the language pack, then it simply returns the key.
 
static void DumpMissingKeys ()
 

Static Public Attributes

static string LocalContentRootPath = @"local"
 The Content Root path for localization files. The default is 'local' but you can change this to anything else before calling 'SetLocalization'.
 

Properties

static Dictionary< string, string > SupportedLangagues [get]
 A key-value pair for the Supported Languages by this game. The key is the 2-digit ISO code, and the value is the language name.
 
static string CurrentLanguage [get]
 

Detailed Description

Holds, converts and localizes content for different regions.

Member Function Documentation

◆ GetText()

static string VerticesEngine.vxLocalizer.GetText ( string key)
static

Returns the localised text for the give key. If no key exists in the language pack, then it simply returns the key.

Parameters
key

◆ SetLocalization()

static bool VerticesEngine.vxLocalizer.SetLocalization ( string key)
static

Set's the current loca.

Parameters
key
Returns

The documentation for this class was generated from the following file: