added wxStandardPaths::GetResourcesDir() and GetLocalizedResourcesDir()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -93,6 +93,13 @@ wxString wxStandardPaths::GetPluginsDir() const
|
||||
return wxString(); // TODO: this is wrong, it should return something
|
||||
}
|
||||
|
||||
wxString
|
||||
wxStandardPaths::GetLocalizedResourcesDir(const wxChar *lang,
|
||||
ResourceCat category) const
|
||||
{
|
||||
return wxStandardPathsBase::GetLocalizedResourcesDir(lang, category);
|
||||
}
|
||||
|
||||
#else // !__VMS
|
||||
|
||||
// ============================================================================
|
||||
@@ -161,6 +168,16 @@ wxString wxStandardPaths::GetPluginsDir() const
|
||||
return AppendAppName(GetInstallPrefix() + _T("/lib"));
|
||||
}
|
||||
|
||||
wxString
|
||||
wxStandardPaths::GetLocalizedResourcesDir(const wxChar *lang,
|
||||
ResourceCat category) const
|
||||
{
|
||||
if ( category != ResourceCat_Messages )
|
||||
return wxStandardPathsBase::GetLocalizedResourcesDir(lang, category);
|
||||
|
||||
return GetInstallPrefix() + _T("/share/locale/") + lang + _T("/LC_MESSAGES");
|
||||
}
|
||||
|
||||
#endif // __VMS/!__VMS
|
||||
|
||||
#endif // wxUSE_STDPATHS
|
||||
|
||||
Reference in New Issue
Block a user