summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-01-16 10:45:26 -0500
committerjim-p <jimp@pfsense.org>2016-01-16 10:45:26 -0500
commitba14d86fefa04cedb2aadf7cf44548f11273a465 (patch)
tree8aeae44bbbec3ac99d52b392e04df1bdb6dbb504 /src
parent07fbdd41190c7a00db5cc350a4d200f0668a78ad (diff)
downloadpfsense-ba14d86fefa04cedb2aadf7cf44548f11273a465.zip
pfsense-ba14d86fefa04cedb2aadf7cf44548f11273a465.tar.gz
Don't automatically run strings that are too long through gettext here.
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/classes/Form/Input.class.php7
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));
OpenPOWER on IntegriCloud