mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add translation preview in editor
This commit is contained in:
parent
6c9765d87e
commit
8d93b6a54c
15 changed files with 407 additions and 56 deletions
|
|
@ -49,6 +49,9 @@ class TranslationDomain : public RefCounted {
|
|||
String suffix = "]";
|
||||
};
|
||||
|
||||
bool enabled = true;
|
||||
|
||||
String locale_override;
|
||||
HashSet<Ref<Translation>> translations;
|
||||
PseudolocalizationConfig pseudolocalization;
|
||||
|
||||
|
|
@ -79,6 +82,12 @@ public:
|
|||
StringName translate(const StringName &p_message, const StringName &p_context) const;
|
||||
StringName translate_plural(const StringName &p_message, const StringName &p_message_plural, int p_n, const StringName &p_context) const;
|
||||
|
||||
String get_locale_override() const;
|
||||
void set_locale_override(const String &p_locale);
|
||||
|
||||
bool is_enabled() const;
|
||||
void set_enabled(bool p_enabled);
|
||||
|
||||
bool is_pseudolocalization_enabled() const;
|
||||
void set_pseudolocalization_enabled(bool p_enabled);
|
||||
bool is_pseudolocalization_accents_enabled() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue