X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06c545a70377ea25f2263b2d2fa432db67d8b619..559fe022dbd5d4d961402b5c973e5225fa91f17f:/include/wx/intl.h diff --git a/include/wx/intl.h b/include/wx/intl.h index e18303f019..7a3a2a92b2 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -19,6 +19,8 @@ #include "wx/defs.h" #include "wx/string.h" +#if wxUSE_INTL + // ============================================================================ // global decls // ============================================================================ @@ -30,7 +32,7 @@ // gettext() style macro (notice that xgettext should be invoked with "-k_" // option to extract the strings inside _() from the sources) #ifndef WXINTL_NO_GETTEXT_MACRO - #define _(str) wxGetTranslation(_T(str)) + #define _(str) wxGetTranslation(wxT(str)) #endif // ---------------------------------------------------------------------------- @@ -137,5 +139,15 @@ inline const wxMB2WXbuf wxGetTranslation(const wxChar *sz) return (const wxMB2WXbuf)sz; } +#else // !wxUSE_INTL + +#ifndef WXINTL_NO_GETTEXT_MACRO + #define _(str) (str) +#endif + +inline const wxChar *wxGetTranslation(const wxChar *sz) { return sz; } + +#endif // wxUSE_INTL/!wxUSE_INTL + #endif // _WX_INTLH__