Your message dated Sun, 07 Oct 2012 22:18:35 +0000 with message-id <[email protected]> and subject line Bug#684182: fixed in ruby-gettext 2.2.1-3 has caused the Debian Bug report #684182, regarding ruby-gettext: rgettext wrongly skips translatable strings containing the hash symbol (#) to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 684182: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684182 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: ruby-gettext Version: 2.2.1-2 Severity: normal Hello, thanks for maintaining ruby-gettext in Debian! I noticed a bug in rgettext. I prepared a small test case to reproduce it. Let's consider the following short Ruby program: $ cat myapplication.rb #!/usr/bin/ruby1.8 # Copyright (C) 2012 Francesco Poli # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License with # the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; # if not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA require 'gettext' include GetText GetText::bindtextdomain("myapplication") count = 0 print _("Hello everybody!\n") count += 1 print _("You are running an internationalized Ruby program.\n") count += 1 # TRANSLATORS: %d is the number of already printed messages print _("You have already seen %d translatable messages.\n") % count print _("Is this message # 3 or # 4 ?\n") print _("OK, I am tired...\n") print _("Goodbye!\n") Suppose we want to generate the corresponding .pot file. We can use xgettext (from the gettext package): $ xgettext --add-comments=TRANSLATORS --no-wrap \ --copyright-holder="Francesco Poli" \ --package-name=myapplication --package-version=0.1 \ --msgid-bugs-address="[email protected]" \ --language=python \ myapplication.rb -o myapplication_XGETTEXT.pot $ cat myapplication_XGETTEXT.pot # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Francesco Poli # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: myapplication 0.1\n" "Report-Msgid-Bugs-To: [email protected]\n" "POT-Creation-Date: 2012-08-07 16:38+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: myapplication.rb:24 msgid "Hello everybody!\n" msgstr "" #: myapplication.rb:27 msgid "You are running an internationalized Ruby program.\n" msgstr "" #. TRANSLATORS: %d is the number of already printed messages #: myapplication.rb:31 #, python-format msgid "You have already seen %d translatable messages.\n" msgstr "" #: myapplication.rb:33 msgid "Is this message # 3 or # 4 ?\n" msgstr "" #: myapplication.rb:35 msgid "OK, I am tired...\n" msgstr "" #: myapplication.rb:37 msgid "Goodbye!\n" msgstr "" Everything seems to be OK. But the language is actually Ruby, not Python. Hence, rgettext should be the tool of choice. Let's try with rgettext, then: $ rgettext myapplication.rb -o myapplication_RGETTEXT.pot $ cat myapplication_RGETTEXT.pot # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2012-08-07 16:39+0200\n" "PO-Revision-Date: 2012-08-07 16:39+0200\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: myapplication.rb:24 msgid "Hello everybody!\n" msgstr "" #: myapplication.rb:27 msgid "You are running an internationalized Ruby program.\n" msgstr "" #. %d is the number of already printed messages #: myapplication.rb:31 msgid "You have already seen %d translatable messages.\n" msgstr "" #. %d is the number of already printed messages #: myapplication.rb:35 msgid "OK, I am tired...\n" msgstr "" #. %d is the number of already printed messages #: myapplication.rb:37 msgid "Goodbye!\n" msgstr "" Wait! Where is the string from line 33 ?!? It seems that it was wrongly skipped, since it contains hash symbols (#)... I think that this should not happen. Please fix this bug and/or forward this bug report upstream. Thanks for your time! -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (800, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ruby-gettext depends on: ii ruby 4.9 ii ruby-locale 2.0.5-5 ii ruby1.8 [ruby-interpreter] 1.8.7.358-4 ii ruby1.9.1 [ruby-interpreter] 1.9.3.194-1 ruby-gettext recommends no packages. ruby-gettext suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: ruby-gettext Source-Version: 2.2.1-3 We believe that the bug you reported is fixed in the latest version of ruby-gettext, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Hleb Valoshka <[email protected]> (supplier of updated ruby-gettext package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Wed, 08 Aug 2012 21:42:52 +0300 Source: ruby-gettext Binary: ruby-gettext libgettext-ruby libgettext-ruby1.8 libgettext-ruby1.9.1 Architecture: source all Version: 2.2.1-3 Distribution: unstable Urgency: low Maintainer: Debian Ruby Extras Maintainers <[email protected]> Changed-By: Hleb Valoshka <[email protected]> Description: libgettext-ruby - Transitional package for ruby-gettext libgettext-ruby1.8 - Transitional package for ruby-gettext libgettext-ruby1.9.1 - Transitional package for ruby-gettext ruby-gettext - gettext for Ruby Closes: 682543 684182 684184 Changes: ruby-gettext (2.2.1-3) unstable; urgency=low . [ Cédric Boutillier ] * Improve description. Thanks to Justin B. Rye (Closes: #682543) . [ Hleb Valoshka ] * debian/patches - 0004-reset-last_comment-when-pomessage-is-stored.patch: rgettext won't skip translatable strings containing the hash symbol (Closes: #684182) - 0005-process-RubyToken-TkDSTRING-too.patch: rgettext won't copy comments for translators to all subsequent messages (Closes: #684184) * Fix lintian complaints. * Ensure tests are run. Checksums-Sha1: bc2f488aed2c69481fda473c21aa8098195972c6 2246 ruby-gettext_2.2.1-3.dsc 53f58efa0e82d43616dbb2b5706ae73e81dc868f 8369 ruby-gettext_2.2.1-3.debian.tar.gz 1675323df159b1a442ec653651ff2aa0a82a3ef1 67240 ruby-gettext_2.2.1-3_all.deb ae833afa0a28baa605a5f0170d224a2bac45f5ef 5920 libgettext-ruby_2.2.1-3_all.deb 7dbbc882852ee5e1c5c56054a6ff5242454a6e37 5928 libgettext-ruby1.8_2.2.1-3_all.deb f121718b3b4d4060a9baf36eb570d1e43afd31a9 5926 libgettext-ruby1.9.1_2.2.1-3_all.deb Checksums-Sha256: 47ebc367f4c6bd5e7bfb01e3302c908780f7e4115b947b4c821e1277a8b2a147 2246 ruby-gettext_2.2.1-3.dsc b4ea28d29f38c27dfaa9bb63823deafefe39d55cddde68bba1d59685987a6a60 8369 ruby-gettext_2.2.1-3.debian.tar.gz f6998e50de79fb4e1082f6190b3c48346d25346b836be0a886301110087f689c 67240 ruby-gettext_2.2.1-3_all.deb 44e03fc309ac61950455b2c77120959d3bbbd194ddd44c5f609e851c8ed0ff04 5920 libgettext-ruby_2.2.1-3_all.deb 1bde8ca034a0ee8fe8d85aa2e044d1b7e1749391a8b1652ce004c784cecbddce 5928 libgettext-ruby1.8_2.2.1-3_all.deb c7e76c8b6705163d91984a398fc4f90f54ca00e636d13f392269684a827cc434 5926 libgettext-ruby1.9.1_2.2.1-3_all.deb Files: fa22e7ba445bb45143ac0314438bb7de 2246 ruby optional ruby-gettext_2.2.1-3.dsc d0807a2fd238bad9ad74027e9b5e6203 8369 ruby optional ruby-gettext_2.2.1-3.debian.tar.gz 8560069e3d34a0593f496be687b3a415 67240 ruby optional ruby-gettext_2.2.1-3_all.deb 4efc104a754449501b58afb2e0cb77da 5920 oldlibs extra libgettext-ruby_2.2.1-3_all.deb 99a7912ba7a9104de09420e323cd09e4 5928 oldlibs extra libgettext-ruby1.8_2.2.1-3_all.deb db98abbcd786b94b5e0c66b2891df6c3 5926 oldlibs extra libgettext-ruby1.9.1_2.2.1-3_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJQcftjAAoJENpJWPYR4UnpKkQQAJDyx8ebKsPT6WRapQA2nlz1 fUnM3CxLcbRSkjZSTRePXU9ZqEDo6irgBK+qcJInWM+d+PjuYBgfV4m72elOkLgo t0TuvxoazTVQuwGEI1MYJWT0m3+pDvzORlLdowkWruU3C8DRGpCd8TGUl0jvnf51 LVlteYN+ZEz4cU6czwJfSeaHVvgwyj3YEC7OfEljXx4AmntbxxaK2uXdhThNInh3 lnE2wz9KHv47NQ1QjDS6lFLL6SOtQOb2SHIloQXaWP0jbmA2MorWAArR68yaQHMt WHgyP7Bxi7MV5A6sZitQtxAmq4JtOOkvAbyywOo+uiWzCaWc03wf0BuIf+N0D3Yc c6+AAsUY46q7A62BymgabcMH4kEZC038GCWjIz7iZQY/pTKKUm6/09s5BNeLc9hJ IU2xDnmWmtjXNAMsIwhwS1cc3l5Z66UpzgSqRdk2gqxtmpebmWGTc4/sFNyG4IAP j9SjJto7Kuhf/1hByFnwiC0s9+ro296fTWpdlPHSOSWtFUFEEmP54AGwhSUCnIGq MbPO+7X+RJwBNLDsWpMBcM7IhLzBwRBNyZzU/BoB+xqdY9zuTYGkRVBWNO64zve7 i3DRXLvpRJe4N8EurjvqNA9LU0SB2I93hpi+WLYI/XR/tTHXKizeguhqvIMPBrTr eCS9Qzlv7svPSstHMmLm =mJXW -----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
