File feature-wizard-auto-lang.patch of Package enlightenment

diff --git a/src/modules/wizard/page_010.c b/src/modules/wizard/page_010.c
--- a/src/modules/wizard/page_010.c
+++ b/src/modules/wizard/page_010.c
@@ -139,6 +139,7 @@
         blang_list = eina_list_sort(blang_list, eina_list_count(blang_list), _basic_lang_list_sort);
         pclose(output);
      }
+     
    return 1;
 }
 
@@ -195,6 +196,28 @@
 E_API int
 wizard_page_show(E_Wizard_Page *pg EINA_UNUSED)
 {
+   /* If system language is available just set that rather then asking. */
+   const char *lang_tmp = getenv("LC_CTYPE");
+
+   if (lang_tmp)
+      {
+         int i = 0;
+         while (basic_language_predefined_pairs[i].locale_key)
+            {
+               if (!strncmp
+                   (basic_language_predefined_pairs[i].locale_key,
+                   lang_tmp, strlen(basic_language_predefined_pairs[i].locale_key)))
+                  {
+                     lang = basic_language_predefined_pairs[i].locale_key;
+                     eina_stringshare_replace(&e_config->language, lang);
+                     e_intl_language_set(e_config->language);
+                     e_wizard_labels_update();
+                     return 0;
+                  }
+              i++;
+           }
+      }
+    
    Evas_Object *of, *ob;
    Eina_List *l;
    E_Intl_Pair *pair;
openSUSE Build Service is sponsored by