don't look for the catalogs in the Unix standard paths under Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -307,15 +307,19 @@ static wxString GetFullSearchPath(const wxChar *lang)
|
|||||||
wxGetWorkingDirectory( cwd , sizeof( cwd ) ) ;
|
wxGetWorkingDirectory( cwd , sizeof( cwd ) ) ;
|
||||||
searchPath << GetAllMsgCatalogSubdirs(cwd, lang);
|
searchPath << GetAllMsgCatalogSubdirs(cwd, lang);
|
||||||
// generic search paths could be somewhere in the system folder preferences
|
// generic search paths could be somewhere in the system folder preferences
|
||||||
#else
|
#else // !Mac
|
||||||
searchPath << GetAllMsgCatalogSubdirs(wxT("."), lang);
|
searchPath << GetAllMsgCatalogSubdirs(wxT("."), lang);
|
||||||
|
|
||||||
|
#ifdef __UNIX__
|
||||||
// and finally add some standard ones
|
// and finally add some standard ones
|
||||||
searchPath
|
searchPath
|
||||||
<< GetAllMsgCatalogSubdirs(wxT("/usr/share/locale"), lang)
|
<< GetAllMsgCatalogSubdirs(wxT("/usr/share/locale"), lang)
|
||||||
<< GetAllMsgCatalogSubdirs(wxT("/usr/lib/locale"), lang)
|
<< GetAllMsgCatalogSubdirs(wxT("/usr/lib/locale"), lang)
|
||||||
<< GetAllMsgCatalogSubdirs(wxT("/usr/local/share/locale"), lang);
|
<< GetAllMsgCatalogSubdirs(wxT("/usr/local/share/locale"), lang);
|
||||||
#endif
|
#endif // __UNIX__
|
||||||
|
|
||||||
|
#endif // platform
|
||||||
|
|
||||||
return searchPath;
|
return searchPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1425,12 +1429,14 @@ const wxChar *wxLocale::GetString(const wxChar *szOrigString,
|
|||||||
|
|
||||||
if ( szDomain != NULL )
|
if ( szDomain != NULL )
|
||||||
{
|
{
|
||||||
wxLogDebug(_T("string '%s' not found in domain '%s' for locale '%s'."),
|
wxLogTrace(_T("i18n"),
|
||||||
szOrigString, szDomain, m_strLocale.c_str());
|
_T("string '%s' not found in domain '%s' for locale '%s'."),
|
||||||
|
szOrigString, szDomain, m_strLocale.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxLogDebug(_T("string '%s' not found in locale '%s'."),
|
wxLogTrace(_T("i18n"),
|
||||||
|
_T("string '%s' not found in locale '%s'."),
|
||||||
szOrigString, m_strLocale.c_str());
|
szOrigString, m_strLocale.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user