mirror of https://github.com/odrling/Aegisub
Add a workaround to wxString::Format using Replace, I've done this for the thesaurus as it should have the same problem unfortunatly I couldn't find a unicode dictionary to test it with, it works fine for windows though. This is probably a wx bug that we should file upstream closes #1108.
Originally committed to SVN as r4002.
This commit is contained in:
parent
00c095f3c3
commit
0454cfa43e
|
@ -809,7 +809,9 @@ void SubsTextEditCtrl::ShowPopupMenu(int activePos) {
|
|||
}
|
||||
|
||||
// Append "add word"
|
||||
menu.Append(EDIT_MENU_ADD_TO_DICT,wxString::Format(_("Add \"%s\" to dictionary"),currentWord.c_str()))->Enable(spellchecker->CanAddWord(currentWord));
|
||||
wxString add_to_dict_text(_("Add \"%s\" to dictionary"));
|
||||
add_to_dict_text.Replace(_T("%s"), currentWord);
|
||||
menu.Append(EDIT_MENU_ADD_TO_DICT,add_to_dict_text)->Enable(spellchecker->CanAddWord(currentWord));
|
||||
}
|
||||
|
||||
// Spelled right
|
||||
|
@ -906,7 +908,10 @@ void SubsTextEditCtrl::ShowPopupMenu(int activePos) {
|
|||
}
|
||||
|
||||
// Thesaurus menu
|
||||
menu.Append(-1,wxString::Format(_("Thesaurus suggestions for \"%s\""),currentWord.c_str()), thesMenu);
|
||||
wxString thes_suggestion_text(_("Thesaurus suggestions for \"%s\""));
|
||||
thes_suggestion_text.Replace(_T("%s"), currentWord);
|
||||
menu.Append(-1,thes_suggestion_text,thesMenu);
|
||||
|
||||
}
|
||||
|
||||
// No suggestions
|
||||
|
|
Loading…
Reference in New Issue