[BUGFIX] Fix explicit translation buttons 37/36237/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Sat, 24 Jan 2015 20:05:12 +0000 (21:05 +0100)
committerBenjamin Mack <benni@typo3.org>
Mon, 26 Jan 2015 10:55:08 +0000 (11:55 +0100)
Since t3skin has been introduced in 4.0 the buttons for explicit
translations have not been adopted to the new style (back then).
These buttons are now added.

Resolves: #55454
Releases: master, 6.2
Change-Id: Ic0302b61f1a353b559fa874dbc84df1f4c1b91aa
Reviewed-on: http://review.typo3.org/36237
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/t3skin/images/icons/actions/document-save-cleartranslationcache.png [new file with mode: 0644]
typo3/sysext/t3skin/images/icons/actions/document-save-translation.png [new file with mode: 0644]

index 4e31a6a..7f4b958 100644 (file)
@@ -1001,8 +1001,8 @@ class EditDocumentController {
                        $buttons['save_close'] = IconUtility::getSpriteIcon('actions-document-save-close', array('html' => '<input type="image" class="c-inputButton" name="_saveandclosedok" src="clear.gif" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:rm.saveCloseDoc', TRUE) . '" />'));
                        // FINISH TRANSLATION / SAVE / CLOSE
                        if ($GLOBALS['TYPO3_CONF_VARS']['BE']['explicitConfirmationOfTranslation']) {
-                               $buttons['translation_save'] = '<input type="image" class="c-inputButton" name="_translation_savedok" src="' . IconUtility::skinImg($this->doc->backPath, 'gfx/translationsavedok.gif', '', 1) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:rm.translationSaveDoc', TRUE) . '" />';
-                               $buttons['translation_saveclear'] = '<input type="image" class="c-inputButton" name="_translation_savedokclear" src="' . IconUtility::skinImg($this->doc->backPath, 'gfx/translationsavedok_clear.gif', '', 1) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:rm.translationSaveDocClear', TRUE) . '" />';
+                               $buttons['translation_save'] = '<input type="image" class="c-inputButton" name="_translation_savedok" src="' . IconUtility::skinImg($this->doc->backPath, 'sysext/t3skin/images/icons/actions/document-save-translation.png', '', 1) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:rm.translationSaveDoc', TRUE) . '" /> ';
+                               $buttons['translation_saveclear'] = '<input type="image" class="c-inputButton" name="_translation_savedokclear" src="' . IconUtility::skinImg($this->doc->backPath, 'sysext/t3skin/images/icons/actions/document-save-cleartranslationcache.png', '', 1) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:rm.translationSaveDocClear', TRUE) . '" />';
                        }
                }
                // CLOSE button:
diff --git a/typo3/sysext/t3skin/images/icons/actions/document-save-cleartranslationcache.png b/typo3/sysext/t3skin/images/icons/actions/document-save-cleartranslationcache.png
new file mode 100644 (file)
index 0000000..f15ae45
Binary files /dev/null and b/typo3/sysext/t3skin/images/icons/actions/document-save-cleartranslationcache.png differ
diff --git a/typo3/sysext/t3skin/images/icons/actions/document-save-translation.png b/typo3/sysext/t3skin/images/icons/actions/document-save-translation.png
new file mode 100644 (file)
index 0000000..623db62
Binary files /dev/null and b/typo3/sysext/t3skin/images/icons/actions/document-save-translation.png differ