From cefb3398ca0012a9bca88f65e6c882b44f756a0b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 7 Jan 2003 20:37:51 +0000 Subject: revert --- embed/mozilla/mozilla-embed-shell.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/embed/mozilla/mozilla-embed-shell.cpp b/embed/mozilla/mozilla-embed-shell.cpp index 6b8c5e8f1..249b7dd50 100644 --- a/embed/mozilla/mozilla-embed-shell.cpp +++ b/embed/mozilla/mozilla-embed-shell.cpp @@ -183,39 +183,6 @@ mozilla_embed_shell_class_init (MozillaEmbedShellClass *klass) shell_class->show_file_picker = impl_show_file_picker; } -static void -mozilla_load_language_prefs (MozillaEmbedShell *shell) -{ - GString *langs; - const GList *l; - - langs = g_string_new (NULL); - - l = gnome_i18n_get_language_list ("LC_MESSAGES"); - for (; l != NULL; l = l->next) - { - char *lang = (char *)l->data; - int len; - char *lg, *enc; - - g_print ("%s\n", lang); - - lg = strchr (lang, '_'); - enc = strchr (lang, '.'); - - len = strlen (lang); - if (enc) len = enc - lang; - if (lg) len = lg - lang; - - g_string_append (langs, ","); - g_string_append_len (langs, lang, len); - } - - mozilla_prefs_set_string ("intl.accept_languages", langs->str + 1); - - g_string_free (langs, TRUE); -} - static void mozilla_load_proxy_prefs (MozillaEmbedShell *shell) { @@ -458,8 +425,6 @@ mozilla_embed_shell_init (MozillaEmbedShell *mes) mozilla_load_proxy_prefs (mes); - mozilla_load_language_prefs (mes); - mozilla_init_single (mes); mozilla_register_components (); -- cgit v1.2.3