]> git.saurik.com Git - wxWidgets.git/commitdiff
Added (untested) support for sub-locales.
authorKarsten Ballüder <ballueder@usa.net>
Sun, 31 Jan 1999 19:38:40 +0000 (19:38 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Sun, 31 Jan 1999 19:38:40 +0000 (19:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/helphtml.cpp

index 228b436b11c35fcb4a3842ff6b4bf5cd7b630602..13ea6eeecf919a5f9acbd3c950789b16eb46ddf7 100644 (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))