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
This commit is contained in:
parent
2765cbb5aa
commit
df08bf5ab3
@ -602,6 +602,17 @@ inline const wxString& wxGetTranslation(const wxString& str,
|
|||||||
return 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
|
#endif // wxUSE_INTL/!wxUSE_INTL
|
||||||
|
|
||||||
// define this one just in case it occurs somewhere (instead of preferred
|
// define this one just in case it occurs somewhere (instead of preferred
|
||||||
|
Loading…
Reference in New Issue
Block a user