added i18n support and italian localization
SVN revision: 25139
This commit is contained in:
parent
73dd3bf616
commit
ff20ef360c
|
@ -0,0 +1,218 @@
|
||||||
|
Notes on the Free Translation Project
|
||||||
|
*************************************
|
||||||
|
|
||||||
|
Free software is going international! The Free Translation Project
|
||||||
|
is a way to get maintainers of free software, translators, and users all
|
||||||
|
together, so that will gradually become able to speak many languages.
|
||||||
|
A few packages already provide translations for their messages.
|
||||||
|
|
||||||
|
If you found this `ABOUT-NLS' file inside a distribution, you may
|
||||||
|
assume that the distributed package does use GNU `gettext' internally,
|
||||||
|
itself available at your nearest GNU archive site. But you do _not_
|
||||||
|
need to install GNU `gettext' prior to configuring, installing or using
|
||||||
|
this package with messages translated.
|
||||||
|
|
||||||
|
Installers will find here some useful hints. These notes also
|
||||||
|
explain how users should proceed for getting the programs to use the
|
||||||
|
available translations. They tell how people wanting to contribute and
|
||||||
|
work at translations should contact the appropriate team.
|
||||||
|
|
||||||
|
When reporting bugs in the `intl/' directory or bugs which may be
|
||||||
|
related to internationalization, you should tell about the version of
|
||||||
|
`gettext' which is used. The information can be found in the
|
||||||
|
`intl/VERSION' file, in internationalized packages.
|
||||||
|
|
||||||
|
Quick configuration advice
|
||||||
|
==========================
|
||||||
|
|
||||||
|
If you want to exploit the full power of internationalization, you
|
||||||
|
should configure it using
|
||||||
|
|
||||||
|
./configure --with-included-gettext
|
||||||
|
|
||||||
|
to force usage of internationalizing routines provided within this
|
||||||
|
package, despite the existence of internationalizing capabilities in the
|
||||||
|
operating system where this package is being installed. So far, only
|
||||||
|
the `gettext' implementation in the GNU C library version 2 provides as
|
||||||
|
many features (such as locale alias, message inheritance, automatic
|
||||||
|
charset conversion or plural form handling) as the implementation here.
|
||||||
|
It is also not possible to offer this additional functionality on top
|
||||||
|
of a `catgets' implementation. Future versions of GNU `gettext' will
|
||||||
|
very likely convey even more functionality. So it might be a good idea
|
||||||
|
to change to GNU `gettext' as soon as possible.
|
||||||
|
|
||||||
|
So you need _not_ provide this option if you are using GNU libc 2 or
|
||||||
|
you have installed a recent copy of the GNU gettext package with the
|
||||||
|
included `libintl'.
|
||||||
|
|
||||||
|
INSTALL Matters
|
||||||
|
===============
|
||||||
|
|
||||||
|
Some packages are "localizable" when properly installed; the
|
||||||
|
programs they contain can be made to speak your own native language.
|
||||||
|
Most such packages use GNU `gettext'. Other packages have their own
|
||||||
|
ways to internationalization, predating GNU `gettext'.
|
||||||
|
|
||||||
|
By default, this package will be installed to allow translation of
|
||||||
|
messages. It will automatically detect whether the system already
|
||||||
|
provides the GNU `gettext' functions. If not, the GNU `gettext' own
|
||||||
|
library will be used. This library is wholly contained within this
|
||||||
|
package, usually in the `intl/' subdirectory, so prior installation of
|
||||||
|
the GNU `gettext' package is _not_ required. Installers may use
|
||||||
|
special options at configuration time for changing the default
|
||||||
|
behaviour. The commands:
|
||||||
|
|
||||||
|
./configure --with-included-gettext
|
||||||
|
./configure --disable-nls
|
||||||
|
|
||||||
|
will respectively bypass any pre-existing `gettext' to use the
|
||||||
|
internationalizing routines provided within this package, or else,
|
||||||
|
_totally_ disable translation of messages.
|
||||||
|
|
||||||
|
When you already have GNU `gettext' installed on your system and run
|
||||||
|
configure without an option for your new package, `configure' will
|
||||||
|
probably detect the previously built and installed `libintl.a' file and
|
||||||
|
will decide to use this. This might be not what is desirable. You
|
||||||
|
should use the more recent version of the GNU `gettext' library. I.e.
|
||||||
|
if the file `intl/VERSION' shows that the library which comes with this
|
||||||
|
package is more recent, you should use
|
||||||
|
|
||||||
|
./configure --with-included-gettext
|
||||||
|
|
||||||
|
to prevent auto-detection.
|
||||||
|
|
||||||
|
The configuration process will not test for the `catgets' function
|
||||||
|
and therefore it will not be used. The reason is that even an
|
||||||
|
emulation of `gettext' on top of `catgets' could not provide all the
|
||||||
|
extensions of the GNU `gettext' library.
|
||||||
|
|
||||||
|
Internationalized packages have usually many `po/LL.po' files, where
|
||||||
|
LL gives an ISO 639 two-letter code identifying the language. Unless
|
||||||
|
translations have been forbidden at `configure' time by using the
|
||||||
|
`--disable-nls' switch, all available translations are installed
|
||||||
|
together with the package. However, the environment variable `LINGUAS'
|
||||||
|
may be set, prior to configuration, to limit the installed set.
|
||||||
|
`LINGUAS' should then contain a space separated list of two-letter
|
||||||
|
codes, stating which languages are allowed.
|
||||||
|
|
||||||
|
Using This Package
|
||||||
|
==================
|
||||||
|
|
||||||
|
As a user, if your language has been installed for this package, you
|
||||||
|
only have to set the `LANG' environment variable to the appropriate
|
||||||
|
`LL_CC' combination. Here `LL' is an ISO 639 two-letter language code,
|
||||||
|
and `CC' is an ISO 3166 two-letter country code. For example, let's
|
||||||
|
suppose that you speak German and live in Germany. At the shell
|
||||||
|
prompt, merely execute `setenv LANG de_DE' (in `csh'),
|
||||||
|
`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
|
||||||
|
This can be done from your `.login' or `.profile' file, once and for
|
||||||
|
all.
|
||||||
|
|
||||||
|
You might think that the country code specification is redundant.
|
||||||
|
But in fact, some languages have dialects in different countries. For
|
||||||
|
example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
|
||||||
|
country code serves to distinguish the dialects.
|
||||||
|
|
||||||
|
The locale naming convention of `LL_CC', with `LL' denoting the
|
||||||
|
language and `CC' denoting the country, is the one use on systems based
|
||||||
|
on GNU libc. On other systems, some variations of this scheme are
|
||||||
|
used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
|
||||||
|
locales supported by your system for your country by running the command
|
||||||
|
`locale -a | grep '^LL''.
|
||||||
|
|
||||||
|
Not all programs have translations for all languages. By default, an
|
||||||
|
English message is shown in place of a nonexistent translation. If you
|
||||||
|
understand other languages, you can set up a priority list of languages.
|
||||||
|
This is done through a different environment variable, called
|
||||||
|
`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
|
||||||
|
for the purpose of message handling, but you still need to have `LANG'
|
||||||
|
set to the primary language; this is required by other parts of the
|
||||||
|
system libraries. For example, some Swedish users who would rather
|
||||||
|
read translations in German than English for when Swedish is not
|
||||||
|
available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
|
||||||
|
|
||||||
|
In the `LANGUAGE' environment variable, but not in the `LANG'
|
||||||
|
environment variable, `LL_CC' combinations can be abbreviated as `LL'
|
||||||
|
to denote the language's main dialect. For example, `de' is equivalent
|
||||||
|
to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
|
||||||
|
(Portuguese as spoken in Portugal) in this context.
|
||||||
|
|
||||||
|
Translating Teams
|
||||||
|
=================
|
||||||
|
|
||||||
|
For the Free Translation Project to be a success, we need interested
|
||||||
|
people who like their own language and write it well, and who are also
|
||||||
|
able to synergize with other translators speaking the same language.
|
||||||
|
Each translation team has its own mailing list. The up-to-date list of
|
||||||
|
teams can be found at the Free Translation Project's homepage,
|
||||||
|
`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams"
|
||||||
|
area.
|
||||||
|
|
||||||
|
If you'd like to volunteer to _work_ at translating messages, you
|
||||||
|
should become a member of the translating team for your own language.
|
||||||
|
The subscribing address is _not_ the same as the list itself, it has
|
||||||
|
`-request' appended. For example, speakers of Swedish can send a
|
||||||
|
message to `sv-request@li.org', having this message body:
|
||||||
|
|
||||||
|
subscribe
|
||||||
|
|
||||||
|
Keep in mind that team members are expected to participate
|
||||||
|
_actively_ in translations, or at solving translational difficulties,
|
||||||
|
rather than merely lurking around. If your team does not exist yet and
|
||||||
|
you want to start one, or if you are unsure about what to do or how to
|
||||||
|
get started, please write to `translation@iro.umontreal.ca' to reach the
|
||||||
|
coordinator for all translator teams.
|
||||||
|
|
||||||
|
The English team is special. It works at improving and uniformizing
|
||||||
|
the terminology in use. Proven linguistic skill are praised more than
|
||||||
|
programming skill, here.
|
||||||
|
|
||||||
|
Available Packages
|
||||||
|
==================
|
||||||
|
|
||||||
|
Languages are not equally supported in all packages. The following
|
||||||
|
matrix shows the current state of internationalization, as of April
|
||||||
|
2005. The matrix shows, in regard of each package, for which languages
|
||||||
|
PO files have been submitted to translation coordination, with a
|
||||||
|
translation percentage of at least 50%.
|
||||||
|
|
||||||
|
Ready PO files en fr ja de bg es fi pl pt ru
|
||||||
|
+-------------------------------+
|
||||||
|
enlightenment | [] [] [] [] [] [] [] [] [] [] |
|
||||||
|
|
||||||
|
|
||||||
|
Some counters in the preceding matrix are higher than the number of
|
||||||
|
visible blocks let us expect. This is because a few extra PO files are
|
||||||
|
used for implementing regional variants of languages, or language
|
||||||
|
dialects.
|
||||||
|
|
||||||
|
For a PO file in the matrix above to be effective, the package to
|
||||||
|
which it applies should also have been internationalized and
|
||||||
|
distributed as such by its maintainer. There might be an observable
|
||||||
|
lag between the mere existence a PO file and its wide availability in a
|
||||||
|
distribution.
|
||||||
|
|
||||||
|
If August 2002 seems to be old, you may fetch a more recent copy of
|
||||||
|
this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date
|
||||||
|
matrix with full percentage details can be found at
|
||||||
|
`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'.
|
||||||
|
|
||||||
|
Using `gettext' in new packages
|
||||||
|
===============================
|
||||||
|
|
||||||
|
If you are writing a freely available program and want to
|
||||||
|
internationalize it you are welcome to use GNU `gettext' in your
|
||||||
|
package. Of course you have to respect the GNU Library General Public
|
||||||
|
License which covers the use of the GNU `gettext' library. This means
|
||||||
|
in particular that even non-free programs can use `libintl' as a shared
|
||||||
|
library, whereas only free software can use `libintl' as a static
|
||||||
|
library or use modified versions of `libintl'.
|
||||||
|
|
||||||
|
Once the sources are changed appropriately and the setup can handle
|
||||||
|
to use of `gettext' the only thing missing are the translations. The
|
||||||
|
Free Translation Project is also available for packages which are not
|
||||||
|
developed inside the GNU project. Therefore the information given above
|
||||||
|
applies also for every other Free Software Project. Contact
|
||||||
|
`translation@iro.umontreal.ca' to make the `.pot' files available to
|
||||||
|
the translation teams.
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
MAINTAINERCLEANFILES = Makefile.in mkinstalldirs
|
MAINTAINERCLEANFILES = Makefile.in mkinstalldirs
|
||||||
|
|
||||||
|
SUBDIRS = po
|
||||||
|
|
||||||
EDJE_CC = @edje_cc@
|
EDJE_CC = @edje_cc@
|
||||||
EDJE_FLAGS = -v \
|
EDJE_FLAGS = -v \
|
||||||
-id $(top_srcdir) \
|
-id $(top_srcdir) \
|
||||||
|
|
11
autogen.sh
11
autogen.sh
|
@ -10,6 +10,17 @@ echo "Running autoheader..." ; autoheader || exit 1
|
||||||
echo "Running autoconf..." ; autoconf || exit 1
|
echo "Running autoconf..." ; autoconf || exit 1
|
||||||
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
|
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
|
||||||
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
|
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
|
||||||
|
echo "Generating gettext mail.pot template"; \
|
||||||
|
xgettext \
|
||||||
|
--output mail.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
|
if [ -z "$NOCONFIGURE" ]; then
|
||||||
./configure "$@"
|
./configure "$@"
|
||||||
|
|
17
configure.in
17
configure.in
|
@ -18,6 +18,12 @@ AC_C_CONST
|
||||||
AM_ENABLE_SHARED
|
AM_ENABLE_SHARED
|
||||||
AM_PROG_LIBTOOL
|
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"
|
MODULE_ARCH="$host_os-$host_cpu"
|
||||||
AC_SUBST(MODULE_ARCH)
|
AC_SUBST(MODULE_ARCH)
|
||||||
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
|
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
|
||||||
|
@ -85,6 +91,16 @@ else
|
||||||
datadir="${libdir}/enlightenment/modules/${PACKAGE}"
|
datadir="${libdir}/enlightenment/modules/${PACKAGE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_PREFIX_DEFAULT(${HOME}/.e/e)
|
||||||
|
if test "x$prefix" = "xNONE"; then
|
||||||
|
datarootdir=${ac_default_prefix}
|
||||||
|
else
|
||||||
|
datarootdir=${prefix}/share
|
||||||
|
fi
|
||||||
|
localedir=${datarootdir}/locale
|
||||||
|
AC_SUBST(LOCALEDIR, "${localedir}")
|
||||||
|
AC_DEFINE_UNQUOTED(LOCALEDIR, "${localedir}", [Module Locale Directory])
|
||||||
|
|
||||||
#AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
|
#AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
|
||||||
#AC_SUBST(dlopen_libs)
|
#AC_SUBST(dlopen_libs)
|
||||||
|
|
||||||
|
@ -133,6 +149,7 @@ AC_SUBST(e_modules)
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
Makefile
|
Makefile
|
||||||
|
po/Makefile
|
||||||
],[
|
],[
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ _config_mail_module (Config_Item * ci)
|
||||||
snprintf (buf, sizeof (buf), "%s/module.eap",
|
snprintf (buf, sizeof (buf), "%s/module.eap",
|
||||||
e_module_dir_get (mail_config->module));
|
e_module_dir_get (mail_config->module));
|
||||||
con = e_container_current_get (e_manager_current_get ());
|
con = e_container_current_get (e_manager_current_get ());
|
||||||
cfd = e_config_dialog_new (con, _("Mail Configuration"), "Mail", "_e_modules_mail_config_dialog", buf, 0, v, ci);
|
cfd = e_config_dialog_new (con, D_("Mail Configuration"), "Mail", "_e_modules_mail_config_dialog", buf, 0, v, ci);
|
||||||
mail_config->config_dialog = cfd;
|
mail_config->config_dialog = cfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,17 +90,17 @@ _basic_create_widgets (E_Config_Dialog * cfd, Evas * evas,
|
||||||
o = e_widget_list_add (evas, 0, 0);
|
o = e_widget_list_add (evas, 0, 0);
|
||||||
of = e_widget_framelist_add (evas, _("General Settings"), 0);
|
of = e_widget_framelist_add (evas, _("General Settings"), 0);
|
||||||
ob =
|
ob =
|
||||||
e_widget_check_add (evas, _("Always Show Labels"), &(cfdata->show_label));
|
e_widget_check_add (evas, D_("Always Show Labels"), &(cfdata->show_label));
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
ob = e_widget_label_add (evas, _("Check Interval"));
|
ob = e_widget_label_add (evas, D_("Check Interval"));
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
ob =
|
ob =
|
||||||
e_widget_slider_add (evas, 1, 0, _("%2.0f minutes"), 1.0, 60.0, 1.0, 0,
|
e_widget_slider_add (evas, 1, 0, D_("%2.0f minutes"), 1.0, 60.0, 1.0, 0,
|
||||||
&(cfdata->check_time), NULL, 100);
|
&(cfdata->check_time), NULL, 100);
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
e_widget_list_object_append (o, of, 1, 1, 0.5);
|
e_widget_list_object_append (o, of, 1, 1, 0.5);
|
||||||
|
|
||||||
of = e_widget_frametable_add (evas, _("Mail Boxes"), 0);
|
of = e_widget_frametable_add (evas, D_("Mail Boxes"), 0);
|
||||||
ob = e_widget_ilist_add (evas, 32, 32, NULL);
|
ob = e_widget_ilist_add (evas, 32, 32, NULL);
|
||||||
e_widget_ilist_selector_set (ob, 1);
|
e_widget_ilist_selector_set (ob, 1);
|
||||||
cfdata->il = ob;
|
cfdata->il = ob;
|
||||||
|
@ -120,7 +120,7 @@ _basic_create_widgets (E_Config_Dialog * cfd, Evas * evas,
|
||||||
cfdata->del = ob;
|
cfdata->del = ob;
|
||||||
e_widget_table_object_append (ot, ob, 0, 1, 1, 1, 1, 1, 1, 0);
|
e_widget_table_object_append (ot, ob, 0, 1, 1, 1, 1, 1, 1, 0);
|
||||||
ob =
|
ob =
|
||||||
e_widget_button_add (evas, _("Configure..."), "widget/config",
|
e_widget_button_add (evas, D_("Configure..."), "widget/config",
|
||||||
_cb_edit_box, cfd, NULL);
|
_cb_edit_box, cfd, NULL);
|
||||||
e_widget_disabled_set (ob, 1);
|
e_widget_disabled_set (ob, 1);
|
||||||
cfdata->configure = ob;
|
cfdata->configure = ob;
|
||||||
|
|
|
@ -57,7 +57,7 @@ _config_box (Config_Item * ci, Config_Box * cb, E_Config_Dialog * mcfd)
|
||||||
v->basic.create_widgets = _basic_create_widgets;
|
v->basic.create_widgets = _basic_create_widgets;
|
||||||
|
|
||||||
con = e_container_current_get (e_manager_current_get ());
|
con = e_container_current_get (e_manager_current_get ());
|
||||||
cfd = e_config_dialog_new (con, _("Mailbox Configuration"), "Mail", "_e_modules_mail_box_config_dialog", NULL, 0, v, cb);
|
cfd = e_config_dialog_new (con, D_("Mailbox Configuration"), "Mail", "_e_modules_mail_box_config_dialog", NULL, 0, v, cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -137,12 +137,12 @@ _basic_create_widgets (E_Config_Dialog * cfd, Evas * evas,
|
||||||
o = e_widget_list_add (evas, 0, 0);
|
o = e_widget_list_add (evas, 0, 0);
|
||||||
of = e_widget_framelist_add (evas, _("General Settings"), 0);
|
of = e_widget_framelist_add (evas, _("General Settings"), 0);
|
||||||
ob =
|
ob =
|
||||||
e_widget_check_add (evas, _("Start Program When New Mail Arrives"),
|
e_widget_check_add (evas, D_("Start Program When New Mail Arrives"),
|
||||||
&(cfdata->use_exec));
|
&(cfdata->use_exec));
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
e_widget_on_change_hook_set (ob, _use_exec_cb_change, cfdata);
|
e_widget_on_change_hook_set (ob, _use_exec_cb_change, cfdata);
|
||||||
ot = e_widget_table_add (evas, 1);
|
ot = e_widget_table_add (evas, 1);
|
||||||
cfdata->exec_label = e_widget_label_add (evas, _("Program:"));
|
cfdata->exec_label = e_widget_label_add (evas, D_("Program:"));
|
||||||
e_widget_table_object_append (ot, cfdata->exec_label, 0, 0, 1, 1, 0, 0, 1,
|
e_widget_table_object_append (ot, cfdata->exec_label, 0, 0, 1, 1, 0, 0, 1,
|
||||||
0);
|
0);
|
||||||
cfdata->exec_entry = e_widget_entry_add (evas, &cfdata->exec);
|
cfdata->exec_entry = e_widget_entry_add (evas, &cfdata->exec);
|
||||||
|
@ -154,59 +154,59 @@ _basic_create_widgets (E_Config_Dialog * cfd, Evas * evas,
|
||||||
e_widget_disabled_set (cfdata->exec_label, !cfdata->use_exec);
|
e_widget_disabled_set (cfdata->exec_label, !cfdata->use_exec);
|
||||||
e_widget_disabled_set (cfdata->exec_entry, !cfdata->use_exec);
|
e_widget_disabled_set (cfdata->exec_entry, !cfdata->use_exec);
|
||||||
|
|
||||||
of = e_widget_framelist_add (evas, _("Mailbox Type"), 0);
|
of = e_widget_framelist_add (evas, D_("Mailbox Type"), 0);
|
||||||
rg = e_widget_radio_group_new (&(cfdata->type));
|
rg = e_widget_radio_group_new (&(cfdata->type));
|
||||||
ob = e_widget_radio_add (evas, _("Pop3"), 0, rg);
|
ob = e_widget_radio_add (evas, D_("Pop3"), 0, rg);
|
||||||
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
ob = e_widget_radio_add (evas, _("Imap"), 1, rg);
|
ob = e_widget_radio_add (evas, D_("Imap"), 1, rg);
|
||||||
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
ob = e_widget_radio_add (evas, _("Maildir"), 2, rg);
|
ob = e_widget_radio_add (evas, D_("Maildir"), 2, rg);
|
||||||
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
ob = e_widget_radio_add (evas, _("Mbox"), 3, rg);
|
ob = e_widget_radio_add (evas, D_("Mbox"), 3, rg);
|
||||||
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
||||||
e_widget_framelist_object_append (of, ob);
|
e_widget_framelist_object_append (of, ob);
|
||||||
e_widget_list_object_append (o, of, 1, 1, 0.5);
|
e_widget_list_object_append (o, of, 1, 1, 0.5);
|
||||||
|
|
||||||
of = e_widget_frametable_add (evas, _("Port Settings"), 1);
|
of = e_widget_frametable_add (evas, D_("Port Settings"), 1);
|
||||||
|
|
||||||
ob = e_widget_label_add (evas, _("Use SSL:"));
|
ob = e_widget_label_add (evas, D_("Use SSL:"));
|
||||||
e_widget_frametable_object_append (of, ob, 0, 0, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 0, 0, 1, 1, 0, 0, 1, 0);
|
||||||
ob = e_widget_check_add (evas, "", &(cfdata->ssl));
|
ob = e_widget_check_add (evas, "", &(cfdata->ssl));
|
||||||
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
e_widget_on_change_hook_set (ob, _type_cb_change, cfdata);
|
||||||
e_widget_frametable_object_append (of, ob, 1, 0, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 1, 0, 1, 1, 0, 0, 1, 0);
|
||||||
|
|
||||||
ob = e_widget_label_add (evas, _("Port:"));
|
ob = e_widget_label_add (evas, D_("Port:"));
|
||||||
e_widget_frametable_object_append (of, ob, 0, 1, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 0, 1, 1, 1, 0, 0, 1, 0);
|
||||||
ob = e_widget_entry_add (evas, &cfdata->port);
|
ob = e_widget_entry_add (evas, &cfdata->port);
|
||||||
cfdata->port_entry = ob;
|
cfdata->port_entry = ob;
|
||||||
e_widget_frametable_object_append (of, ob, 1, 1, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 1, 1, 1, 1, 0, 0, 1, 0);
|
||||||
e_widget_list_object_append (o, of, 1, 1, 0.5);
|
e_widget_list_object_append (o, of, 1, 1, 0.5);
|
||||||
|
|
||||||
of = e_widget_frametable_add (evas, _("Mailbox Settings"), 1);
|
of = e_widget_frametable_add (evas, D_("Mailbox Settings"), 1);
|
||||||
ob = e_widget_label_add (evas, _("Name:"));
|
ob = e_widget_label_add (evas, D_("Name:"));
|
||||||
e_widget_frametable_object_append (of, ob, 0, 0, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 0, 0, 1, 1, 0, 0, 1, 0);
|
||||||
ob = e_widget_entry_add (evas, &cfdata->name);
|
ob = e_widget_entry_add (evas, &cfdata->name);
|
||||||
e_widget_frametable_object_append (of, ob, 1, 0, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 1, 0, 1, 1, 0, 0, 1, 0);
|
||||||
|
|
||||||
ob = e_widget_label_add (evas, _("Mail Host:"));
|
ob = e_widget_label_add (evas, D_("Mail Host:"));
|
||||||
e_widget_frametable_object_append (of, ob, 0, 1, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 0, 1, 1, 1, 0, 0, 1, 0);
|
||||||
ob = e_widget_entry_add (evas, &cfdata->host);
|
ob = e_widget_entry_add (evas, &cfdata->host);
|
||||||
e_widget_frametable_object_append (of, ob, 1, 1, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 1, 1, 1, 1, 0, 0, 1, 0);
|
||||||
|
|
||||||
ob = e_widget_label_add (evas, _("Username:"));
|
ob = e_widget_label_add (evas, D_("Username:"));
|
||||||
e_widget_frametable_object_append (of, ob, 0, 2, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 0, 2, 1, 1, 0, 0, 1, 0);
|
||||||
ob = e_widget_entry_add (evas, &cfdata->user);
|
ob = e_widget_entry_add (evas, &cfdata->user);
|
||||||
e_widget_frametable_object_append (of, ob, 1, 2, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 1, 2, 1, 1, 0, 0, 1, 0);
|
||||||
|
|
||||||
ob = e_widget_label_add (evas, _("Password:"));
|
ob = e_widget_label_add (evas, D_("Password:"));
|
||||||
e_widget_frametable_object_append (of, ob, 0, 3, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 0, 3, 1, 1, 0, 0, 1, 0);
|
||||||
ob = e_widget_entry_add (evas, &cfdata->pass);
|
ob = e_widget_entry_add (evas, &cfdata->pass);
|
||||||
e_widget_frametable_object_append (of, ob, 1, 3, 1, 1, 0, 0, 1, 0);
|
e_widget_frametable_object_append (of, ob, 1, 3, 1, 1, 0, 0, 1, 0);
|
||||||
|
|
||||||
cfdata->new_path_label = e_widget_label_add (evas, _("New Mail Path:"));
|
cfdata->new_path_label = e_widget_label_add (evas, D_("New Mail Path:"));
|
||||||
e_widget_frametable_object_append (of, cfdata->new_path_label, 0, 4, 1, 1,
|
e_widget_frametable_object_append (of, cfdata->new_path_label, 0, 4, 1, 1,
|
||||||
0, 0, 1, 0);
|
0, 0, 1, 0);
|
||||||
cfdata->new_path_entry = e_widget_entry_add (evas, &cfdata->new_path);
|
cfdata->new_path_entry = e_widget_entry_add (evas, &cfdata->new_path);
|
||||||
|
@ -218,7 +218,7 @@ _basic_create_widgets (E_Config_Dialog * cfd, Evas * evas,
|
||||||
e_widget_disabled_set (cfdata->new_path_entry, 1);
|
e_widget_disabled_set (cfdata->new_path_entry, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
cfdata->cur_path_label = e_widget_label_add (evas, _("Current Mail Path:"));
|
cfdata->cur_path_label = e_widget_label_add (evas, D_("Current Mail Path:"));
|
||||||
e_widget_frametable_object_append (of, cfdata->cur_path_label, 0, 5, 1, 1,
|
e_widget_frametable_object_append (of, cfdata->cur_path_label, 0, 5, 1, 1,
|
||||||
0, 0, 1, 0);
|
0, 0, 1, 0);
|
||||||
cfdata->cur_path_entry = e_widget_entry_add (evas, &cfdata->cur_path);
|
cfdata->cur_path_entry = e_widget_entry_add (evas, &cfdata->cur_path);
|
||||||
|
@ -353,7 +353,7 @@ _type_cb_change (void *data, Evas_Object * obj)
|
||||||
e_widget_disabled_set (cfdata->cur_path_label, 1);
|
e_widget_disabled_set (cfdata->cur_path_label, 1);
|
||||||
e_widget_disabled_set (cfdata->cur_path_entry, 1);
|
e_widget_disabled_set (cfdata->cur_path_entry, 1);
|
||||||
e_widget_entry_text_set (cfdata->cur_path_entry, "");
|
e_widget_entry_text_set (cfdata->cur_path_entry, "");
|
||||||
e_widget_entry_text_set (cfdata->new_path_entry, _("Inbox"));
|
e_widget_entry_text_set (cfdata->new_path_entry, D_("Inbox"));
|
||||||
if (cfdata->ssl)
|
if (cfdata->ssl)
|
||||||
{
|
{
|
||||||
e_widget_entry_text_set (cfdata->port_entry, "993");
|
e_widget_entry_text_set (cfdata->port_entry, "993");
|
||||||
|
|
12
e_mod_main.c
12
e_mod_main.c
|
@ -174,7 +174,7 @@ _gc_orient (E_Gadcon_Client * gcc)
|
||||||
static char *
|
static char *
|
||||||
_gc_label (void)
|
_gc_label (void)
|
||||||
{
|
{
|
||||||
return D_ ("Mail");
|
return D_("Mail");
|
||||||
}
|
}
|
||||||
|
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
|
@ -220,7 +220,7 @@ _mail_cb_mouse_down (void *data, Evas * e, Evas_Object * obj,
|
||||||
snprintf (buf, sizeof (buf), "%s/module.eap",
|
snprintf (buf, sizeof (buf), "%s/module.eap",
|
||||||
e_module_dir_get (mail_config->module));
|
e_module_dir_get (mail_config->module));
|
||||||
mm = e_menu_item_new (mn);
|
mm = e_menu_item_new (mn);
|
||||||
e_menu_item_label_set (mm, _("Mailboxes"));
|
e_menu_item_label_set (mm, D_("Mailboxes"));
|
||||||
e_menu_item_icon_edje_set (mm, buf, "icon");
|
e_menu_item_icon_edje_set (mm, buf, "icon");
|
||||||
|
|
||||||
sn = e_menu_new ();
|
sn = e_menu_new ();
|
||||||
|
@ -342,6 +342,9 @@ EAPI E_Module_Api e_modapi = {
|
||||||
EAPI void *
|
EAPI void *
|
||||||
e_modapi_init (E_Module * m)
|
e_modapi_init (E_Module * m)
|
||||||
{
|
{
|
||||||
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
|
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
||||||
|
|
||||||
conf_box_edd = E_CONFIG_DD_NEW ("Mail_Box_Config", Config_Box);
|
conf_box_edd = E_CONFIG_DD_NEW ("Mail_Box_Config", Config_Box);
|
||||||
#undef T
|
#undef T
|
||||||
#undef D
|
#undef D
|
||||||
|
@ -498,9 +501,8 @@ e_modapi_save (E_Module * m)
|
||||||
EAPI int
|
EAPI int
|
||||||
e_modapi_about (E_Module * m)
|
e_modapi_about (E_Module * m)
|
||||||
{
|
{
|
||||||
e_module_dialog_show (m, D_ ("Enlightenment Mail Module"),
|
e_module_dialog_show (m, D_("Enlightenment Mail Module"),
|
||||||
D_
|
D_("This is a module to notify when you have new mail."));
|
||||||
("This is a module to notify when you have new mail."));
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
*.pot
|
||||||
|
*.mo
|
|
@ -0,0 +1,28 @@
|
||||||
|
MAINTAINERCLEANFILES = Makefile.in $(PACKAGE).pot
|
||||||
|
|
||||||
|
MSGFMT = msgfmt
|
||||||
|
|
||||||
|
localedir = @LOCALEDIR@
|
||||||
|
locale_DATA = $(addsuffix .mo,$(ALL_LINGUAS))
|
||||||
|
|
||||||
|
EXTRA_DIST = $(PACKAGE).pot $(addsuffix .po,$(ALL_LINGUAS))
|
||||||
|
|
||||||
|
%.mo : %.po
|
||||||
|
$(MSGFMT) -f -o $@ $<
|
||||||
|
|
||||||
|
install-localeDATA:
|
||||||
|
uninstall-localeDATA:
|
||||||
|
install-data-local:
|
||||||
|
for L in $(ALL_LINGUAS); do \
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(localedir)/$$L/LC_MESSAGES; \
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$$L.mo $(DESTDIR)$(localedir)/$$L/LC_MESSAGES/$(PACKAGE).mo; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
for L in $(ALL_LINGUAS); do \
|
||||||
|
rm -f $(DESTDIR)$(localedir)/$$L/LC_MESSAGES/$(PACKAGE).mo; \
|
||||||
|
done
|
||||||
|
|
||||||
|
clean-local:
|
||||||
|
rm -f *.mo
|
|
@ -0,0 +1,132 @@
|
||||||
|
# Italian translation for E17 mail module.
|
||||||
|
# This file is put in the public domain.
|
||||||
|
# Massimo Maiurana <maiurana@inwind.it>, 2006.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Mail\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2006-08-26 20:22+0200\n"
|
||||||
|
"PO-Revision-Date: 2006-08-26 21:07+0200\n"
|
||||||
|
"Last-Translator: Massimo Maiurana <maiurana@inwind.it>\n"
|
||||||
|
"Language-Team: none\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: e_mod_config.c:50
|
||||||
|
msgid "Mail Configuration"
|
||||||
|
msgstr "Configurazione di Mail"
|
||||||
|
|
||||||
|
#: e_mod_config.c:93
|
||||||
|
msgid "Always Show Labels"
|
||||||
|
msgstr "Mostra etichette"
|
||||||
|
|
||||||
|
#: e_mod_config.c:95
|
||||||
|
msgid "Check Interval"
|
||||||
|
msgstr "Frequenza dei controlli"
|
||||||
|
|
||||||
|
#: e_mod_config.c:98
|
||||||
|
#, c-format
|
||||||
|
msgid "%2.0f minutes"
|
||||||
|
msgstr "%2.0f minuti"
|
||||||
|
|
||||||
|
#: e_mod_config.c:103
|
||||||
|
msgid "Mail Boxes"
|
||||||
|
msgstr "Caselle di posta"
|
||||||
|
|
||||||
|
#: e_mod_config.c:123
|
||||||
|
msgid "Configure..."
|
||||||
|
msgstr "Configura..."
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:60
|
||||||
|
msgid "Mailbox Configuration"
|
||||||
|
msgstr "Configurazione casella di posta"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:140
|
||||||
|
msgid "Start Program When New Mail Arrives"
|
||||||
|
msgstr "Avvia programma all'arrivo di nuova posta"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:145
|
||||||
|
msgid "Program:"
|
||||||
|
msgstr "Programma:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:157
|
||||||
|
msgid "Mailbox Type"
|
||||||
|
msgstr "Tipo di casella"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:159
|
||||||
|
msgid "Pop3"
|
||||||
|
msgstr "Pop3"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:162
|
||||||
|
msgid "Imap"
|
||||||
|
msgstr "Imap"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:165
|
||||||
|
msgid "Maildir"
|
||||||
|
msgstr "Maildir"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:168
|
||||||
|
msgid "Mbox"
|
||||||
|
msgstr "Mbox"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:173
|
||||||
|
msgid "Port Settings"
|
||||||
|
msgstr "Impostazioni porta"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:175
|
||||||
|
msgid "Use SSL:"
|
||||||
|
msgstr "Usa SSL:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:181
|
||||||
|
msgid "Port:"
|
||||||
|
msgstr "Porta:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:188
|
||||||
|
msgid "Mailbox Settings"
|
||||||
|
msgstr "Impostazioni account"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:189
|
||||||
|
msgid "Name:"
|
||||||
|
msgstr "Nome:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:194
|
||||||
|
msgid "Mail Host:"
|
||||||
|
msgstr "Server remoto:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:199
|
||||||
|
msgid "Username:"
|
||||||
|
msgstr "Nome utente:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:204
|
||||||
|
msgid "Password:"
|
||||||
|
msgstr "Password:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:209
|
||||||
|
msgid "New Mail Path:"
|
||||||
|
msgstr "Percorso nuova posta:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:221
|
||||||
|
msgid "Current Mail Path:"
|
||||||
|
msgstr "Percorso posta corrente:"
|
||||||
|
|
||||||
|
#: e_mod_config_box.c:356
|
||||||
|
msgid "Inbox"
|
||||||
|
msgstr "Posta in arrivo"
|
||||||
|
|
||||||
|
#: e_mod_main.c:177
|
||||||
|
msgid "Mail"
|
||||||
|
msgstr "Posta"
|
||||||
|
|
||||||
|
#: e_mod_main.c:223
|
||||||
|
msgid "Mailboxes"
|
||||||
|
msgstr "Caselle postali"
|
||||||
|
|
||||||
|
#: e_mod_main.c:504
|
||||||
|
msgid "Enlightenment Mail Module"
|
||||||
|
msgstr "Modulo Mail di Enlightenment"
|
||||||
|
|
||||||
|
#: e_mod_main.c:505
|
||||||
|
msgid "This is a module to notify when you have new mail."
|
||||||
|
msgstr "Questo è un modulo per notificare l'arrivo di nuova posta"
|
Loading…
Reference in New Issue