Added feature #12187: Added more usage of flashmessages to EM
authorFrancois Suter <francois.suter@typo3.org>
Tue, 20 Oct 2009 19:20:29 +0000 (19:20 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Tue, 20 Oct 2009 19:20:29 +0000 (19:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6191 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_index.php
typo3/sysext/lang/locallang_mod_tools_em.xml

index f241d28..5c99359 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-20  Francois Suter  <francois@typo3.org>
+
+       * Added feature #12187: Added more usage of flashmessages to EM (thanks to Steffen Gebert)
+
 2009-10-20  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #12273: List view don't show if there are more records than displayed
index e67a636..340b703 100644 (file)
@@ -2250,7 +2250,19 @@ EXTENSION KEYS:
                                                }
                                                if (!$updates || t3lib_div::_GP('_do_install')) {
                                                        $this->writeNewExtensionList($newExtList);
-                                                       $GLOBALS['BE_USER']->writelog(5,1,0,0,'Extension list has been changed, extension %s has been %s',array($extKey,($this->CMD['load']?'installed':'removed')));
+                                                       $action = $this->CMD['load'] ? 'installed' : 'removed';
+                                                       $GLOBALS['BE_USER']->writelog(5, 1, 0, 0, 'Extension list has been changed, extension %s has been %s', array($extKey, $action));
+
+                                                       $messageLabel = 'ext_details_ext_' . $action . '_with_key';
+                                                       $flashMessage = t3lib_div::makeInstance(
+                                                               't3lib_FlashMessage',
+                                                               sprintf($GLOBALS['LANG']->getLL($messageLabel), $extKey),
+                                                               '',
+                                                               t3lib_FlashMessage::OK,
+                                                               TRUE
+                                                       );
+                                                       t3lib_FlashMessageQueue::addMessage($flashMessage);
+
                                                        if ($this->CMD['clrCmd'] || t3lib_div::_GP('_clrCmd'))  {
                                                                if ($this->CMD['load'] && @is_file($absPath.'ext_conf_template.txt')) {
                                                                        $vA = array('CMD'=>Array('showExt'=>$extKey));
index ee50859..dc87a66 100755 (executable)
                        <label index="ext_details_remove_ext">Remove extension</label>
                        <label index="ext_details_removing">Removing %s:</label>
                        <label index="ext_details_ext_installed_removed">The extension has been %s.</label>
+                       <label index="ext_details_ext_installed_with_key">The extension "%s" has been installed.</label>
+                       <label index="ext_details_ext_removed_with_key">The extension "%s" has been removed.</label>
                        <label index="ext_details_installed">installed</label>
                        <label index="ext_details_removed">removed</label>
                        <label index="ext_details_write_access_error">Write access error</label>