Skip to content

Commit

Permalink
Mark random leader label for translation.
Browse files Browse the repository at this point in the history
Resolves #2954.

(cherry picked from commit 942a1d3)
  • Loading branch information
Wedge009 committed Oct 16, 2019
1 parent b56b1b3 commit 8fd6562
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/game_initialization/flg_manager.cpp
Expand Up @@ -12,6 +12,8 @@
See the COPYING file for more details.
*/

#define GETTEXT_DOMAIN "wesnoth-lib"

#include "game_initialization/flg_manager.hpp"

#include "config.hpp"
Expand Down Expand Up @@ -324,7 +326,7 @@ void flg_manager::update_available_leaders()
available_leaders_.erase(pos, available_leaders_.end());

if(available_leaders_.size() > 1) {
available_leaders_.insert(available_leaders_.begin() + random_pos, "random");
available_leaders_.insert(available_leaders_.begin() + random_pos, _("Random"));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/multiplayer/faction_select.cpp
Expand Up @@ -154,7 +154,7 @@ void faction_select::on_faction_select(window& window)
if(unit) {
const std::string icon = formatter() << unit->image() << "~RC(" << unit->flag_rgb() << ">" << tc_color_ << ")";
leaders.emplace_back("label", unit->type_name(), "icon", icon);
} else if(leader == "random") {
} else if(leader == _("Random")) {
leaders.emplace_back("label", _("Random"), "icon", ng::random_enemy_picture);
} else if(leader == "null") {
leaders.emplace_back("label", font::unicode_em_dash);
Expand Down

0 comments on commit 8fd6562

Please sign in to comment.