Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_intl.c 


Log Message:


update TODO and language stuff

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_intl.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_intl.c    15 Apr 2005 06:29:43 -0000      1.16
+++ e_intl.c    18 Apr 2005 07:15:48 -0000      1.17
@@ -43,6 +43,8 @@
    ADD_LANG("ja");
    ADD_LANG("fr");
    ADD_LANG("es");
+   ADD_LANG("pt");
+   ADD_LANG("fi");
 
    /* FIXME: NULL == use LANG. make this read a config value if it exists */
    e_intl_language_set(getenv("LANG"));
@@ -65,9 +67,15 @@
    
    if (_e_intl_language) free(_e_intl_language);
    if (!lang) lang = getenv("LANG");
-   if (!lang) lang = "en";
-   _e_intl_language = strdup(lang);
-   e_util_env_set("LANG", _e_intl_language);
+   if (lang)
+     {
+       _e_intl_language = strdup(lang);
+       e_util_env_set("LANG", _e_intl_language);
+     }
+   else
+     {
+       _e_intl_language = NULL;
+     }
    setlocale(LC_ALL, "");
    bindtextdomain(PACKAGE, LOCALE_DIR);
    textdomain(PACKAGE);
@@ -165,8 +173,13 @@
    if (ISL("fr") || ISL("fr_FR") || ISL("FR") || ISL("[EMAIL PROTECTED]"))
      return "fr";
    if (ISL("es") || ISL("es_ES") || ISL("ES") || ISL("[EMAIL PROTECTED]") ||
-       ISL("es_AR"))
+       ISL("es_AR") || ISL("AR"))
      return "es";
+   if (ISL("pt") || ISL("pt_PT") || ISL("PT") || ISL("[EMAIL PROTECTED]") ||
+       ISL("pt_BR") || ISL("BR"))
+     return "pt";
+   if (ISL("fi") || ISL("fi_FI") || ISL("FI") || ISL("[EMAIL PROTECTED]"))
+     return "fi";
    /* this is the default fallback - we have no special cases for this lang
     * so just strip off anything after and including the _ for country region
     * and just return the language encoding




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to