Skip to content

Commit

Permalink
followup on kbd trans issues fix in 30b9272
Browse files Browse the repository at this point in the history
Use the table to to replace both the translated string and the English
string.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
  • Loading branch information
rkitover committed Jul 3, 2019
1 parent eaf1ad2 commit d585a61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/wx/widgets/keyedit.cpp
Expand Up @@ -138,12 +138,17 @@ wxString wxKeyTextCtrl::ToString(int mod, int key)
int keys_el_size = sizeof(keys_with_display_names)/sizeof(keys_with_display_names[0]);

for (int i = 0; i < keys_el_size; i++) {
wxString name_tr(_(keys_with_display_names[i].name));
wxString display_name_tr(_(keys_with_display_names[i].display_name));
name_tr.MakeUpper();
display_name_tr.MakeUpper();
wxString name(_(keys_with_display_names[i].name));
wxString display_name(_(keys_with_display_names[i].display_name));
name.MakeUpper();
display_name.MakeUpper();

s.Replace(display_name, name, true);
s.Replace(display_name_tr, name_tr, true);
s.Replace(display_name, name, true);
}

return s;
Expand Down

0 comments on commit d585a61

Please sign in to comment.