take wxString, not wxChar* in wxStandardPaths::GetLocalizedResourcesDir
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -154,7 +154,7 @@ under Unix where it returns \texttt{/etc/\textit{appname}}.
|
|||||||
|
|
||||||
\membersection{wxStandardPaths::GetLocalizedResourcesDir}\label{wxstandardpathsgetlocalizedresourcesdir}
|
\membersection{wxStandardPaths::GetLocalizedResourcesDir}\label{wxstandardpathsgetlocalizedresourcesdir}
|
||||||
|
|
||||||
\constfunc{wxString}{GetLocalizedResourcesDir}{\param{const wxChar*}{ lang}, \param{ResourceCat}{ category = ResourceCat\_None}}
|
\constfunc{wxString}{GetLocalizedResourcesDir}{\param{const wxString\&}{ lang}, \param{ResourceCat}{ category = ResourceCat\_None}}
|
||||||
|
|
||||||
Return the localized resources directory containing the resource files of the
|
Return the localized resources directory containing the resource files of the
|
||||||
specified category for the given language.
|
specified category for the given language.
|
||||||
|
@@ -42,7 +42,7 @@ public:
|
|||||||
virtual wxString GetPluginsDir() const;
|
virtual wxString GetPluginsDir() const;
|
||||||
virtual wxString GetResourcesDir() const;
|
virtual wxString GetResourcesDir() const;
|
||||||
virtual wxString
|
virtual wxString
|
||||||
GetLocalizedResourcesDir(const wxChar *lang,
|
GetLocalizedResourcesDir(const wxString& lang,
|
||||||
ResourceCat category = ResourceCat_None) const;
|
ResourceCat category = ResourceCat_None) const;
|
||||||
virtual wxString GetDocumentsDir() const;
|
virtual wxString GetDocumentsDir() const;
|
||||||
|
|
||||||
|
@@ -109,7 +109,7 @@ public:
|
|||||||
// different under Unix for message catalog category (namely the standard
|
// different under Unix for message catalog category (namely the standard
|
||||||
// prefix/share/locale/lang/LC_MESSAGES)
|
// prefix/share/locale/lang/LC_MESSAGES)
|
||||||
virtual wxString
|
virtual wxString
|
||||||
GetLocalizedResourcesDir(const wxChar *lang,
|
GetLocalizedResourcesDir(const wxString& lang,
|
||||||
ResourceCat WXUNUSED(category)
|
ResourceCat WXUNUSED(category)
|
||||||
= ResourceCat_None) const
|
= ResourceCat_None) const
|
||||||
{
|
{
|
||||||
|
@@ -45,7 +45,7 @@ public:
|
|||||||
virtual wxString GetLocalDataDir() const;
|
virtual wxString GetLocalDataDir() const;
|
||||||
virtual wxString GetUserDataDir() const;
|
virtual wxString GetUserDataDir() const;
|
||||||
virtual wxString GetPluginsDir() const;
|
virtual wxString GetPluginsDir() const;
|
||||||
virtual wxString GetLocalizedResourcesDir(const wxChar *lang,
|
virtual wxString GetLocalizedResourcesDir(const wxString& lang,
|
||||||
ResourceCat category) const;
|
ResourceCat category) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -201,7 +201,7 @@ wxString wxStandardPathsCF::GetResourcesDir() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxString
|
wxString
|
||||||
wxStandardPathsCF::GetLocalizedResourcesDir(const wxChar *lang,
|
wxStandardPathsCF::GetLocalizedResourcesDir(const wxString& lang,
|
||||||
ResourceCat category) const
|
ResourceCat category) const
|
||||||
{
|
{
|
||||||
return wxStandardPathsBase::
|
return wxStandardPathsBase::
|
||||||
|
@@ -94,7 +94,7 @@ wxString wxStandardPaths::GetPluginsDir() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxString
|
wxString
|
||||||
wxStandardPaths::GetLocalizedResourcesDir(const wxChar *lang,
|
wxStandardPaths::GetLocalizedResourcesDir(const wxString& lang,
|
||||||
ResourceCat category) const
|
ResourceCat category) const
|
||||||
{
|
{
|
||||||
return wxStandardPathsBase::GetLocalizedResourcesDir(lang, category);
|
return wxStandardPathsBase::GetLocalizedResourcesDir(lang, category);
|
||||||
@@ -206,7 +206,7 @@ wxString wxStandardPaths::GetPluginsDir() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxString
|
wxString
|
||||||
wxStandardPaths::GetLocalizedResourcesDir(const wxChar *lang,
|
wxStandardPaths::GetLocalizedResourcesDir(const wxString& lang,
|
||||||
ResourceCat category) const
|
ResourceCat category) const
|
||||||
{
|
{
|
||||||
if ( category != ResourceCat_Messages )
|
if ( category != ResourceCat_Messages )
|
||||||
|
Reference in New Issue
Block a user