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:
Vadim Zeitlin
2006-03-25 17:00:40 +00:00
parent cc4d990340
commit 3af9f2de59
9 changed files with 148 additions and 29 deletions

View File

@@ -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