X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..329b53d8ff1fdd322af046f9b93f3a9b7f0befa1:/include/wx/intl.h diff --git a/include/wx/intl.h b/include/wx/intl.h index d0bea59c9f..b0089447ac 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -109,6 +109,17 @@ private: wxMsgCatalog *m_pMsgCat; // pointer to linked list of catalogs }; +// ---------------------------------------------------------------------------- +// inline functions +// ---------------------------------------------------------------------------- + +// get the translation of the string in the current locale +inline const char *wxGetTranslation(const char *sz) +{ + wxLocale *pLoc = wxGetLocale(); + return pLoc == NULL ? sz : pLoc->GetString(sz); +} + // ============================================================================ // optional features // ============================================================================ @@ -144,16 +155,5 @@ private: #define TRANSSTRING_DEFINED -// ---------------------------------------------------------------------------- -// inline functions -// ---------------------------------------------------------------------------- - -// get the translation of the string in the current locale -inline const char *wxGetTranslation(const char *sz) -{ - wxLocale *pLoc = wxGetLocale(); - return pLoc == NULL ? sz : pLoc->GetString(sz); -} - #endif // __INTLH__