X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b137e49318613a59bea5fca42734ec1b0aaf6f7a..c105dda0810d927d8531e4949ada0b407a1cbebd:/include/wx/intl.h diff --git a/include/wx/intl.h b/include/wx/intl.h index e7dcff8a91..5d16e3a3e9 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -466,6 +466,9 @@ public: bool AddCatalog(const wxChar *szDomain, wxLanguage msgIdLanguage, const wxChar *msgIdCharset); + // check if the given locale is provided by OS and C run time + static bool IsAvailable(int lang); + // check if the given catalog is loaded bool IsLoaded(const wxChar *szDomain) const; @@ -589,9 +592,11 @@ inline const wxChar *wxGetTranslation(const wxChar *sz1, const wxChar *sz2, #define wxTRANSLATE(str) _T(str) -// Note: use of 'inline' here can cause this symbol not to be found when compiled with gcc -//const wxChar *wxGetTranslation(const wxChar *sz); -#define wxGetTranslation(sz) (sz) +inline const wxChar *wxGetTranslation(const wxChar *sz, + const wxChar *WXUNUSED(domain) = NULL) +{ + return sz; +} #endif // wxUSE_INTL/!wxUSE_INTL