summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_nanobsd.php
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-06-18 15:40:46 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-06-18 16:04:19 -0300
commit9404a10480108238ef3263ef2c298ff6577aed90 (patch)
treec497314060583f7dee854036da19dc6d58649513 /usr/local/www/diag_nanobsd.php
parent77f43ea489a129478df477afb6e69c97917af638 (diff)
downloadpfsense-9404a10480108238ef3263ef2c298ff6577aed90.zip
pfsense-9404a10480108238ef3263ef2c298ff6577aed90.tar.gz
Implement gettext() calls
Diffstat (limited to 'usr/local/www/diag_nanobsd.php')
-rwxr-xr-xusr/local/www/diag_nanobsd.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php
index 3e9bed1..3409a34 100755
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -46,7 +46,7 @@ ini_set('max_input_time', '9999');
require_once("guiconfig.inc");
require_once("config.inc");
-$pgtitle = array("Diagnostics","NanoBSD");
+$pgtitle = array(gettext("Diagnostics"), gettext("NanoBSD"));
include("head.inc");
// Survey slice info
@@ -70,12 +70,12 @@ if($_POST['bootslice']) {
echo <<<EOF
<div id="loading">
<img src="/themes/metallic/images/misc/loader.gif">
- Setting slice information, please wait...
+ gettext("Setting slice information, please wait...")
<p/>&nbsp;
</div>
EOF;
nanobsd_switch_boot_slice();
- $savemsg = "The boot slice has been set to " . nanobsd_get_active_slice();
+ $savemsg = gettext("The boot slice has been set to") . " " . nanobsd_get_active_slice();
// Survey slice info
nanobsd_detect_slice_info();
@@ -85,14 +85,14 @@ if($_POST['destslice']) {
echo <<<EOF
<div id="loading">
<img src="/themes/metallic/images/misc/loader.gif">
- Duplicating slice. Please wait, this will take a moment...
+ gettext("Duplicating slice. Please wait, this will take a moment...")
<p/>&nbsp;
</div>
EOF;
if(nanobsd_clone_slice($_POST['destslice'])) {
- $savemsg = "The slice has been duplicated.<p/>If you would like to boot from this newly duplicated slice please set it using the bootup information area.";
+ $savemsg = gettext("The slice has been duplicated.") . "<p/>" . gettext("If you would like to boot from this newly duplicated slice please set it using the bootup information area.");
} else {
- $savemsg = "There was an error while duplicating the slice. Operation aborted.";
+ $savemsg = gettext("There was an error while duplicating the slice. Operation aborted.");
}
// Re-Survey slice info
nanobsd_detect_slice_info();
@@ -113,28 +113,28 @@ if ($savemsg)
<div class="tabcont">
<span class="vexpl">
<span class="red">
- <strong>NOTE:&nbsp</strong>
+ <strong><?=gettext("NOTE") . ":"?>&nbsp;</strong>
</span>
- The options on this page are intended for use by advanced users only.
+ <?=gettext("The options on this page are intended for use by advanced users only.")?>
<br/>&nbsp;
</span>
<p/>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="listtopic">Bootup information</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Bootup information");?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">NanoBSD Image size</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("NanoBSD Image size");?></td>
<td width="78%" class="vtable">
<?php echo $NANOBSD_SIZE; ?>
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Bootup</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Bootup");?></td>
<td width="78%" class="vtable">
<form action="diag_nanobsd.php" method="post" name="iform">
- Bootup slice is currently: <?php echo $ACTIVE_SLICE; ?>
- <br/><br/>This will switch the bootup slice to the alternate slice.
+ <?=gettext("Bootup slice is currently");?>: <?php echo $ACTIVE_SLICE; ?>
+ <br/><br/><?=gettext("This will switch the bootup slice to the alternate slice.");?>
<br/>
<input type='hidden' name='bootslice' value='switch'>
<input type='submit' value='Switch Slice'></form>
@@ -144,20 +144,20 @@ if ($savemsg)
<td colspan="2" valign="top" class="">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">Duplicate bootup slice to alternate</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Duplicate bootup slice to alternate");?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Duplicate bootup slice</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Duplicate bootup slice");?></td>
<td width="78%" class="vtable">
<form action="diag_nanobsd.php" method="post" name="iform">
- Destination slice:
+ <?=gettext("Destination slice");?>:
<select name='destslice'>
<option value='<?php echo $COMPLETE_PATH; ?>'>
<?php echo "{$COMPLETE_BOOT_PATH} -> {$TOFLASH}"; ?>
</option>
</select>
<br/>
- This will duplicate the bootup slice to the alternate slice. Use this if you would like to duplicate the known good working boot partition to the alternate.
+ <?=gettext("This will duplicate the bootup slice to the alternate slice. Use this if you would like to duplicate the known good working boot partition to the alternate.");?>
</td>
</tr>
<tr>
@@ -168,10 +168,10 @@ if ($savemsg)
<td colspan="2" valign="top" class="">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">View upgrade log</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("View upgrade log");?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">View previous upgrade log</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("View previous upgrade log");?></td>
<td width="78%" class="vtable">
<?php
if($_POST['viewupgradelog']) {
OpenPOWER on IntegriCloud