class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource Translation
A language translation that maps a collection of strings to their individual translations.

Translations are resources that can be loaded and unloaded on demand. They map a collection of strings to their individual translations, and they also provide convenience methods for pluralization.

String locale<>():String

The locale of the translation.

StringName _get_message<>( StringName src_message=, src_message:StringName=, StringName context=, context:StringName=, ):StringName

Virtual method to override get_message().

StringName _get_plural_message<>( StringName src_message=, src_message:StringName=, StringName src_plural_message=, src_plural_message:StringName=, int n=, n:int=, StringName context=, context:StringName=, ):StringName

Virtual method to override get_plural_message().

void add_message<>( StringName src_message=, src_message:StringName=, StringName xlated_message=, xlated_message:StringName=, StringName context=&"", context:StringName=&"", ):void

Adds a message if nonexistent, followed by its translation.

An additional context could be used to specify the translation context or differentiate polysemic words.

void add_plural_message<>( StringName src_message=, src_message:StringName=, PackedStringArray xlated_messages=, xlated_messages:PackedStringArray=, StringName context=&"", context:StringName=&"", ):void

Adds a message involving plural translation if nonexistent, followed by its translation.

An additional context could be used to specify the translation context or differentiate polysemic words.

void erase_message<>( StringName src_message=, src_message:StringName=, StringName context=&"", context:StringName=&"", ):void

Erases a message.

StringName get_message<>( StringName src_message=, src_message:StringName=, StringName context=&"", context:StringName=&"", ):StringName

Returns a message's translation.

int get_message_count<>():int

Returns the number of existing messages.

PackedStringArray get_message_list<>():PackedStringArray

Returns all the messages (keys).

StringName get_plural_message<>( StringName src_message=, src_message:StringName=, StringName src_plural_message=, src_plural_message:StringName=, int n=, n:int=, StringName context=&"", context:StringName=&"", ):StringName

Returns a message's translation involving plurals.

The number n is the number or quantity of the plural object. It will be used to guide the translation system to fetch the correct plural form for the selected language.

PackedStringArray get_translated_message_list<>():PackedStringArray

Returns all the messages (translated text).




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...