diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-06-28 17:00:18 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-06-28 17:01:35 -0300 |
commit | db3b05d2893dcaddeb3bcb10b845ff150eb50895 (patch) | |
tree | e19d761357300ba03360593e3cbdda01e87f215e /scene/resources/scene_format_text.cpp | |
parent | 9e54e1f34f7ee0b100b45fa2388f25096eb90670 (diff) |
Reworked translation system
-Label and Button reload translation on the fly
-Resources are loaded and reload depending on locale
Diffstat (limited to 'scene/resources/scene_format_text.cpp')
-rw-r--r-- | scene/resources/scene_format_text.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp index f62fa93e04..8ad2970005 100644 --- a/scene/resources/scene_format_text.cpp +++ b/scene/resources/scene_format_text.cpp @@ -332,6 +332,7 @@ Error ResourceInteractiveLoaderText::poll() { if (!ResourceCache::has(res_path)) { resource->set_path(res_path); } + resource->set_as_translation_remapped(translation_remapped); } return error; } @@ -606,6 +607,15 @@ int ResourceInteractiveLoaderText::get_stage_count() const { return resources_total; //+ext_resources; } +void ResourceInteractiveLoaderText::set_translation_remapped(bool p_remapped) { + + translation_remapped = p_remapped; +} + +ResourceInteractiveLoaderText::ResourceInteractiveLoaderText() { + translation_remapped = false; +} + ResourceInteractiveLoaderText::~ResourceInteractiveLoaderText() { memdelete(f); |