From df08bf5ab3a0eb24d53b2c002f473799c5622bbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 1 May 2007 21:19:02 +0000 Subject: [PATCH] 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 --- include/wx/intl.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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