blob: bd7af6f140d7aa2d539021b372998d815a3f5dab [file] [log] [blame]
#include<libintl.h>
#include<locale.h>
#include<stdio.h>
#define _(String) gettext (String)
#define PACKAGE "intltest"
// WRONG, but enough for this test.
#define LOCALEDIR "/usr/share/locale"
int main(int argc, char **argv) {
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
printf("%s\n", _("International greeting."));
return 0;
}