[BUGFIX] Use correct label for cancel button in modals of EditDocumentController 82/43882/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 7 Oct 2015 10:23:29 +0000 (12:23 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 7 Oct 2015 10:51:06 +0000 (12:51 +0200)
Re-label the cancel to "Cancel" of the abort button used in modals
in EditDocumentController appearing when deleting an IRRE element
or the record itself.

Resolves: #70462
Releases: master
Change-Id: I1d084eecc26e2221568cb83ef9f7942aa51ed535
Reviewed-on: http://review.typo3.org/43882
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js
typo3/sysext/lang/locallang_alt_doc.xlf

index caa63f5..965921f 100644 (file)
@@ -597,7 +597,7 @@ define('TYPO3/CMS/Backend/FormEngine', ['jquery'], function ($) {
                        var $anchorElement = $(this);
                        var $modal = top.TYPO3.Modal.confirm(title, content, top.TYPO3.Severity.warning, [
                                {
-                                       text: TYPO3.lang['buttons.confirm.delete_record.no'] || 'No, I will continue editing',
+                                       text: TYPO3.lang['buttons.confirm.delete_record.no'] || 'Cancel',
                                        active: true,
                                        name: 'no'
                                },
@@ -624,7 +624,7 @@ define('TYPO3/CMS/Backend/FormEngine', ['jquery'], function ($) {
                        var $anchorElement = $(this);
                        var $modal = top.TYPO3.Modal.confirm(title, content, top.TYPO3.Severity.warning, [
                                {
-                                       text: TYPO3.lang['buttons.confirm.delete_record.no'] || 'No, I will continue editing',
+                                       text: TYPO3.lang['buttons.confirm.delete_record.no'] || 'Cancel',
                                        active: true,
                                        name: 'no'
                                },
index 302f87a..5f7c567 100644 (file)
@@ -55,7 +55,7 @@
                                <source>You have currently unsaved changes. Are you sure that you want to discard all changes?</source>
                        </trans-unit>
                        <trans-unit id="buttons.confirm.delete_record.no">
-                               <source>No, I will continue editing</source>
+                               <source>Cancel</source>
                        </trans-unit>
                        <trans-unit id="buttons.confirm.delete_record.yes">
                                <source>Yes, delete this record</source>