]> git.saurik.com Git - wxWidgets.git/commitdiff
Added support for locales like de_AT.iso-8859-1
authorKarsten Ballüder <ballueder@usa.net>
Thu, 19 Aug 1999 14:10:22 +0000 (14:10 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Thu, 19 Aug 1999 14:10:22 +0000 (14:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index a63fa77a056fb6fd13032f145947f17a4b0cbd39..ec2362d7e877c505fcdc61169c20f43e7b401d44 100644 (file)
@@ -300,9 +300,18 @@ static wxString GetFullSearchPath(const wxChar *lang)
 }
 
 // open disk file and read in it's contents
-bool wxMsgCatalog::Load(const wxChar *szDirPrefix, const wxChar *szName)
+bool wxMsgCatalog::Load(const wxChar *szDirPrefix, const wxChar *szName0)
 {
+   /* We need to handle locales like  de_AT.iso-8859-1
+      For this we first chop off the .CHARSET specifier and ignore it.
+      FIXME: UNICODE SUPPORT: must use CHARSET specifier!
+   */
+   wxString szName = szName0;
+   if(szName.Find('.') != -1) // contains a dot
+      szName = szName.Left(szName.Find('.'));
+   
   // FIXME VZ: I forgot the exact meaning of LC_PATH - anyone to remind me?
+  // KB: search path where to find the mo files, probably : delimited
 #if 0
   const wxChar *pszLcPath = wxGetenv("LC_PATH");
   if ( pszLcPath != NULL )