Procházet zdrojové kódy

Added missing template 'bylinetopic'.

Morten Brix Pedersen před 25 roky
rodič
revize
676de4f02c
2 změnil soubory, kde provedl 19 přidání a 26 odebrání
  1. 13 22
      lang.txt
  2. 6 4
      modules/Pisg/HTMLGenerator.pm

+ 13 - 22
lang.txt

@@ -99,8 +99,6 @@ sad3 = "Nobody is sad in [:channel]!  What a happy channel.  :-)"
 month = "January February March April May June July August September October November December"
 month = "January February March April May June July August September October November December"
 day = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday"
 day = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday"
 
 
-notopic = "A topic was never set on this channel."
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Big numbers"
 bignumtopic = "Big numbers"
@@ -111,6 +109,8 @@ activenickstopic = "Most active nicks"
 mostwordstopic = "Most used words"
 mostwordstopic = "Most used words"
 referencetopic = "Most referenced nick"
 referencetopic = "Most referenced nick"
 urlstopic = "Most referenced URLs"
 urlstopic = "Most referenced URLs"
+notopic = "A topic was never set on this channel."
+bylinetopic = "by [:nick] on [:time]"
 
 
 ## Other text
 ## Other text
 
 
@@ -214,8 +214,6 @@ sad3 = "Niemand ist traurig in [:channel]! Was f
 month = "Januar Februar März April Mai Juni Juli August September Oktober November Dezember"
 month = "Januar Februar März April Mai Juni Juli August September Oktober November Dezember"
 day = "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag"
 day = "Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag"
 
 
-notopic = "In diesem Channel wurde kein Topic gesetzt."
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Die Zahlen sprechen für sich :)"
 bignumtopic = "Die Zahlen sprechen für sich :)"
@@ -226,6 +224,7 @@ activenickstopic = "Wer quatscht am meisten?"
 mostwordstopic = "Am meisten benutzte Wörter"
 mostwordstopic = "Am meisten benutzte Wörter"
 referencetopic = "Begehrte Nicks :)"
 referencetopic = "Begehrte Nicks :)"
 urlstopic = "Am meisten benutzte URLs"
 urlstopic = "Am meisten benutzte URLs"
+notopic = "In diesem Channel wurde kein Topic gesetzt."
 
 
 ## Other text
 ## Other text
 
 
@@ -328,8 +327,6 @@ words3 = "Hmmm ingen har sagt noget endnu... underlig kanal..."
 month = "Januar Februar Marts April Maj Juni Juli August September Oktober November December"
 month = "Januar Februar Marts April Maj Juni Juli August September Oktober November December"
 day = "Søndag Mandag Tirsdag Onsdag Torsdag Fredag Lørdag"
 day = "Søndag Mandag Tirsdag Onsdag Torsdag Fredag Lørdag"
 
 
-notopic = "Et topic blev aldrig sat på denne kanal."
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Store numre"
 bignumtopic = "Store numre"
@@ -340,6 +337,8 @@ activenickstopic = "Mest aktive nicks"
 mostwordstopic = "Mest brugte ord"
 mostwordstopic = "Mest brugte ord"
 referencetopic = "Mest tiltalte nicks"
 referencetopic = "Mest tiltalte nicks"
 urlstopic = "Mest brugte URLs"
 urlstopic = "Mest brugte URLs"
+notopic = "Et topic blev aldrig sat på denne kanal."
+bylinetopic = "Af [:nick] kl. [:time]"
 
 
 ## Other text
 ## Other text
 
 
@@ -443,8 +442,6 @@ sad3 = "Personne n'est triste sur [:channel]! Quel channel merveilleux :-)"
 month = "Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre"
 month = "Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre"
 day = "Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi"
 day = "Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi"
 
 
-notopic = "Il n'y a jamais eu de topic sur ce channel"
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Les gros chiffres"
 bignumtopic = "Les gros chiffres"
