Skip to content
Permalink
Browse files

followup on kbd trans issues fix in 30b9272

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 d585a61049dcd3506a57cfdc7d301fcfe01a3497
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/wx/widgets/keyedit.cpp
@@ -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;

0 comments on commit d585a61

Please sign in to comment.
You can’t perform that action at this time.