From ca23c2f84438449490589c6c1ea2578f8c62ae29 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 26 Apr 2010 13:21:08 -0300 Subject: Implement gettext() --- usr/local/www/system_advanced_firewall.php | 114 ++++++++++++++--------------- 1 file changed, 57 insertions(+), 57 deletions(-) (limited to 'usr/local/www/system_advanced_firewall.php') diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php index 7a3cd93..dbac50f 100644 --- a/usr/local/www/system_advanced_firewall.php +++ b/usr/local/www/system_advanced_firewall.php @@ -67,13 +67,13 @@ if ($_POST) { /* input validation */ if ($_POST['maximumstates'] && !is_numericint($_POST['maximumstates'])) { - $input_errors[] = "The Firewall Maximum States value must be an integer."; + $input_errors[] = gettext("The Firewall Maximum States value must be an integer."); } if ($_POST['tcpidletimeout'] && !is_numericint($_POST['tcpidletimeout'])) { - $input_errors[] = "The TCP idle timeout must be an integer."; + $input_errors[] = gettext("The TCP idle timeout must be an integer."); } if ($_POST['reflectiontimeout'] && !is_numericint($_POST['reflectiontimeout'])) { - $input_errors[] = "The Reflection timeout must be an integer."; + $input_errors[] = gettext("The Reflection timeout must be an integer."); } ob_flush(); @@ -144,7 +144,7 @@ if ($_POST) { } } -$pgtitle = array("System","Advanced: Firewall and NAT"); +$pgtitle = array(gettext("System"),gettext("Advanced: Firewall and NAT")); include("head.inc"); ?> @@ -156,10 +156,10 @@ include("head.inc");