]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
Cleaning the lang files: customized GUI files
authorMatthias Fischer <matthias.fischer@ipfire.org>
Sun, 14 Jan 2018 19:29:50 +0000 (20:29 +0100)
committerMatthias Fischer <matthias.fischer@ipfire.org>
Sun, 14 Jan 2018 19:30:16 +0000 (20:30 +0100)
Patch 2:
The required changes for several GUI files.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
15 files changed:
config/cfgroot/graphs.pl
config/menu/20-status.menu
config/menu/40-services.menu
html/cgi-bin/captive.cgi
html/cgi-bin/captive/index.cgi
html/cgi-bin/firewall.cgi
html/cgi-bin/fwhosts.cgi
html/cgi-bin/ids.cgi
html/cgi-bin/logs.cgi/log.dat
html/cgi-bin/media.cgi
html/cgi-bin/pakfire.cgi
html/cgi-bin/pppsetup.cgi
html/cgi-bin/qos.cgi
html/cgi-bin/routing.cgi
html/cgi-bin/urlfilter.cgi

index 1bed49fa376a595b8c5e8ce114f77f2c1dd4817b..928a74cfb7df939d93998360fea3bc0635bb7eb7 100644 (file)
@@ -256,7 +256,7 @@ sub updateloadgraph {
                "-1".$period,
                "-l 0",
                "-r",
-               "-t Load Average ".$Lang::tr{'graph per'}." ".$Lang::tr{$period."-graph"},
+               "-t ".$Lang::tr{'uptime load average'}." ".$Lang::tr{'graph per'}." ".$Lang::tr{$period."-graph"},
                "-v ".$Lang::tr{'processes'},
                "--color=SHADEA".$color{"color19"},
                "--color=SHADEB".$color{"color19"},
index 2bcf0d5e8d0784ba5065005303c3cddc47e64557..0ba4e392b2ddfd1dce4d7326b03eb1b2477558da 100644 (file)
@@ -49,7 +49,7 @@
        $substatus->{'54.networkovpnsrv'} = {
                                'caption' => "$Lang::tr{'vpn statistic n2n'}",
                                'uri' => '/cgi-bin/netovpnsrv.cgi',
-                               'title' => "$Lang::tr{'vpn statistics n2n'}",
+                               'title' => "$Lang::tr{'vpn statistic n2n'}",
                                'enabled' => 1,
                          };
     $substatus->{'60.hardwaregraphs'} = {
index 2f4d96e736bd5a8cdf571db9669cd9de804ebc35..2c1c8984fafdfcabfffaf4cce0269901adc91077 100644 (file)
@@ -25,7 +25,7 @@
                                'title' => "Quality of Service",
                                'enabled' => 1,
                                };
-    $subservices->{'60.ids'} = {'caption' => $Lang::tr{'intrusion detection'},
+    $subservices->{'60.ids'} = {'caption' => $Lang::tr{'intrusion detection system'},
                                'enabled' => 1,
                                'uri' => '/cgi-bin/ids.cgi',
                                'title' => "$Lang::tr{'intrusion detection system'}",
index 65cc349baf8e76a68b2e7aa5a7cc88bbf164d79c..0114c4c72d2c0b985619b457977121bde8487aaa 100755 (executable)
@@ -758,9 +758,9 @@ sub generate_pdf() {
 
                        if ($settings{'TITLE'}) {
                                $f_headline->text_center(decode("utf8", $settings{'TITLE'}));
-                               $f_subheadline->text_center(decode("utf8", $Lang::tr{'Captive WiFi coupon'}));
+                               $f_subheadline->text_center(decode("utf8", $Lang::tr{'Captive wifi coupon'}));
                        } else {
-                               $f_headline->text_center(decode("utf8", $Lang::tr{'Captive WiFi coupon'}));
+                               $f_headline->text_center(decode("utf8", $Lang::tr{'Captive wifi coupon'}));
                        }
 
                        # Coupon
index e9606b1bf84dcfeba195704d8bc0ec2e56bc80dd..e90ee50c5e0ae5e9e4349af9141c57ffb2fe8e64 100755 (executable)
@@ -174,8 +174,8 @@ $tmpl->param(ERROR => $errormessage);
 $tmpl->param(TERMS => &getterms());
 
 # Some translated strings
-$tmpl->param(L_ACTIVATE        => $Lang::tr{'Captive ACTIVATE'});
-$tmpl->param(L_GAIN_ACCESS     => $Lang::tr{'Captive GAIN ACCESS'});
+$tmpl->param(L_ACTIVATE        => $Lang::tr{'Captive activate'});
+$tmpl->param(L_GAIN_ACCESS     => $Lang::tr{'Captive gain access'});
 $tmpl->param(L_AGREE_TERMS     => $Lang::tr{'Captive agree tac'});
 
 # Print header
index face0f460974350f10c5bea26f54acb58cd9825e..67b4fcea493ad4f429af375b1a363d8e46c310fa 100644 (file)
@@ -1083,8 +1083,8 @@ END
        print "<td align='right'><select name='cust_geoip_$srctgt' style='width:200px;'>\n";
 
        # Add GeoIP groups to dropdown.
-       if (!-z $configgeoipgrp) {
-               print "<optgroup label='$Lang::tr{'fwhost cust geoipgroup'}'>\n";
+       if ( ! -z $configgeoipgrp) {
+               print "<optgroup label='$Lang::tr{'fwhost cust geoipgrp'}'>\n";
                foreach my $key (sort { ncmp($customgeoipgrp{$a}[0],$customgeoipgrp{$b}[0]) } keys %customgeoipgrp) {
                        my $selected;
 
@@ -2074,7 +2074,7 @@ END
                                                        <td width="20em">&nbsp;</td>
                                                        <td>$Lang::tr{'fwdfw numcon'}: <input type='text' name='ratecon' size='2' value="$fwdfwsettings{'ratecon'}"> /
                                                                <select name='RATETIME' style='width:100px;'>
-                                                                       <option value='second' $selected{'RATETIME'}{'second'}>$Lang::tr{'age second'}</option>
+                                                                       <option value='second' $selected{'RATETIME'}{'second'}>$Lang::tr{'second'}</option>
                                                                        <option value='minute' $selected{'RATETIME'}{'minute'}>$Lang::tr{'minute'}</option>
                                                                        <option value='hour' $selected{'RATETIME'}{'hour'}>$Lang::tr{'hour'}</option>
                                                                </select>
@@ -2094,14 +2094,14 @@ END
                        <tr><td align='right'><input type='submit' value='$Lang::tr{'add'}' style='min-width:100px;' />
                        <input type='hidden' name='config' value='$config' >
                        <input type='hidden' name='ACTION' value='saverule' ></form>
-                       <form method='post' style='display:inline;'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;'><input type='hidden' name='ACTION' value='reset'></form></td></tr>
+                       <form method='post' style='display:inline;'><input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;'><input type='hidden' name='ACTION' value='reset'></form></td></tr>
                        </table>
                        <br>
 END
                }else{
                        print<<END;
                        <table border='0' width='100%'>
-                       <tr><td align='right'><input type='submit' value='$Lang::tr{'fwdfw change'}' style='min-width:100px;' /><input type='hidden' name='updatefwrule' value='$fwdfwsettings{'updatefwrule'}'><input type='hidden' name='key' value='$fwdfwsettings{'key'}'>
+                       <tr><td align='right'><input type='submit' value='$Lang::tr{'update'}' style='min-width:100px;' /><input type='hidden' name='updatefwrule' value='$fwdfwsettings{'updatefwrule'}'><input type='hidden' name='key' value='$fwdfwsettings{'key'}'>
                        <input type='hidden' name='oldgrp1a' value='$fwdfwsettings{'oldgrp1a'}' />
                        <input type='hidden' name='oldgrp1b' value='$fwdfwsettings{'oldgrp1b'}' />
                        <input type='hidden' name='oldgrp2a' value='$fwdfwsettings{'oldgrp2a'}' />
@@ -2116,7 +2116,7 @@ END
                        <input type='hidden' name='oldnat' value='$fwdfwsettings{'oldnat'}' />
                        <input type='hidden' name='oldruletype' value='$fwdfwsettings{'oldruletype'}' />
                        <input type='hidden' name='oldconcon' value='$fwdfwsettings{'oldconcon'}' />
-                       <input type='hidden' name='ACTION' value='saverule' ></form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;'><input type='hidden' name='ACTION' value'reset'></td></td>
+                       <input type='hidden' name='ACTION' value='saverule' ></form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;'><input type='hidden' name='ACTION' value'reset'></td></td>
                        </table></form>
 END
                }
index a2ade8a202f30cafc9592e632f638df7b45b888d..c7f9beff873ee14b25581f82fea435da90061ef9 100644 (file)
@@ -1324,7 +1324,7 @@ END
        }else{
                print "<td colspan='6' align='right'><input type='submit' value='$Lang::tr{'save'}' style='min-width:100px;'><input type='hidden' name='ACTION' value='savenet'><input type='hidden' name='newnet' value='on'>";
        }
-       print "</form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;' ><input type='hidden' name='ACTION' value='resetnet'></form></td></tr></table>";
+       print "</form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;' ><input type='hidden' name='ACTION' value='resetnet'></form></td></tr></table>";
        &Header::closebox();
 }
 sub addhost
@@ -1349,7 +1349,7 @@ END
        }else{
                print " <td colspan='4' align='right'><input type='submit' name='savehost' value='$Lang::tr{'save'}' style='min-width:100px;' /><input type='hidden' name='ACTION' value='savehost' /><input type='hidden' name='newhost' value='on'>";
        }       
-       print " </form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;' ><input type='hidden' name='ACTION' value='resethost'></form></td></tr></table>";
+       print " </form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;' ><input type='hidden' name='ACTION' value='resethost'></form></td></tr></table>";
        &Header::closebox();
 }
 sub addgrp
@@ -1577,7 +1577,7 @@ END
                        print"<br><br>";
                }
                print"<table width='100%'>";
-               print"<tr><td style='text-align:right;'><input type='submit' value='$Lang::tr{'add'}' style='min-width:100px;' /><input type='hidden' name='oldremark' value='$fwhostsettings{'oldremark'}'><input type='hidden' name='update' value=\"$fwhostsettings{'update'}\"><input type='hidden' name='ACTION' value='savegrp' ></form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;'><input type='hidden' name='ACTION' value='resetgrp'></form></td></table>";
+               print"<tr><td style='text-align:right;'><input type='submit' value='$Lang::tr{'add'}' style='min-width:100px;' /><input type='hidden' name='oldremark' value='$fwhostsettings{'oldremark'}'><input type='hidden' name='update' value=\"$fwhostsettings{'update'}\"><input type='hidden' name='ACTION' value='savegrp' ></form><form method='post' style='display:inline'><input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;'><input type='hidden' name='ACTION' value='resetgrp'></form></td></table>";
        &Header::closebox();
 }
 sub addgeoipgrp
