X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=gettext.c;h=0dd9dbf7f9fc46b4ddcd22c9e912e8956691e595;hb=242907dcb6220a23b620f3314e96581b5b472a0d;hp=949e843b4caa7e6f7e17ea944ca2fad7e8605251;hpb=7c54e85b04f6d030ae47dd880d0391f6e35d1634;p=pkg%2Fabook.git diff --git a/gettext.c b/gettext.c index 949e843..0dd9dbf 100644 --- a/gettext.c +++ b/gettext.c @@ -2,18 +2,17 @@ # include "config.h" #endif -#ifdef ENABLE_NLS #include #include "gettext.h" -char * +const char * sgettext(const char *msgid) { - char *msgval = gettext(msgid); + const char *msgval = gettext(msgid); if(msgval == msgid) msgval = strrchr(msgid, '|') + 1; return msgval; } -#endif +