Skip to content

Commit

Permalink
Use the initials already translated through those defined in data/gui…
Browse files Browse the repository at this point in the history
…/window/preferences/02_hotkeys.cfg.

(cherry picked from commit 5ed64df)
  • Loading branch information
Wedge009 committed Oct 25, 2019
1 parent e353493 commit c4e6f0e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gui/dialogs/preferences_dialog.cpp
Expand Up @@ -813,9 +813,10 @@ listbox& preferences_dialog::setup_hotkey_list(window& window)
hotkey_list.clear();
visible_hotkeys_.clear();

std::string text_game_feature_on = "<span color='#0f0'>" + _("game_initial^G") + "</span>";
std::string text_editor_feature_on = "<span color='#0f0'>" + _("editor_initial^E") + "</span>";
std::string text_title_feature_on = "<span color='#0f0'>" + _("title_initial^T") + "</span>";
// These translated initials should match those used in data/gui/window/preferences/02_hotkeys.cfg
std::string text_game_feature_on = "<span color='#0f0'>" + _("game_hotkeys^G") + "</span>";
std::string text_editor_feature_on = "<span color='#0f0'>" + _("editor_hotkeys^E") + "</span>";
std::string text_title_feature_on = "<span color='#0f0'>" + _("titlescreen_hotkeys^T") + "</span>";

for(const auto& hotkey_item : hotkey::get_hotkey_commands()) {
if(hotkey_item.hidden) {
Expand Down

0 comments on commit c4e6f0e

Please sign in to comment.