Bug#616567: http://www.debian.org/devel/website/stats/de.html without spaces at edges

2011-03-08 Thread Tobias Quathamer
Am Montag, den 07.03.2011, 16:28 -0400 schrieb David Prévot:
 Sorry, I forgot “english” in the target directory (/org is already a
 symlink to /srv on wolkenstein). Should be fixed now, thanks for the
 head-up.

Hi David,

thanks for spotting this, the pages build fine now. However, could you
log into www-master.d.o and remove the old (and now outdated) files
$(LANGUAGE).html? They are still present, but are no longer refreshed.

Regards,
Tobias

-- 
Tobias Quathamer | Women are just like men, only different.
Hamburg, Germany |



signature.asc
Description: This is a digitally signed message part


Bug#616567: http://www.debian.org/devel/website/stats/de.html without spaces at edges

2011-03-08 Thread David Prévot
Le 08/03/2011 05:22, Tobias Quathamer a écrit :
 Hi David,

Hi Tobias,

 thanks for spotting this, the pages build fine now. However, could you
 log into www-master.d.o and remove the old (and now outdated) files
 $(LANGUAGE).html? They are still present, but are no longer refreshed.

Ho, I thought I checked that yesterday and that the links were created
gracefully. Anyway, don't know if someone beat me on this one, but thats
fixed now.

For what it's worth, please find attached the current WIP patch I used
to build the French index [0]. I'll continue in order to offer the
ability to build those stats in every supported language via a single PO
file (as a translator, I thought about doing that for quite some time).

0: http://www.tilapin.org/debian/devel/website/stats/index.fr

I intend to create a website/devel/stats directory in each language and
handle the build à la sitemap, but if something smarter comes up, I
would be glad to try something else.

Regards

David

Index: stattrans.pl
===
RCS file: /cvsroot/webwml/webwml/stattrans.pl,v
retrieving revision 1.100
diff -u -r1.100 stattrans.pl
--- stattrans.pl	8 Mar 2011 06:23:20 -	1.100
+++ stattrans.pl	8 Mar 2011 13:44:38 -
@@ -45,7 +45,7 @@
 $opt_h = /srv/www.debian.org/webwml/english/devel/website/stats;
 $opt_w = /srv/www.debian.org/webwml;
 $opt_p = *.(wml|src);
-$opt_t = Debian web site translation statistics;
+$opt_t = 'stats_title';
 $opt_v = 0;
 $opt_d = u;
 $opt_l = undef;
