Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

OptimizedTranslation

Hereda: Translation < Resource < RefCounted < Object

An optimized translation.

Descripción

Una traducción optimizada. Utiliza traducciones comprimidas en tiempo real, lo que resulta en diccionarios muy pequeños.

Esta clase no almacena las cadenas sin traducir con fines de optimización. Por lo tanto, Translation.get_message_list() siempre devuelve un array vacío, y Translation.get_message_count() siempre devuelve 0.

Métodos

bool

generate(from: Translation)


Descripciones de Métodos

bool generate(from: Translation) 🔗

Generates and sets an optimized translation from the given Translation resource. Returns true if successful.

Note: Messages in from should not use context or plural forms.

Note: This method is intended to be used in the editor. It does nothing when called from an exported project.