Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_menus.c e_intl.c 


Log Message:


it support1 :) and updates to other languages! :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- e_int_menus.c       1 May 2005 22:58:33 -0000       1.53
+++ e_int_menus.c       2 May 2005 06:48:38 -0000       1.54
@@ -610,8 +610,8 @@
                       char buf[256];
                       
                       et = l->data;
-                      if(!strcmp(et->category,"theme"))
-                        deftheme = strdup(et->file);
+                      if (!strcmp(et->category, "theme"))
+                        deftheme = et->file;
                    }                             
                  
                  while ((theme = ecore_list_next(themes)))
@@ -653,17 +653,25 @@
    char *theme;;
    E_Config_Theme *et;
    Evas_List *l;
-      
+
+   for (l = e_config->themes; l; l = l->next)
+     {
+       et = l->data;
+       if (!strcmp(et->category, "theme"))
+         {
+            e_config->themes = evas_list_remove_list(e_config->themes, l);
+            IF_FREE(et->category);
+            IF_FREE(et->file);
+            IF_FREE(et);
+            break;
+         }
+     }
+   
    et = E_NEW(E_Config_Theme, 1);
    et->category = strdup("theme");
-   
-   theme = E_NEW(char, strlen(mi->label) + 5);
-   snprintf(theme, strlen(mi->label) + 5, "%s.edj", mi->label);
-   
-   et->file = strdup(theme);
-   /* Do we want to keep one theme for now? */
-   l = evas_list_last(e_config->themes);
-   e_config->themes = evas_list_remove_list(e_config->themes, l);
+   et->file = E_NEW(char, strlen(mi->label) + 4 + 1);
+   strcpy(et->file, mi->label);
+   strcat(et->file, ".edj");
    e_config->themes = evas_list_append(e_config->themes, et);
    
    e_config_save_queue();
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_intl.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- e_intl.c    30 Apr 2005 08:07:14 -0000      1.24
+++ e_intl.c    2 May 2005 06:48:38 -0000       1.25
@@ -52,6 +52,7 @@
    ADD_LANG("zh_CN");
    ADD_LANG("hu");
    ADD_LANG("sl");
+   ADD_LANG("it");
 
    /* FIXME: NULL == use LANG. make this read a config value if it exists */
    e_intl_language_set(getenv("LANG"));
@@ -202,6 +203,8 @@
      return "hu";
    if (ISL("sl") || ISL("sl_SL") || ISL("SL"))
      return "sl";
+   if (ISL("it") || ISL("it_IT") || ISL("IT"))
+     return "it";
    /* 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




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to