@@ -475,6 +475,7 @@
 
 if (open (HTML, $config{'htmldir'}/$l.wml)) {
 	printf HTML #use wml::debian::template title=\%s\\n, ucfirst $lang;
+	print HTML #use wml::debian::stats_tags\n;
 	print HTML #use wml::debian::toc\n\n;
 $color = get_color ($percent_a{$lang});
 
@@ -593,11 +594,13 @@
 open (HTMLI, $config{'htmldir'}/index.wml)
 || die Can't open $config{'htmldir'}/index.wml;
 
+print HTMLI #use wml::debian::stats_tags\n;
+print HTMLI #use wml::debian::language_names\n;
 printf HTMLI #use wml::debian::template title=\%s\\n\n, $config{'title'};
-print HTMLI h2Translated web pages/h2\n;
-printf HTMLI pThere are %d pages to translate./p\n,($wml{'english'}+$untranslated{'english'});
+print HTMLI 'h2gettext domain=statsTranslated web pages/gettext/h2'.\n;
+printf HTMLI pstats_pages %d/p\n,($wml{'english'}+$untranslated{'english'});
 
-print HTMLI table summary=\Translation Statistics by Page Count\ class=\stattrans\\n;
+print HTMLI 'table summary=gettext domain=statsTranslation Statistics by Page Count/gettext class=stattrans'.\n;
 print HTMLI colgroup width=\20%\\n;
 print HTMLI col\n;
 print HTMLI /colgroup;
@@ -612,7 +615,11 @@
 print HTMLI col width=\10%\\n;
 print HTMLI /colgroup;
 print HTMLI thead;
-print HTMLI trthLanguage/thth colspan=\2\Translations/thth colspan=\2\Up to date/thth colspan=\2\Outdated/thth colspan=\2\Not translated/th/tr\n;
+print HTMLI 'trthgettext domain=statsLanguage/gettext/th'.\n;
+print HTMLI 'th colspan=2gettext domain=statsTranslations/gettext/th'.\n;
+print HTMLI 'th colspan=2gettext domain=statsUp to date/gettext/th'.\n;
+print HTMLI 'th colspan=2gettext domain=statsOutdated/gettext/th'.\n;
+print HTMLI 'th colspan=2gettext domain=statsNot translated/gettext/th/tr'.\n;
 print HTMLI /thead;
 print HTMLI tbody;
 foreach $lang (@search_in) {
@@ -625,7 +632,7 @@
 $color_u = get_color (100 - $percent_u{$lang});
 
 print HTMLI tr;
-printf HTMLI tha href=\%s\%s/a (%s)/th, $l, ucfirst $lang, $l;
+printf HTMLI tha href=\%s\:=\$trans{\$CUR_ISO_LANG}{%s} :/a (%s)/th, $l, $lang, $l;
 printf HTMLI td style=\background-color: %s\%d/tdtd(%.1f%%)/td, $color_a, $wml{$lang},  $percent_a{$lang};
 printf HTMLI td style=\background-color: %s\%d/tdtd(%.1f%%)/td, $color_t, $translated{$lang},   $percent_t{$lang};
 printf HTMLI td style=\background-color: %s\%d/tdtd(%.1f%%)/td, $color_o, $outdated{$lang}, $percent_o{$lang};
@@ -636,10 +643,10 @@
 print HTMLI /tbody;
 print HTMLI /table\n;
 
-print HTMLI h2Translated web pages (by size)/h2\n;
-printf HTMLI pThere are %d bytes to translate./p\n,($wml_s{'english'}+$untranslated_s{'english'});
+print HTMLI 'h2gettext domain=statsTranslated web pages (by size)/gettext/h2'.\n;
+printf HTMLI pstats_bytes %d/p\n,($wml_s{'english'}+$untranslated_s{'english'});
 
-print HTMLI table summary=\Translation Statistics by Page Size\ class=\stattrans\\n;
+print HTMLI 'table summary=gettext domain=statsTranslation Statistics by Page Size/gettext class=stattrans'.\n;
 print HTMLI colgroup span=\1\\n;
 print HTMLI col width=\20%\\n;
 print HTMLI /colgroup;
@@ -654,7 +661,11 @@
 print HTMLI col width=\7%\\n;
 print HTMLI /colgroup;
 print HTMLI thead;
-print HTMLI trthLanguage/thth colspan=\2\Translations/thth colspan=\2\Up to date/thth colspan=\2\Outdated/thth colspan=\2\Not translated/th/tr\n;
+print HTMLI 'trthgettext domain=statsLanguage/gettext/th'.\n;

Bug#616567: http://www.debian.org/devel/website/stats/de.html without spaces at edges

2011-03-07 Thread Tobias Quathamer
Am Montag, den 07.03.2011, 20:16 +0100 schrieb Tobias Quathamer:
 Hi,
 
 I've just committed my patch (with David's suggestions, many thanks!) to
 CVS, so the page should be rebuild in the next hour and use the new
 layout.

Hrm, that did not work. The stats pages are now not refreshed, but I
hope to have identified the issue and already committed a fix for
stattrans.pl.

If this is not the case (and the stats are not regenerated in the next
four hours), I suggest to revert the change and try to investigate what
the problem is.

Regards,
Tobias

-- 
Tobias Quathamer | There is no future in time travel.
Hamburg, Germany |



signature.asc
Description: This is a digitally signed message part


Bug#616567: http://www.debian.org/devel/website/stats/de.html without spaces at edges

2011-03-07 Thread David Prévot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Le 07/03/2011 16:06, Tobias Quathamer a écrit :
 Am Montag, den 07.03.2011, 20:16 +0100 schrieb Tobias Quathamer:
 Hi,

 I've just committed my patch (with David's suggestions, many thanks!) to
 CVS, so the page should be rebuild in the next hour and use the new
 layout.
 
 Hrm, that did not work. The stats pages are now not refreshed

Sorry, I forgot “english” in the target directory (/org is already a
symlink to /srv on wolkenstein). Should be fixed now, thanks for the
head-up.

Regards

David

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

