From d18f3f6e09b86359395cd78db2e19f721818b992 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 17 Feb 2016 19:18:51 +0545 Subject: Internationalize etc inc a-i files --- src/etc/inc/authgui.inc | 12 +++++----- src/etc/inc/captiveportal.inc | 32 ++++++++++++++++--------- src/etc/inc/config.console.inc | 2 +- src/etc/inc/config.lib.inc | 2 +- src/etc/inc/crypt.inc | 2 +- src/etc/inc/filter.inc | 22 ++++++++--------- src/etc/inc/filter_log.inc | 8 +++---- src/etc/inc/gwlb.inc | 23 +++++++++--------- src/etc/inc/interfaces.inc | 54 +++++++++++++++++++++--------------------- 9 files changed, 83 insertions(+), 74 deletions(-) (limited to 'src/etc/inc') diff --git a/src/etc/inc/authgui.inc b/src/etc/inc/authgui.inc index 47616ee..57e44b9 100644 --- a/src/etc/inc/authgui.inc +++ b/src/etc/inc/authgui.inc @@ -264,7 +264,7 @@ if (isset($config['system']['webgui']['webguicss'])) {
-

Login to pfSense

+

@@ -275,22 +275,22 @@ if (isset($config['system']['webgui']['webguicss'])) {
action="" class="form-horizontal">
- +
- + " autocorrect="off" autocapitalize="none" spellcheck="false">
- +
- + ">
- +
diff --git a/src/etc/inc/captiveportal.inc b/src/etc/inc/captiveportal.inc index 2921af2..d051695 100644 --- a/src/etc/inc/captiveportal.inc +++ b/src/etc/inc/captiveportal.inc @@ -64,6 +64,10 @@ require_once("voucher.inc"); function get_default_captive_portal_html() { global $config, $g, $cpzone; + $translated_text1 = sprintf(gettext("%s captive portal"), $g['product_name']); + $translated_text2 = sprintf(gettext("Welcome to the %s Captive Portal!"), $g['product_name']); + $translated_text3 = gettext("Username:"); + $translated_text4 = gettext("Password:"); $htmltext = << @@ -76,7 +80,7 @@ function get_default_captive_portal_html() { - {$g['product_name']} captive portal + {$translated_text1} @@ -106,27 +110,29 @@ function get_default_captive_portal_html() {
- + - - + + EOD; if (isset($config['voucher'][$cpzone]['enable'])) { + $translated_text = gettext("Enter Voucher Code:"); $htmltext .= << - + EOD; } + $translated_text = gettext("Continue"); $htmltext .= << - +
Welcome to the {$g['product_name']} Captive Portal!
{$translated_text2}
 
Username:
Password:
{$translated_text3}
{$translated_text4}
 
Enter Voucher Code: {$translated_text}
@@ -280,26 +286,30 @@ function captiveportal_configure_zone($cpcfg) { $logouttext = base64_decode($cpcfg['page']['logouttext']); } else { /* example page */ + $translated_text1 = gettext("Redirecting..."); + $translated_text2 = gettext("Redirecting to"); + $translated_text3 = gettext("Logout"); + $translated_text4 = gettext("Click the button below to disconnect"); $logouttext = << -Redirecting... +{$translated_text1} -Redirecting to ... +{$translated_text2} ...