[TASK] Cleanup translate view helper calls in install tool module 50/48050/3
authorHelmut Hummel <info@helhum.io>
Mon, 9 May 2016 19:42:25 +0000 (21:42 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 10 May 2016 21:37:58 +0000 (23:37 +0200)
Use inline syntax for view helpers and correctly use raw view helper
for output, since these labels contain HTML.

Also fix the html entity for the button label.

Resolves: #76103
Releases: master
Change-Id: Iabcb1296dd05d33b04d7f343f0b60702debd56c8
Reviewed-on: https://review.typo3.org/48050
Reviewed-by: Zbigniew Jacko <z.jacko@macopedia.pl>
Tested-by: Zbigniew Jacko <z.jacko@macopedia.pl>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Marcin Krzy┼╝anowski <m.krzyzanowski@macopedia.pl>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/install/Resources/Private/Language/BackendModule.xlf
typo3/sysext/install/Resources/Private/Templates/BackendModule/ShowEnableInstallToolButton.html

index 0147fa0..ac31336 100644 (file)
@@ -23,7 +23,7 @@
                                </source>
                        </trans-unit>
                        <trans-unit id="confirmUnlockInstallToolButton">
-                               <source>Unlock the Install&#160;Tool</source>
+                               <source>Unlock the Install&amp;#160;Tool</source>
                        </trans-unit>
                </body>
        </file>
index 77bdddc..edbfc3d 100644 (file)
@@ -3,13 +3,9 @@
        <input type="hidden" name="installToolEnableToken" value="{installToolEnableToken}" />
        <div class="container container-small">
                <f:be.infobox state="-1" title="{f:translate(key: 'LLL:EXT:install/Resources/Private/Language/BackendModule.xlf:confirmUnlockInstallToolTitle')}">
-                       <f:translate
-                               key="LLL:EXT:install/Resources/Private/Language/BackendModule.xlf:confirmUnlockInstallToolMessage"
-                               />
+                       {f:translate(key: 'LLL:EXT:install/Resources/Private/Language/BackendModule.xlf:confirmUnlockInstallToolMessage') -> f:format.raw()}
                        <button class="btn btn-info" value="enableInstallTool">
-                               <f:translate
-                                       key="LLL:EXT:install/Resources/Private/Language/BackendModule.xlf:confirmUnlockInstallToolButton"
-                                       />
+                               {f:translate(key: 'LLL:EXT:install/Resources/Private/Language/BackendModule.xlf:confirmUnlockInstallToolButton') -> f:format.raw()}
                        </button>
                </f:be.infobox>
        </div>