@@ -455,6 +452,7 @@ activenickstopic = "Les nicks les plus actifs"
 mostwordstopic = "Les mots les plus utilisés"
 mostwordstopic = "Les mots les plus utilisés"
 referencetopic = "Les nicks les plus utilisés dans la conversation"
 referencetopic = "Les nicks les plus utilisés dans la conversation"
 urlstopic = "Les URLs les plus citées"
 urlstopic = "Les URLs les plus citées"
+notopic = "Il n'y a jamais eu de topic sur ce channel"
 
 
 ## Other text
 ## Other text
 
 
@@ -552,8 +550,6 @@ sad3 = "Nadie est
 month = "Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre"
 month = "Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre"
 day = "Domingo Lunes Martes Miercoles Jueves Viernes Sabado"
 day = "Domingo Lunes Martes Miercoles Jueves Viernes Sabado"
 
 
-notopic = "Aún no se ha utilizado el topic del canal"
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Acerca de nuestra gente"
 bignumtopic = "Acerca de nuestra gente"
@@ -563,6 +559,7 @@ activetimestopic = "Horas m
 activenickstopic = "La gente que más habla"
 activenickstopic = "La gente que más habla"
 mostwordstopic = "Las palabras más utilizadas"
 mostwordstopic = "Las palabras más utilizadas"
 referencetopic = "Las personas de las que más se habla"
 referencetopic = "Las personas de las que más se habla"
+notopic = "Aún no se ha utilizado el topic del canal"
 
 
 ## Other text
 ## Other text
 
 
@@ -629,8 +626,6 @@ sad1 = "<b>[:nick]</b> wyglada na smutna osobe, [:per]% linii zawieralo smutne m
 sad2 = "<b>[:nick]</b> nie czuje sie najlepiej na kanale smucac sie przez [:per]% czasu"
 sad2 = "<b>[:nick]</b> nie czuje sie najlepiej na kanale smucac sie przez [:per]% czasu"
 sad3 = "Nikt nie jest smutny na [:channel]! Coz za szczesliwy kanal :-)"
 sad3 = "Nikt nie jest smutny na [:channel]! Coz za szczesliwy kanal :-)"
 
 
-notopic = "Czyzby nigdy nie ustawiono tematu na tym kanale?"
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Wielkie liczby"
 bignumtopic = "Wielkie liczby"
@@ -640,6 +635,7 @@ activetimestopic = "Najaktywniejsze pory"
 activenickstopic = "Najaktywniejsze nicki"
 activenickstopic = "Najaktywniejsze nicki"
 mostwordstopic = "Najczesciej uzywane slowa"
 mostwordstopic = "Najczesciej uzywane slowa"
 referencetopic = "Najczesciej wywolywany nick"
 referencetopic = "Najczesciej wywolywany nick"
+notopic = "Czyzby nigdy nie ustawiono tematu na tym kanale?"
 
 
 ## Other text
 ## Other text
 
 
@@ -707,8 +703,6 @@ sad1 = "Blid kan man ikke kalle<b> [:nick]</b> som surmuler [:per]% av tiden."
 sad2 = "<b>[:nick]</b> er nok også ganske trist, [:per]% av [:hans:hennes:] linjer inneholdt :-(-er."
 sad2 = "<b>[:nick]</b> er nok også ganske trist, [:per]% av [:hans:hennes:] linjer inneholdt :-(-er."
 sad3 = "Ingen triste ansikt på [:channel]! :-)"
 sad3 = "Ingen triste ansikt på [:channel]! :-)"
 
 
-notopic = "Det er ikke satt noe topic på denne kanalen."
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Store tall"
 bignumtopic = "Store tall"
@@ -718,6 +712,7 @@ activetimestopic = "Mest aktive tider"
 activenickstopic = "Mest aktive nicks"
 activenickstopic = "Mest aktive nicks"
 mostwordstopic = "Mest brukte ord"
 mostwordstopic = "Mest brukte ord"
 referencetopic = "Mest nevnte nicks"
 referencetopic = "Mest nevnte nicks"
+notopic = "Det er ikke satt noe topic på denne kanalen."
 
 
 ## Other text
 ## Other text
 
 
