Enlightenment CVS committal

Author  : maxerba
Project : e_modules
Module  : taskbar

Dir     : e_modules/taskbar


Modified Files:
        autogen.sh configure.in e_mod_config.c e_mod_main.c 
        e_mod_main.h 
Added Files:
        ABOUT-NLS 


Log Message:
made i18n support work

===================================================================
RCS file: /cvs/e/e_modules/taskbar/autogen.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- autogen.sh  6 Jul 2006 05:15:45 -0000       1.2
+++ autogen.sh  8 Jul 2006 21:39:29 -0000       1.3
@@ -19,7 +19,7 @@
 --copyright-holder="Enlightenment development team" \
 --foreign-user \
 --msgid-bugs-address="enlightenment-devel@lists.sourceforge.net" \
--k -k_ -kd_ -kN_ -kD_ \
+-kD_ \
 --from-code=UTF-8 \
 -o taskbar.pot \
 `find . -name "*.[ch]" -print` || exit 1
===================================================================
RCS file: /cvs/e/e_modules/taskbar/configure.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- configure.in        8 Jul 2006 20:57:27 -0000       1.4
+++ configure.in        8 Jul 2006 21:39:29 -0000       1.5
@@ -20,6 +20,9 @@
 ALL_LINGUAS="it sv"
 AC_SUBST(ALL_LINGUAS)
 
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION(0.14)
+
 MODULE_ARCH="$host_os-$host_cpu"
 AC_SUBST(MODULE_ARCH)
 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
===================================================================
RCS file: /cvs/e/e_modules/taskbar/e_mod_config.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_mod_config.c      6 Jul 2006 05:15:45 -0000       1.3
+++ e_mod_config.c      8 Jul 2006 21:39:29 -0000       1.4
@@ -28,7 +28,7 @@
    v->basic.create_widgets = _basic_create_widgets;
 
    con = e_container_current_get(e_manager_current_get());
-   cfd = e_config_dialog_new(con, _("Taskbar Configuration"), NULL, 0, v, ci);
+   cfd = e_config_dialog_new(con, D_("Taskbar Configuration"), NULL, 0, v, ci);
    taskbar_config->config_dialog = 
evas_list_append(taskbar_config->config_dialog, cfd);
 }
 
@@ -68,14 +68,14 @@
 
    o = e_widget_list_add(evas, 0, 0);
 
-   of = e_widget_framelist_add(evas, _("Display"), 0);
+   of = e_widget_framelist_add(evas, D_("Display"), 0);
 
-   ob = e_widget_check_add(evas, _("Show Labels"), &(cfdata->show_label));
+   ob = e_widget_check_add(evas, D_("Show Labels"), &(cfdata->show_label));
    //if (cfdata->show_label)
    //  e_widget_check_checked_set(ob, 1);
    e_widget_framelist_object_append(of, ob);  
 
-   ob = e_widget_check_add(evas, _("Show windows from all desktops"), 
&(cfdata->show_all));
+   ob = e_widget_check_add(evas, D_("Show windows from all desktops"), 
&(cfdata->show_all));
    //if (cfdata->show_all)
    //   e_widget_check_checked_set(ob, 1);
    e_widget_framelist_object_append(of, ob);
===================================================================
RCS file: /cvs/e/e_modules/taskbar/e_mod_main.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_mod_main.c        6 Jul 2006 05:15:45 -0000       1.6
+++ e_mod_main.c        8 Jul 2006 21:39:29 -0000       1.7
@@ -201,7 +201,7 @@
 static char *
 _gc_label(void)
 {
-   return _("Taskbar");
+   return D_("Taskbar");
 }
 
 static Evas_Object *
@@ -272,7 +272,7 @@
         taskbar_config->menu = mn;
 
        mi = e_menu_item_new(mn);
-       e_menu_item_label_set(mi, _("Configuration"));
+       e_menu_item_label_set(mi, D_("Configuration"));
        e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
        e_menu_item_callback_set(mi, _taskbar_cb_menu_configure, b);
 
@@ -760,7 +760,7 @@
              taskbar_config->menu = mn;
 
             mi = e_menu_item_new(mn);
-            e_menu_item_label_set(mi, _("Configuration"));
+            e_menu_item_label_set(mi, D_("Configuration"));
             e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
             e_menu_item_callback_set(mi, _taskbar_cb_menu_configure, 
ic->taskbar);
 
@@ -1305,8 +1305,8 @@
 EAPI int
 e_modapi_about(E_Module *m)
 {
-   e_module_dialog_show(m, _("Enlightenment Taskbar Module"),
-                        _("This is the Taskbar Iconified Application module 
for Enlightenment.<br>"
+   e_module_dialog_show(m, D_("Enlightenment Taskbar Module"),
+                        D_("This is the Taskbar Iconified Application module 
for Enlightenment.<br>"
                           "It will hold minimized applications"));
    return 1;
 }
===================================================================
RCS file: /cvs/e/e_modules/taskbar/e_mod_main.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_main.h        22 Jun 2006 22:21:18 -0000      1.4
+++ e_mod_main.h        8 Jul 2006 21:39:29 -0000       1.5
@@ -1,6 +1,8 @@
 /*
  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
  */
+#define D_(str) dgettext(PACKAGE, str)
+
 #ifndef E_MOD_MAIN_H
 #define E_MOD_MAIN_H
 



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to