Switched from tinygettext/tags/tinygetext-supertux/ to tinygettext/trunk/
[supertux.git] / external / findlocale / example.c
1
2 #include <stdlib.h>
3 #include <stdio.h>
4
5 #include "findlocale.h"
6
7 int
8 main(int in_argc, char **in_argv) {
9   FL_Locale *locale;
10   FL_FindLocale(&locale, FL_MESSAGES);
11   printf("I think that your current settings are...\n"
12          "Language = '%s'\nCountry = '%s'\nVariant = '%s'\n",
13          locale->lang ? locale->lang : "(null)",
14          locale->country ? locale->country : "(null)",
15          locale->variant ? locale->variant : "(null)");
16   FL_FreeLocale(&locale);
17   return 0;
18 }
19