Translation
Inherits: Resource < Reference < Object
Inherited By: PHashTranslation
Language Translation.
Description
Translations are resources that can be loaded and unloaded on demand. They map a string to another string.
Tutorials
Properties
|
Methods
_get_message ( String src_message ) virtual | |
void | add_message ( String src_message, String xlated_message ) |
void | erase_message ( String src_message ) |
get_message ( String src_message ) const | |
get_message_count ( ) const | |
get_message_list ( ) const |
Property Descriptions
- String locale
Default |
|
Setter | set_locale(value) |
Getter | get_locale() |
The locale of the translation.
Method Descriptions
Virtual method to override get_message.
Adds a message if nonexistent, followed by its translation.
- void erase_message ( String src_message )
Erases a message.
Returns a message’s translation.
- int get_message_count ( ) const
Returns the number of existing messages.
- PoolStringArray get_message_list ( ) const
Returns all the messages (keys).