Bug#913396: www.debian.org: adding code for Spanish in webwml/english/template/debian/projectnews/footer.wml
Rafa <[email protected]>
| Newsgroups | gmane.linux.debian.devel.www |
|---|---|
| Message-ID | <20181110132237.stbecqa3atr23r6s__46506.9619393491$1541857487$gmane$org@rptv.info> |
Package: www.debian.org
Severity: wishlist
Dear Maintainers,
Script webwml/english/template/debian/projectnews/footer.wml includes
code for several languages (but not for Spanish) when dealing with the
"translator" and "editor" tags. In case the text for any of those tags
includes at least a comma, an appropiate term, which depends on the
language, is substituted for the last comma.
The lack of a specific treatment for Spanish implies that the Spanish
translations get the default treatment, which means that the term
"and" is subsituted for the last comma.
We would like the Spanish case to be incorporated into the script. We
have discussed the issue briefly in the debian-l10n-spanish mailing
list, and we see two possible approaches to this:
1. Substitute the term "y" or "e" (whichever is correct in each case)
for the last comma.
2. Do not perform any substitution.
While the first approach would be the preferred one, it would probably
be quite hard to implement, as the Spanish rules that define whether the
term to use is "y" or "e" are, by no means, simple.
So, if the first approach were not practical, the second one (which is,
of course, much easier to implement) would be good enough. Moreover, in
this case the translator would have the chance to write in the wml page
the correct term ("y" or "e"), which is, I think, a most natural action
for a translator to perform.
In case the second approach is the one implemented, I provide a patch
that could, probably, do the job.
Regards,
Rafa.
0001-Leave-translator-and-editor-unmodified-when-translat.patch
(text/x-diff, 1.2 KB)
From 53f1114811355a5a9bfaf86ca10a537113405d70 Mon Sep 17 00:00:00 2001 From: Rafa <[email protected]> Date: Sat, 10 Nov 2018 14:03:46 +0100 Subject: [PATCH] Leave 'translator' and 'editor' unmodified when translating to Spanish --- english/template/debian/projectnews/footer.wml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/english/template/debian/projectnews/footer.wml b/english/template/debian/projectnews/footer.wml index 8297ae8d4b2..1f1f05416b8 100644 --- a/english/template/debian/projectnews/footer.wml +++ b/english/template/debian/projectnews/footer.wml @@ -97,6 +97,8 @@ } elsif ($CUR_ISO_LANG eq 'it') { $translator =~ s/,([^,]+)$/ e $1/; $translator =~ s/,/, /g; + } elsif ($CUR_ISO_LANG eq 'es') { + $translator =~ s/,/, /g; } else { # Fallback to the english style if there's no translation yet $translator =~ s/,([^,]+)$/ and $1/; @@ -181,6 +183,8 @@ } elsif ($CUR_ISO_LANG eq 'it') { $editor =~ s/,([^,]+)$/ e $1/; $editor =~ s/,/, /g; + } elsif ($CUR_ISO_LANG eq 'es') { + $editor =~ s/,/, /g; } else { # Fallback to the english style if there's no translation yet $editor =~ s/,([^,]+)$/ and $1/; -- 2.11.0
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEmWG93VeeZdp4txl4ZtqJNWf7L+EFAlvm23sACgkQZtqJNWf7 L+Hh6xAAwH5cbrjZQR7aKzuuwk2apC/lKo7VVCeTM7y+D6hiAY1zso2HIgsLv2Uy czom8OP7SWEDKGuIG1BkzLC44v8hOclubFgbFmgq7m6DAT0ArOPIM3+3f22NsbWe Gu3RKlmjFHwfwtfuicNLYHNrWl2oima3jIkeCK/uZq5ZOBpm7SUjAnJMq5gqZCUi JTpl6L53vxX6eshS+cbKbzfqXjLwdq0vbT34jf0ymqGPN9O+s1penTp/kB3EVtev ClLBIkzseKkfvgAW7vmShu2vJn09jHFRv7nVCDk+ijLPcpWWaitVV9L2Ex/yhW43 F2tm4XCn2NlA2ve69wbcWNhzRP74ipZryuRzlpIu35c2fZfefs8EVcbyEaHj9bUV 21iO6gXXMfQ7S6598eqBMQoUwYjUWe2GIi/hdmdLvh25AWK1dW41Uisjly2PXtvx jgalp+obWphDT9ieN23REoHeaYVkdTpcW6BIiJ9goKDXOkWrisZw2vLwYJeT3a/M b/RW/NWEGuNkbY2MxcVAklLAsMl//JpF9OKlOxz+mZqv5y09YflRnhWZeJxaLOmY DdQbbG0u4ZABrOQdk5jHInlPjH0Nh1Yhzwd2J11HMv3qi3UR07oUWvJakV+qzHde YmLjjDMvaEqbl2rMcmpqv0wO6HIZ38Ivn7gEIrU6xGYY2nxPg4c= =ZCkD -----END PGP SIGNATURE-----