[BUGFIX] EM: Update button -> display version 31/19631/2
authorThomas Löffler <loeffler@spooner-web.de>
Thu, 7 Feb 2013 19:23:10 +0000 (20:23 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 5 Apr 2013 21:20:57 +0000 (23:20 +0200)
Adds the target version of the extension which
needs an update into the title tag of the update
button.

Releases: 6.0, 6.1
Resolves: #45245
Change-Id: Icd5f98407300abf5759554002c1d42b9214a106c
Reviewed-on: https://review.typo3.org/19631
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Classes/Utility/ListUtility.php
typo3/sysext/extensionmanager/Resources/Private/Language/locallang.xlf
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html

index 84b8089..19b4cdf 100644 (file)
@@ -155,6 +155,7 @@ class ListUtility implements \TYPO3\CMS\Core\SingletonInterface {
                                if ($terObject instanceof \TYPO3\CMS\Extensionmanager\Domain\Model\Extension) {
                                        $extensions[$extensionKey]['terObject'] = $terObject;
                                        $extensions[$extensionKey]['updateAvailable'] = $this->installUtility->isUpdateAvailable($terObject);
+                                       $extensions[$extensionKey]['updateToVersion'] = $this->extensionRepository->findHighestAvailableVersion($extensionKey);
                                }
                        } else {
                                unset($extensions[$extensionKey]);
index 9ccc3ea..6e0b8b6 100644 (file)
@@ -81,6 +81,9 @@
                        <trans-unit id="extensionList.update" xml:space="preserve">
                                <source>Update</source>
                        </trans-unit>
+                       <trans-unit id="extensionList.updateToVersion" xml:space="preserve">
+                               <source>Update to version %s</source>
+                       </trans-unit>
                        <trans-unit id="extensionList.deactivate" xml:space="preserve">
                                <source>Deactivate</source>
                        </trans-unit>
index 79e76eb..3974506 100644 (file)
@@ -45,7 +45,7 @@
                                                <f:be.buttons.icon
                                                        uri="{f:uri.action(action:'updateCommentForUpdatableVersions',controller:'Download',arguments:{extension:extension.key, integerVersion: extension.terObject.integerVersion},format:'json')}"
                                                        icon="actions-system-extension-update"
-                                                       title="{f:translate(key:'extensionList.update')}"
+                                                       title="{f:translate(key:'extensionList.updateToVersion', arguments:{0:extension.updateToVersion.version})}"
                                                />
                                        </f:if>
                                </td>