summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-17 21:46:08 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-17 21:46:08 +0545
commit185b43650f5685a2b4211a4cab0bc23718bd24bf (patch)
tree921c96514277f2424ae8a4024f760581363285fe
parente163952f29d1b9bc68731985c14caa3129ce49ce (diff)
downloadpfsense-185b43650f5685a2b4211a4cab0bc23718bd24bf.zip
pfsense-185b43650f5685a2b4211a4cab0bc23718bd24bf.tar.gz
Internationalize remaining diag* code
-rw-r--r--src/usr/local/www/diag_routes.php4
-rw-r--r--src/usr/local/www/diag_sockets.php2
-rw-r--r--src/usr/local/www/diag_tables.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/diag_routes.php b/src/usr/local/www/diag_routes.php
index 36048e1..cc68313 100644
--- a/src/usr/local/www/diag_routes.php
+++ b/src/usr/local/www/diag_routes.php
@@ -212,7 +212,7 @@ events.push(function() {
</script>
<div class="panel panel-default">
- <div class="panel-heading"><h2 class="panel-title">IPv4 Routes</h2></div>
+ <div class="panel-heading"><h2 class="panel-title"><?=gettext("IPv4 Routes")?></h2></div>
<div class="panel panel-body">
<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" id="IPv4">
<thead>
@@ -230,7 +230,7 @@ events.push(function() {
</div>
<div class="panel panel-default">
- <div class="panel-heading"><h2 class="panel-title">IPv6 Routes</h2></div>
+ <div class="panel-heading"><h2 class="panel-title"><?=gettext("IPv6 Routes")?></h2></div>
<div class="panel panel-body">
<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" id="IPv6">
<thead>
diff --git a/src/usr/local/www/diag_sockets.php b/src/usr/local/www/diag_sockets.php
index 517e8c7..55c1b17 100644
--- a/src/usr/local/www/diag_sockets.php
+++ b/src/usr/local/www/diag_sockets.php
@@ -67,7 +67,7 @@ $pgtitle = array(gettext("Diagnostics"), gettext("Sockets"));
include('head.inc');
$showAll = isset($_GET['showAll']);
-$showAllText = $showAll ? "Show only listening sockets" : "Show all socket connections";
+$showAllText = $showAll ? gettext("Show only listening sockets") : gettext("Show all socket connections");
$showAllOption = $showAll ? "" : "?showAll";
?>
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index 07aa2b8..b2f100d 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -129,7 +129,7 @@ if ($savemsg) {
if ($tablename == "webConfiguratorlockout") {
$displayname = gettext("Web configurator lockout table");
} else {
- $displayname = ucfirst($tablename) . " " . gettext("table");
+ $displayname = sprintf(gettext("%s table"), ucfirst($tablename));
}
$form = new Form(false);
@@ -230,7 +230,7 @@ events.push(function() {
</td>
<td>
<?php if (!$bogons): ?>
- <a class="btn btn-xs btn-default" data-entry="<?=htmlspecialchars($entry)?>">Remove</a>
+ <a class="btn btn-xs btn-default" data-entry="<?=htmlspecialchars($entry)?>"><?=gettext("Remove")?></a>
<?php endif ?>
</td>
</tr>
OpenPOWER on IntegriCloud