[TASK] Add title to "Translate metadata" button 62/36362/2
authorJan Helke <typo3@helke.de>
Thu, 29 Jan 2015 15:29:04 +0000 (16:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 29 Jan 2015 17:21:07 +0000 (18:21 +0100)
With this patch the button that toggles the metadata translation button
gets a title.

Resolves: #60434
Releases: master
Change-Id: Id639c6c2094318b430d5689ddbd733cae5fc46cd
Reviewed-on: http://review.typo3.org/36362
Reviewed-by: Zbigniew Jacko <z.jacko@macopedia.pl>
Tested-by: Zbigniew Jacko <z.jacko@macopedia.pl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/lang/locallang_mod_file_list.xlf

index f1b0bc5..5ad5573 100644 (file)
@@ -653,7 +653,12 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                                                                $theData[$field] = ' <div class="localisationData btn-group" data-fileid="' . $fileObject->getUid() . '"' .
                                                                                (empty($translations) ? ' style="display: none;"' : '') . '>' . $languageCode . '</div>';
                                                                $theData[$field] .= '<a class="btn filelist-translationToggler" data-fileid="' . $fileObject->getUid() . '">' .
-                                                                       IconUtility::getSpriteIcon('mimetypes-x-content-page-language-overlay') . '</a>';
+                                                                       IconUtility::getSpriteIcon(
+                                                                               'mimetypes-x-content-page-language-overlay',
+                                                                               array(
+                                                                                       'title' => $GLOBALS['LANG']->getLL('translateMetadata')
+                                                                               )
+                                                                       ) . '</a>';
                                                        }
                                                        break;
                                                case '_REF_':
index bb385a4..44ec784 100644 (file)
                        <trans-unit id="folderNotFoundMessage" xml:space="preserve">
                                <source>The folder "%s" cannot be accessed. Trying to use parent folder(s).</source>
                        </trans-unit>
+                       <trans-unit id="translateMetadata" xml:space="preserve">
+                               <source>Translate metadata</source>
+                       </trans-unit>
                </body>
        </file>
 </xliff>