24 N_(
"[DO_NOT_TRANSLATE_THIS_MARKER]"),
25 "[DO_NOT_TRANSLATE_THIS_MARKER_de]" },
27 N_(
"[DO_NOT_TRANSLATE_THIS_MARKER]"),
28 N_(
"[DO_NOT_TRANSLATE_THIS_MARKER]") },
31int main(
int argc,
char *argv[])
37 puts(
"Syntax: test-nls <localedir>\n");
44 const char *newloc = setlocale(LC_ALL, NULL);
45 printf(
"Default locale: %s\n", newloc);
56 printf(
"setlocale(\"%s\")\n",
locale);
57 const char *actual_locale = setlocale(LC_MESSAGES,
locale);
58 if (actual_locale == NULL) {
59 fprintf(stderr,
"Error: Cannot set locale to %s.\n",
locale);
62 printf(
"new locale: %s\n", actual_locale);
67 printf(
"message basedir: %s\n", basedir);
71 const char *domain =
textdomain(GETTEXT_PACKAGE);
72 printf(
"message domain: %s\n", domain);
77 printf(
"message codeset: %s\n", codeset);
80 puts(
"before translation");
82 puts(
"after translation");
84 if (strcmp(
expected, translation) != 0) {
91 "Error: translation != expected\n",
#define textdomain(String)
#define bind_textdomain_codeset(Domain, Codeset)
#define bindtextdomain(Domain, Directory)
static testcase testcases[]