X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e939abfd3810390119af6880c4cf5fe83e04514f..510649e4d5e8eaf8967ddd082f3eb5945471eb5e:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 5571f62634..020bd9be8b 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -28,6 +28,8 @@ #pragma hdrstop #endif +#if wxUSE_INTL + // standard headers #include #include @@ -515,7 +517,7 @@ const wxMB2WXbuf wxLocale::GetString(const wxChar *szOrigString, return szDomain; const char *pszTrans = NULL; - const wxWX2MBbuf szOrgString = wxConv_libc.cWX2MB(szOrigString); + const wxWX2MBbuf szOrgString = wxConvCurrent->cWX2MB(szOrigString); wxMsgCatalog *pMsgCat; if ( szDomain != NULL ) { @@ -562,7 +564,7 @@ const wxMB2WXbuf wxLocale::GetString(const wxChar *szOrigString, return (wxMB2WXbuf)(szOrigString); } else - return (wxMB2WXbuf)(wxConv_libc.cMB2WX(pszTrans)); + return (wxMB2WXbuf)(wxConvCurrent->cMB2WX(pszTrans)); } // find catalog by name in a linked list, return NULL if !found @@ -646,3 +648,6 @@ wxLocale *wxSetLocale(wxLocale *pLocale) g_pLocale = pLocale; return pOld; } + +#endif // wxUSE_INTL +