Rephrase autosumbit tooltips

fixes #1507
This commit is contained in:
Eric Lippmann 2017-07-04 13:59:02 +02:00
parent 53091384cd
commit c0d82fa2cc
2 changed files with 3 additions and 3 deletions

View File

@ -946,7 +946,7 @@ class Form extends Zend_Form
if ($this->getUseFormAutosubmit()) { if ($this->getUseFormAutosubmit()) {
$warningId = 'autosubmit_warning_' . $el->getId(); $warningId = 'autosubmit_warning_' . $el->getId();
$warningText = $this->getView()->escape($this->translate( $warningText = $this->getView()->escape($this->translate(
'Upon its value changing, this field issues an automatic update of this page.' 'This page will be automatically updated upon change of the value'
)); ));
$autosubmitDecorator = $this->_getDecorator('Callback', array( $autosubmitDecorator = $this->_getDecorator('Callback', array(
'placement' => 'PREPEND', 'placement' => 'PREPEND',

View File

@ -96,8 +96,8 @@ class Autosubmit extends Zend_Form_Decorator_Abstract
if ($content) { if ($content) {
$isForm = $this->getElement() instanceof Form; $isForm = $this->getElement() instanceof Form;
$warning = $isForm $warning = $isForm
? t('Upon any of this form\'s fields were changed, this page is being updated automatically.') ? t('This page will be automatically updated upon change of any of this form\'s fields')
: t('Upon its value changing, this field issues an automatic update of this page.'); : t('This page will be automatically updated upon change of the value');
$content .= $this->getView()->icon('cw', $warning, array( $content .= $this->getView()->icon('cw', $warning, array(
'aria-hidden' => $isForm ? 'false' : 'true', 'aria-hidden' => $isForm ? 'false' : 'true',
'class' => 'spinner autosubmit-info' 'class' => 'spinner autosubmit-info'