Show dependency warning when removing remaps and fallback if translation

remap does not exist
This commit is contained in:
PucklaMotzer09
2022-01-04 18:52:32 +01:00
parent 0f9086e131
commit b32b570d7a
5 changed files with 54 additions and 1 deletions

View File

@ -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)));
}
}
}
}