[BUGFIX] Change submit button label to language file entry
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 1 Oct 2012 19:55:46 +0000 (21:55 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 1 Oct 2012 20:38:59 +0000 (22:38 +0200)
The submit button in configure extension form was hardcoded in
template file. This patch moves it to the language file and makes
use of the translate viewhelper.

Fixes: #41276
Releases: 6.0

Change-Id: I230e4eb350a4fe9eaa87ee4d225e6752c1c1df17
Reviewed-on: http://review.typo3.org/15224
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extensionmanager/Resources/Private/Language/locallang.xlf
typo3/sysext/extensionmanager/Resources/Private/Templates/Configuration/ShowConfigurationForm.html

index 2498442..f051d49 100644 (file)
@@ -51,6 +51,9 @@
                        <trans-unit id="extConfTemplate.backToList" xml:space="preserve">
                                <source>Back to list</source>
                        </trans-unit>
+                       <trans-unit id="extConfTemplate.submitButton" xml:space="preserve">
+                               <source>Submit</source>
+                       </trans-unit>
                </body>
        </file>
 </xliff>
index 39887cb..7276246 100644 (file)
@@ -41,7 +41,7 @@
                                                                                <span class="info">(<f:translate key="extConfTemplate.type.{item.type}" />)</span>
                                                                        </div>
                                                                </f:for>
-                                                               <f:form.submit value="Absenden" />
+                                                               <f:form.submit value="{f:translate(key:'extConfTemplate.submitButton')}" />
                                                        </f:form>
                                                </div>
                                        </f:for>