Enlightenment CVS committal Author : maxerba Project : e_modules Module : mixer
Dir : e_modules/mixer Modified Files: Makefile.am autogen.sh configure.in e_mod_config.c e_mod_main.c e_mod_main.h Added Files: ABOUT-NLS Log Message: added i18n support and italian localization =================================================================== RCS file: /cvs/e/e_modules/mixer/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- Makefile.am 10 Oct 2006 18:27:34 -0000 1.9 +++ Makefile.am 12 Oct 2006 18:29:04 -0000 1.10 @@ -1,3 +1,5 @@ +SUBDIRS = po + MAINTAINERCLEANFILES = Makefile.in EDJE_CC = @edje_cc@ =================================================================== RCS file: /cvs/e/e_modules/mixer/autogen.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- autogen.sh 7 Sep 2006 13:46:25 -0000 1.1 +++ autogen.sh 12 Oct 2006 18:29:04 -0000 1.2 @@ -8,6 +8,17 @@ echo "Running autoconf..." ; autoconf || exit 1 echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1 +echo "Generating gettext mixer.pot template"; \ +xgettext \ +--output mixer.pot \ +--output-dir=po \ +--language=C \ +--add-location \ +--keyword=D_ \ +--sort-by-file \ +--copyright-holder="TODO" \ +--foreign-user \ +`find . -name "*.[ch]" -print` || exit 1 if [ -z "$NOCONFIGURE" ]; then ./configure "$@" =================================================================== RCS file: /cvs/e/e_modules/mixer/configure.in,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- configure.in 10 Oct 2006 18:27:34 -0000 1.9 +++ configure.in 12 Oct 2006 18:29:04 -0000 1.10 @@ -17,6 +17,12 @@ AM_ENABLE_SHARED AM_PROG_LIBTOOL +ALL_LINGUAS="it" +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") @@ -242,6 +248,7 @@ Makefile e_modules-mixer.spec module.desktop +po/Makefile ],[ ]) =================================================================== RCS file: /cvs/e/e_modules/mixer/e_mod_config.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- e_mod_config.c 10 Oct 2006 18:27:34 -0000 1.17 +++ e_mod_config.c 12 Oct 2006 18:29:04 -0000 1.18 @@ -46,7 +46,7 @@ e_module_dir_get(mixer_config->module)); con = e_container_current_get(e_manager_current_get()); - cfd = e_config_dialog_new(con, _("Mixer Configuration"), "Mixer", + cfd = e_config_dialog_new(con, D_("Mixer Configuration"), "Mixer", "_mixer_config_dialog", buf, 0, v, ci); mixer_config->config_dialog = cfd; } @@ -95,8 +95,8 @@ o = e_widget_list_add(evas, 0, 0); - ot = e_widget_frametable_add(evas, _("Mixer Application"), 1); - ob = e_widget_check_add(evas, _("Launch Mixer App"), &(cfdata->use_app)); + ot = e_widget_frametable_add(evas, D_("Mixer Application"), 1); + ob = e_widget_check_add(evas, D_("Launch Mixer App"), &(cfdata->use_app)); e_widget_frametable_object_append(ot, ob, 0, 0, 1, 1, 1, 0, 1, 0); ob = e_widget_entry_add(evas, &cfdata->app); e_widget_frametable_object_append(ot, ob, 0, 1, 1, 1, 1, 0, 1, 0); @@ -111,7 +111,7 @@ if ((mixer->mix_sys->cards) && (evas_list_count(mixer->mix_sys->cards) > 1)) { - of = e_widget_framelist_add(evas, _("Available Cards"), 0); + of = e_widget_framelist_add(evas, D_("Available Cards"), 0); cg = e_widget_radio_group_new(&cfdata->card_id); for (cards = mixer->mix_sys->cards; cards; cards = cards->next) { @@ -131,7 +131,7 @@ card->channels = mixer->mix_sys->get_channels(card); if (card->channels) { - of = e_widget_framelist_add(evas, _("Available Mixers"), 0); + of = e_widget_framelist_add(evas, D_("Available Mixers"), 0); mg = e_widget_radio_group_new(&cfdata->channel_id); for (chans = card->channels; chans; chans = chans->next) { =================================================================== RCS file: /cvs/e/e_modules/mixer/e_mod_main.c,v retrieving revision 1.53 retrieving revision 1.54 diff -u -3 -r1.53 -r1.54 --- e_mod_main.c 10 Oct 2006 18:27:34 -0000 1.53 +++ e_mod_main.c 12 Oct 2006 18:29:04 -0000 1.54 @@ -161,7 +161,7 @@ static char * _gc_label(void) { - return _("Mixer"); + return D_("Mixer"); } static Evas_Object * @@ -415,6 +415,9 @@ EAPI void * e_modapi_init(E_Module *m) { + bindtextdomain(PACKAGE, LOCALEDIR); + bind_textdomain_codeset(PACKAGE, "UTF-8"); + conf_item_edd = E_CONFIG_DD_NEW("Mixer_Config_Item", Config_Item); #undef T #undef D @@ -512,8 +515,8 @@ EAPI int e_modapi_about(E_Module *m) { - e_module_dialog_show(m, _("Mixer"), - _("Mixer module lets you change volume.")); + e_module_dialog_show(m, D_("Mixer"), + D_("Mixer module lets you change volume.")); return 1; } @@ -634,7 +637,7 @@ win->bg_obj = edje_object_add(win->window->evas); e_theme_edje_object_set(win->bg_obj, "base/theme/menus", "e/widgets/menu/default/background"); - edje_object_part_text_set(win->bg_obj, "e.text.title", _("Volume")); + edje_object_part_text_set(win->bg_obj, "e.text.title", D_("Volume")); edje_object_signal_emit(win->bg_obj, "e,action,show,title", "e"); edje_object_message_signal_process(win->bg_obj); evas_object_show(win->bg_obj); @@ -656,7 +659,7 @@ evas_object_smart_callback_add(win->slider, "changed", _mixer_window_simple_changed_cb, win); - win->check = e_widget_check_add(win->window->evas, _("Mute"), &win->mute); + win->check = e_widget_check_add(win->window->evas, D_("Mute"), &win->mute); evas_object_show(win->check); e_widget_min_size_get(win->check, &mw, &mh); e_box_pack_end(win->vbox, win->check); =================================================================== RCS file: /cvs/e/e_modules/mixer/e_mod_main.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- e_mod_main.h 3 Oct 2006 03:39:15 -0000 1.7 +++ e_mod_main.h 12 Oct 2006 18:29:04 -0000 1.8 @@ -1,3 +1,5 @@ +#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