iQIcBAEBCAAGBQJNdUAGAAoJELgqIXr9/gnyAjcP/jQHoyu6fvhb9Yoc/he3LhOp
NZlh4tO7vX7TosqBgS/nbwuyD1i+xDNaiBSU6thNSJQQIuBo1xSLm9Puf5xLrhIe
S8pAXxTmRCIGS/X0x7UREbhuehQqls6fe54v63f3fLYJ4u4XG/+ThmX87PZ2Ykpr
laeUFrePD/ne4f/mUXqPW/ml6fpCxftFwIdRTy44WsaAZ/Ti7o/FxcT7OqH1hn5q
Q0XpVx8SO5yWsh6n6jXPR9WZwNiAlUAn5eQvEKYE1IbMS+liji5KnUK65QZD0N3/
KioejtWrAjS/vZfT8hhro8F5uHYsUwsnW1vw1ouBoXMxGjU/EMpfgjmBDuVLYmM4
6GfJs1YBCavkpTLyxRr0vmiLYun3To2XSnaYcmf7OGXeYO7WB5lkrvX7nmmxVYA2
00MMNEoU2jvbzaHUTR6RrkPIIgwnrXcfYhNWaALUT/uZRNU32ldnTHqYZdKeNMJq
0XMgyYf99YAVIKc1+bb6/i8fBlD76M8jrP+QRQBgRaedjN0u1OwlIpZ+Sth2+yXO
xqwlu93a3ztjiIDS/Y3zuCg5oqMBOJ0yASTiu2AKUDm623o6z3uxL/4fSvIQBZJr
XNuxbgDtQmnY1X1djd2rPsUksTZnOnizFec0omfYERLMZFDPg/pypANzxui97EUC
vQrVRb4dhVpXnlWysYVO
=NKEl
-END PGP SIGNATURE-



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



Bug#616567: http://www.debian.org/devel/website/stats/de.html without spaces at edges

2011-03-05 Thread Helge Kreutzmann

Package: www.debian.org
Severity: normal

In the new layout the page has no space at either edge, i.e. at the
left side the letter start right at the border of the browser
(Iceweasel in Lenny). Especially if the browser window is very large this is
rather uncomfortable to read.

-- System Information:
Debian Release: 5.0.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32.28-grsec
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=UTF-8) (ignored: LC_ALL 
set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/bash
-- 
  Dr. Helge Kreutzmann deb...@helgefjell.de
   Dipl.-Phys.   http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
   Help keep free software libre: http://www.ffii.de/


signature.asc
Description: Digital signature


Bug#616567: http://www.debian.org/devel/website/stats/de.html without spaces at edges

2011-03-05 Thread David Prévot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

Le 05/03/2011 12:48, Helge Kreutzmann a écrit :
 Package: www.debian.org

 In the new layout the page has no space at either edge, i.e. at the
 left side the letter start right at the border of the browser
 (Iceweasel in Lenny). Especially if the browser window is very large this is
 rather uncomfortable to read.

Tobias (CCed) already proposed a patch yesterday [1] and I wondered if
we could provide translation of these pages in the process [2]. It may
be handful to continue discussion inside this bug report.

[1] 1299256885.3095.44.camel@barks
[2] ikrafn$d2k$1...@dough.gmane.org

Regards

David

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

iQIcBAEBCAAGBQJNcmxiAAoJELgqIXr9/gnyG7UP/AjX732OfXuKfl/pXGtKcZap
C2GgDnkQImTgJSxkwKKPyLRFiHUXsb2dMl2ueAIbeoeNw5TlgVaJvA10YXSAZg+J
nVw2oo9GPe1GkDaFe7xKJhKTH//om71MlHszsj6JNLlpMFTIZkV7SDXwLDOgtFFc
E/MJhFhBwng4HJDqHuJDFcsz1DwWgAd5ETHyr40dwijN6N1icYEUWL3WDNX1WWqL
xtDlDwmZxbeA9wBWMpo5kRZSP+MIeHDuVztHB2YgGX6jNjTh/Jtd5olmpNllTU5t
Mls6rEMRsQQpllp02ZjirTIrZWlPxB7p9hil7cOB7QctDiyY0lps7x3dpgEeP5vQ
pydU+nbvfM9NmJ7rzy4gzipmc/oTPcxBmlC7l/NiGOMk4wfjUVYrjyuDR7s09Bxu
WZW04oH76wf7VaJ44KJ6QLnB+yBRA4MluBiky9oV6PHeWkYN6KO6yAwyAHDqKiuj
Uqqian3c+LK3c3lXf2E4Ufb/k4Dq45KXabNo0NBzNsvahB9YV4RSD+tBVaDrKsKr
Nh66MDxFsLEyJdUekaZet2RkzB/+oCq5fqYBRcrdKWvBbDb9NZnp6kTAWRyi3hw4
KPRESculYyEl/XoFPCJK2liOYuNM3OJOnlIzuqNEgGz/ZphkVUpUDaIzSA9pP4um
lzMqS7XNVMoqEERjU47Z
=tB1c
-END PGP SIGNATURE-



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