[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#321389: marked as done (scripts/l10n/l10nspellcheck/extract_msg.pl patch for plural forms)



Your message dated Mon, 8 Aug 2005 22:02:31 +0200
with message-id <20050808200231.GA4411@slurp>
and subject line scripts/l10n/l10nspellcheck/extract_msg.pl patch for plural forms
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Aug 2005 08:14:05 +0000
>From eddy.petrisor@gmail.com Fri Aug 05 01:14:05 2005
Return-path: <eddy.petrisor@gmail.com>
Received: from zproxy.gmail.com [64.233.162.192] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E0xLB-0001es-00; Fri, 05 Aug 2005 01:14:05 -0700
Received: by zproxy.gmail.com with SMTP id x3so319247nzd
        for <submit@bugs.debian.org>; Fri, 05 Aug 2005 01:13:34 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=hxICPXtCqe6d8oxo38Zt6iCrraTfzNLKqVrt2AFYkRcqtm09j2sn3tA64IPFFBhJ+0k5CD9+Pu+ppqw7a+WomgxYUYQLlz8zbITFHcjOawWSBmLrcIv+sIV6wTWdVdYL9+bYEeBO5yUZlqUsbgOHq9uCW7OUq0YlKG0tiocu+l8=
Received: by 10.37.20.51 with SMTP id x51mr1091044nzi;
        Fri, 05 Aug 2005 01:13:34 -0700 (PDT)
Received: by 10.36.18.2 with HTTP; Fri, 5 Aug 2005 01:13:34 -0700 (PDT)
Message-ID: <60381eeb05080501134c0e2569@mail.gmail.com>
Date: Fri, 5 Aug 2005 11:13:34 +0300
From: Eddy Petrisor <eddy.petrisor@gmail.com>
To: "zinosat@tiscali.it" <zinosat@tiscali.it>
Subject: scripts/l10n/l10nspellcheck/extract_msg.pl patch for plural forms
Cc: Debian Install System Team <debian-boot@lists.debian.org>, 
	submit@bugs.debian.org
In-Reply-To: <42BFBD5D00004F61@mail-4.tiscali.it>
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2815_20258594.1123229614789"
References: <42BFBD5D00004F61@mail-4.tiscali.it>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-7.2 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	TO_ADDRESS_EQ_REAL autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02

------=_Part_2815_20258594.1123229614789
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Package: debian-installer
Severity: normal
Tags: patch

On 6/28/05, zinosat@tiscali.it <zinosat@tiscali.it> wrote:
> Hi Eddy,

> I'd like to use your script for extracting strings from the po files; the=
re's
> still
> the problem with the path in the "*** path" string and I'm experimenting
> a
> bit to find out a good solution: you might have to make some changes.

I have clearly expressed two possible solutions to this, and adding a
hard coded path to the file is ugly.

The proposed solutions are:
- set an environment variable with the path to be added to the input
file before running the script; read that ENV and
- give the path prefix as a parameter

Running a cwd to get the output and concatenating it with the given
input file is a plain hack 'cause one must eliminate a part of it (was
/home/zinosat or something like that)

Well, all are kind of wrong; if one uses concatenation, 'cause the
input file's path is relative and one might give it as "../../some.po"
and concatenating that with the detected path is plain wrong and ugly.

>=20
> I noticed that the script fails to work with some particular strings (fou=
nd
> in  level2
> po files):
>=20
> for example base-config.po contains this (I pasted the "de" because atm I
> have this file already open :))
>=20
> . Several notes for translators:
> #. * The singular form is only there to make use of plural forms;
> #. * If package count is 0, a separate error message should be displayed.
> #. * This sentence is part of a longer paragraph, full stop is omitted he=
re.
> #. * "${PACKAGE_COUNT}" must not be translated.
> #: ../apt-setup:308
> #, sh-format
> msgid "The Debian package management tool, apt, is now configured, and ca=
n
> install ${PACKAGE_COUNT} package"
> msgid_plural "The Debian package management tool, apt, is now configured,
> and can install ${PACKAGE_COUNT} packages"
> msgstr[0] "Der Debian Paketmanager Apt wurde konfiguriert, es k=F6nnen al=
lerdings
> keine Pakete installiert werden"
> msgstr[1] "Der Debian Paketmanager Apt wurde konfiguriert und kann ${PACK=
AGE_COUNT}
> Pakete installieren"
>=20
> could you please see if you can make your script catch this strings?
> thanx in advance
>=20

The attached patch should be applied to the script
scripts/l10n/l10nspellcheck/extract_msg.pl in order to catch the
plural forms (catches also msgid and msgid_plural).

