index.cgi: Use language string keys already defined
authorAlf Høgemark <alf@i100.no>
Sun, 9 Feb 2014 09:45:55 +0000 (10:45 +0100)
committerAlf Høgemark <alf@i100.no>
Sat, 15 Feb 2014 14:23:46 +0000 (15:23 +0100)
html/cgi-bin/index.cgi

index a497607..14eceac 100644 (file)
@@ -177,7 +177,7 @@ END
        my $HOSTNAME = (gethostbyaddr(pack("C4", split(/\./, $ipaddr)), 2))[0];
        if ( "$HOSTNAME" ne "" ) {
                print <<END;
-       <tr><td><b>Hostname:</b><td align='center'>$HOSTNAME</td><td></td>
+       <tr><td><b>$Lang::tr{'hostname'}:</b><td align='center'>$HOSTNAME</td><td></td>
 END
        }
 
@@ -187,7 +187,7 @@ END
                chomp($GATEWAY);
                close TMP;
                print <<END;
-       <tr><td><b>Gateway:</b><td align='center'>$GATEWAY</td><td></td></tr>
+       <tr><td><b>$Lang::tr{'gateway'}:</b><td align='center'>$GATEWAY</td><td></td></tr>
 END
        }
        #Read DNS server 1