class
StringTable
Used for string localization.
Stores strings and their translations in various languages.
Public
Constructors
StringTable
Methods
Contains
Checks does the string table contain the provided identifier.
- identifier
- Identifier to look for.
Returns: True if the identifier exists in the table, false otherwise.
GetNumStrings
Returns a total number of strings in the table.
GetIdentifiers
Returns all identifiers that the string table contains localized strings for.
SetString
Adds or modifies string translation for the specified language.
GetString
Returns a string translation for the specified language.
Returns the identifier itself if one doesn't exist.
RemoveString
Removes the string described by identifier, from all languages.
GetStringData
Gets a string data for the specified string identifier and currently active language.
- identifier
- Unique string identifier.
- insertIfNonExisting
- If true, a new string data for the specified identifier and language will be added to the table if data doesn't already exist. The data will use the identifier as the translation string.
Returns: The string data. Don't store reference to this data as it may get deleted.
GetStringData
Gets a string data for the specified string identifier and language.
- identifier
- Unique string identifier.
- language
- Language.
- insertIfNonExisting
- If true, a new string data for the specified identifier and language will be added to the table if data doesn't already exist. The data will use the identifier as the translation string.
Returns: The string data. Don't store reference to this data as it may get deleted.
staticCreate
Creates a new empty string table resource.