diff options
author | Vinicius Coque <vinicius.coque@bluepex.com> | 2011-07-18 14:33:20 -0300 |
---|---|---|
committer | Vinicius Coque <vinicius.coque@bluepex.com> | 2011-07-18 14:33:20 -0300 |
commit | d1d0a1ad1b11a9c361f5907f660308f4abf761b2 (patch) | |
tree | 5e38e6fdcabde57546dc43ab540e37c5347f05d0 /usr/local/www/wizards/openvpn_wizard.inc | |
parent | aa840cf9f1bd54b565c33abd1512570034109b5c (diff) | |
download | pfsense-d1d0a1ad1b11a9c361f5907f660308f4abf761b2.zip pfsense-d1d0a1ad1b11a9c361f5907f660308f4abf761b2.tar.gz |
makes correct use of printf and gettext
removes variables names and replace it with '%s'
Diffstat (limited to 'usr/local/www/wizards/openvpn_wizard.inc')
-rw-r--r-- | usr/local/www/wizards/openvpn_wizard.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc index 51c7a63..348abbd 100644 --- a/usr/local/www/wizards/openvpn_wizard.inc +++ b/usr/local/www/wizards/openvpn_wizard.inc @@ -599,7 +599,7 @@ function step12_submitphpaction() { if (isset($pconfig['step11']['ovpnrule'])) { $rule = array(); - $rule['descr'] = gettext("OpenVPN {$server['description']} wizard"); + $rule['descr'] = sprintf(gettext("OpenVPN %s wizard"),$server['description']); /* Ensure the rule descr is not too long for pf to handle */ if (strlen($rule['descr']) > 52) $rule['descr'] = substr($rule['descr'], 0, 52); @@ -615,7 +615,7 @@ function step12_submitphpaction() { } if (isset($pconfig['step11']['ovpnallow'])) { $rule = array(); - $rule['descr'] = gettext("OpenVPN {$server['description']} wizard"); + $rule['descr'] = sprintf(gettext("OpenVPN %s wizard"),$server['description']); /* Ensure the rule descr is not too long for pf to handle */ if (strlen($rule['descr']) > 52) $rule['descr'] = substr($rule['descr'], 0, 52); |