reduced windows sound buffer to Linux values
[neverball] / share / i18n.c
index 5c8f1c4..f82900f 100644 (file)
@@ -12,6 +12,20 @@ const char * gettextdbg(const char * c)
        return c;
 }
 
+const char * sgettext(const char *msgid)
+{
+    const char *msgval = gettext (msgid);
+    if (msgval == msgid) {
+       msgval = strrchr (msgid, '^');
+           if (msgval == NULL)
+                msgval = msgid;
+          else
+                msgval++;
+    }
+    return msgval;
+}
+
+
 /*---------------------------------------------------------------------------*/
 
 #define LANG_NUMBER 4