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

Eredita: Translation < Resource < RefCounted < Object

An optimized translation.

Descrizione

An optimized translation. Uses real-time compressed translations, which results in very small dictionaries.

This class does not store the untranslated strings for optimization purposes. Therefore, Translation.get_message_list() always returns an empty array, and Translation.get_message_count() always returns 0.

Metodi

bool

generate(from: Translation)


Descrizioni dei metodi

bool generate(from: Translation) 🔗

Genera e imposta una traduzione ottimizzata dalla risorsa Translation specificata. Restituisce true in caso di successo.

Nota: I messaggi in from non devono utilizzare i contesti o le forme plurali.

Nota: Questo metodo è destinato all'uso nell'editor. Non fa nulla quando viene chiamato da un progetto esportato.