Reworked translation system
-Label and Button reload translation on the fly -Resources are loaded and reload depending on locale
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user