summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes.php
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-04-28 12:59:05 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-04-28 12:59:05 -0300
commit40fb81a1b5a0cad692cfe2dc44a458ee56131143 (patch)
tree7cbff1d40797503c765dab740731258c5db5f286 /usr/local/www/system_routes.php
parent38fb1109ce44b696676a0704aa62e61eb5cd4b95 (diff)
downloadpfsense-40fb81a1b5a0cad692cfe2dc44a458ee56131143.zip
pfsense-40fb81a1b5a0cad692cfe2dc44a458ee56131143.tar.gz
Reviewing gettext()
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-xusr/local/www/system_routes.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php
index e31438d..9defed7 100755
--- a/usr/local/www/system_routes.php
+++ b/usr/local/www/system_routes.php
@@ -74,14 +74,14 @@ if ($_POST) {
if ($_POST['enablefastrouting'] == "") {
/* Only update config if something changed */
if (isset($config['staticroutes']['enablefastrouting'])) {
- $changedesc .= " disable fast routing";
+ $changedesc .= " " . gettext("disable fast routing");
unset($config['staticroutes']['enablefastrouting']);
write_config($changedesc);
}
} else {
/* Only update config if something changed */
if (!isset($config['staticroutes']['enablefastrouting'])) {
- $changedesc .= " enable fast routing";
+ $changedesc .= " " . gettext("enable fast routing");
$config['staticroutes']['enablefastrouting'] = "enabled";
write_config($changedesc);
}
@@ -91,7 +91,7 @@ if ($_POST) {
if ($_GET['act'] == "del") {
if ($a_routes[$_GET['id']]) {
- $changedesc .= "removed route to " . $a_routes[$_GET['id']['route']];
+ $changedesc .= gettext("removed route to") . " " . $a_routes[$_GET['id']['route']];
unset($a_routes[$_GET['id']]);
write_config($changedesc);
mark_subsystem_dirty('staticroutes');
@@ -111,7 +111,7 @@ include("head.inc");
<input type="hidden" name="y1" value="1">
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (is_subsystem_dirty('staticroutes')): ?><p>
-<?php print_info_box_np(gettext("The static route configuration has been changed.<br>You must apply the changes in order for them to take effect."));?><br>
+<?php print_info_box_np(sprintf(gettext("The static route configuration has been changed.%sYou must apply the changes in order for them to take effect."), "<br>"));?><br>
<?php endif; ?>
<?php if($config['system']['disablefilter'] <> "") :?>
@@ -119,7 +119,7 @@ include("head.inc");
<tr><td width="2%"><input type="checkbox" name="enablefastrouting" id="enablefastrouting" <?php if($config['staticroutes']['enablefastrouting'] == "enabled") echo " checked"; ?>></td><td><b><?=gettext("Enable fast routing");?></td></tr>
- <tr><td colspan=2><hr><input type="submit" value="Save"></td></tr>
+ <tr><td colspan=2><hr><input type="submit" value="<?=gettext("Save"); ?>"></td></tr>
</table><br>
<?php endif; ?>
OpenPOWER on IntegriCloud