@@ -1679,7 +1679,7 @@ END
 
                        <form method='post' style='display:inline'>
 
-                       <input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;'>
+                       <input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;'>
                        <input type='hidden' name='ACTION' value='resetgeoipgrp'>
 
                        </form>
@@ -1747,7 +1747,7 @@ END
                print"<input type='submit' value='$Lang::tr{'save'}' style='min-width:100px;'><input type='hidden' name='ACTION' value='saveservice'></form>";
        }
        print<<END;
-       <form style='display:inline;' method='post'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;'></form></td></tr>
+       <form style='display:inline;' method='post'><input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;'></form></td></tr>
        </table></form>
 END
        &Header::closebox();
@@ -1827,7 +1827,7 @@ END
        }
        print<<END;
        <table width='100%'>
-       <tr><td align='right'><input type='submit' value='$Lang::tr{'add'}' style='min-width:100px;' /><input type='hidden' name='updatesrvgrp' value='$fwhostsettings{'updatesrvgrp'}'><input type='hidden' name='oldsrvgrpremark' value='$fwhostsettings{'oldsrvgrpremark'}'><input type='hidden' name='ACTION' value='saveservicegrp' ></form><form style='display:inline;' method='post'><input type='submit' value='$Lang::tr{'fwhost back'}' style='min-width:100px;'></td></tr>
+       <tr><td align='right'><input type='submit' value='$Lang::tr{'add'}' style='min-width:100px;' /><input type='hidden' name='updatesrvgrp' value='$fwhostsettings{'updatesrvgrp'}'><input type='hidden' name='oldsrvgrpremark' value='$fwhostsettings{'oldsrvgrpremark'}'><input type='hidden' name='ACTION' value='saveservicegrp' ></form><form style='display:inline;' method='post'><input type='submit' value='$Lang::tr{'back'}' style='min-width:100px;'></td></tr>
        </table></form>
 END
        &Header::closebox();
