Skip to content

Commit

Permalink
MP Create Game: attempt to fix RFM type labels being untranslated (#2709
Browse files Browse the repository at this point in the history
)

Since these are defined in their MAKE_ENUM enum with N_, we need to manually un-not-translate
them here.

(cherry-picked from commit 2e50233)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent 2e76d2f commit c41d0ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/dialogs/multiplayer/mp_create_game.cpp
Expand Up @@ -269,7 +269,9 @@ void mp_create_game::pre_show(window& win)
//
std::vector<config> rfm_options;
for(const auto& type : rfm_types_) {
rfm_options.emplace_back(config {"label", mp_game_settings::RANDOM_FACTION_MODE::enum_to_string(type)});
rfm_options.emplace_back(config {"label",
translation::sgettext(mp_game_settings::RANDOM_FACTION_MODE::enum_to_string(type).c_str())
});
};

// Manually insert tooltips. Need to find a better way to do this
Expand Down

0 comments on commit c41d0ff

Please sign in to comment.