diff options
author | jim-p <jimp@pfsense.org> | 2016-01-16 10:45:26 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-01-16 10:45:26 -0500 |
commit | ba14d86fefa04cedb2aadf7cf44548f11273a465 (patch) | |
tree | 8aeae44bbbec3ac99d52b392e04df1bdb6dbb504 | |
parent | 07fbdd41190c7a00db5cc350a4d200f0668a78ad (diff) | |
download | pfsense-ba14d86fefa04cedb2aadf7cf44548f11273a465.zip pfsense-ba14d86fefa04cedb2aadf7cf44548f11273a465.tar.gz |
Don't automatically run strings that are too long through gettext here.
-rw-r--r-- | src/usr/local/www/classes/Form/Input.class.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/local/www/classes/Form/Input.class.php b/src/usr/local/www/classes/Form/Input.class.php index e8dd000..836251d 100644 --- a/src/usr/local/www/classes/Form/Input.class.php +++ b/src/usr/local/www/classes/Form/Input.class.php @@ -245,7 +245,12 @@ class Form_Input extends Form_Element if (isset($this->_help)) { - $help = gettext($this->_help); + /* Strings longer than this will break gettext. */ + if (strlen($this->_help) < 7620) { + $help = gettext($this->_help); + } else { + $help = $this->_help; + } if (!empty($this->_helpParams)) $help = call_user_func_array('sprintf', array_merge([$help], $this->_helpParams)); |