Translation

Inherits: Resource < Reference < Object

Inherited By: PHashTranslation

Category: Core

Brief Description

Language Translation.

Properties

String locale

Methods

void add_message ( String src_message, String xlated_message )
void erase_message ( String src_message )
String get_message ( String src_message ) const
int get_message_count ( ) const
PoolStringArray get_message_list ( ) const

Description

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

Property Descriptions

Setter set_locale(value)
Getter get_locale()

Method Descriptions

  • void add_message ( String src_message, String xlated_message )

Add a message for translation.

  • void erase_message ( String src_message )

Erase a message.

Return a message for translation.

  • int get_message_count ( ) const

Return all the messages (keys).