index 17cb23292da418f08281b186dd2659983060a022..144244a91ff1610bd44e0a415450dd03a638b738 100644 (file)
@@ -446,7 +446,7 @@ END
        refreshpage();
 }
 
-&Header::openbox('100%', 'left', $Lang::tr{'intrusion detection system'});
+&Header::openbox('100%', 'left', $Lang::tr{'intrusion detection system settings'});
 print <<END
 <form method='post' action='$ENV{'SCRIPT_NAME'}'><table width='100%'>
 <tr><td class='base'><input type='checkbox' name='ENABLE_SNORT_GREEN' $checked{'ENABLE_SNORT_GREEN'}{'on'} />GREEN Snort
@@ -597,7 +597,7 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable
 
                        # Check for empty 'Description'
                        if ($snortrules{$rulefile}{'Description'} eq '') {
-                               print "<table width='100%'><tr><td class='base'>No description available</td></tr>";
+                               print "<table width='100%'><tr><td class='base'>$Lang::tr{'ids rules no description available'}</td></tr>";
                        } else {
                                # Output rule file 'Description'
                                print "<table width='100%'><tr><td class='base'>$snortrules{$rulefile}{'Description'}</td></tr>";
index f241365a18a4b0fc95834a4ed0970ff459c1d55f..7f117ccb96f1b8d6d52b5bd2483a5faf88530d4f 100644 (file)
@@ -78,7 +78,7 @@ my %sections = (
 my %trsections = (
         'auth' => "$Lang::tr{'loginlogout'}",
                'wio' => 'Who Is Online?',
-        'captive' => $Lang::tr{'captive'},
+        'captive' => $Lang::tr{'Captive'},
         'clamav' => 'ClamAV',
         'collectd' => 'Collectd',
         'cron' => 'Cron',
@@ -93,7 +93,7 @@ my %trsections = (
         'openvpn' => 'OpenVPN',
         'pakfire' => 'Pakfire',
         'red' => 'RED',
-        'snort' => "$Lang::tr{'intrusion detection'}",
+        'snort' => "$Lang::tr{'intrusion detection system'}",
         'squid' => "$Lang::tr{'web proxy'}",
         'ssh' => 'SSH',
         'unbound' => 'DNS: Unbound',
index 4c94d1c8dd8b3d6b4cf8bf111da885c109329e24..32eadd6d9bec8a11f5fe93d6acd1a3a1b9265c0f 100644 (file)
@@ -147,7 +147,7 @@ END
        my @iostat1 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$1}');
        my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$5}');
        my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}');
-       print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>transfers</h3></td></tr>";
+       print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>Transfers</h3></td></tr>";
        my $i=0;
 
        for(my $i = 1; $i <= $#iostat1; $i++){
index 143f123b7f71853905175421fe21c55cb73ea96f..857003715e9c8e8536dcb72e38aeb2f2e947ee2e 100644 (file)
@@ -245,13 +245,13 @@ END
                                        </select>
                                        <br />
                                        <input type='hidden' name='ACTION' value='upgrade' />
-                                       <input type='image' alt='$Lang::tr{'upgrade'}' title='$Lang::tr{'upgrade'}' src='/images/document-save.png' />
+                                       <input type='image' alt='$Lang::tr{'update'}' title='$Lang::tr{'update'}' src='/images/document-save.png' />
                                 </form>
 
                <tr><td colspan="2"><!-- Just an empty line -->&nbsp;
                <tr><td bgcolor='$color{'color20'}' align="center"><b>$Lang::tr{'pakfire available addons'}</b>
                                <td bgcolor='$color{'color20'}' align="center"><b>$Lang::tr{'pakfire installed addons'}</b>
-               <tr><td align="center">
+               <tr><td style="padding:5px 10px 20px 20px" align="center">
                        <p>$Lang::tr{'pakfire install description'}</p>
                        <form method='post' action='$ENV{'SCRIPT_NAME'}'>
                                <select name="INSPAKS" size="10" multiple>
@@ -265,7 +265,7 @@ print <<END;
                                <input type='image' alt='$Lang::tr{'install'}' title='$Lang::tr{'install'}' src='/images/list-add.png' />
                        </form>
 
-               <td align="center">
+               <td style="padding:5px 10px 20px 20px" align="center">
                        <p>$Lang::tr{'pakfire uninstall description'}</p>
                 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
                        <select name="DELPAKS" size="10" multiple>
index 4b45ee50c18d3153a7ea87fb5193b2b1c686d38c..42360fd32578a0bda68cb60cb20cbdfe84da2858 100644 (file)
@@ -59,7 +59,7 @@ if ($pppsettings{'ACTION'} ne '' &&
         %pppsettings = ();
         $pppsettings{'VALID'} = '';
         &General::readhash("${General::swroot}/ppp/settings", \%pppsettings);}
-elsif ($pppsettings{'ACTION'} eq $Lang::tr{'refresh'})
+elsif ($pppsettings{'ACTION'} eq $Lang::tr{'update'})
 {
         unless ($pppsettings{'TYPE'} =~ /^(modem|serial|isdn|pppoe|pptp|vdsl|pppoeatm|pptpatm)$/) {
                 $errormessage = $Lang::tr{'invalid input'};
@@ -274,7 +274,7 @@ elsif ($pppsettings{'ACTION'} eq $Lang::tr{'delete'})
         &General::writehash("${General::swroot}/ppp/settings-$pppsettings{'PROFILE'}",
                 \%pppsettings);
 }
-elsif ($pppsettings{'ACTION'} eq $Lang::tr{'refresh'})
+elsif ($pppsettings{'ACTION'} eq $Lang::tr{'update'})
 {
 }
 else
@@ -565,7 +565,7 @@ END
 
         print <<END
         </select></td>
-        <td colspan='1' width='25%'><input type='submit' name='ACTION' value='$Lang::tr{'refresh'}'></td>
+        <td colspan='1' width='25%'><input type='submit' name='ACTION' value='$Lang::tr{'update'}'></td>
 END
 ;
         if ($pppsettings{'TYPE'} =~ /^(modem)$/) {
index 071b93f5d58ecb8660b253588a2f47df458f1e50..519b29c7882204ab57abccaafdc8cfbf09b422e5 100644 (file)
@@ -628,7 +628,7 @@ elsif ($qossettings{'ACTION'} eq $Lang::tr{'Add Rule'})
                <tr><td align='center'>
                        <input type="button" onClick="swapVisibility('l7rule')" value='$Lang::tr{'Level7 Rule'}' />
                        <input type="button" onClick="swapVisibility('portrule')" value='$Lang::tr{'Port Rule'}' />
-                       <input type="button" onClick="swapVisibility('tosrule')" value='$Lang::tr{'TOS rule'}' />
+                       <input type="button" onClick="swapVisibility('tosrule')" value='$Lang::tr{'TOS Rule'}' />
                </table>
 END
 ;
@@ -838,10 +838,10 @@ END
 }
 
 sub changebandwidth {
-       &Header::openbox('100%', 'center', $Lang::tr{'bandwithsettings'});
+       &Header::openbox('100%', 'center', $Lang::tr{'bandwidthsettings'});
        if ($qossettings{'ENABLED'} eq 'on') {
-               print "$Lang::tr{'bandwitherror'}";
-               print "<a href='/cgi-bin/qos.cgi'>$Lang::tr{'back'}</a>";
+               print "$Lang::tr{'bandwidtherror'}";
+               print "<table width='100%'><tr><td align='center'><a href='/cgi-bin/qos.cgi'><img src='/images/back.png' alt='$Lang::tr{'back'}' title='$Lang::tr{'back'}' /></a></td></tr></table>";
        } else {
                print <<END
                <form method='post' action='$ENV{'SCRIPT_NAME'}'>
@@ -932,10 +932,10 @@ END
                print <<END
                </select>
                <td width='33%' align='center'>&nbsp;
-               <tr><td width='33%' align='right'>$Lang::tr{'guaranteed bandwith'}:
+               <tr><td width='33%' align='right'>$Lang::tr{'guaranteed bandwidth'}:
                    <td width='33%' align='left'><input type='text' size='20' name='MINBWDTH' maxlength='8' required='1' value="$qossettings{'MINBWDTH'}" />
                    <td width='33%' align='center'>&nbsp;
-               <tr><td width='33%' align='right'>$Lang::tr{'max bandwith'}&nbsp;<img src='/blob.gif' alt='*' />:
+               <tr><td width='33%' align='right'>$Lang::tr{'max bandwidth'}&nbsp;<img src='/blob.gif' alt='*' />:
                    <td width='33%' align='left'><input type='text' size='20' name='MAXBWDTH' maxlength='8' required='1' value="$qossettings{'MAXBWDTH'}" />
                    <td width='33%' align='center'>&nbsp;
                <tr><td width='33%' align='right'>Burst:
@@ -1014,10 +1014,10 @@ END
                }
                print <<END
                <td width='33%' align='center'>&nbsp;
-               <tr><td width='33%' align='right'>$Lang::tr{'guaranteed bandwith'}:
+               <tr><td width='33%' align='right'>$Lang::tr{'guaranteed bandwidth'}:
                    <td width='33%' align='left'><input type='text' name='MINBWDTH' maxlength='8' required='1' value="$qossettings{'MINBWDTH'}" />
                    <td width='33%' align='center'>&nbsp;
-               <tr><td width='33%' align='right'>$Lang::tr{'max bandwith'}:
+               <tr><td width='33%' align='right'>$Lang::tr{'max bandwidth'}:
                    <td width='33%' align='left'><input type='text' name='MAXBWDTH' maxlength='8' required='1' value="$qossettings{'MAXBWDTH'}" />
                    <td width='33%' align='center'>&nbsp;
                <tr><td width='33%' align='right'>Burst:
@@ -1187,8 +1187,8 @@ sub showclasses {
                                <tr><td bgcolor='$color{'color20'}' width='10%' align='center'><b>$Lang::tr{'interface'}</b>
                                    <td bgcolor='$color{'color20'}' width='10%' align='center'><b>$Lang::tr{'Class'}</b>
                                    <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'priority'}
-                                   <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'guaranteed bandwith'}
-                                   <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'max bandwith'}
+                                   <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'guaranteed bandwidth'}
+                                   <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'max bandwidth'}
                                    <td bgcolor='$color{'color20'}' width='10%' align='center'>Burst
                                    <td bgcolor='$color{'color20'}' width='10%' align='center'>Ceil Burst
                                    <td bgcolor='$color{'color20'}' width='10%' align='center'>TOS
