summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq_domainoverride_edit.php
diff options
context:
space:
mode:
authorRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-13 13:24:05 -0300
committerRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-13 13:24:05 -0300
commit7ef905d9229d61ccd7bae15eaa87fe8cf46faf17 (patch)
treec7f4e73ee16df2331c2b07925dbc83ea79e5d52c /usr/local/www/services_dnsmasq_domainoverride_edit.php
parent065bc89a6afa0b5a1edaa28439b70006aa543c02 (diff)
downloadpfsense-7ef905d9229d61ccd7bae15eaa87fe8cf46faf17.zip
pfsense-7ef905d9229d61ccd7bae15eaa87fe8cf46faf17.tar.gz
Implement gettext() calls on services_dnsmasq_domainoverride_edit.php
Diffstat (limited to 'usr/local/www/services_dnsmasq_domainoverride_edit.php')
-rwxr-xr-xusr/local/www/services_dnsmasq_domainoverride_edit.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/local/www/services_dnsmasq_domainoverride_edit.php b/usr/local/www/services_dnsmasq_domainoverride_edit.php
index 8570198..32b82ad 100755
--- a/usr/local/www/services_dnsmasq_domainoverride_edit.php
+++ b/usr/local/www/services_dnsmasq_domainoverride_edit.php
@@ -62,15 +62,15 @@ 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['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.");
}
if (!$input_errors) {
@@ -93,7 +93,7 @@ if ($_POST) {
}
}
-$pgtitle = array("Services","DNS forwarder","Edit Domain Override");
+$pgtitle = array(gettext("Services"),gettext("DNS forwarder"),gettext("Edit Domain Override"));
include("head.inc");
?>
@@ -104,30 +104,30 @@ include("head.inc");
<form action="services_dnsmasq_domainoverride_edit.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td width="22%" valign="top" class="vncellreq">Domain</td>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Domain");?></td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="domain" type="text" class="formfld unknown" id="domain" size="40" value="<?=htmlspecialchars($pconfig['domain']);?>">
- <br> <span class="vexpl">Domain to override (NOTE: this does not have to be a valid TLD!)<br>
- e.g. <em>test</em></span></td>
+ <br> <span class="vexpl"><?=gettext("Domain to override (NOTE: this does not have to be a valid TLD!)<br>".
+ " e.g. <em>test</em>");?></span></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq">IP address</td>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("IP address");?></td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="ip" type="text" class="formfld unknown" id="ip" size="40" value="<?=htmlspecialchars($pconfig['ip']);?>">
- <br> <span class="vexpl">IP address of the authoritative DNS server for this domain<br>
- e.g. <em>192.168.100.100</em></span></td>
+ <br> <span class="vexpl"><?=gettext("IP address of the authoritative DNS server for this domain<br>".
+ " e.g. <em>192.168.100.100</em>");?></span></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Description</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td>
<td width="78%" class="vtable">
<input name="descr" type="text" class="formfld unknown" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>">
- <br> <span class="vexpl">You may enter a description here
- for your reference (not parsed).</span></td>
+ <br> <span class="vexpl"><?=gettext("You may enter a description here".
+ " for your reference (not parsed).");?></span></td>
</tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
- <input name="Submit" type="submit" class="formbtn" value="Save"> <input class="formbtn" type="button" value="Cancel" onclick="history.back()">
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>"> <input class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()">
<?php if (isset($id) && $a_domainOverrides[$id]): ?>
<input name="id" type="hidden" value="<?=$id;?>">
<?php endif; ?>
OpenPOWER on IntegriCloud