From 202b50261ebbb644662c4cca4b04c437dc97e420 Mon Sep 17 00:00:00 2001 From: Cedric Duval Date: Fri, 23 Sep 2005 21:34:39 +0000 Subject: [PATCH] Added gettext.c (needed for sgettext() support) --- gettext.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gettext.c diff --git a/gettext.c b/gettext.c new file mode 100644 index 0000000..949e843 --- /dev/null +++ b/gettext.c @@ -0,0 +1,19 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#ifdef ENABLE_NLS +#include +#include "gettext.h" + +char * +sgettext(const char *msgid) +{ + char *msgval = gettext(msgid); + + if(msgval == msgid) + msgval = strrchr(msgid, '|') + 1; + + return msgval; +} +#endif -- 2.39.2