summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjean.feltrin <jean.feltrin@bluepex.com>2010-06-18 17:19:05 -0300
committerjean.feltrin <jean.feltrin@bluepex.com>2010-06-18 17:21:12 -0300
commit627ef8fca604245518b137aa245b77a2050c4583 (patch)
tree7df72ee602a4b58876fa8a53241145a8f3ffc53c /usr/local/www
parentee91ae30544a5c8fa52d01673ff16638238dbdc8 (diff)
downloadpfsense-627ef8fca604245518b137aa245b77a2050c4583.zip
pfsense-627ef8fca604245518b137aa245b77a2050c4583.tar.gz
Implement gettext() calls
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/diag_defaults.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/usr/local/www/diag_defaults.php b/usr/local/www/diag_defaults.php
index c462abd..bf260c6 100755
--- a/usr/local/www/diag_defaults.php
+++ b/usr/local/www/diag_defaults.php
@@ -48,14 +48,14 @@ if ($_POST) {
if ($_POST['Submit'] != " No ") {
reset_factory_defaults();
system_reboot();
- $rebootmsg = "The system has been reset to factory defaults and is now rebooting. This may take one minute.";
+ $rebootmsg = gettext("The system has been reset to factory defaults and is now rebooting. This may take one minute.");
} else {
header("Location: index.php");
exit;
}
}
-$pgtitle = array("Diagnostics","Factory defaults");
+$pgtitle = array(gettext("Diagnostics"),gettext("Factory defaults"));
include("head.inc");
?>
@@ -64,21 +64,22 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<?php if ($rebootmsg): echo print_info_box($rebootmsg); else: ?>
<form action="diag_defaults.php" method="post">
- <p><strong>If you click &quot;Yes&quot;, the firewall will:
+ <p><strong> <?=gettext("If you click &quot;Yes&quot;, the firewall will")?>:
<ul>
- <li>Reset to factory defaults</li>
- <li>LAN IP address will be reset to 192.168.1.1</li>
- <li>System will be configured as a DHCP server on the default LAN interface</li>
- <li>Reboot after changes are installed</li>
- <li>WAN interface will be set to obtain an address automatically from a DHCP server</li>
- <li>webConfigurator admin username will be reset to 'admin'</li>
- <li>webConfigurator admin password will be reset to '<?=$g['product_name']?>'</li>
+ <li><?=gettext("Reset to factory defaults");</li>
+ <li><?=gettext("LAN IP address will be reset to 192.168.1.1");></li>
+ <li><?=gettext("System will be configured as a DHCP server on the default LAN interface");?></li>
+ <li><?=gettext("Reboot after changes are installed");?> </li>
+ <li><?=gettext("WAN interface will be set to obtain an address automatically from a DHCP server");?></li>
+ <li><?=gettext("webConfigurator admin username will be reset to 'admin'");?></li>
+ <li><?=gettext("webConfigurator admin password will be reset to");?> '<?=$g['product_name']?>'</li>
+
</ul>
- Are you sure you want to proceed?</strong></p>
+ <?=gettext("Are you sure you want to proceed?");?></strong></p>
<p>
- <input name="Submit" type="submit" class="formbtn" value=" Yes ">
- <input name="Submit" type="submit" class="formbtn" value=" No ">
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext(" Yes ");?>">
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext(" No ");?>">
</p>
</form>
<?php endif; ?>
OpenPOWER on IntegriCloud