converted locallang.php to locallang.xml
authorjbartels <jbartels@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 6 Aug 2014 17:56:09 +0000 (17:56 +0000)
committerjbartels <jbartels@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 6 Aug 2014 17:56:09 +0000 (17:56 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/be_acl/trunk@86129 735d13b6-9817-0410-8766-e36946ffe9aa

Classes/Xclass/PermissionModuleController.php
ext_tables.php
locallang_db.php [deleted file]
locallang_db.xml [new file with mode: 0644]
res/class.ux_sc_mod_web_perm_index.php
res/locallang_perm.php [deleted file]
res/locallang_perm.xml [new file with mode: 0644]
tca.php

index 350ad5f..264fade 100644 (file)
@@ -56,7 +56,7 @@ class Tx_BeAcl_Xclass_PermissionModuleController extends SC_mod_web_perm_index {
                if ($beAclConfig['disableOldPermissionSystem']) {
                        $disableOldPermissionSystem = 1;
                }
-               $GLOBALS['LANG']->includeLLFile('EXT:be_acl/res/locallang_perm.php');
+               $GLOBALS['LANG']->includeLLFile('EXT:be_acl/res/locallang_perm.xml');
 
                // Get usernames and groupnames: The arrays we get in return contains only 1) users which are members of the groups of the current user, 2) groups that the current user is member of
                $beGroupKeys = $GLOBALS['BE_USER']->userGroupsUID;
@@ -284,7 +284,7 @@ class Tx_BeAcl_Xclass_PermissionModuleController extends SC_mod_web_perm_index {
                if ($beAclConfig['disableOldPermissionSystem']) {
                        $disableOldPermissionSystem = 1;
                }
-               $GLOBALS['LANG']->includeLLFile('EXT:be_acl/res/locallang_perm.php');
+               $GLOBALS['LANG']->includeLLFile('EXT:be_acl/res/locallang_perm.xml');
 
                // Get usernames and groupnames
                $beGroupArray = BackendUtility::getListGroupNames('title,uid');
index a7f6827..98d8472 100644 (file)
@@ -5,7 +5,7 @@ t3lib_extMgm::allowTableOnStandardPages("tx_beacl_acl");
 \r
 $TCA["tx_beacl_acl"] = Array (\r
        "ctrl" => Array (\r
-               "title" => "LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl",\r
+               "title" => "LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl",\r
                "label" => "uid",\r
                "tstamp" => "tstamp",\r
                "crdate" => "crdate",\r
diff --git a/locallang_db.php b/locallang_db.php
deleted file mode 100644 (file)
index 35143d1..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-<?php\r
-/**\r
- * Language labels for database tables/fields belonging to extension 'be_acl'\r
- *\r
- * This file is detected by the translation tool.\r
- */\r
-\r
-$LOCAL_LANG = Array (\r
-       'default' => Array (\r
-               'tx_beacl_acl' => 'Access Control Lists',\r
-               'tx_beacl_acl.type.I.0' => 'User',\r
-               'tx_beacl_acl.type.I.1' => 'Group',\r
-               'tx_beacl_acl.type' => 'ACL type',\r
-               'tx_beacl_acl.object_id' => 'ID of User/Group',\r
-               'tx_beacl_acl.permissions.I.0' => 'Show page',\r
-               'tx_beacl_acl.permissions.I.1' => 'Edit page',\r
-               'tx_beacl_acl.permissions.I.2' => 'Delete page',\r
-               'tx_beacl_acl.permissions.I.3' => 'New pages',\r
-               'tx_beacl_acl.permissions.I.4' => 'Edit content',\r
-               'tx_beacl_acl.permissions' => 'Permissions',\r
-               'tx_beacl_acl.recursive' => 'Rekursiv',\r
-       ),\r
-       'dk' => Array (\r
-               'tx_beacl_acl' => 'Adgangskontrollister',\r
-               'tx_beacl_acl.type.I.0' => 'Bruger',\r
-               'tx_beacl_acl.type.I.1' => 'Gruppe',\r
-               'tx_beacl_acl.type' => 'ACL type',\r
-               'tx_beacl_acl.object_id' => 'Bruger/gruppe ID',\r
-               'tx_beacl_acl.permissions.I.0' => 'Vis siden',\r
-               'tx_beacl_acl.permissions.I.1' => 'Redigér siden',\r
-               'tx_beacl_acl.permissions.I.2' => 'Slet siden',\r
-               'tx_beacl_acl.permissions.I.3' => 'Nye sider',\r
-               'tx_beacl_acl.permissions.I.4' => 'Redigér indhold',\r
-               'tx_beacl_acl.permissions' => 'Rettigheder',\r
-               'tx_beacl_acl.recursive' => 'Rekursiv',\r
-       ),\r
-       'de' => Array (\r
-               'tx_beacl_acl' => 'Zugriffsrechte (ACL)',\r
-               'tx_beacl_acl.type.I.0' => 'Benutzer',\r
-               'tx_beacl_acl.type.I.1' => 'Gruppe',\r
-               'tx_beacl_acl.type' => 'ACL Typ',\r
-               'tx_beacl_acl.object_id' => 'Benutzer-/Gruppen-ID',\r
-               'tx_beacl_acl.permissions.I.0' => 'Seite anzeigen',\r
-               'tx_beacl_acl.permissions.I.1' => 'Seite bearbeiten',\r
-               'tx_beacl_acl.permissions.I.2' => 'Seite löchen',\r
-               'tx_beacl_acl.permissions.I.3' => 'Neue Seite',\r
-               'tx_beacl_acl.permissions.I.4' => 'Inhalt bearbeiten',\r
-               'tx_beacl_acl.permissions' => 'Rechte',\r
-               'tx_beacl_acl.recursive' => 'Rekursiv',\r
-       ),\r
-       'no' => Array (\r
-       ),\r
-       'it' => Array (\r
-       ),\r
-       'fr' => Array (\r
-       ),\r
-       'es' => Array (\r
-       ),\r
-       'nl' => Array (\r
-       ),\r
-       'cz' => Array (\r
-       ),\r
-       'pl' => Array (\r
-       ),\r
-       'si' => Array (\r
-       ),\r
-       'fi' => Array (\r
-       ),\r
-       'tr' => Array (\r
-       ),\r
-       'se' => Array (\r
-       ),\r
-       'pt' => Array (\r
-       ),\r
-       'ru' => Array (\r
-       ),\r
-       'ro' => Array (\r
-       ),\r
-       'ch' => Array (\r
-       ),\r
-       'sk' => Array (\r
-       ),\r
-       'lt' => Array (\r
-       ),\r
-       'is' => Array (\r
-       ),\r
-       'hr' => Array (\r
-       ),\r
-       'hu' => Array (\r
-       ),\r
-       'gl' => Array (\r
-       ),\r
-       'th' => Array (\r
-       ),\r
-       'gr' => Array (\r
-       ),\r
-       'hk' => Array (\r
-       ),\r
-       'eu' => Array (\r
-       ),\r
-       'bg' => Array (\r
-       ),\r
-       'br' => Array (\r
-       ),\r
-       'et' => Array (\r
-       ),\r
-       'ar' => Array (\r
-       ),\r
-       'he' => Array (\r
-       ),\r
-       'ua' => Array (\r
-       ),\r
-       'lv' => Array (\r
-       ),\r
-       'jp' => Array (\r
-       ),\r
-       'vn' => Array (\r
-       ),\r
-       'ca' => Array (\r
-       ),\r
-       'ba' => Array (\r
-       ),\r
-       'kr' => Array (\r
-       ),\r
-       'eo' => Array (\r
-       ),\r
-       'my' => Array (\r
-       ),\r
-       'hi' => Array (\r
-       ),\r
-);\r
-?>\r
diff --git a/locallang_db.xml b/locallang_db.xml
new file mode 100644 (file)
index 0000000..bf54427
--- /dev/null
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>\r
+<T3locallang>\r
+  <meta type="array">\r
+    <description></description>\r
+    <type></type>\r
+    <csh_table></csh_table>\r
+    <labelContext type="array">\r
+    </labelContext>\r
+  </meta>\r
+  <data type="array">\r
+    <languageKey index="default" type="array">\r
+      <label index="OSM">OSM</label>\r
+               <label index="tx_beacl_acl">Access Control Lists</label>\r
+               <label index="tx_beacl_acl.type.I.0">User</label>\r
+               <label index="tx_beacl_acl.type.I.1">Group</label>\r
+               <label index="tx_beacl_acl.type">ACL type</label>\r
+               <label index="tx_beacl_acl.object_id">ID of User/Group</label>\r
+               <label index="tx_beacl_acl.permissions.I.0">Show page</label>\r
+               <label index="tx_beacl_acl.permissions.I.1">Edit page</label>\r
+               <label index="tx_beacl_acl.permissions.I.2">Delete page</label>\r
+               <label index="tx_beacl_acl.permissions.I.3">New pages</label>\r
+               <label index="tx_beacl_acl.permissions.I.4">Edit content</label>\r
+               <label index="tx_beacl_acl.permissions">Permissions</label>\r
+               <label index="tx_beacl_acl.recursive">Rekursiv</label>\r
+    </languageKey>\r
+    <languageKey index="dk" type="array">\r
+               <label index="tx_beacl_acl">Adgangskontrollister</label>\r
+               <label index="tx_beacl_acl.type.I.0">Bruger</label>\r
+               <label index="tx_beacl_acl.type.I.1">Gruppe</label>\r
+               <label index="tx_beacl_acl.type">ACL type</label>\r
+               <label index="tx_beacl_acl.object_id">Bruger/gruppe ID</label>\r
+               <label index="tx_beacl_acl.permissions.I.0">Vis siden</label>\r
+               <label index="tx_beacl_acl.permissions.I.1">Redigér siden</label>\r
+               <label index="tx_beacl_acl.permissions.I.2">Slet siden</label>\r
+               <label index="tx_beacl_acl.permissions.I.3">Nye sider</label>\r
+               <label index="tx_beacl_acl.permissions.I.4">Redigér indhold</label>\r
+               <label index="tx_beacl_acl.permissions">Rettigheder</label>\r
+               <label index="tx_beacl_acl.recursive">Rekursiv</label>\r
+    </languageKey>\r
+    <languageKey index="de" type="array">\r
+               <label index="tx_beacl_acl">Zugriffsrechte (ACL)</label>\r
+               <label index="tx_beacl_acl.type.I.0">Benutzer</label>\r
+               <label index="tx_beacl_acl.type.I.1">Gruppe</label>\r
+               <label index="tx_beacl_acl.type">ACL Typ</label>\r
+               <label index="tx_beacl_acl.object_id">Benutzer-/Gruppen-ID</label>\r
+               <label index="tx_beacl_acl.permissions.I.0">Seite anzeigen</label>\r
+               <label index="tx_beacl_acl.permissions.I.1">Seite bearbeiten</label>\r
+               <label index="tx_beacl_acl.permissions.I.2">Seite löschen</label>\r
+               <label index="tx_beacl_acl.permissions.I.3">Neue Seite</label>\r
+               <label index="tx_beacl_acl.permissions.I.4">Inhalt bearbeiten</label>\r
+               <label index="tx_beacl_acl.permissions">Rechte</label>\r
+               <label index="tx_beacl_acl.recursive">Rekursiv</label>\r
+    </languageKey>\r
+  </data>  \r
+  <orig_text type="array">\r
+    <languageKey index="default" type="array"></languageKey>\r
+  </orig_text>\r
+</T3locallang>\r
index 7dc48b6..108a9e4 100644 (file)
@@ -54,7 +54,7 @@ class ux_SC_mod_web_perm_index extends SC_mod_web_perm_index {
         if ($beAclConfig['disableOldPermissionSystem']) {\r
             $disableOldPermissionSystem = 1;\r
         }\r
-        $LANG->includeLLFile('EXT:be_acl/res/locallang_perm.php');\r
+        $LANG->includeLLFile('EXT:be_acl/res/locallang_perm.xml');\r
 \r
         // Get usernames and groupnames: The arrays we get in return contains only 1) users which are members of the groups of the current user, 2) groups that the current user is member of\r
         $beGroupKeys = $BE_USER->userGroupsUID;\r
@@ -319,7 +319,7 @@ class ux_SC_mod_web_perm_index extends SC_mod_web_perm_index {
         if ($beAclConfig['disableOldPermissionSystem']) {\r
             $disableOldPermissionSystem = 1;\r
         }\r
-        $LANG->includeLLFile('EXT:be_acl/res/locallang_perm.php');\r
+        $LANG->includeLLFile('EXT:be_acl/res/locallang_perm.xml');\r
 \r
         if ($BE_USER->workspace != 0) {\r
             // Adding section with the permission setting matrix:\r
diff --git a/res/locallang_perm.php b/res/locallang_perm.php
deleted file mode 100644 (file)
index 13ec233..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-/**
- * Language labels for plugin BE ACL
- *
- * This file is detected by the translation tool.
- */
-
-$LOCAL_LANG = Array (
-       'default' => Array (
-               'recursiveAcl' => 'Recursive',
-               'addAcl' => 'Add ACL',
-               'delAcl' => 'Delete ACL',
-               'saveAndClose' => 'Save and Close',
-               'aclUsers' => 'ACL Users',
-               'aclGroups' => 'ACL Groups',
-               'aclUser' => 'User',
-               'aclGroup' => 'Group',
-               'aclObjSelUpdate' => 'Update!',
-       ),
-       'dk' => Array (
-               'recursiveAcl' => 'Rekursiv',
-               'addAcl' => 'Tilføj ACL',
-               'delAcl' => 'Slet ACL',
-               'saveAndClose' => 'Gem og luk',
-               'aclUsers' => 'ACL brugere',
-               'aclGroups' => 'ACL grupper',
-               'aclUser' => 'Bruger',
-               'aclGroup' => 'Gruppe',
-               'aclObjSelUpdate' => 'Opdatér!',
-       ),
-       'de' => Array (
-               'recursiveAcl' => 'Rekursiv',
-               'addAcl' => 'ACL hinzufügen',
-               'delAcl' => 'ACL löschen',
-               'saveAndClose' => 'Speichern und Schließen',
-               'aclUsers' => 'Benutzer ACL',
-               'aclGroups' => 'Gruppen ACL',
-               'aclUser' => 'Benutzer',
-               'aclGroup' => 'Gruppe',
-               'aclObjSelUpdate' => 'Aktualisieren!',
-       ),
-       'no' => Array (
-       ),
-       'it' => Array (
-       ),
-       'fr' => Array (
-       ),
-       'es' => Array (
-       ),
-       'nl' => Array (
-       ),
-       'cz' => Array (
-       ),
-       'pl' => Array (
-       ),
-       'si' => Array (
-       ),
-       'fi' => Array (
-       ),
-       'tr' => Array (
-       ),
-       'se' => Array (
-       ),
-       'pt' => Array (
-       ),
-       'ru' => Array (
-       ),
-       'ro' => Array (
-       ),
-       'ch' => Array (
-       ),
-       'sk' => Array (
-       ),
-       'lt' => Array (
-       ),
-       'is' => Array (
-       ),
-       'hr' => Array (
-       ),
-       'hu' => Array (
-       ),
-       'gl' => Array (
-       ),
-       'th' => Array (
-       ),
-       'gr' => Array (
-       ),
-       'hk' => Array (
-       ),
-       'eu' => Array (
-       ),
-       'bg' => Array (
-       ),
-       'br' => Array (
-       ),
-       'et' => Array (
-       ),
-       'ar' => Array (
-       ),
-       'he' => Array (
-       ),
-       'ua' => Array (
-       ),
-       'lv' => Array (
-       ),
-       'jp' => Array (
-       ),
-       'vn' => Array (
-       ),
-       'ca' => Array (
-       ),
-       'ba' => Array (
-       ),
-       'kr' => Array (
-       ),
-       'eo' => Array (
-       ),
-       'my' => Array (
-       ),
-       'hi' => Array (
-       ),
-);
-?>
\ No newline at end of file
diff --git a/res/locallang_perm.xml b/res/locallang_perm.xml
new file mode 100644 (file)
index 0000000..df8c4f0
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+  <meta type="array">
+    <description></description>
+    <type></type>
+    <csh_table></csh_table>
+    <labelContext type="array">
+    </labelContext>
+  </meta>
+  <data type="array">
+    <languageKey index="default" type="array">
+               <label index="recursiveAcl">Recursive</label>
+               <label index="addAcl">Add ACL</label>
+               <label index="delAcl">Delete ACL</label>
+               <label index="saveAndClose">Save and Close</label>
+               <label index="aclUsers">ACL Users</label>
+               <label index="aclGroups">ACL Groups</label>
+               <label index="aclUser">User</label>
+               <label index="aclGroup">Group</label>
+               <label index="aclObjSelUpdate">Update!</label>
+    </languageKey>
+    <languageKey index="dk" type="array">
+               <label index="recursiveAcl">Rekursiv</label>
+               <label index="addAcl">Tilføj ACL</label>
+               <label index="delAcl">Slet ACL</label>
+               <label index="saveAndClose">Gem og luk</label>
+               <label index="aclUsers">ACL brugere</label>
+               <label index="aclGroups">ACL grupper</label>
+               <label index="aclUser">Bruger</label>
+               <label index="aclGroup">Gruppe</label>
+               <label index="aclObjSelUpdate">Opdatér!</label>
+    </languageKey>
+    <languageKey index="de" type="array">
+               <label index="recursiveAcl">Rekursiv</label>
+               <label index="addAcl">ACL hinzufügen</label>
+               <label index="delAcl">ACL löschen</label>
+               <label index="saveAndClose">Speichern und Schließen</label>
+               <label index="aclUsers">Benutzer ACL</label>
+               <label index="aclGroups">Gruppen ACL</label>
+               <label index="aclUser">Benutzer</label>
+               <label index="aclGroup">Gruppe</label>
+               <label index="aclObjSelUpdate">Aktualisieren!</label>
+    </languageKey>
+  </data>
+  <orig_text type="array">
+    <languageKey index="default" type="array"></languageKey>
+  </orig_text>
+</T3locallang>
diff --git a/tca.php b/tca.php
index 5e5666e..30c2b7e 100644 (file)
--- a/tca.php
+++ b/tca.php
@@ -10,12 +10,12 @@ $TCA['tx_beacl_acl'] = Array (
        'columns' => Array (\r
                'type' => Array (\r
                        'exclude' => 1,\r
-                       'label' => 'LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.type',\r
+                       'label' => 'LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.type',\r
                        'config' => Array (\r
                                'type' => 'select',\r
                                'items' => Array (\r
-                                       Array('LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.type.I.0', '0'),\r
-                                       Array('LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.type.I.1', '1'),\r
+                                       Array('LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.type.I.0', '0'),\r
+                                       Array('LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.type.I.1', '1'),\r
                                ),\r
                                'size' => 1,\r
                                'maxitems' => 1,\r
@@ -23,7 +23,7 @@ $TCA['tx_beacl_acl'] = Array (
                ),\r
                'object_id' => Array (\r
                        'exclude' => 1,\r
-                       'label' => 'LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.object_id',\r
+                       'label' => 'LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.object_id',\r
                        'config' => Array (\r
                                'type' => 'select',\r
                                'itemsProcFunc' => 'tx_beacl_objsel->select',\r
@@ -34,22 +34,22 @@ $TCA['tx_beacl_acl'] = Array (
                ),\r
                'permissions' => Array (\r
                        'exclude' => 1,\r
-                       'label' => 'LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.permissions',\r
+                       'label' => 'LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.permissions',\r
                        'config' => Array (\r
                                'type' => 'check',\r
                                'cols' => 5,\r
                                'items' => Array (\r
-                                       Array('LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.permissions.I.0', ''),\r
-                                       Array('LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.permissions.I.1', ''),\r
-                                       Array('LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.permissions.I.2', ''),\r
-                                       Array('LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.permissions.I.3', ''),\r
-                                       Array('LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.permissions.I.4', ''),\r
+                                       Array('LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.permissions.I.0', ''),\r
+                                       Array('LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.permissions.I.1', ''),\r
+                                       Array('LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.permissions.I.2', ''),\r
+                                       Array('LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.permissions.I.3', ''),\r
+                                       Array('LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.permissions.I.4', ''),\r
                                ),\r
                        )\r
                ),\r
                'recursive' => Array (\r
                        'exclude' => 1,\r
-                       'label' => 'LLL:EXT:be_acl/locallang_db.php:tx_beacl_acl.recursive',\r
+                       'label' => 'LLL:EXT:be_acl/locallang_db.xml:tx_beacl_acl.recursive',\r
                        'config' => Array (\r
                                'type' => 'check'\r
                        )\r