From 185b43650f5685a2b4211a4cab0bc23718bd24bf Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 17 Jan 2016 21:46:08 +0545 Subject: Internationalize remaining diag* code --- src/usr/local/www/diag_routes.php | 4 ++-- src/usr/local/www/diag_sockets.php | 2 +- src/usr/local/www/diag_tables.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/usr/local') 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() {
-

IPv4 Routes

+

@@ -230,7 +230,7 @@ events.push(function() {
-

IPv6 Routes

+

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() { -- cgit v1.1
- Remove +