Skip to content

Commit

Permalink
Workaround wx-3.2 issues with translation lookup
Browse files Browse the repository at this point in the history
Special-case some problematic cases until wx-3.2.x includes the fixes
from https:__github.com/wxWidgets/wxWidgets/pull_24297
  • Loading branch information
vslavik committed Feb 15, 2024
1 parent 634a225 commit d3af5f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gexecute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ std::pair<long, wxArrayString> DoExecuteGettextImpl(const wxString& cmdline_)
env.env["OUTPUT_CHARSET"] = "UTF-8";

wxString lang = wxTranslations::Get()->GetBestTranslation("gettext-tools");
if ( lang.starts_with("en@") )
lang = "en"; // don't want things like en@blockquot
if ( !lang.empty() )
env.env["LANG"] = lang;
#endif // __WXOSX__ || __WXMSW__
Expand Down

0 comments on commit d3af5f1

Please sign in to comment.