summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/6 gettext/src/intlmain.c
blob: bd7af6f140d7aa2d539021b372998d815a3f5dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
}