@@ -1439,7 +1439,7 @@ sub validminbwdth {
                }
                unless ( ( $qossettings{'MINBWDTH'} >= 1 ) && ( $qossettings{'MINBWDTH'} <= $qossettings{'SPD'} ) ) {
                        $qossettings{'VALID'} = 'no';
-                       $message = "$Lang::tr{'false min bandwith'}";
+                       $message = "$Lang::tr{'false min bandwidth'}";
                }
                $qossettings{'SPD'} = '';
        }
@@ -1454,7 +1454,7 @@ sub validmaxbwdth {
                }
                unless ( ( $qossettings{'MAXBDWTH'} >= 0 ) && ($qossettings{'MAXBDWTH'} >= $qossettings{'MINBDWTH'}) &&( $qossettings{'MAXBDWTH'} <= $qossettings{'SPD'} ) ) {
                        $qossettings{'VALID'} = 'no';
-                       $message = "$Lang::tr{'false max bandwith'}";
+                       $message = "$Lang::tr{'false max bandwidth'}";
                }
                $qossettings{'SPD'} = '';
        }
index f2014e2e12f917ecc31c56c7490534a52a420874..dc77f7f03dcdb336cf336c360f5ac015eee3aeb1 100644 (file)
@@ -49,7 +49,7 @@ $settings{'IP'} = '';
 $settings{'GATEWAY'} = '';
 $settings{'REMARK'} = '';
 my @nosaved=('EN','IP','GATEWAY','REMARK');    # List here ALL setting2 fields. Mandatory
