summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-22 11:44:03 -0200
committerRenato Botelho <renato@netgate.com>2016-01-22 11:44:03 -0200
commit95dea5e4179021cc2bdf09a77dd1cc42361eb5d7 (patch)
tree6dcfcce843a281a864e1d4c82ff667340515454b /src
parent4370022d11e893db47c433ad179ac65be30e821c (diff)
parentb373f471a8a4d92d5df0f708f069c612dfc9645a (diff)
downloadpfsense-95dea5e4179021cc2bdf09a77dd1cc42361eb5d7.zip
pfsense-95dea5e4179021cc2bdf09a77dd1cc42361eb5d7.tar.gz
Merge pull request #2502 from phil-davis/patch-6
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/guiconfig.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc
index b94018b..643d410 100644
--- a/src/usr/local/www/guiconfig.inc
+++ b/src/usr/local/www/guiconfig.inc
@@ -314,7 +314,10 @@ function print_info_box_np($msg, $name="apply", $value="", $showapply=false, $cl
$msg = '<div class="pull-left">' . $msg . '</div>';
- if (stristr($msg, gettext("apply")) != false || stristr($msg, gettext("save")) != false || stristr($msg, gettext("create")) != false || $showapply) {
+ // The $msg string might or might not have had a known translation into the target language.
+ // So check it against the keywords "apply", "save and "create" in both the target language and English.
+ if ((stristr($msg, gettext("apply")) != false) || (stristr($msg, gettext("save")) != false) || (stristr($msg, gettext("create")) != false) ||
+ (stristr($msg, "apply") != false) || (stristr($msg, "save") != false) || (stristr($msg, "create") != false) || $showapply) {
$msg .= '<form method="post" class="pull-right"><button type="submit" class="btn btn-default" name="'. $name .'" value="' . $value . '">' . $name . '</button>';
if ($_POST['if']) {
OpenPOWER on IntegriCloud