return 0;
}
+#ifndef WIN32
static int
accumulate_env(const char *name, FL_Locale *l) {
return 0;
}
+#endif
static void
canonise_fl(FL_Locale *l) {
static int num_both_to_code =
sizeof(both_to_code) / sizeof(*both_to_code);
-static const int
+static int
lcid_to_fl(LCID lcid,
FL_Locale *rtn) {
LANGID langid = LANGIDFROMLCID(lcid);
LANGID primary_lang = PRIMARYLANGID(langid);
- LANGID sub_lang = SUBLANGID(langid);
+// LANGID sub_lang = SUBLANGID(langid);
int i;
/* try to find an exact primary/sublanguage combo that we know about */
for (i=0; i<num_both_to_code; ++i) {
FL_Success
-FL_FindLocale(FL_Locale **locale, FL_Domain domain) {
+FL_FindLocale(FL_Locale **locale) {
FL_Success success = FL_FAILED;
FL_Locale *rtn = malloc(sizeof(FL_Locale));
rtn->lang = NULL;
/* This allocates/fills in a FL_Locale structure with pointers to
strings (which should be treated as static), or NULL for inappropriate /
undetected fields. */
-FL_Success FL_FindLocale(FL_Locale **locale, FL_Domain domain);
+FL_Success FL_FindLocale(FL_Locale **locale);
/* This should be used to free the struct written by FL_FindLocale */
void FL_FreeLocale(FL_Locale **locale);
if (item->id == MNID_LANGUAGE_AUTO_DETECT) // auto detect
{
FL_Locale *locale;
- FL_FindLocale(&locale, FL_MESSAGES);
+ FL_FindLocale(&locale);
tinygettext::Language language = tinygettext::Language::from_spec(locale->lang, locale->country, locale->variant);
FL_FreeLocale(&locale);