Please apply and commit the patch (commit comment: "add suport for
plural forms")

--=20
Regards,
EddyP
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
"Imagination is more important than knowledge" A.Einstein

------=_Part_2815_20258594.1123229614789
Content-Type: application/octet-stream; name="plural_forms.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="plural_forms.patch"

SW5kZXg6IGV4dHJhY3RfbXNnLnBsCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGV4dHJhY3RfbXNnLnBsCShyZXZp
c2lvbiAyODgzMykKKysrIGV4dHJhY3RfbXNnLnBsCSh3b3JraW5nIGNvcHkpCkBAIC0yMyw4ICsy
Myw4IEBACiBzdWIgc2V0dXAoKQogewogCSRuZWVkaGVscCA9IDE7Ci0JaWYgKCRtc2dpZCkgeyRt
c2dtYXJrPSJtc2dpZCI7ICRuZWVkaGVscCA9IDA7fQotCWlmICgkbXNnc3RyKSB7JG1zZ21hcms9
Im1zZ3N0ciI7ICRuZWVkaGVscCA9IDA7fQorCWlmICgkbXNnaWQpIHskbXNnbWFyaz0ibXNnaWQi
OyAkbWFya3N1cD0nX3BsdXJhbCc7ICRuZWVkaGVscCA9IDA7fQorCWlmICgkbXNnc3RyKSB7JG1z
Z21hcms9Im1zZ3N0ciI7ICRtYXJrc3VwPSdcW1xkK1xdJzsgJG5lZWRoZWxwID0gMDt9CiAJaWYg
KCRub2lnbm9yZSkKIAl7CiAJCWlmICgkbXNnbWFyaykgeyRmaXJzdHRpbWUgPSAwO30KQEAgLTkx
LDkgKzkxLDkgQEAKIAkjIHByb2Nlc3MgJGxpbmUgaGVyZQogCXVubGVzcyAoICRsaW5lID1+IC9e
XHMqIy4qLyApCiAJewotCQlpZiAoICRsaW5lID1+IC9eJG1zZ21hcmsgLiovKQorCQlpZiAoICRs
aW5lID1+IC9eJG1zZ21hcmsoJG1hcmtzdXApPyAuKi8pCiAJCXsKLQkJCSRsaW5lID1+IHMvXiRt
c2dtYXJrICguKikvXDEvOworCQkJJGxpbmUgPX4gcy9eJG1zZ21hcmsoJG1hcmtzdXApPyAoLiop
L1wyLzsKIAkJCXVubGVzcyAoJGxpbmUgPX4gL15cIlwiLykgeyBwcmludCAiLSAkbGluZSI7fQog
CQkJI2RvIG5vdCBwYXJzZSB0aGUgaGVhZGVyLCBpZiByZXF1ZXN0ZWQgbm90IHRvLgogCQkJaWYg
KCRmaXJzdHRpbWUgPT0gMCkgeyRpc21zZyA9IDE7fQo=
------=_Part_2815_20258594.1123229614789--

---------------------------------------
Received: (at 321389-done) by bugs.debian.org; 8 Aug 2005 20:03:06 +0000
>From zinosat@tiscali.it Mon Aug 08 13:03:06 2005
Return-path: <zinosat@tiscali.it>
Received: from vsmtp2alice.tin.it [212.216.176.142] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E2Dpy-00061m-00; Mon, 08 Aug 2005 13:03:06 -0700
Received: from localhost.localdomain (82.58.109.22) by vsmtp2alice.tin.it (7.2.060.1)
        id 42F1D3430006BDF3 for 321389-done@bugs.debian.org; Mon, 8 Aug 2005 22:02:31 +0200
Received: from zino by localhost.localdomain with local (Exim 4.50)
	id 1E2DpQ-0001GH-0S
	for 321389-done@bugs.debian.org; Mon, 08 Aug 2005 22:02:32 +0200
Date: Mon, 8 Aug 2005 22:02:31 +0200
To: 321389-done@bugs.debian.org
Subject: scripts/l10n/l10nspellcheck/extract_msg.pl patch for plural forms
Message-ID: <20050808200231.GA4411@slurp>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S"
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
From: Davide Viti <zinosat@tiscali.it>
Delivered-To: 321389-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02


--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Patch applied.
Now msgstrs and msgid are extracted using this patched version
of Eddy's perl script in place of the awk scripts.

cheers,

Davide

--AhhlLboLdkugWU4S
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC97pXax2slmJA7HoRAgyOAJkBg0RWIJjVv4dIRquZ2IQXNrxzvACePqIM
4lwMzEYyTpY9bye4maElHy8=
=7/Ca
-----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--



Reply to: