Strings Class
Layer which handles the loading of localised text.
Declared on: line 28 of Lua/strings.lua.
Method Index
- _loadPrivate(language, env, ...)
- getFont(language)
- getLanguageNames(language)
- init()
- load(language, no_restriction, no_inheritance)
- setupAdviserMessage(messages)
Member Index
- app
- chunk_to_font
- chunk_to_names
- language_chunks
- language_to_chunk
- languages
- languages_english
- priority
- table
- text
function Strings:Strings(app)
Parameters:
Name | Type | Description |
---|---|---|
app | ? | ? |
Declared on: line 31 of Lua/strings.lua.
function Strings:_loadPrivate(language, env, ...)
Parameters:
Name | Type | Description |
---|---|---|
language | ? | ? |
env | ? | ? |
... | ? | ? |
Declared on: line 295 of Lua/strings.lua.
function Strings:getFont(language)
Get the Font() declaration of a language, if there was one.
Parameters:
Name | Type | Description |
---|---|---|
language | ? | ? |
Declared on: line 284 of Lua/strings.lua.
function Strings:getLanguageNames(language)
Parameters:
Name | Type | Description |
---|---|---|
language | ? | ? |
Declared on: line 290 of Lua/strings.lua.
function Strings:init()
Declared on: line 39 of Lua/strings.lua.
function Strings:load(language, no_restriction, no_inheritance)
no_restriction disables errors on access to non-existant strings (for debug purposes)
no_inheritance disables inheritance except original_strings (for debug purposes)
Parameters:
Name | Type | Description |
---|---|---|
language | ? | ? |
no_restriction | ? | ? |
no_inheritance | ? | ? |
Declared on: line 163 of Lua/strings.lua.
function Strings:setupAdviserMessage(messages)
Parameters:
Name | Type | Description |
---|---|---|
messages | ? | ? |
Declared on: line 311 of Lua/strings.lua.