Debian Codegraph @

test cases/frameworks/6 gettext/src/intlmain.c

raw
1 #include<libintl.h>
2 #include<locale.h>
3 #include<stdio.h>
4
5 #define _(String) gettext (String)
6
7 #define PACKAGE "intltest"
8 // WRONG, but enough for this test.
9 #define LOCALEDIR "/usr/share/locale"
10
11 int main(int argc, char **argv) {
12 setlocale(LC_ALL, "");
13 bindtextdomain(PACKAGE, LOCALEDIR);
14 textdomain(PACKAGE);
15 printf("%s\n", _("International greeting."));
16 return 0;
17 }