findlocale

view example.c @ 13:f8f2fc0c53e1

Added tag findlocale-0.47 for changeset 8b04c9470176
author Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
date Thu, 04 Mar 2010 17:37:42 -0500
parents 2b7f3e3b693d
children
line source
1 #include <stdlib.h>
2 #include <stdio.h>
4 #include "findlocale.h"
6 int
7 main(int in_argc, char **in_argv) {
8 FL_Locale *locale;
9 FL_FindLocale(&locale, FL_MESSAGES);
10 printf("I think that your current settings are...\n"
11 "Language = '%s'\nCountry = '%s'\nVariant = '%s'\n",
12 locale->lang ? locale->lang : "(null)",
13 locale->country ? locale->country : "(null)",
14 locale->variant ? locale->variant : "(null)");
15 FL_FreeLocale(&locale);
16 return 0;
17 }