From 065bc89a6afa0b5a1edaa28439b70006aa543c02 Mon Sep 17 00:00:00 2001 From: Rafael Lucas Date: Tue, 13 Jul 2010 13:19:26 -0300 Subject: Implement gettext() calls on services_dnsmasq_edit.php --- usr/local/www/services_dnsmasq_edit.php | 42 ++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'usr/local/www/services_dnsmasq_edit.php') diff --git a/usr/local/www/services_dnsmasq_edit.php b/usr/local/www/services_dnsmasq_edit.php index 7438758..5690dd6 100755 --- a/usr/local/www/services_dnsmasq_edit.php +++ b/usr/local/www/services_dnsmasq_edit.php @@ -77,18 +77,18 @@ if ($_POST) { /* input validation */ $reqdfields = explode(" ", "domain ip"); - $reqdfieldsn = explode(",", "Domain,IP address"); + $reqdfieldsn = array(gettext("Domain"),gettext("IP address")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); if (($_POST['host'] && !is_hostname($_POST['host']))) - $input_errors[] = "The hostname can only contain the characters A-Z, 0-9 and '-'."; + $input_errors[] = gettext("The hostname can only contain the characters A-Z, 0-9 and '-'."); if (($_POST['domain'] && !is_domain($_POST['domain']))) - $input_errors[] = "A valid domain must be specified."; + $input_errors[] = gettext("A valid domain must be specified."); if (($_POST['ip'] && !is_ipaddr($_POST['ip']))) - $input_errors[] = "A valid IP address must be specified."; + $input_errors[] = gettext("A valid IP address must be specified."); /* check for overlaps */ foreach ($a_hosts as $hostent) { @@ -96,7 +96,7 @@ if ($_POST) { continue; if (($hostent['host'] == $_POST['host']) && ($hostent['domain'] == $_POST['domain'])) { - $input_errors[] = "This host/domain already exists."; + $input_errors[] = gettext("This host/domain already exists."); break; } } @@ -123,7 +123,7 @@ if ($_POST) { } } -$pgtitle = array("Services","DNS forwarder","Edit host"); +$pgtitle = array(gettext("Services"),gettext("DNS forwarder"),gettext("Edit host")); include("head.inc"); ?> @@ -134,41 +134,41 @@ include("head.inc");
- + - + +
". + " e.g. myhost");?> - + +
". + " e.g. example.com");?> - + +
". + " e.g. 192.168.100.100");?> - + +
Edit DNS Forwarder entry
Host -
Name of the host, without - domain part
- e.g. myhost
Domain -
Domain of the host
- e.g. example.com
IP address -
IP address of the host
- e.g. 192.168.100.100
Description -
You may enter a description here - for your reference (not parsed).
  - + "> " onclick="history.back()"> -- cgit v1.1