Bug#1098919: Help to improve comparison in english/international/l10n/scripts/gen-files.pl

Paulo Henrique Santana <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <19544117f1f.127920c32682019.6819640765680435553__27000.3403000132$1740604892$gmane$org@debian.org>
Hi,

More details about the bug.

If you look this page, you will see the first table listing some packages:
https://www.debian.org/international/l10n/po/pt_BR

Looking some of their po files, we can see the name and the address of the team on the same line:
https://sources.debian.org/src/shadow/1%3A4.17.3-1/po/pt_BR.po/
https://sources.debian.org/src/xscreensaver/6.08%2Bdfsg1-1/po/pt_BR.po/
https://sources.debian.org/src/pppconfig/2.3.30/po/pt_BR.po/

"Language-Team: Debian-BR Project <[email protected]>\n"

There are other variations:
"Language-Team: Debian-BR <[email protected]>\n"
"Language-Team: l10n portuguese <[email protected]>\n"

As I said before, to build the first table, the script compares the address of the team with this field Language-Team.

When we look other packages on the second table, we can see the line has more than 80 collums and the address is broken:

https://sources.debian.org/src/cwidget/0.5.18-6/po/pt_BR.po/
"Language-Team: Brazilian Portuguese <[email protected]."
"org>\n"

https://sources.debian.org/src/debian-security-support/1%3A13%2B2025.01.30/po/pt_BR.po/
"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists."
"debian.org>\n"

On the second table, you can see the collum "Equipe" is empty for these cases.
So, the package was translated [email protected] team but the script can't deal with broken lines.

For the po debconf files, we have similar issue. There are around 80 packages are not listed on this page:
https://www.debian.org/international/l10n/po-debconf/pt_BR

Some of them:
https://sources.debian.org/src/anna/1.96/debian/po/pt_BR.po/
https://sources.debian.org/src/apt-setup/1%3A0.192/debian/po/pt_BR.po/
https://sources.debian.org/src/base-installer/1.222/debian/po/pt_BR.po/

"Language-Team: Brazilian Portuguese <[email protected]."
"org>\n"

Ideally, we would like the script gets the second line when the address is broken.
Or maybe consider only the first part of the address until the @: debian-l10n-portuguese

https://salsa.debian.org/webmaster-team/webwml/-/blob/master/english/international/l10n/scripts/gen-files.pl?ref_type=heads#L331

Best regards,

 
-----
Paulo Henrique de Lima Santana (phls)
Belo Horizonte - Brasil
Debian Developer
Associado do Instituto para Conservação de Tecnologias Livres
Site: http://phls.com.br
GPG ID: 0443C450
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.