Skip to main content

EditorSproutyDialogsTranslationsContainer

Inherits: VBoxContainer

Description

Component to handle translations text boxes. It allows to set the dialog text boxes for each locale, load the dialog translations text and get the dialog translations text on a dict.

Methods

Return TypeMethod
Dictionaryget_translations_text()
voidset_translation_boxes(locales: Array)
voidload_translations_text(dialogs: Dictionary)

Signals

signal modified(modified: bool)

Emitted when the text in any of the text boxes changes.


signal open_text_editor(text_box: TextEdit)

Emitted when pressing the expand button of a text box to open the text editor.


signal update_text_editor(text_box: TextEdit)

Emitted when change the focus to another text box while the text editor is open.


Method Descriptions

func get_translations_text() -> Dictionary

Return the dialog translations text on a dictionary.


func set_translation_boxes(locales: Array) -> void

Set input text boxes for each locale.


func load_translations_text(dialogs: Dictionary) -> void

Load dialog translations text.