Added support for locales like de_AT.iso-8859-1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user