-    
+
 $settings{'ACTION'} = '';              # add/edit/remove
 $settings{'KEY1'} = '';                        # point record for ACTION
 
@@ -105,14 +105,14 @@ if ($settings{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
     $temp[0] = $temp[0] ne '' ? '' : 'on';             # Toggle the field
     @current[$settings{'KEY1'}] = join (',',@temp)."\n";
     $settings{'KEY1'} = '';                            # End edit mode
-    
+
     &General::log($Lang::tr{'routing config changed'});
 
     #Save current
     open(FILE, ">$datafile") or die 'routing datafile error';
     print FILE @current;
     close(FILE);
-       
+
     # Rebuild configuration file
     &BuildConfiguration;
 }
@@ -194,7 +194,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'remove'}) {
     print FILE @current;
     close(FILE);
     $settings{'KEY1'} = '';                            # End remove mode
-    &General::log($Lang::tr{'route config changed'});
+    &General::log($Lang::tr{'routing config changed'});
 
     &BuildConfiguration;                               # then re-build conf which use new data
 }
@@ -402,7 +402,7 @@ if ( $output != "" ) {
 sub SortDataFile
 {
     our %entries = ();
-    
+
     # Sort pair of record received in $a $b special vars.
     # When IP is specified use numeric sort else alpha.
     # If sortname ends with 'Rev', do reverse sort.
@@ -452,7 +452,7 @@ sub SortDataFile
        %{$record} = @record;                           # populate that hash with @record
        $entries{$record->{KEY}} = $record;             # add this to a hash of hashes
     }
-    
+
     open(FILE, ">$datafile") or die 'routing datafile error';
 
     # Each field value is printed , with the newline ! Don't forget separator and order of them.
index c3c327eec2a40096a3cd01ac42fdd6bc645919ca..0eb015a9e18c116ed0f85980aa58d8432bab3da3 100644 (file)
@@ -1479,16 +1479,19 @@ print <<END
        <td class='base'>$Lang::tr{'urlfilter username log'}:</td>
        <td><input type='checkbox' name='ENABLE_USERNAME_LOG' $checked{'ENABLE_USERNAME_LOG'}{'on'} /></td>
 </tr>
+
 <tr>
        <td class='base'>$Lang::tr{'urlfilter empty ads'}:</td>
        <td><input type='checkbox' name='ENABLE_EMPTY_ADS' $checked{'ENABLE_EMPTY_ADS'}{'on'} /></td>
        <td class='base'>$Lang::tr{'urlfilter category log'}:</td>
        <td><input type='checkbox' name='ENABLE_CATEGORY_LOG' $checked{'ENABLE_CATEGORY_LOG'}{'on'} /></td>
 </tr>
+
 <tr>
        <td class='base'>$Lang::tr{'urlfilter block ip'}:</td>
        <td><input type='checkbox' name='BLOCK_IP_ADDR' $checked{'BLOCK_IP_ADDR'}{'on'} /></td>
 </tr>
+
 <tr>
        <td class='base'>$Lang::tr{'urlfilter block all'}:</td>
        <td><input type='checkbox' name='BLOCK_ALL' $checked{'BLOCK_ALL'}{'on'} /></td>
@@ -1782,7 +1785,7 @@ print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n";
 $buttontext = $Lang::tr{'urlfilter add rule'};
 if ($tcsettings{'ACTION'} eq $Lang::tr{'edit'}) {
 &Header::openbox('100%', 'left', $Lang::tr{'urlfilter edit time constraint rule'}.':');
-$buttontext = $Lang::tr{'urlfilter update rule'};
+$buttontext = $Lang::tr{'update'};
 } else {
 &Header::openbox('100%', 'left', $Lang::tr{'urlfilter add new time constraint rule'}.':');
 }
@@ -2153,7 +2156,7 @@ print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n";
 $buttontext = $Lang::tr{'urlfilter add rule'};
 if ($uqsettings{'ACTION'} eq $Lang::tr{'edit'}) {
 &Header::openbox('100%', 'left', $Lang::tr{'urlfilter edit user quota rule'}.':');
-$buttontext = $Lang::tr{'urlfilter update rule'};
+$buttontext = $Lang::tr{'update'};
 } else {
 &Header::openbox('100%', 'left', $Lang::tr{'urlfilter add new user quota rule'}.':');
 }