newsstat: Improved formatting of header section
/trunk/tools/network/news/newsstat/newsstat.pl |
---|
90,6 → 90,10 |
my $formatter = new Number::Format( |
-decimal_point => $decimal_point, |
-thousands_sep => $thousands_sep, |
-kibi_suffix => ' KiB', |
-mebi_suffix => ' MiB', |
-gibi_suffix => ' GiB', |
# -grouping => $grouping[0] |
); |
616,8 → 620,8 |
), |
76 |
); |
print "\n\n"; |
printf __"Total articles considered: %s over %d days\n", |
print "\n"; |
printf __"Total articles considered: %s over %d days\n", |
$formatter->format_number($totalposts), |
$formatter->format_number($numdays); |
my $time_locale = setlocale(LC_TIME); |
632,23 → 636,24 |
time_zone => 'UTC', |
); |
my $datetime_format = '%a, %Y-%m-%dT%H:%M:%S %Z'; |
printf __"Earliest article: %s\n", |
printf __"Earliest article: %s" . "\n", |
$earliest_datetime->strftime($datetime_format); |
printf __"Latest article: %s\n", |
printf __"Latest article: %s" . "\n", |
$latest_datetime->strftime($datetime_format); |
printf __"Original articles: %s; replies: %s\n", |
printf __"Original articles: %s; replies: %s" . "\n", |
$formatter->format_number($origposts), |
$formatter->format_number($replies); |
printf __"Total size of articles: %s bytes (%s)" . "\n", |
printf __"Total size of articles: %s bytes (%s)" . "\n", |
$formatter->format_number($totsize), |
$formatter->format_bytes( $totsize, ( 'precision' => 1, 'mode' => 'iec' ) ); |
printf __"Average %s articles per day, %s per day, %s bytes per article\n", |
printf __"Average %s articles per day, %s per day, %s bytes per article.\n", |
$formatter->format_number( int( $totalposts / $numdays ) ), |
$formatter->format_bytes( $totsize / $numdays, ( 'mode' => 'iec' ) ), |
$formatter->format_number( int( $totsize / $totalposts ) ); |
my $count = keys %data; |
printf __"Total headers: %s; bodies: %s\n", |
print "\n"; |
printf __"Total headers: %s; bodies: %s\n", |
$formatter->format_bytes( |
$totheader, ( 'precision' => 1, 'mode' => 'iec' ) |
), |
659,14 → 664,16 |
$totquoted, ( 'precision' => 1, 'mode' => 'iec' ) |
), |
$formatter->format_bytes( $totorig, ( 'precision' => 1, 'mode' => 'iec' ) ), |
$formatter->format_number( ( $totorig * 100 ) / ( $totorig + $totquoted ) ), |
$formatter->format_number( ( $totorig * 100 ) / ( $totorig + $totquoted ) ) |
, |
$formatter->format_bytes( $totsig, ( 'precision' => 1, 'mode' => 'iec' ) ); |
printf __"Total number of posters: %s, average %s per poster\n", |
print "\n"; |
printf __"Total number of posters: %s, average %s per poster\n", |
$formatter->format_number($count), |
$formatter->format_bytes( $totsize / $count, |
( 'precision' => 1, 'mode' => 'iec' ) ); |
$count = keys %threads; |
printf __"Total number of threads: %s, average %s per thread\n", |
printf __"Total number of threads: %s, average %s per thread\n", |
$formatter->format_number($count), |
$formatter->format_bytes( $totsize / $count, |
( 'precision' => 1, 'mode' => 'iec' ) ); |
/trunk/tools/network/news/newsstat/po/de.po |
---|
7,7 → 7,7 |
msgstr "" |
"Project-Id-Version: newsstat r23\n" |
"Report-Msgid-Bugs-To: Thomas 'PointedEars' Lahn <startrek@PointedEars.de>\n" |
"POT-Creation-Date: 2013-01-07 01:50+0100\n" |
"POT-Creation-Date: 2013-01-07 02:32+0100\n" |
"PO-Revision-Date: 2013-01-07 01:50+0100\n" |
"Last-Translator: Thomas 'PointedEars' Lahn <startrek@PointedEars.de>\n" |
"Language-Team: German <startrek@PointedEars.de>\n" |
16,36 → 16,36 |
"Content-Type: text/plain; charset=UTF-8\n" |
"Content-Transfer-Encoding: 8bit\n" |
#: ../newsstat.pl:206 |
#: ../newsstat.pl:210 |
#, perl-brace-format |
msgid "Can't cd to {newsgroup}: {error}\n" |
msgstr "" |
#: ../newsstat.pl:212 |
#: ../newsstat.pl:216 |
#, perl-brace-format |
msgid "Can't open {newsgroup}: {error}\n" |
msgstr "" |
#: ../newsstat.pl:244 |
#: ../newsstat.pl:248 |
#, perl-brace-format |
msgid "Can't open {file}: {error}\n" |
msgstr "" |
#: ../newsstat.pl:299 ../newsstat.pl:418 |
#: ../newsstat.pl:303 ../newsstat.pl:422 |
msgid "unknown" |
msgstr "unbekannt" |
#: ../newsstat.pl:553 |
#: ../newsstat.pl:557 |
#, perl-brace-format |
msgid "Can't create XDATA: {error}\n" |
msgstr "" |
#: ../newsstat.pl:608 |
#: ../newsstat.pl:612 |
#, perl-brace-format |
msgid "Analysis of articles to {newsgroup}" |
msgstr "Analyse der Artikel in {newsgroup}" |
#: ../newsstat.pl:615 |
#: ../newsstat.pl:619 |
msgid "" |
"(compiled with a script by Thomas 'PointedEars' Lahn, based on work by\n" |
"Garry Knight et al.)" |
53,111 → 53,111 |
"(erstellt mit einem Skript von Thomas 'PointedEars' Lahn, basierend auf\n" |
"der Arbeit von Garry Knight und anderen)" |
#: ../newsstat.pl:620 |
#: ../newsstat.pl:624 |
#, perl-format |
msgid "Total articles considered: %s over %d days\n" |
msgstr "Berücksichtigte Artikel: %s über %d Tage\n" |
msgid "Total articles considered: %s over %d days\n" |
msgstr "Berücksichtigte Artikel: %s über %d Tage\n" |
#: ../newsstat.pl:635 |
#: ../newsstat.pl:639 |
#, perl-format |
msgid "Earliest article: %s\n" |
msgstr "Ältester Artikel: %s\n" |
msgid "Earliest article: %s\n" |
msgstr "Ältester Artikel: %s\n" |
#: ../newsstat.pl:637 |
#: ../newsstat.pl:641 |
#, perl-format |
msgid "Latest article: %s\n" |
msgstr "Neuester Artikel: %s\n" |
msgid "Latest article: %s\n" |
msgstr "Neuester Artikel: %s\n" |
#: ../newsstat.pl:639 |
#: ../newsstat.pl:643 |
#, perl-format |
msgid "Original articles: %s; replies: %s\n" |
msgstr "Originalartikel: %s; Antworten: %s\n" |
msgid "Original articles: %s; replies: %s\n" |
msgstr "Originalartikel: %s; Antworten: %s\n" |
#: ../newsstat.pl:642 |
#: ../newsstat.pl:646 |
#, perl-format |
msgid "Total size of articles: %s bytes (%s)\n" |
msgstr "Artikel insgesamt: %s Bytes (%s)\n" |
msgid "Total size of articles: %s bytes (%s)\n" |
msgstr "Artikel insgesamt: %s Bytes (%s)\n" |
#: ../newsstat.pl:645 |
#: ../newsstat.pl:649 |
#, perl-format |
msgid "Average %s articles per day, %s per day, %s bytes per article\n" |
msgstr "Durchschnittlich %s Artikel je Tag, %s je Tag, %s Bytes je Artikel\n" |
msgid "Average %s articles per day, %s per day, %s bytes per article.\n" |
msgstr "Durchschnittlich %s Artikel je Tag, %s je Tag, %s Bytes je Artikel.\n" |
#: ../newsstat.pl:651 |
#: ../newsstat.pl:656 |
#, perl-format |
msgid "Total headers: %s; bodies: %s\n" |
msgid "Total headers: %s; bodies: %s\n" |
msgstr "Header insgesamt: %s; Bodys: %s\n" |
#: ../newsstat.pl:657 |
#: ../newsstat.pl:662 |
#, perl-format |
msgid "Body text - quoted: %s; original: %s = %s%%; sigs: %s\n" |
msgstr "Body-Text - zitiert: %s; original: %s = %s%%; sigs: %s\n" |
#: ../newsstat.pl:664 |
#: ../newsstat.pl:671 |
#, perl-format |
msgid "Total number of posters: %s, average %s per poster\n" |
msgstr "Poster insgesamt: %s, durchschnittlich %s je Poster\n" |
msgid "Total number of posters: %s, average %s per poster\n" |
msgstr "Poster insgesamt: %s, durchschnittlich %s je Poster\n" |
#: ../newsstat.pl:669 |
#: ../newsstat.pl:676 |
#, perl-format |
msgid "Total number of threads: %s, average %s per thread\n" |
msgstr "Threads insgesamt: %s, durchschnittlich %s je Thread\n" |
msgid "Total number of threads: %s, average %s per thread\n" |
msgstr "Threads insgesamt: %s, durchschnittlich %s je Thread\n" |
#: ../newsstat.pl:673 |
#: ../newsstat.pl:680 |
#, perl-format |
msgid "Total number of user agents: %d\n" |
msgstr "Benutzerprogramme insgesamt: %d\n" |
#: ../newsstat.pl:691 |
#: ../newsstat.pl:698 |
#, perl-brace-format |
msgid "Top {count} posters by number of articles" |
msgstr "Top {count} der Poster nach Anzahl der Artikel" |
#: ../newsstat.pl:722 |
#: ../newsstat.pl:729 |
#, perl-brace-format |
msgid "Top {count} posters by article size in KiB" |
msgstr "Top {count} der Poster nach Artikelgrösse in KiB" |
#: ../newsstat.pl:757 |
#: ../newsstat.pl:764 |
#, perl-brace-format |
msgid "Top {count} responders by original text (> 5 articles)" |
msgstr "Top {count} der Antwortenden nach Originaltext (> 5 Artikel)" |
#: ../newsstat.pl:799 |
#: ../newsstat.pl:806 |
#, perl-brace-format |
msgid "Bottom {count} responders by original text (> 5 articles)" |
msgstr "{count} seltenste Antwortende nach Originaltext (> 5 Artikel)" |
#: ../newsstat.pl:836 |
#: ../newsstat.pl:843 |
#, perl-brace-format |
msgid "Top {count} threads by no. of articles" |
msgstr "Top {count} der Threads nach Anzahl der Artikel" |
#: ../newsstat.pl:868 |
#: ../newsstat.pl:875 |
#, perl-brace-format |
msgid "Top {count} threads by size in KiB" |
msgstr "Top {count} der Threads nach Grösse in KiB" |
#: ../newsstat.pl:900 |
#: ../newsstat.pl:907 |
#, perl-brace-format |
msgid "Top {count} cross-posted groups" |
msgstr "Top {count} der Gruppen, in die gecrosspostet wurde" |
#: ../newsstat.pl:927 |
#: ../newsstat.pl:934 |
#, perl-brace-format |
msgid "Top {count} user agents by poster" |
msgstr "Top {count} der Benutzerprogramme nach Anzahl der Poster" |
#: ../newsstat.pl:956 |
#: ../newsstat.pl:963 |
#, perl-brace-format |
msgid "Top {count} user agents by number of articles" |
msgstr "Top {count} der Benutzerprogramme nach Anzahl der Artikel" |
#: ../newsstat.pl:991 |
#: ../newsstat.pl:998 |
#, perl-brace-format |
msgid "Top {count} time zones by number of articles" |
msgstr "Top {count} der Benutzerprogramme nach Anzahl der Artikel" |
#: ../newsstat.pl:1069 |
#: ../newsstat.pl:1076 |
msgid "usage: newsstat.pl NEWS.GROUP" |
msgstr "" |
/trunk/tools/network/news/newsstat/po/de.pointedears.newsstat.pot |
---|
8,7 → 8,7 |
msgstr "" |
"Project-Id-Version: PACKAGE VERSION\n" |
"Report-Msgid-Bugs-To: Thomas 'PointedEars' Lahn <startrek@PointedEars.de>\n" |
"POT-Creation-Date: 2013-01-07 01:50+0100\n" |
"POT-Creation-Date: 2013-01-07 02:32+0100\n" |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
"Language-Team: LANGUAGE <LL@li.org>\n" |
17,146 → 17,146 |
"Content-Type: text/plain; charset=CHARSET\n" |
"Content-Transfer-Encoding: 8bit\n" |
#: ../newsstat.pl:206 |
#: ../newsstat.pl:210 |
#, perl-brace-format |
msgid "Can't cd to {newsgroup}: {error}\n" |
msgstr "" |
#: ../newsstat.pl:212 |
#: ../newsstat.pl:216 |
#, perl-brace-format |
msgid "Can't open {newsgroup}: {error}\n" |
msgstr "" |
#: ../newsstat.pl:244 |
#: ../newsstat.pl:248 |
#, perl-brace-format |
msgid "Can't open {file}: {error}\n" |
msgstr "" |
#: ../newsstat.pl:299 ../newsstat.pl:418 |
#: ../newsstat.pl:303 ../newsstat.pl:422 |
msgid "unknown" |
msgstr "" |
#: ../newsstat.pl:553 |
#: ../newsstat.pl:557 |
#, perl-brace-format |
msgid "Can't create XDATA: {error}\n" |
msgstr "" |
#: ../newsstat.pl:608 |
#: ../newsstat.pl:612 |
#, perl-brace-format |
msgid "Analysis of articles to {newsgroup}" |
msgstr "" |
#: ../newsstat.pl:615 |
#: ../newsstat.pl:619 |
msgid "" |
"(compiled with a script by Thomas 'PointedEars' Lahn, based on work by\n" |
"Garry Knight et al.)" |
msgstr "" |
#: ../newsstat.pl:620 |
#: ../newsstat.pl:624 |
#, perl-format |
msgid "Total articles considered: %s over %d days\n" |
msgid "Total articles considered: %s over %d days\n" |
msgstr "" |
#: ../newsstat.pl:635 |
#: ../newsstat.pl:639 |
#, perl-format |
msgid "Earliest article: %s\n" |
msgid "Earliest article: %s\n" |
msgstr "" |
#: ../newsstat.pl:637 |
#: ../newsstat.pl:641 |
#, perl-format |
msgid "Latest article: %s\n" |
msgid "Latest article: %s\n" |
msgstr "" |
#: ../newsstat.pl:639 |
#: ../newsstat.pl:643 |
#, perl-format |
msgid "Original articles: %s; replies: %s\n" |
msgid "Original articles: %s; replies: %s\n" |
msgstr "" |
#: ../newsstat.pl:642 |
#: ../newsstat.pl:646 |
#, perl-format |
msgid "Total size of articles: %s bytes (%s)\n" |
msgid "Total size of articles: %s bytes (%s)\n" |
msgstr "" |
#: ../newsstat.pl:645 |
#: ../newsstat.pl:649 |
#, perl-format |
msgid "Average %s articles per day, %s per day, %s bytes per article\n" |
msgid "Average %s articles per day, %s per day, %s bytes per article.\n" |
msgstr "" |
#: ../newsstat.pl:651 |
#: ../newsstat.pl:656 |
#, perl-format |
msgid "Total headers: %s; bodies: %s\n" |
msgid "Total headers: %s; bodies: %s\n" |
msgstr "" |
#: ../newsstat.pl:657 |
#: ../newsstat.pl:662 |
#, perl-format |
msgid "Body text - quoted: %s; original: %s = %s%%; sigs: %s\n" |
msgstr "" |
#: ../newsstat.pl:664 |
#: ../newsstat.pl:671 |
#, perl-format |
msgid "Total number of posters: %s, average %s per poster\n" |
msgid "Total number of posters: %s, average %s per poster\n" |
msgstr "" |
#: ../newsstat.pl:669 |
#: ../newsstat.pl:676 |
#, perl-format |
msgid "Total number of threads: %s, average %s per thread\n" |
msgid "Total number of threads: %s, average %s per thread\n" |
msgstr "" |
#: ../newsstat.pl:673 |
#: ../newsstat.pl:680 |
#, perl-format |
msgid "Total number of user agents: %d\n" |
msgstr "" |
#: ../newsstat.pl:691 |
#: ../newsstat.pl:698 |
#, perl-brace-format |
msgid "Top {count} posters by number of articles" |
msgstr "" |
#: ../newsstat.pl:722 |
#: ../newsstat.pl:729 |
#, perl-brace-format |
msgid "Top {count} posters by article size in KiB" |
msgstr "" |
#: ../newsstat.pl:757 |
#: ../newsstat.pl:764 |
#, perl-brace-format |
msgid "Top {count} responders by original text (> 5 articles)" |
msgstr "" |
#: ../newsstat.pl:799 |
#: ../newsstat.pl:806 |
#, perl-brace-format |
msgid "Bottom {count} responders by original text (> 5 articles)" |
msgstr "" |
#: ../newsstat.pl:836 |
#: ../newsstat.pl:843 |
#, perl-brace-format |
msgid "Top {count} threads by no. of articles" |
msgstr "" |
#: ../newsstat.pl:868 |
#: ../newsstat.pl:875 |
#, perl-brace-format |
msgid "Top {count} threads by size in KiB" |
msgstr "" |
#: ../newsstat.pl:900 |
#: ../newsstat.pl:907 |
#, perl-brace-format |
msgid "Top {count} cross-posted groups" |
msgstr "" |
#: ../newsstat.pl:927 |
#: ../newsstat.pl:934 |
#, perl-brace-format |
msgid "Top {count} user agents by poster" |
msgstr "" |
#: ../newsstat.pl:956 |
#: ../newsstat.pl:963 |
#, perl-brace-format |
msgid "Top {count} user agents by number of articles" |
msgstr "" |
#: ../newsstat.pl:991 |
#: ../newsstat.pl:998 |
#, perl-brace-format |
msgid "Top {count} time zones by number of articles" |
msgstr "" |
#: ../newsstat.pl:1069 |
#: ../newsstat.pl:1076 |
msgid "usage: newsstat.pl NEWS.GROUP" |
msgstr "" |