diff options
author | Phil Davis <phil.davis@inf.org> | 2016-02-19 18:07:26 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-02-19 18:07:26 +0545 |
commit | 51a14c58a0f6728032a41626480f6f547e16f511 (patch) | |
tree | eb327a625c5d647477236fe8f7622ea61a01b1f8 /src/etc/inc/upgrade_config.inc | |
parent | a20da2b6f9146c51615c20adb58484643644f72e (diff) | |
download | pfsense-51a14c58a0f6728032a41626480f6f547e16f511.zip pfsense-51a14c58a0f6728032a41626480f6f547e16f511.tar.gz |
Internationalize etc inc uvx
Diffstat (limited to 'src/etc/inc/upgrade_config.inc')
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 5ec1870..69e0df6 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -3999,7 +3999,7 @@ function upgrade_124_to_125() { if (!function_exists("file_notice")) { require_once("notices.inc"); } - file_notice("WirelessSettings", "WEP is no longer supported. It will be disabled on the {$ifname} interface and the interface will be disabled. Please reconfigure the interface."); + file_notice("WirelessSettings", sprintf(gettext("WEP is no longer supported. It will be disabled on the %s interface and the interface will be disabled. Please reconfigure the interface."), $ifname)); unset($config['interfaces'][$ifname]['wireless']['wep']); if (isset($intf['enable'])) { unset($config['interfaces'][$ifname]['enable']); @@ -4209,8 +4209,7 @@ function upgrade_132_to_133() { $p1['encryption-algorithm']['name'] == 'des') { $p1['disabled'] = true; file_notice("IPsec", - "DES is no longer supported, IPsec phase 1 " . - "item '{$p1['descr']}' is being disabled."); + sprintf(gettext("DES is no longer supported, IPsec phase 1 item '%s' is being disabled."), $p1['descr'])); } } } @@ -4227,8 +4226,7 @@ function upgrade_132_to_133() { if ($ealgo['name'] == 'des') { $p2['disabled'] = true; file_notice("IPsec", - "DES is no longer supported, IPsec phase 2 " . - "item '{$p2['descr']}' is being disabled."); + sprintf(gettext("DES is no longer supported, IPsec phase 2 item '%s' is being disabled."), $p2['descr'])); } } } @@ -4273,7 +4271,7 @@ function upgrade_135_to_136() { global $config; if (isset($config['l7shaper'])) { - file_notice("L7shaper", "Layer 7 shaping is no longer supported. Its configuration has been removed."); + file_notice("L7shaper", gettext("Layer 7 shaping is no longer supported. Its configuration has been removed.")); unset($config['l7shaper']); if (is_array($config['filter']['rule'])) { foreach ($config['filter']['rule'] as $idx => $rule) { |