diff options
author | PucklaMotzer09 <jonaas.pucher000000@gmail.com> | 2022-01-04 18:52:32 +0100 |
---|---|---|
committer | PucklaMotzer09 <jonaas.pucher000000@gmail.com> | 2022-08-03 12:31:29 +0200 |
commit | b32b570d7a64dfdce02605557532754a8629e68a (patch) | |
tree | 542859f8b4fe89417c16e635597a2dba187e45df /editor/localization_editor.cpp | |
parent | 0f9086e131923e09e97a2ef2f0e9f39565be0c27 (diff) | |
download | redot-engine-b32b570d7a64dfdce02605557532754a8629e68a.tar.gz |
Show dependency warning when removing remaps and fallback if translation
remap does not exist
Diffstat (limited to 'editor/localization_editor.cpp')
-rw-r--r-- | editor/localization_editor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/localization_editor.cpp b/editor/localization_editor.cpp index 5d944956f6..e8fb80eb57 100644 --- a/editor/localization_editor.cpp +++ b/editor/localization_editor.cpp @@ -551,6 +551,12 @@ void LocalizationEditor::update_translations() { t2->set_editable(1, true); t2->set_metadata(1, path); t2->set_tooltip(1, locale); + + // Display that it has been removed if this is the case. + if (!FileAccess::exists(path)) { + t2->set_text(0, t2->get_text(0) + vformat(" (%s)", TTR("Removed"))); + t2->set_tooltip(0, vformat(TTR("%s cannot be found."), t2->get_tooltip(0))); + } } } } |