Translation

Language Translation.

Translations are resources that can be loaded and unloaded on demand. They map a string to another string.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_getMessages
PoolStringArray _getMessages()
_setMessages
void _setMessages(PoolStringArray arg0)
addMessage
void addMessage(String src_message, String xlated_message)

Adds a message if nonexistent, followed by its translation.

eraseMessage
void eraseMessage(String src_message)

Erases a message.

getLocale
String getLocale()
getMessage
String getMessage(String src_message)

Returns a message's translation.

getMessageCount
long getMessageCount()

Returns the number of existing messages.

getMessageList
PoolStringArray getMessageList()

Returns all the messages (keys).

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(Translation other)
opEquals
bool opEquals(typeof(null) n)
setLocale
void setLocale(String locale)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

locale
String locale [@property getter]
String locale [@property setter]

The locale of the translation.

messages
PoolStringArray messages [@property getter]
PoolStringArray messages [@property setter]

Static functions

_new
Translation _new()

Construct a new instance of Translation. Note: use memnew!Translation instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta