look for catalogs with LC_MESSAGES subdirectory and without it under Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1014,11 +1014,12 @@ wxString GetMsgCatalogSubdir(const wxChar *prefix, const wxChar *lang)
|
|||||||
searchPath << prefix << wxFILE_SEP_PATH << lang;
|
searchPath << prefix << wxFILE_SEP_PATH << lang;
|
||||||
|
|
||||||
// under Unix, the message catalogs are supposed to go into LC_MESSAGES
|
// under Unix, the message catalogs are supposed to go into LC_MESSAGES
|
||||||
// subdirectory but there is no such requirement/tradition on the other
|
// subdirectory so look there too
|
||||||
// systems
|
|
||||||
#ifdef __UNIX__
|
#ifdef __UNIX__
|
||||||
searchPath << wxFILE_SEP_PATH << wxT("LC_MESSAGES");
|
const wxString searchPathOrig(searchPath);
|
||||||
#endif
|
searchPath << wxFILE_SEP_PATH << wxT("LC_MESSAGES")
|
||||||
|
<< wxPATH_SEP << searchPathOrig;
|
||||||
|
#endif // __UNIX__
|
||||||
|
|
||||||
return searchPath;
|
return searchPath;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user