wxPlatformInfo (patch 1532064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1583,11 +1583,13 @@ bool wxLocale::Init(const wxChar *szName,
|
||||
|
||||
// there may be a catalog with toolkit specific overrides, it is not
|
||||
// an error if this does not exist
|
||||
if ( bOk && wxTheApp )
|
||||
if ( bOk )
|
||||
{
|
||||
wxAppTraits *traits = wxTheApp->GetTraits();
|
||||
if (traits)
|
||||
AddCatalog(traits->GetToolkitInfo().name.BeforeFirst(wxT('/')).MakeLower());
|
||||
wxString port(wxPlatformInfo().GetPortIdName());
|
||||
if ( !port.empty() )
|
||||
{
|
||||
AddCatalog(port.BeforeFirst(wxT('/')).MakeLower());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user