Skip to content

Commit

Permalink
ui: Fix untranslated text in Rename Unit
Browse files Browse the repository at this point in the history
Fixes #4569.
  • Loading branch information
irydacea committed Nov 16, 2019
1 parent 772a7bb commit e31b8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/menu_events.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit e31b8ab

Please sign in to comment.