[TASK] Rename Ressources to Resources 06/28906/2
authorSteffen Müller <typo3@t3node.com>
Thu, 27 Mar 2014 11:29:08 +0000 (12:29 +0100)
committerSteffen Müller <typo3@t3node.com>
Thu, 27 Mar 2014 11:32:17 +0000 (12:32 +0100)
Resolves: #43255
Change-Id: I7bdf2c121823b41fbc3304c34d5d057789bea01c
Reviewed-on: https://review.typo3.org/28906
Reviewed-by: Steffen Müller
Tested-by: Steffen Müller
Classes/Hooks/ClickmenuAction.php
Resources/Private/Language/locallang_cm.xml [new file with mode: 0644]
Resources/Private/Php/RegisterJavaScriptForPagetreeAction.php [new file with mode: 0644]
Resources/Public/JavaScript/ClearCacheClickmenuActions.js [new file with mode: 0644]
Ressources/Private/Language/locallang_cm.xml [deleted file]
Ressources/Private/Php/RegisterJavaScriptForPagetreeAction.php [deleted file]
Ressources/Public/JavaScript/ClearCacheClickmenuActions.js [deleted file]
ext_emconf.php
ext_tables.php

index 497fef4..44a959d 100644 (file)
@@ -72,7 +72,7 @@ class Tx_SmClearcachecm_Hooks_ClickmenuAction {
                $success = $this->performClearCache($nodeUids);
 
                if (!$success) {
-                       return $GLOBALS['LANG']->sL('LLL:EXT:sm_clearcachecm/Ressources/Private/Language/locallang_cm.xml:clearPageCacheError', TRUE);
+                       return $GLOBALS['LANG']->sL('LLL:EXT:sm_clearcachecm/Resources/Private/Language/locallang_cm.xml:clearPageCacheError', TRUE);
                }
        }
 
@@ -108,7 +108,7 @@ class Tx_SmClearcachecm_Hooks_ClickmenuAction {
                $success = $this->performClearCache($nodeUids);
 
                if (!$success) {
-                       return $GLOBALS['LANG']->sL('LLL:EXT:sm_clearcachecm/Ressources/Private/Language/locallang_cm:clearBranchCacheError', TRUE);
+                       return $GLOBALS['LANG']->sL('LLL:EXT:sm_clearcachecm/Resources/Private/Language/locallang_cm:clearBranchCacheError', TRUE);
                }
        }
 
