[TASK] Cannot translate workspace preview link generation
authorXavier Perseguers <xavier@typo3.org>
Tue, 21 Feb 2012 14:21:03 +0000 (15:21 +0100)
committerXavier Perseguers <xavier@typo3.org>
Sun, 26 Feb 2012 14:21:06 +0000 (15:21 +0100)
The label and tooltip to generate the workspace preview link are
hardcoded and cannot be translated.

Change-Id: Ia16e5baf2cb9e910a94e688b2889822245e7b5d3
Resolves: #34145
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9134
Reviewed-by: Francois Suter
Tested-by: Francois Suter
Reviewed-by: Marcus Schwemer
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
Reviewed-by: Philipp Gampe
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/workspaces/Resources/Private/Language/locallang.xlf
typo3/sysext/workspaces/Resources/Private/Layouts/Module.html

index 46b966f..c3a20db 100644 (file)
@@ -85,6 +85,9 @@
                                        you are currently seeing on your screen.
                                </source>
                        </trans-unit>
+                       <trans-unit id="tooltip.generatePagePreview" xml:space="preserve">
+                               <source>Generate page preview</source>
+                       </trans-unit>
                        <trans-unit id="previewLink" xml:space="preserve">
                                <source>Preview Link</source>
                        </trans-unit>
                        <trans-unit id="label_doaction_discard" xml:space="preserve">
                                <source>Discard</source>
                        </trans-unit>
+                       <trans-unit id="label_doaction_generatePreviewLink" xml:space="preserve">
+                               <source>Generate Workspace Preview Link</source>
+                       </trans-unit>
                        <trans-unit id="info.elementAlreadyModified" xml:space="preserve">
                                <source>Element is in workspace stage "%s", modifications will send it back to "%s".</source>
                        </trans-unit>
index 14d68eb..789c1b0 100644 (file)
@@ -5,7 +5,9 @@
 <div id="typo3-docheader-row1">
 <div class="buttonsleft">
        <f:if condition="{showPreviewLink}">
-               <a href="#" onclick="TYPO3.Workspaces.Actions.generateWorkspacePreviewLink();return false;" title="Generate page preview" id="goPreviewLinkButton"><span class="t3-icon t3-icon-extensions t3-icon-extensions-workspaces t3-icon-workspaces-generatepreviewlink">&nbsp;</span>Generate Workspace Preview Link</a>
+               <a href="#" onclick="TYPO3.Workspaces.Actions.generateWorkspacePreviewLink();return false;" title="{f:translate(key:'tooltip.generatePagePreview')}" id="goPreviewLinkButton"><span class="t3-icon t3-icon-extensions t3-icon-extensions-workspaces t3-icon-workspaces-generatepreviewlink">&nbsp;</span><!--
+                       --><f:translate key="label_doaction_generatePreviewLink">Generate Workspace Preview Link</f:translate><!--
+               --></a>
        </f:if>
 </div>
 <div class="buttonsright"><f:be.buttons.shortcut /></div>