diff options
author | jean.feltrin <jean.feltrin@bluepex.com> | 2010-06-18 17:19:05 -0300 |
---|---|---|
committer | jean.feltrin <jean.feltrin@bluepex.com> | 2010-06-18 17:21:12 -0300 |
commit | 627ef8fca604245518b137aa245b77a2050c4583 (patch) | |
tree | 7df72ee602a4b58876fa8a53241145a8f3ffc53c /usr/local/www | |
parent | ee91ae30544a5c8fa52d01673ff16638238dbdc8 (diff) | |
download | pfsense-627ef8fca604245518b137aa245b77a2050c4583.zip pfsense-627ef8fca604245518b137aa245b77a2050c4583.tar.gz |
Implement gettext() calls
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/diag_defaults.php | 27 |
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 "Yes", the firewall will: + <p><strong> <?=gettext("If you click "Yes", 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; ?> |