diff --git a/Resources/Private/Language/locallang_cm.xml b/Resources/Private/Language/locallang_cm.xml
new file mode 100644 (file)
index 0000000..2e6956d
--- /dev/null
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <description>Labels for the clickmenu items of the extension 'sm_clearcachecm'</description>
+               <type>module</type>
+               <generator>LFEditor</generator>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="clearBranchCache">Flush branch cache</label>
+                       <label index="clearBranchCacheError">Flushing the page cache of the branch failed.</label>
+                       <label index="clearBranchCacheSuccess">Flushing the page cache of the branch succeeded!</label>
+                       <label index="clearPageCache">Flush page cache</label>
+                       <label index="clearPageCacheError">Flushing the page cache failed.</label>
+                       <label index="clearPageCacheSuccess">Flushing the page cache succeeded.</label>
+               </languageKey>
+               <languageKey index="ar"></languageKey>
+               <languageKey index="bs"></languageKey>
+               <languageKey index="bg"></languageKey>
+               <languageKey index="ca"></languageKey>
+               <languageKey index="ch"></languageKey>
+               <languageKey index="cs"></languageKey>
+               <languageKey index="da"></languageKey>
+               <languageKey index="de" type="array">
+                       <label index="clearBranchCache">Cache des Teilbereichs leeren</label>
+                       <label index="clearBranchCacheError">Das Leeren des Caches für den Teilbereich ist fehlgeschlagen.</label>
+                       <label index="clearBranchCacheSuccess">Das Leeren des Caches für den Teilbereich war erfolgreich.</label>
+                       <label index="clearPageCache">Cache der Seite leeren</label>
+                       <label index="clearPageCacheError">Das Leeren des Caches für die Seite ist fehlgeschlagen.</label>
+                       <label index="clearPageCacheSuccess">Das Leeren des Caches für die Seite war erfolgreich.</label>
+               </languageKey>
+               <languageKey index="el"></languageKey>
+               <languageKey index="eo"></languageKey>
+               <languageKey index="es"></languageKey>
+               <languageKey index="et"></languageKey>
+               <languageKey index="eu"></languageKey>
+               <languageKey index="fa"></languageKey>
+               <languageKey index="fi"></languageKey>
+               <languageKey index="fo"></languageKey>
+               <languageKey index="fr"></languageKey>
+               <languageKey index="fr_CA"></languageKey>
+               <languageKey index="gl"></languageKey>
+               <languageKey index="he"></languageKey>
+               <languageKey index="hi"></languageKey>
+               <languageKey index="hr"></languageKey>
+               <languageKey index="hu"></languageKey>
+               <languageKey index="is"></languageKey>
+               <languageKey index="it"></languageKey>
+               <languageKey index="ja"></languageKey>
+               <languageKey index="ka"></languageKey>
+               <languageKey index="kl"></languageKey>
+               <languageKey index="km"></languageKey>
+               <languageKey index="ko"></languageKey>
+               <languageKey index="lt"></languageKey>
+               <languageKey index="lv"></languageKey>
+               <languageKey index="ms"></languageKey>
+               <languageKey index="nl"></languageKey>
+               <languageKey index="no"></languageKey>
+               <languageKey index="pl"></languageKey>
+               <languageKey index="pt"></languageKey>
+               <languageKey index="pt_BR"></languageKey>
+               <languageKey index="ro"></languageKey>
+               <languageKey index="ru"></languageKey>
+               <languageKey index="sk"></languageKey>
+               <languageKey index="sl"></languageKey>
+               <languageKey index="sq"></languageKey>
+               <languageKey index="sr"></languageKey>
+               <languageKey index="sv"></languageKey>
+               <languageKey index="th"></languageKey>
+               <languageKey index="tr"></languageKey>
+               <languageKey index="uk"></languageKey>
+               <languageKey index="vi"></languageKey>
+               <languageKey index="zh"></languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file
diff --git a/Resources/Private/Php/RegisterJavaScriptForPagetreeAction.php b/Resources/Private/Php/RegisterJavaScriptForPagetreeAction.php
new file mode 100644 (file)
index 0000000..f7baff4
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+if (!defined('TYPO3_MODE')) {
+       die ('Access denied.');
+}
+       // Adds JavaScript and LLL for clickmenu to the BE
+if (is_object($TYPO3backend)) {
+       $pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
+
+       $jsPath = t3lib_extMgm::extRelPath('sm_clearcachecm') . 'Resources/Public/JavaScript/';
+       $pageRenderer->addJsFile($jsPath . 'ClearCacheClickmenuActions.js');
+
+       $langPath = 'LLL:EXT:sm_clearcachecm/Resources/Private/Language/locallang_cm.xml:';
+       $pageRenderer->addInlineLanguageLabel(
+               'sm_clearcachecm_clearPageCacheSuccess',
+               $GLOBALS['LANG']->sL($langPath . 'clearPageCacheSuccess', TRUE)
+       );
+       $pageRenderer->addInlineLanguageLabel(
+               'sm_clearcachecm_clearBranchCacheSuccess',
+               $GLOBALS['LANG']->sL($langPath . 'clearBranchCacheSuccess', TRUE)
+       );
+}
+
+?>
\ No newline at end of file
diff --git a/Resources/Public/JavaScript/ClearCacheClickmenuActions.js b/Resources/Public/JavaScript/ClearCacheClickmenuActions.js
new file mode 100644 (file)
index 0000000..fb77a2c
--- /dev/null
@@ -0,0 +1,32 @@
+Ext.onReady(function() {
+       Ext.apply(TYPO3.Components.PageTree.Actions, {
+               clearPageCache: function(node, tree) {
+                       TYPO3.SmClearcachecm.ClickmenuAction.clearPageCache(
+                               node.attributes.nodeData,
+                               function(response) {
+                                       if (response) {
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.error, '', response);
+                                       } else {
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.ok, '', TYPO3.lang.sm_clearcachecm_clearPageCacheSuccess);
+                                       }
+                               },
+                               this
+                       );
+               }
+       });
+       Ext.apply(TYPO3.Components.PageTree.Actions, {
+               clearBranchCache: function(node, tree) {
+                       TYPO3.SmClearcachecm.ClickmenuAction.clearBranchCache(
+                               node.attributes.nodeData,
+                               function(response) {
+                                       if (response) {
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.error, '', response);
+                                       } else {
+                                               TYPO3.Flashmessage.display(TYPO3.Severity.ok, '', TYPO3.lang.sm_clearcachecm_clearBranchCacheSuccess);
+                                       }
+                               },
+                               this
+                       );
+               }
+       });
+});
diff --git a/Ressources/Private/Language/locallang_cm.xml b/Ressources/Private/Language/locallang_cm.xml
deleted file mode 100644 (file)
index 2e6956d..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for the clickmenu items of the extension 'sm_clearcachecm'</description>
-               <type>module</type>
-               <generator>LFEditor</generator>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="clearBranchCache">Flush branch cache</label>
-                       <label index="clearBranchCacheError">Flushing the page cache of the branch failed.</label>
-                       <label index="clearBranchCacheSuccess">Flushing the page cache of the branch succeeded!</label>
-                       <label index="clearPageCache">Flush page cache</label>
-                       <label index="clearPageCacheError">Flushing the page cache failed.</label>
-                       <label index="clearPageCacheSuccess">Flushing the page cache succeeded.</label>
-               </languageKey>
-               <languageKey index="ar"></languageKey>
-               <languageKey index="bs"></languageKey>
-               <languageKey index="bg"></languageKey>
-               <languageKey index="ca"></languageKey>
-               <languageKey index="ch"></languageKey>
-               <languageKey index="cs"></languageKey>
-               <languageKey index="da"></languageKey>
-               <languageKey index="de" type="array">
-                       <label index="clearBranchCache">Cache des Teilbereichs leeren</label>
-                       <label index="clearBranchCacheError">Das Leeren des Caches für den Teilbereich ist fehlgeschlagen.</label>
-                       <label index="clearBranchCacheSuccess">Das Leeren des Caches für den Teilbereich war erfolgreich.</label>
-                       <label index="clearPageCache">Cache der Seite leeren</label>
-                       <label index="clearPageCacheError">Das Leeren des Caches für die Seite ist fehlgeschlagen.</label>
-                       <label index="clearPageCacheSuccess">Das Leeren des Caches für die Seite war erfolgreich.</label>
-               </languageKey>
-               <languageKey index="el"></languageKey>
-               <languageKey index="eo"></languageKey>
-               <languageKey index="es"></languageKey>
-               <languageKey index="et"></languageKey>
-               <languageKey index="eu"></languageKey>
-               <languageKey index="fa"></languageKey>
-               <languageKey index="fi"></languageKey>
-               <languageKey index="fo"></languageKey>
-               <languageKey index="fr"></languageKey>
-               <languageKey index="fr_CA"></languageKey>
-               <languageKey index="gl"></languageKey>
-               <languageKey index="he"></languageKey>
-               <languageKey index="hi"></languageKey>
-               <languageKey index="hr"></languageKey>
-               <languageKey index="hu"></languageKey>
-               <languageKey index="is"></languageKey>
-               <languageKey index="it"></languageKey>
-               <languageKey index="ja"></languageKey>
-               <languageKey index="ka"></languageKey>
-               <languageKey index="kl"></languageKey>
-               <languageKey index="km"></languageKey>
-               <languageKey index="ko"></languageKey>
-               <languageKey index="lt"></languageKey>
-               <languageKey index="lv"></languageKey>
-               <languageKey index="ms"></languageKey>
-               <languageKey index="nl"></languageKey>
-               <languageKey index="no"></languageKey>
-               <languageKey index="pl"></languageKey>
-               <languageKey index="pt"></languageKey>
-               <languageKey index="pt_BR"></languageKey>
-               <languageKey index="ro"></languageKey>
-               <languageKey index="ru"></languageKey>
-               <languageKey index="sk"></languageKey>
-               <languageKey index="sl"></languageKey>
-               <languageKey index="sq"></languageKey>
-               <languageKey index="sr"></languageKey>
-               <languageKey index="sv"></languageKey>
-               <languageKey index="th"></languageKey>
-               <languageKey index="tr"></languageKey>
-               <languageKey index="uk"></languageKey>
-               <languageKey index="vi"></languageKey>
-               <languageKey index="zh"></languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/Ressources/Private/Php/RegisterJavaScriptForPagetreeAction.php b/Ressources/Private/Php/RegisterJavaScriptForPagetreeAction.php
deleted file mode 100644 (file)
index 4971648..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-if (!defined('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-       // Adds JavaScript and LLL for clickmenu to the BE
-if (is_object($TYPO3backend)) {
-       $pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
-
-       $jsPath = t3lib_extMgm::extRelPath('sm_clearcachecm') . 'Ressources/Public/JavaScript/';
-       $pageRenderer->addJsFile($jsPath . 'ClearCacheClickmenuActions.js');
-
-       $langPath = 'LLL:EXT:sm_clearcachecm/Ressources/Private/Language/locallang_cm.xml:';
-       $pageRenderer->addInlineLanguageLabel(
-               'sm_clearcachecm_clearPageCacheSuccess',
-               $GLOBALS['LANG']->sL($langPath . 'clearPageCacheSuccess', TRUE)
-       );
-       $pageRenderer->addInlineLanguageLabel(
-               'sm_clearcachecm_clearBranchCacheSuccess',
-               $GLOBALS['LANG']->sL($langPath . 'clearBranchCacheSuccess', TRUE)
-       );
-}
-
-?>
\ No newline at end of file
diff --git a/Ressources/Public/JavaScript/ClearCacheClickmenuActions.js b/Ressources/Public/JavaScript/ClearCacheClickmenuActions.js
deleted file mode 100644 (file)
index fb77a2c..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-Ext.onReady(function() {
-       Ext.apply(TYPO3.Components.PageTree.Actions, {
-               clearPageCache: function(node, tree) {
-                       TYPO3.SmClearcachecm.ClickmenuAction.clearPageCache(
-                               node.attributes.nodeData,
-                               function(response) {
-                                       if (response) {
-                                               TYPO3.Flashmessage.display(TYPO3.Severity.error, '', response);
-                                       } else {
-                                               TYPO3.Flashmessage.display(TYPO3.Severity.ok, '', TYPO3.lang.sm_clearcachecm_clearPageCacheSuccess);
-                                       }
-                               },
-                               this
-                       );
-               }
-       });
-       Ext.apply(TYPO3.Components.PageTree.Actions, {
-               clearBranchCache: function(node, tree) {
-                       TYPO3.SmClearcachecm.ClickmenuAction.clearBranchCache(
-                               node.attributes.nodeData,
-                               function(response) {
-                                       if (response) {
-                                               TYPO3.Flashmessage.display(TYPO3.Severity.error, '', response);
-                                       } else {
-                                               TYPO3.Flashmessage.display(TYPO3.Severity.ok, '', TYPO3.lang.sm_clearcachecm_clearBranchCacheSuccess);
-                                       }
-                               },
-                               this
-                       );
-               }
-       });
-});
index 69835df..7e3ba21 100644 (file)
@@ -41,7 +41,7 @@ $EM_CONF[$_EXTKEY] = array(
                'suggests' => array(
                ),
        ),
-       '_md5_values_when_last_written' => 'a:9:{s:9:"ChangeLog";s:4:"1924";s:12:"ext_icon.gif";s:4:"7bff";s:14:"ext_tables.php";s:4:"cea3";s:10:"README.txt";s:4:"ee2d";s:33:"Classes/Hooks/ClickmenuAction.php";s:4:"788a";s:44:"Ressources/Private/Language/locallang_cm.xml";s:4:"fa07";s:62:"Ressources/Private/Php/RegisterJavaScriptForPagetreeAction.php";s:4:"10ca";s:58:"Ressources/Public/JavaScript/ClearCacheClickmenuActions.js";s:4:"a2a6";s:14:"doc/manual.sxw";s:4:"cbfa";}',
+       '_md5_values_when_last_written' => 'a:9:{s:9:"ChangeLog";s:4:"1924";s:12:"ext_icon.gif";s:4:"7bff";s:14:"ext_tables.php";s:4:"cea3";s:10:"README.txt";s:4:"ee2d";s:33:"Classes/Hooks/ClickmenuAction.php";s:4:"788a";s:44:"Resources/Private/Language/locallang_cm.xml";s:4:"fa07";s:62:"Resources/Private/Php/RegisterJavaScriptForPagetreeAction.php";s:4:"10ca";s:58:"Resources/Public/JavaScript/ClearCacheClickmenuActions.js";s:4:"a2a6";s:14:"doc/manual.sxw";s:4:"cbfa";}',
        'suggests' => array(
        ),
 );
index dbce8a9..460f163 100644 (file)
@@ -17,7 +17,7 @@ if (TYPO3_MODE == 'BE')       {
        );
 
                // Include JS in backend 
-       $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = t3lib_extMgm::extPath($_EXTKEY, 'Ressources/Private/Php/RegisterJavaScriptForPagetreeAction.php');
+       $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = t3lib_extMgm::extPath($_EXTKEY, 'Resources/Private/Php/RegisterJavaScriptForPagetreeAction.php');
 
                // Add items of the context menu to the default userTS configuration
        $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultUserTSconfig'] .= '
@@ -28,7 +28,7 @@ if (TYPO3_MODE == 'BE')       {
                                1020 = ITEM
                                1020 {
                                        name = clearPageCache
-                                       label = LLL:EXT:sm_clearcachecm/Ressources/Private/Language/locallang_cm:clearPageCache
+                                       label = LLL:EXT:sm_clearcachecm/Resources/Private/Language/locallang_cm:clearPageCache
                                        spriteIcon = actions-system-cache-clear-impact-low
                                        callbackAction = clearPageCache
                                }
@@ -39,7 +39,7 @@ if (TYPO3_MODE == 'BE')       {
                                420 = ITEM
                                420 {
                                        name = clearBranchCache
-                                       label = LLL:EXT:sm_clearcachecm/Ressources/Private/Language/locallang_cm:clearBranchCache
+                                       label = LLL:EXT:sm_clearcachecm/Resources/Private/Language/locallang_cm:clearBranchCache
                                        spriteIcon = actions-system-cache-clear-impact-low
                                        callbackAction = clearBranchCache
                                }