Skip to content

Commit

Permalink
Merge pull request moneymanagerex#6436 from n-stein/fix(moneymanagere…
Browse files Browse the repository at this point in the history
  • Loading branch information
whalley committed Jan 5, 2024
2 parents 62a9e09 + fbfc923 commit 12538ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion po/common.po
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ msgid "Kannada (India)"
msgstr "kn-IN ಕನ್ನಡ (ಭಾರತ)"

msgid "Korean (Korea)"
msgstr "ko-KR 韓国語 (韓国)"
msgstr "ko-KR 한국어 (한국)"

msgid "Lithuanian (Lithuania)"
msgstr "lt-LT lietuvių (Lietuva)"
Expand Down
6 changes: 3 additions & 3 deletions src/optionsettingsgeneral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void OptionSettingsGeneral::Create()
wxStaticBoxSizer* langFormatStaticBoxSizer = new wxStaticBoxSizer(langStaticBox, wxHORIZONTAL);
generalPanelSizer->Add(langFormatStaticBoxSizer, wxSizerFlags(g_flagsExpand).Proportion(0));

wxButton* langButton = new wxButton(general_panel, ID_DIALOG_OPTIONS_BUTTON_LANG, langName);
wxButton* langButton = new wxButton(general_panel, ID_DIALOG_OPTIONS_BUTTON_LANG, wxGetTranslation(langName));
langButton->SetMinSize(wxSize(200, -1));
langFormatStaticBoxSizer->Add(langButton, g_flagsH);
mmToolTip(langButton, _("Change user interface language"));
Expand Down Expand Up @@ -376,9 +376,9 @@ void OptionSettingsGeneral::OnMouseLeftDown(wxCommandEvent& event)
{
const wxLanguageInfo* info = wxLocale::FindLanguageInfo(file);
if (info)
langs[info->Description] = std::make_pair(info->Language, info->CanonicalName);
langs[wxGetTranslation(info->Description)] = std::make_pair(info->Language, info->CanonicalName);
}
langs[wxLocale::GetLanguageName(wxLANGUAGE_ENGLISH_US)] = std::make_pair(wxLANGUAGE_ENGLISH_US, "en_US");
langs[wxGetTranslation(wxLocale::GetLanguageName(wxLANGUAGE_ENGLISH_US))] = std::make_pair(wxLANGUAGE_ENGLISH_US, "en_US");
for (auto const& lang : langs)
{
menuLang.AppendRadioItem(wxID_LAST + 1 + lang.second.first, lang.first, lang.second.second)
Expand Down

0 comments on commit 12538ed

Please sign in to comment.