projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2765cbb
)
added inline plural form of wxGetTranslation to wxUSE_INTL=0 case for use with non...
author
Václav Slavík
<vslavik@fastmail.fm>
Tue, 1 May 2007 21:19:02 +0000
(21:19 +0000)
committer
Václav Slavík
<vslavik@fastmail.fm>
Tue, 1 May 2007 21:19:02 +0000
(21:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45740
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
include/wx/intl.h
patch
|
blob
|
blame
|
history
diff --git
a/include/wx/intl.h
b/include/wx/intl.h
index 615634da7aba29ab3a380a7282539db67c639ef3..21f326d23e4fd9db8b8449348b91638f1bdc4188 100644
(file)
--- 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