Welcome to the Godot Reference Fork and the Godot Proposals Fork alternatives. Why?

Translation

0 0 vote
Article Rating

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.

Properties

Stringlocale"en"

Methods

voidadd_message ( String src_message, String xlated_message )
voiderase_message ( String src_message )
Stringget_message ( String src_message ) const
intget_message_count ( ) const
PoolStringArrayget_message_list ( ) const

Property Descriptions

Default"en"
Setterset_locale(value)
Getterget_locale()

The locale of the translation.

Method Descriptions

  • void add_message ( String src_message, String xlated_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.


Returns all the messages (keys).

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x