findlocale

view example.c @ 13:f8f2fc0c53e1

Added tag findlocale-0.47 for changeset 8b04c9470176
author Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
date Thu Mar 04 17:37:42 2010 -0500 (6 months ago)
parents 2b7f3e3b693d
children
line source
2 #include <stdlib.h>
3 #include <stdio.h>
5 #include "findlocale.h"
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 }