Просмотр исходного кода

Add 'names' template, must translate that as well

Morten Brix Pedersen 24 лет назад
Родитель
Сommit
08a8b2d636
2 измененных файлов с 4 добавлено и 1 удалено
  1. 1 0
      lang.txt
  2. 3 1
      modules/Pisg/HTMLGenerator.pm

+ 1 - 0
lang.txt

@@ -128,6 +128,7 @@ totallines = "Total number of lines: [:lines]."
 totalnicks = "By the way, there were [:totalnicks] other nicks."
 totaltopic = "The topic was set [:total] times."
 nick = "Nick"
+names = "Names Used"
 url = "URL"
 numberlines = "Number of lines"
 randquote = "Random quote"

+ 3 - 1
modules/Pisg/HTMLGenerator.pm

@@ -1656,8 +1656,10 @@ sub _mostnicks
 
         $self->_headline($self->_template_text('mostnickstopic'));
 
+        my $nick_txt = $self->_template_text('nick');
+        my $names_txt = $self->_template_text('names');
         _html("<table border=\"0\" width=\"$self->{cfg}->{tablewidth}\"><tr>");
-        _html("<td>&nbsp;</td><td class=\"tdtop\"><b>Nick</b></td>");
+        _html("<td>&nbsp;</td><td class=\"tdtop\"><b>$names_txt</b></td>");
         _html("<td class=\"tdtop\"><b>Names Used</b></td></tr>");
 
         for(my $i = 0; $i < 5; $i++) {