Fix GetMsgCatalogSubdirs() to do as documentation says.
Due to a typo, the prefix/lang path wasn't considered when opening a domain catalog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1764,13 +1764,13 @@ wxString GetMsgCatalogSubdirs(const wxString& prefix, const wxString& lang)
|
|||||||
// breaking apps after they are recompiled against the latest wx
|
// breaking apps after they are recompiled against the latest wx
|
||||||
// b) it makes it possible to package app's support files in the same
|
// b) it makes it possible to package app's support files in the same
|
||||||
// way on all target platforms
|
// way on all target platforms
|
||||||
const wxString pathPrefix = wxFileName(prefix, lang).GetFullPath();
|
const wxString prefixAndLang = wxFileName(prefix, lang).GetFullPath();
|
||||||
|
|
||||||
wxString searchPath;
|
wxString searchPath;
|
||||||
searchPath.reserve(4*pathPrefix.length());
|
searchPath.reserve(4*prefixAndLang.length());
|
||||||
searchPath << pathPrefix << wxFILE_SEP_PATH << "LC_MESSAGES" << wxPATH_SEP
|
searchPath << prefixAndLang << wxFILE_SEP_PATH << "LC_MESSAGES" << wxPATH_SEP
|
||||||
<< prefix << wxFILE_SEP_PATH << wxPATH_SEP
|
<< prefixAndLang << wxPATH_SEP
|
||||||
<< pathPrefix;
|
<< prefix;
|
||||||
|
|
||||||
return searchPath;
|
return searchPath;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user