[BUGFIX] Add missing translation value for Modals 53/59053/3
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 7 Dec 2018 14:24:57 +0000 (15:24 +0100)
committerJan Helke <typo3@helke.de>
Fri, 7 Dec 2018 17:01:38 +0000 (18:01 +0100)
Changes syntax for translation key and add default language value.

Resolves: #87001
Releases: master, 8.7
Change-Id: I5a634aff013f6d4af68f25b8288ed04bc340e823
Reviewed-on: https://review.typo3.org/59053
Reviewed-by: Richard Haeser <richard@maxserv.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Kummer <typo3@enobe.de>
Tested-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/backend/Resources/Public/JavaScript/Modal.js
typo3/sysext/lang/Resources/Private/Language/locallang_mod_web_list.xlf

index cdc7661..4a84ae2 100644 (file)
@@ -451,7 +451,7 @@ define(['jquery',
         severity: severity,
         buttons: [
           {
-            text: $element.data('button-close-text') || 'Close',
+            text: $element.data('button-close-text') || TYPO3.lang['button.close'] || 'Close',
             active: true,
             btnClass: 'btn-default',
             trigger: function() {
@@ -459,7 +459,7 @@ define(['jquery',
             }
           },
           {
-            text: $element.data('button-ok-text') || 'OK',
+            text: $element.data('button-ok-text') || TYPO3.lang['button.ok'] || 'OK',
             btnClass: 'btn-' + Severity.getCssClass(severity),
             trigger: function() {
               Modal.currentModal.trigger('modal-dismiss');
index 7a2e1da..8ed9d6e 100644 (file)
                        <trans-unit id="button.delete">
                                <source>Delete</source>
                        </trans-unit>
+                       <trans-unit id="button.close">
+                               <source>Close</source>
+                       </trans-unit>
+                       <trans-unit id="button.ok">
+                               <source>OK</source>
+                       </trans-unit>
 
                </body>
        </file>