ui: Fix untranslated text in Rename Unit

Fixes #4569.
This commit is contained in:
Iris Morelle 2019-11-16 15:19:07 -03:00
parent 772a7bbea2
commit e31b8abe73
2 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,7 @@
### Language and i18n
* Updated translations: Chinese (Simplified), Czech, French, Italian, Korean,
Portuguese (Brazil), Russian
* Fix Rename Unit dialog having untranslated text (issue #4569).
### Lua API
* wesnoth.deprecate_api was fixed to correctly wrap tables with metatables (issue #4079).
### Music and sound effects

View file

@ -657,8 +657,8 @@ void menu_handler::rename_unit()
}
std::string name = un->name();
const std::string title(N_("Rename Unit"));
const std::string label(N_("Name:"));
const std::string title(_("Rename Unit"));
const std::string label(_("Name:"));
if(gui2::dialogs::edit_text::execute(title, label, name)) {
resources::recorder->add_rename(name, un->get_location());