[BUGFIX] Add missing translation value for save_and_close in form engine 11/58811/2
authorJoerg Kummer <typo3@enobe.de>
Wed, 31 Oct 2018 14:39:24 +0000 (15:39 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 31 Oct 2018 18:33:55 +0000 (19:33 +0100)
Changes syntax for translation key and add default language value.

Resolves: #86799
Releases: master
Change-Id: Ic273fc845d1af9e9cda29c049239c4ff045de120
Reviewed-on: https://review.typo3.org/58811
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Preben Rather Sørensen <preben@rather.dk>
Tested-by: Preben Rather Sørensen <preben@rather.dk>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Private/Language/locallang_alt_doc.xlf
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js

index b91bbb6..9bd7d08 100644 (file)
@@ -57,6 +57,9 @@
                        <trans-unit id="buttons.confirm.close_without_save.no">
                                <source>No, I will continue editing</source>
                        </trans-unit>
+                       <trans-unit id="buttons.confirm.save_and_close">
+                               <source>Save and close</source>
+                       </trans-unit>
                        <trans-unit id="label.confirm.duplicate_record_changed.title">
                                <source>Do you want to save before duplicating this record?</source>
                        </trans-unit>
index a32fe47..2477b03 100644 (file)
@@ -1172,7 +1172,7 @@ define(['jquery',
       ];
       if ($('.has-error').length === 0) {
         buttons.push({
-          text: TYPO3.lang['buttons.confirm.save and close'] || 'Save and close',
+          text: TYPO3.lang['buttons.confirm.save_and_close'] || 'Save and close',
           btnClass: 'btn-warning',
           name: 'save',
           active: true