Fix error names not being localized in editor resource saving error dialog

This commit is contained in:
Hugo Locurcio
2026-05-05 18:06:25 +02:00
parent 1f012286cf
commit 425724aa86
+1 -1
View File
@@ -1750,7 +1750,7 @@ void EditorNode::save_resource_in_path(const Ref<Resource> &p_resource, const St
if (ResourceLoader::is_imported(p_resource->get_path())) {
show_accept(vformat(TTR("Cannot save resource at path \"%s\", as it is imported.\nImported resources can't be saved. Instead, modify the source file or change options in the Import dock."), path), TTR("OK"));
} else {
show_accept(vformat(TTR("Error saving resource at path \"%s\": %s."), path, error_names[err]), TTR("OK"));
show_accept(vformat(TTR("Error saving resource at path \"%s\": %s."), path, TTR(error_names[err])), TTR("OK"));
}
saving_resources_in_path.erase(p_resource);