@@ -785,8 +780,6 @@ sad1 = "<b>[:nick]</b> parece estar triste no momento, [:per]% linhas cont
 sad2 = "<b>[:nick]</b> também está triste por [:per]% do tempo"
 sad2 = "<b>[:nick]</b> também está triste por [:per]% do tempo"
 sad3 = "Ninguém está triste no [:channel]! Aqui somos todos felizes :-)"
 sad3 = "Ninguém está triste no [:channel]! Aqui somos todos felizes :-)"
 
 
-notopic = "Nunca foi usado um topic neste canal"
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Sobre nossos usuarios"
 bignumtopic = "Sobre nossos usuarios"
@@ -796,6 +789,7 @@ activetimestopic = "Horas mais frequentadas"
 activenickstopic = "Pessoas que mais falam"
 activenickstopic = "Pessoas que mais falam"
 mostwordstopic = "Palavras mais utilizadas"
 mostwordstopic = "Palavras mais utilizadas"
 referencetopic = "Pessoas de quem mais se fala"
 referencetopic = "Pessoas de quem mais se fala"
+notopic = "Nunca foi usado um topic neste canal"
 
 
 ## Other text
 ## Other text
 
 
@@ -889,8 +883,6 @@ sad1 = "<b>[:nick]</b> is niet echt vrolijk , <b>[:per]%</b> regels bevatte een
 sad2 = "<b>[:nick]</b> is ook al niet te vrolijk met een sad percentage van <b>[:per]%</b>."
 sad2 = "<b>[:nick]</b> is ook al niet te vrolijk met een sad percentage van <b>[:per]%</b>."
 sad3 = "Niemand is "Bedroefd" [:channel]! What a happy channel :-)."
 sad3 = "Niemand is "Bedroefd" [:channel]! What a happy channel :-)."
 
 
-notopic = "De mensen hiero weten nog steeds niet hoe ze +t moeten gebruiken."
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Grote Getallen"
 bignumtopic = "Grote Getallen"
@@ -901,6 +893,7 @@ activenickstopic = "Meest actieve nicks"
 mostwordstopic = "Meest genoemde woorden"
 mostwordstopic = "Meest genoemde woorden"
 referencetopic = "Meest genoemde nicks"
 referencetopic = "Meest genoemde nicks"
 urlstopic = "Meest genoemde URLs"
 urlstopic = "Meest genoemde URLs"
+notopic = "De mensen hiero weten nog steeds niet hoe ze +t moeten gebruiken."
 
 
 ## Other text
 ## Other text
 
 
@@ -994,8 +987,6 @@ sad1 = "<b>[:nick]</b> verkar vara ledsen f
 sad2 = "<b>[:nick]</b> är också en ledsen person, som grät [:per]% av tiden"
 sad2 = "<b>[:nick]</b> är också en ledsen person, som grät [:per]% av tiden"
 sad3 = "Ingen i [:channel] är ledsen! Välkommen till den glada kanalen :-)"
 sad3 = "Ingen i [:channel] är ledsen! Välkommen till den glada kanalen :-)"
 
 
-notopic = "Ingen rubrik blev nånsin satt på denna kanal"
-
 ## Topics
 ## Topics
 
 
 bignumtopic = "Stora nummer"
 bignumtopic = "Stora nummer"
@@ -1005,6 +996,7 @@ activetimestopic = "Mest aktiva tider"
 activenickstopic = "Mest aktiva personer"
 activenickstopic = "Mest aktiva personer"
 mostwordstopic = "Mest använda ord"
 mostwordstopic = "Mest använda ord"
 referencetopic = "Mest tilltalade personer"
 referencetopic = "Mest tilltalade personer"
+notopic = "Ingen rubrik blev nånsin satt på denna kanal"
 
 
 ## Other text
 ## Other text
 
 
