projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60bd878
)
Introduce wgettext
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Sun, 31 Jul 2011 07:03:19 +0000
(09:03 +0200)
committer
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Tue, 2 Aug 2011 08:11:40 +0000
(10:11 +0200)
All usages of gettext() are converted to wchars, so let's factor this
into a single inline.
src/gettext.h
patch
|
blob
|
history
diff --git
a/src/gettext.h
b/src/gettext.h
index ff3a0f8cb7a5c52e8a7fe3565f5a0f6d6bd10059..f2cb8e471953b4e64634f16c89a90d3b5a1ab860 100644
(file)
--- a/
src/gettext.h
+++ b/
src/gettext.h
@@
-30,6
+30,11
@@
inline wchar_t* chartowchar_t(const char *str)
return nstr;
}
+inline wchar_t* wgettext(const char *str)
+{
+ return chartowchar_t(gettext(str));
+}
+
inline void changeCtype(const char *l)
{
char *ret = NULL;