Skip to content

Commit

Permalink
Revert "Mark random leader label for translation."
Browse files Browse the repository at this point in the history
This reverts commit 942a1d3.

Resolves #4472.
  • Loading branch information
Wedge009 committed Oct 16, 2019
1 parent d77fc0a commit 52d117a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/game_initialization/flg_manager.cpp
Expand Up @@ -12,8 +12,6 @@
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 @@ -326,7 +324,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 @@ -137,7 +137,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 52d117a

Please sign in to comment.