Re: Bug#338056: Translation for aptitude
On 2005-11-19T11:54:24+0200, bubulle@debian.org wrote:
>> However considering that many translators get the aptitude POT file from
>> the d-i i18n web page, chances are that they've never seen this
>> README.i18n file (myself included). Maybe adding a pointer in the POT
>> file (maybe existing PO files as well) would be helpful?
>
> I have included current aptitude's README.i18n in the d-i i18n documentation.
Why isn't there translator comments in the PO files? If translator
comments come inside the PO files, then translators will see those
comments.
Here is a suggested patch:
diff -rN -u old-aptitude/po/Makevars new-aptitude/po/Makevars
--- old-aptitude/po/Makevars 2005-11-11 19:55:45.000000000 +0200
+++ new-aptitude/po/Makevars 2005-11-19 13:49:38.000000000 +0200
@@ -8,7 +8,7 @@
top_builddir = ..
# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=P_
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=P_ --add-comments=Translators
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
diff -rN -u old-aptitude/src/ui.cc new-aptitude/src/ui.cc
--- old-aptitude/src/ui.cc 2005-11-11 19:56:52.000000000 +0200
+++ new-aptitude/src/ui.cc 2005-11-19 13:49:46.000000000 +0200
@@ -2687,6 +2687,12 @@
{
string yesstring, nostring;
+ /* Translators: The first character of the translation of these
+ strings is the default binding of the key. For instance, the
+ string "yes_key" is used to set the default binding for
+ buttons labelled "Yes". To bind "j" to this command, you
+ could translate "yes_key" to "ja_key", "ja", or even just
+ "j". */
yesstring+=_("yes_key")[0];
nostring+=_("no_key")[0];
string yesnostring=deflt?yesstring+nostring:nostring+yesstring;
diff -rN -u old-aptitude/po/aptitude.pot new-aptitude/po/aptitude.pot
--- old-aptitude/po/aptitude.pot 2005-11-19 13:40:52.000000000 +0200
+++ new-aptitude/po/aptitude.pot 2005-11-19 13:48:48.000000000 +0200
@@ -9,7 +9,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: submit@bugs.debian.org\n"
-"POT-Creation-Date: 2005-11-19 00:33-0800\n"
+"POT-Creation-Date: 2005-11-19 13:48+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -4758,11 +4758,16 @@
"Pkgs"
msgstr ""
-#: src/ui.cc:2690 src/vscreen/vscreen.cc:724
+#. TRANS: The first character of the translation of these strings
+#. is the default binding of the key. For instance, the string
+#. "yes_key" is used to set the default binding for buttons
+#. labelled "Yes". To bind "j" to this command, you could
+#. translate "yes_key" to "ja_key", "ja", or even just "j".
+#: src/ui.cc:2695 src/vscreen/vscreen.cc:724
msgid "yes_key"
msgstr ""
-#: src/ui.cc:2691 src/vscreen/vscreen.cc:725
+#: src/ui.cc:2696 src/vscreen/vscreen.cc:725
msgid "no_key"
msgstr ""
--
Tommi Vainikainen
Reply to: