From: Václav Slavík Date: Tue, 1 May 2007 21:19:02 +0000 (+0000) Subject: added inline plural form of wxGetTranslation to wxUSE_INTL=0 case for use with non... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/df08bf5ab3a0eb24d53b2c002f473799c5622bbb added inline plural form of wxGetTranslation to wxUSE_INTL=0 case for use with non-default domain too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/intl.h b/include/wx/intl.h index 615634da7a..21f326d23e 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -602,6 +602,17 @@ inline const wxString& wxGetTranslation(const wxString& str, return str; } +inline const wxString& wxGetTranslation(const wxString& str1, + const wxString& str2, + size_t n, + const wxString& WXUNUSED(domain) = wxEmptyString) +{ + if ( n == 1 ) + return str1; + else + return str2; +} + #endif // wxUSE_INTL/!wxUSE_INTL // define this one just in case it occurs somewhere (instead of preferred