[TASK] Replace sprite icon "actions-edit-localize-status-low" with IconFactory 06/43006/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 4 Sep 2015 06:49:45 +0000 (08:49 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 4 Sep 2015 10:30:58 +0000 (12:30 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-edit-localize-status-low with the new IconFactory.

Resolves: #68929
Releases: master
Change-Id: I831c4ad2105eec8bd796ae9e3d0fc4c81a676b8a
Reviewed-on: http://review.typo3.org/43006
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index 158d91c..5c49010 100644 (file)
@@ -475,7 +475,9 @@ class InlineRecordContainer extends AbstractContainer {
                        $hookObj->renderForeignRecordHeaderControl_preProcess($parentUid, $foreign_table, $rec, $config, $isVirtualRecord, $enabledControls);
                }
                if (isset($rec['__create'])) {
-                       $cells['localize.isLocalizable'] = IconUtility::getSpriteIcon('actions-edit-localize-status-low', array('title' => $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize.isLocalizable', TRUE)));
+                       $cells['localize.isLocalizable'] = '<span title="' . $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize.isLocalizable', TRUE) . '">'
+                               . $this->iconFactory->getIcon('actions-edit-localize-status-low', Icon::SIZE_SMALL)
+                               . '</span>';
                } elseif (isset($rec['__remove'])) {
                        $cells['localize.wasRemovedInOriginal'] = IconUtility::getSpriteIcon('actions-edit-localize-status-high', array('title' => $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize.wasRemovedInOriginal', TRUE)));
                }
index da75f8a..bfdc4a1 100644 (file)
@@ -184,6 +184,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'trash',
                        )
                ),
+               'actions-edit-localize-status-low' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/actions/edit-localize-status-low.png',
+                       )
+               ),
                'actions-edit-merge-localization' => array(
                        'provider' => BitmapIconProvider::class,
                        'options' => array(