Added (untested) support for sub-locales.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-01-31 19:38:40 +00:00
parent 8870c26ecb
commit cfad3750c3

View File

@ -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))