gui2/unit_recall: Fix i18n issues

The original commit adding the Rename Unit button marked two strings in
the C++ source for extraction without making them translatable.

Additionally, a string in the markup violates the string freeze. This
can be papered over by reusing the existing "Rename Unit" string. For
1.14.5 we'll use just "Rename" again.
This commit is contained in:
Iris Morelle 2018-07-22 07:23:37 -04:00
parent d911268a78
commit 306ebb9a87
2 changed files with 3 additions and 3 deletions

View file

@ -390,7 +390,7 @@
[button]
id = "rename"
definition = "default"
label = _ "Rename"
label = _ "Rename Unit"
[/button]
[/column]

View file

@ -255,8 +255,8 @@ void unit_recall::rename_unit(window& window)
unit& selected_unit = const_cast<unit&>(*recall_list_[index].get());
std::string name = selected_unit.name();
const std::string dialog_title(N_("Rename Unit"));
const std::string dialog_label(N_("Name:"));
const std::string dialog_title(_("Rename Unit"));
const std::string dialog_label(_("Name:"));
if(gui2::dialogs::edit_text::execute(dialog_title, dialog_label, name)) {
selected_unit.rename(name);