toaruos/libc/libintl/libintl.c
2018-12-08 18:45:19 +09:00

30 lines
815 B
C

/* Stub. */
#include <libintl.h>
char * gettext (const char * msgid) {
return (char*)msgid;
}
char * dgettext (const char * domainname, const char * msgid) {
return (char*)msgid;
}
char * dcgettext (const char * domainname, const char * msgid, int category) {
return (char*)msgid;
}
char * ngettext (const char * msgid, const char * msgid_plural, unsigned long int n) {
if (n != 1) return (char*)msgid_plural;
return (char*)msgid;
}
char * dngettext (const char * domainname, const char * msgid, const char * msgid_plural, unsigned long int n) {
if (n != 1) return (char*)msgid_plural;
return (char*)msgid;
}
char * dcngettext (const char * domainname, const char * msgid, const char * msgid_plural, unsigned long int n, int category) {
if (n != 1) return (char*)msgid_plural;
return (char*)msgid;
}