X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2a6f23364aefcd5095dc6558e3ab8144363fa96..9f3362c440ef4c780d9a4bc8089de60a21d108bd:/src/generic/helphtml.cpp?ds=sidebyside diff --git a/src/generic/helphtml.cpp b/src/generic/helphtml.cpp index 228b436b11..13ea6eeecf 100644 --- a/src/generic/helphtml.cpp +++ b/src/generic/helphtml.cpp @@ -115,6 +115,15 @@ wxHTMLHelpControllerBase::LoadFile(const wxString& ifile) newfile << WXEXTHELP_SEPARATOR << wxGetLocale()->GetName(); if(wxDirExists(newfile)) file = newfile; + else + { + newfile = WXEXTHELP_SEPARATOR; + const char *cptr = wxGetLocale()->GetName().c_str(); + while(*cptr && *cptr != '_') + newfile << *(cptr++); + if(wxDirExists(newfile)) + file = newfile; + } } if(! wxDirExists(file))