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 597ed24 commit 393d412
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 @@ -15,6 +15,7 @@
### Language and i18n
* Updated translations: Chinese (Traditional), French, Portuguese (Brazil),
Russian
* Fix Rename Unit dialog having untranslated text (issue #4569).
### Terrains
* Add Stone Walls variation Catacombs (Xot) including some overlays
* Fixes and touchups to mushroom terrains Tb and Tf
Expand Down
4 changes: 2 additions & 2 deletions src/menu_events.cpp
Expand Up @@ -661,8 +661,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 393d412

Please sign in to comment.