[BUGFIX] Fix localization of the BE user module 25/21725/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 29 Jun 2013 12:14:59 +0000 (14:14 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 29 Jun 2013 12:16:43 +0000 (14:16 +0200)
Fix some hardcoded labels by replacing them with
f:translate tags.

Change-Id: Ic75f7bd021ff8353b7709906859d2c02eb452b23
Resolves: #49402
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/21725
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/beuser/Resources/Private/Language/locallang.xlf
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Compare.html
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Index.html

index 639053c..9718975 100644 (file)
@@ -27,6 +27,9 @@
                        <trans-unit id="admin" xml:space="preserve">
                                <source>Admin</source>
                        </trans-unit>
+                       <trans-unit id="users" xml:space="preserve">
+                               <source>Users</source>
+                       </trans-unit>
                        <trans-unit id="yes" xml:space="preserve">
                                <source>Yes</source>
                        </trans-unit>
@@ -63,6 +66,9 @@
                        <trans-unit id="compareBackendUsers" xml:space="preserve">
                                <source>Compare backend users</source>
                        </trans-unit>
+                       <trans-unit id="compareUserList" xml:space="preserve">
+                               <source>Compare user list</source>
+                       </trans-unit>
                        <trans-unit id="status" xml:space="preserve">
                                <source>Status</source>
                        </trans-unit>
                        <trans-unit id="switchBackMode" xml:space="preserve">
                                <source>[switch-back mode]</source>
                        </trans-unit>
+                       <trans-unit id="section.compare" xml:space="preserve">
+                               <source>Compare</source>
+                       </trans-unit>
+                       <trans-unit id="compare" xml:space="preserve">
+                               <source>Compare</source>
+                       </trans-unit>
                </body>
        </file>
 </xliff>
\ No newline at end of file
index c60da05..86c460f 100755 (executable)
                                <td>
                                        <f:if condition="{compareUser.ipLockIsDisabled} == 1">
                                                <f:then>
-                                                       Yes
+                                                       <f:translate key="yes">Yes</f:translate>
                                                </f:then>
                                                <f:else>
-                                                       No
+                                                       <f:translate key="no">No</f:translate>
                                                </f:else>
                                        </f:if>
                                </td>
index b4271ed..6bb77ab 100755 (executable)
@@ -12,7 +12,7 @@
        </f:comment>
 
        <f:if condition="{compareUserList}">
-               <bu:Section title="Compare" collapsible="TRUE">
+               <bu:Section title="{f:translate(key: 'section.compare', default: 'Compare')}" collapsible="TRUE">
                        <ul id="compareUsers">
                                <f:for each="{compareUserList}" as="compareUser">
                                        <li>
@@ -31,7 +31,7 @@
                        </ul>
 
                        <f:form action="compare">
-                               <f:form.submit value="Compare user list" />
+                               <f:form.submit value="{f:translate(key: 'compareUserList', default: 'Compare user list')}" />
                        </f:form>
 
                </bu:Section>
@@ -69,7 +69,7 @@
                                        </f:comment>
                                        <tr>
                                                <td colspan="6">
-                                                       <f:count subject="{backendUsers}" /> Users
+                                                       <f:count subject="{backendUsers}" /> <f:translate key="users">Users</f:translate>
                                                </td>
                                        </tr>
                                </table>
@@ -93,7 +93,7 @@
                                </f:comment>
                                <tr>
                                        <td colspan="6">
-                                               <f:count subject="{backendUsers}" /> Users
+                                               <f:count subject="{backendUsers}" /> <f:translate key="users">Users</f:translate>
                                        </td>
                                </tr>
                        </table>