summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-14 16:55:42 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-14 16:55:42 +0545
commit60f8fa56451ab8889756acda51b5378b0a58c176 (patch)
treeef6c0f8d30d683c5cf9ab90a9d5cf5097cc9e16b /src/usr
parentdfe90903a0207920774ca22fe1f28af3308f9e16 (diff)
downloadpfsense-60f8fa56451ab8889756acda51b5378b0a58c176.zip
pfsense-60f8fa56451ab8889756acda51b5378b0a58c176.tar.gz
Translate button text
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/classes/Form/Button.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/classes/Form/Button.class.php b/src/usr/local/www/classes/Form/Button.class.php
index a6f2ef3..85fd428 100644
--- a/src/usr/local/www/classes/Form/Button.class.php
+++ b/src/usr/local/www/classes/Form/Button.class.php
@@ -53,13 +53,13 @@ class Form_Button extends Form_Input
{
$this->_tagSelfClosing = false;
$this->_tagName = 'button';
- $this->_attributes['value'] = $title;
+ $this->_attributes['value'] = gettext($title);
$this->_attributes['icon'] = $icon;
}
else
{
$this->_tagSelfClosing = true;
- $this->_attributes['value'] = $title;
+ $this->_attributes['value'] = gettext($title);
$this->addClass('btn-primary');
}
@@ -78,4 +78,4 @@ class Form_Button extends Form_Input
return $input . htmlspecialchars($this->_title) .'</a>';
}
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud