Re: apt-listbugs 0.1.9: Please translate the package apt-listbugs
"AYANOKOUZI, Ryuunosuke" <[email protected]> Mon, 22 Oct 2012 15:08:35 +0900
| Newsgroups | gmane.linux.debian.user.japanese |
|---|---|
| Message-ID | <87r4orrqcc.wl%[email protected]> |
Hi,
> According to
> http://www.gnu.org/software/gettext/manual/html_mono/gettext.html#Plural-forms
> it seems that Japanese has no distinction between singular and plural
> form.
> The correct Plural-Forms should therefore be:
>
> "Plural-Forms: nplurals=1; plural=0;\n"
>
> However, do I understand correctly that, if I add this Plural-Forms
> line to the ja.po file, only msgstr[0] translations will be selected
> (and msgstr[1] will never be used)?
Because of "plural=0" configuration, msgstr[0] is used and msgstr[1]
never be used.
> If this is indeed the case, maybe the following translations
>
>
> #. TRANSLATORS: %{plist} is a comma-separated list of %{npkgs} packages to be pinned or put on hold.
> #: lib/apt-listbugs/logic.rb:451
> msgid ""
> "The following package will be pinned or on hold:\n"
> " %{plist}\n"
> "Are you sure?"
> msgid_plural ""
> "The following %{npkgs} packages will be pinned or on hold:\n"
> " %{plist}\n"
> "Are you sure?"
> msgstr[0] ""
> "以下のパッケージがピン止め、または保留されます:\n"
> " %{plist}\n"
> "よろしいですか "
> msgstr[1] ""
> "以下の %{npkgs} 個のパッケージがピン止め、または保留されます:\n"
> " %{plist}\n"
> "よろしいですか "
>
> [...]
>
> #. TRANSLATORS: %{nbugs} is the number of bugs found for package %{packg}.
> #: lib/apt-listbugs/logic.rb:579
> msgid "%{packg}(%{nbugs} bug)"
> msgid_plural "%{packg}(%{nbugs} bugs)"
> msgstr[0] "%{packg}(%{nbugs} 個)"
> msgstr[1] "%{packg}(%{nbugs} 個)"
>
>
> should be changed to
>
>
> #. TRANSLATORS: %{plist} is a comma-separated list of %{npkgs} packages to be pinned or put on hold.
> #: lib/apt-listbugs/logic.rb:451
> msgid ""
> "The following package will be pinned or on hold:\n"
> " %{plist}\n"
> "Are you sure?"
> msgid_plural ""
> "The following %{npkgs} packages will be pinned or on hold:\n"
> " %{plist}\n"
> "Are you sure?"
> msgstr[0] ""
> "以下の %{npkgs} 個のパッケージがピン止め、または保留されます:\n"
> " %{plist}\n"
> "よろしいですか "
>
> [...]
>
> #. TRANSLATORS: %{nbugs} is the number of bugs found for package %{packg}.
> #: lib/apt-listbugs/logic.rb:579
> msgid "%{packg}(%{nbugs} bug)"
> msgid_plural "%{packg}(%{nbugs} bugs)"
> msgstr[0] "%{packg}(%{nbugs} 個)"
>
>
>
>
> Do you agree?
I think msgstr[1] should be removed from ja.po. "nplurals=1" define
allocated msgstr array size and the size is limited to 1. So, contents
of msgstr[1] is not allocated on memory.
After I removed those msgstr[1] definitions, I checked ja.po by
following command.
$ msgfmt --statistics -c -v -o /dev/null ja.po
It didn't show up any errors or warnings.
Regards,
AYANOKOUZI, Ryuunosuke
--
AYANOKOUZI, Ryuunosuke <[email protected]>
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJQhOLiAAoJEOXYFX3PnHDo600P/i1n5E4g7ioeQlI9Go2kgOjk /IVvP2GjqCvs7t5vCjSW0a3ial8ZXoPa+uTiXKgK8uy+9rmcVRlnKErpT+AVJqkO RYgttXW/j1uPj65XEBYV8zlok2jjY6DvL3Py2zLCrQw7ZSQ47788TXNl5MAJ5HpQ cihS3dAxEUcumqyyoweurNwpiqbxDG0QmD4LGnC7upVqd0NXZsq/CKAVrzdcnWKw SbFfU69kEGgsNOoAgGbsHRvA3UB/tFXiH8G9p7/K/VwlpfSd+1IGwLPvo7bng06W DXSi0JlcF7KkD6FbDFPr2AldB/U6t6Z80kx/6HqaeS8H+GnevEsGpUJlI9OY+F0M cwmscljFXQe3/ZMdm/2W3iTTcP9k9+V3qYm6bbyLOkcLMC3ykvKXrKKynrjek5Km DKHuG3UkIbcAowhFDxrz83CjIbBmnFeHEjXgEeKLAZdOBvyCXPuDLz0ZMmktdUqF Zkp8xQwjsnRtzyewxL41NQHzUll6rNV7NbfyUL/FVBUne+FwrYvIt1o2GWOsWxzK Hy9SfA8o06P6tCYCqwtgDq/HjMlARPOj7VouLU4TYG1sgAPIxuyciBRSQ1Qs20cX GclSj04uiHxv7wvOMo50I3stquijnpaThCd+MQQL6ZhhmH6OBoJKRrf69C2k5eNS J3HQhkYCs8cjSuboXAC5 =ZOvr -----END PGP SIGNATURE-----