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);
void
RainSplash::update(float time)
{
- time = 0;//just so i don't get an "unused variable" error - don't know how to circumvent this
+ (void) time;
frame++;
if (frame >= 10) remove_me();
}
dictionary_manager->set_language(tinygettext::Language::from_name(g_config->locale));
} else {
FL_Locale *locale;
- FL_FindLocale(&locale, FL_MESSAGES);
+ FL_FindLocale(&locale);
tinygettext::Language language = tinygettext::Language::from_spec( locale->lang?locale->lang:"", locale->country?locale->country:"", locale->variant?locale->variant:"");
FL_FreeLocale(&locale);
dictionary_manager->set_language(language);
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->lang:"", locale->country?locale->country:"", locale->variant?locale->variant:"");
FL_FreeLocale(&locale);