forked from enlightenment/enlightenment
Fix compiler warnings when E is compiled without gettext.
SVN revision: 49775
This commit is contained in:
parent
77cd6f5b18
commit
384a49358f
|
@ -251,9 +251,11 @@ e_intl_language_set(const char *lang)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_GETTEXT
|
||||||
bindtextdomain(PACKAGE, locale_path);
|
bindtextdomain(PACKAGE, locale_path);
|
||||||
textdomain(PACKAGE);
|
textdomain(PACKAGE);
|
||||||
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
||||||
|
#endif
|
||||||
free(locale_path);
|
free(locale_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -310,8 +312,7 @@ _e_intl_language_list_find(Eina_List *language_list, char *language)
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
char *lang;
|
char *lang;
|
||||||
|
|
||||||
if (!language_list) return 0;
|
if ((!language_list) || (!language)) return 0;
|
||||||
if (!language) return 0;
|
|
||||||
|
|
||||||
EINA_LIST_FOREACH(language_list, l, lang)
|
EINA_LIST_FOREACH(language_list, l, lang)
|
||||||
if (!strcmp(lang, language)) return 1;
|
if (!strcmp(lang, language)) return 1;
|
||||||
|
@ -360,7 +361,6 @@ e_intl_input_method_set(const char *imc_path)
|
||||||
(!ecore_exe_pid_get(_e_intl_input_method_exec)))
|
(!ecore_exe_pid_get(_e_intl_input_method_exec)))
|
||||||
e_util_dialog_show(_("Input Method Error"),
|
e_util_dialog_show(_("Input Method Error"),
|
||||||
_( "Error starting the input method executable<br><br>"
|
_( "Error starting the input method executable<br><br>"
|
||||||
|
|
||||||
"please make sure that your input<br>"
|
"please make sure that your input<br>"
|
||||||
"method configuration is correct and<br>"
|
"method configuration is correct and<br>"
|
||||||
"that your configuration's<br>"
|
"that your configuration's<br>"
|
||||||
|
|
Loading…
Reference in New Issue