@@ -1102,8 +1094,6 @@ sad3 = "Kukaan ei surkuttele t
 month = "tammikuuta helmikuuta maaliskuuta huhtikuuta toukokuuta kesäkuuta heinäkuuta elokuuta syyskuuta lokakuuta marraskuuta joulukuuta"
 month = "tammikuuta helmikuuta maaliskuuta huhtikuuta toukokuuta kesäkuuta heinäkuuta elokuuta syyskuuta lokakuuta marraskuuta joulukuuta"
 day = "sunnuntaina maanantaina tiistaina keskiviikkona torstaina perjantaina lauantaina"
 day = "sunnuntaina maanantaina tiistaina keskiviikkona torstaina perjantaina lauantaina"
 
 
-notopic = "Kanavalle ei koskaan vaivauduttu laittamaan topikia."
-
 ## Topics (Topikit)
 ## Topics (Topikit)
 
 
 bignumtopic = "Suuria numeroita"
 bignumtopic = "Suuria numeroita"
@@ -1114,6 +1104,7 @@ activenickstopic = "Suurimmat h
 mostwordstopic = "Käytetyimpiä sanoja"
 mostwordstopic = "Käytetyimpiä sanoja"
 referencetopic = "Kaivatuin irkkaaja"
 referencetopic = "Kaivatuin irkkaaja"
 urlstopic = "Yleisimmät linkit"
 urlstopic = "Yleisimmät linkit"
+notopic = "Kanavalle ei koskaan vaivauduttu laittamaan topikia."
 
 
 ## Other text (Muuta sälää)
 ## Other text (Muuta sälää)
 
 

+ 6 - 4
modules/Pisg/HTMLGenerator.pm

@@ -367,8 +367,6 @@ sub _activenicks
 
 
     if ($self->{cfg}->{activenicks} > $nicks) {
     if ($self->{cfg}->{activenicks} > $nicks) {
         $self->{cfg}->{activenicks} = $nicks;
         $self->{cfg}->{activenicks} = $nicks;
-        print "Note: There were fewer nicks in the logfile than your specificied there to be in most active nicks...\n"
-            unless ($self->{cfg}->{silent});
     }
     }
 
 
     my ($nick, $visiblenick, $randomline, %hash);
     my ($nick, $visiblenick, $randomline, %hash);
@@ -1179,8 +1177,12 @@ sub _lasttopics
             my $nick = $stats->{topics}[$i]{nick};
             my $nick = $stats->{topics}[$i]{nick};
             my $hour = $stats->{topics}[$i]{hour};
             my $hour = $stats->{topics}[$i]{hour};
             my $min  = $stats->{topics}[$i]{min};
             my $min  = $stats->{topics}[$i]{min};
+            %hash = (
+                nick => $nick,
+                time => "$hour:$min"
+            );
             _html("<tr><td bgcolor=\"$self->{cfg}->{hicell}\"><i>$topic</i></td>");
             _html("<tr><td bgcolor=\"$self->{cfg}->{hicell}\"><i>$topic</i></td>");
-            _html("<td bgcolor=\"$self->{cfg}->{hicell}\">By <b>$nick</b> at <b>$hour:$min</b></td></tr>");
+            _html("<td bgcolor=\"$self->{cfg}->{hicell}\">" . $self->_template_text('bylinetopic', %hash) ."</b></td></tr>");
         }
         }
         _html("<tr><td align=\"center\" colspan=\"2\" class=\"asmall\">" . $self->_template_text('totaltopic', %hash) . "</td></tr>");
         _html("<tr><td align=\"center\" colspan=\"2\" class=\"asmall\">" . $self->_template_text('totaltopic', %hash) . "</td></tr>");
     } else {
     } else {
@@ -1203,7 +1205,7 @@ sub _template_text
         # Fall back to English if the language template doesn't exist
         # Fall back to English if the language template doesn't exist
 
 
         if ($text = $self->{tmps}->{EN}{$template}) {
         if ($text = $self->{tmps}->{EN}{$template}) {
-            print "Note: There was no translation in $self->{cfg}->{lang} for '$template' - falling back to English..\n"
+            print "Note: No translation in '$self->{cfg}->{lang}' for '$template' - falling back to English..\n"
                 unless ($self->{cfg}->{silent});
                 unless ($self->{cfg}->{silent});
         } else {
         } else {
             die("No such template '$template' in language file.\n");
             die("No such template '$template' in language file.\n");