diff --git a/include/wx/stdpaths.h b/include/wx/stdpaths.h index 684d508659..8f7c2d43bb 100644 --- a/include/wx/stdpaths.h +++ b/include/wx/stdpaths.h @@ -194,6 +194,7 @@ protected: #elif defined(__UNIX__) #include "wx/unix/stdpaths.h" #define wxHAS_NATIVE_STDPATHS + #define wxHAS_STDPATHS_INSTALL_PREFIX #endif #endif @@ -205,6 +206,7 @@ protected: // wxUSE_STDPATHS=0, so that our code can still use wxStandardPaths. #ifndef wxHAS_NATIVE_STDPATHS +#define wxHAS_STDPATHS_INSTALL_PREFIX class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase { public: diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 0cc98fbb95..96df133112 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -1803,7 +1803,7 @@ wxArrayString GetSearchPrefixes() if ( paths.Index(stdp) == wxNOT_FOUND ) paths.Add(stdp); - #if defined(__UNIX__) && !defined(__WXOSX_COCOA__) && !defined(__WXOSX_IPHONE__) && !defined(__DARWIN__) + #ifdef wxHAS_STDPATHS_INSTALL_PREFIX stdp = wxStandardPaths::Get().GetInstallPrefix() + "/share/locale"; if ( paths.Index(stdp) == wxNOT_FOUND ) paths.Add(stdp);