From 573439f1da9dcd5b9cd541e138e22856edaa6248 Mon Sep 17 00:00:00 2001 From: Vinicius Coque Date: Wed, 28 Apr 2010 08:36:48 -0300 Subject: Implementing gettext(0 --- usr/local/www/system_gateways_settings.php | 42 +++++++++++++++--------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'usr') diff --git a/usr/local/www/system_gateways_settings.php b/usr/local/www/system_gateways_settings.php index 7983956..65640b0 100755 --- a/usr/local/www/system_gateways_settings.php +++ b/usr/local/www/system_gateways_settings.php @@ -45,7 +45,7 @@ if (!is_array($config['gateways']['settings'])) $a_settings = &$config['gateways']['settings']; -$changedesc = "Gateways: "; +$changedesc = gettext("Gateways") . ": "; $input_errors = array(); if (empty($a_settings)) { @@ -68,35 +68,35 @@ if ($_POST) { /* input validation */ if($_POST['latencylow']) { if (! is_numeric($_POST['latencylow'])) { - $input_errors[] = "The low latency watermark needs to be a numeric value."; + $input_errors[] = gettext("The low latency watermark needs to be a numeric value."); } } if($_POST['latencyhigh']) { if (! is_numeric($_POST['latencyhigh'])) { - $input_errors[] = "The high latency watermark needs to be a numeric value."; + $input_errors[] = gettext("The high latency watermark needs to be a numeric value."); } } if($_POST['losslow']) { if (! is_numeric($_POST['losslow'])) { - $input_errors[] = "The low loss watermark needs to be a numeric value."; + $input_errors[] = gettext("The low loss watermark needs to be a numeric value."); } } if($_POST['losshigh']) { if (! is_numeric($_POST['losshigh'])) { - $input_errors[] = "The high loss watermark needs to be a numeric value."; + $input_errors[] = gettext("The high loss watermark needs to be a numeric value."); } } if(($_POST['latencylow']) && ($_POST['latencyhigh'])){ if(($_POST['latencylow'] > $_POST['latencyhigh'])) { - $input_errors[] = "The High latency watermark needs to be higher then the low latency watermark"; + $input_errors[] = gettext("The High latency watermark needs to be higher then the low latency watermark"); } } if(($_POST['losslow']) && ($_POST['losshigh'])){ if($_POST['losslow'] > $_POST['losshigh']) { - $input_errors[] = "The High packet loss watermark needs to be higher then the low packet loss watermark"; + $input_errors[] = gettext("The High packet loss watermark needs to be higher then the low packet loss watermark"); } } @@ -119,7 +119,7 @@ if ($_POST) { } } -$pgtitle = array("Gateways","Settings"); +$pgtitle = array(gettext("Gateways"),gettext("Settings")); include("head.inc"); ?> @@ -133,10 +133,10 @@ include("head.inc"); @@ -146,33 +146,33 @@ include("head.inc");
- + +
- + +
Latency thresholds - From + - To + -
These define the low and high water marks for latency in milliseconds.
Packet Loss thresholds - From + - To + -
These define the low and high water marks for packet loss in %.
  - + " onclick="enable_change(true)">
-- cgit v1.1