From cfad3750c3ecc821ffae8b9b3de852551270846d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Sun, 31 Jan 1999 19:38:40 +0000 Subject: [PATCH] Added (untested) support for sub-locales. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/helphtml.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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)) -- 2.45.2