Bug#705197: Language-Team field in po files should not contain debian-i18n@l.d.o

2013-04-22 Thread Russ Allbery
victory victory@gmail.com writes:

 I don't have any knowledge about packaging and how lintian works, though,
 something like this?

Thanks!  I've added a new check based on your work for the next release of
Lintian.

-- 
Russ Allbery (r...@debian.org)   http://www.eyrie.org/~eagle/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#705197: Language-Team field in po files should not contain debian-i18n@l.d.o

2013-04-11 Thread Andrei POPESCU
Package: lintian
Severity: wishlist
X-Debbugs-CC: debian-i...@lists.debian.org

On Ma, 09 apr 13, 08:25:37, Christian PERRIER wrote:
 
 To translators : please don't set debian-i...@lists.debian.org as
 Language-Team mailing list address in PO files. Better use the list
 dedicated to your language.
 
 Otherwise, calls for translation updates get sent to debian-i18n which
 is not very useful (Russ, no harm, of course, you can't check each and
 every PO file for this).
 
Maybe lintian could?

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Bug#705197: Language-Team field in po files should not contain debian-i18n@l.d.o

2013-04-11 Thread Christian PERRIER
(please keep debian-i18n CC'ed to answers)

Quoting Andrei POPESCU (andreimpope...@gmail.com):
 Package: lintian
 Severity: wishlist
 X-Debbugs-CC: debian-i...@lists.debian.org
 
 On Ma, 09 apr 13, 08:25:37, Christian PERRIER wrote:
  
  To translators : please don't set debian-i...@lists.debian.org as
  Language-Team mailing list address in PO files. Better use the list
  dedicated to your language.
  
  Otherwise, calls for translation updates get sent to debian-i18n which
  is not very useful (Russ, no harm, of course, you can't check each and
  every PO file for this).
  
 Maybe lintian could?


Good idea. Anyone coming up with a patch (I could risk doing that but
my perl-fu is somehow limited)? I bet Russ will include this in
lintian if we provide a patch.

We however need to also provide an explanation that lintian will give
when people meet this condition. In short, we need to explain
maintainers what should be done:
- either contact the person listed in Last-Translator and suggest
him|her to provide a better Language-Team field
- replace Language-Team with the releavant Debian language team: this
should be done only for debian/po/*.po *not* for upstream
translations...and this is anyway not the best suggestion for
maintainers to fiddle with this
- empty the field (probably the best solution, imho)




signature.asc
Description: Digital signature


Bug#705197: Language-Team field in po files should not contain debian-i18n@l.d.o

2013-04-11 Thread victory

I don't have any knowledge about packaging and how lintian works, though,
something like this?

-- 
victory
no need to CC me :-)
http://userscripts.org/scripts/show/102724 0.0.1.4
http://userscripts.org/scripts/show/163846 0.0.1
http://userscripts.org/scripts/show/163848 0.0.1
--- po-debconf
+++ po-debconf.new
@@ -146,8 +146,15 @@
 $_ = '';
 open(PO, '', $debfiles/po/$file)
 or fail(Can't open debfiles/po/$file file.);
+my ($msgstrok,$lang-team);
 while (PO) {
-last if m/^msgstr/m;
+$msgstrok = 1 if m/^msgstr/m;
+if(/Language\-Team:/){
+$lang-team = 1;
+tag 'debconf-template-using-genaral-list', $file
+if(/debian\-i18n\@lists\.debian\.org/);
+}
+last if($msgstrok  $lang-team);
 }
 close(PO);
 unless ($_) {
--- po-debconf.desc
+++ po-debconf.desc.new
@@ -77,6 +77,16 @@
  to be discarded. Run ttmsgfmt/tt on the file to see the error
  messages.
 
+Tag: debconf-template-using-genaral-list
+Severity: normal
+Certainty: certain
+Info: The debconf-template is using genaral list as 'Language-Team:' field.
+ .
+ The address is used for the language specific contact in addition to the
+ 'Last-Translator:' field.  This means the field needs a list address
+ dedicated to the language of the template file, instead of the genaral
+ list.
+
 Tag: misnamed-po-file
 Severity: normal
 Certainty: possible