This patch adds the title to the edit localized metadata button
in the filelist module. Because we don't have any translations
for the language names the title is done hardcoded in the class.
Resolves: #64598
Releases: master
Change-Id: I6220da7dccf09fce67fafb7336a5f5fb713aa81e
Reviewed-on: http://review.typo3.org/36370
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Zbigniew Jacko <z.jacko@macopedia.pl>
Tested-by: Zbigniew Jacko <z.jacko@macopedia.pl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
foreach ($systemLanguages as $language) {
$languageId = $language['uid'];
$flagIcon = $language['flagIcon'];
foreach ($systemLanguages as $language) {
$languageId = $language['uid'];
$flagIcon = $language['flagIcon'];
if (array_key_exists($languageId, $translations)) {
$flagButtonIcon = IconUtility::getSpriteIcon(
'actions-document-open',
if (array_key_exists($languageId, $translations)) {
$flagButtonIcon = IconUtility::getSpriteIcon(
'actions-document-open',
- array('title' => $fileName),
+ array('title' => sprintf($GLOBALS['LANG']->getLL('editMetadataForLanguage'), $language['title'])),
array($flagIcon . '-overlay' => array()));
$data = array(
'sys_file_metadata' => array($translations[$languageId]['uid'] => 'edit')
array($flagIcon . '-overlay' => array()));
$data = array(
'sys_file_metadata' => array($translations[$languageId]['uid'] => 'edit')
$this->backPath . 'alt_doc.php?justLocalized=' . rawurlencode(('sys_file_metadata:' . $metaDataRecord['uid'] . ':' . $languageId)) .
'&returnUrl=' . rawurlencode($this->listURL()) . BackendUtility::getUrlToken('editRecord')
);
$this->backPath . 'alt_doc.php?justLocalized=' . rawurlencode(('sys_file_metadata:' . $metaDataRecord['uid'] . ':' . $languageId)) .
'&returnUrl=' . rawurlencode($this->listURL()) . BackendUtility::getUrlToken('editRecord')
);
- $flagButtonIcon = IconUtility::getSpriteIcon($flagIcon);
+ $flagButtonIcon = IconUtility::getSpriteIcon(
+ $flagIcon,
+ array('title' => sprintf($GLOBALS['LANG']->getLL('createMetadataForLanguage'), $language['title'])),
+ array($flagIcon . '-overlay' => array())
+ );
$languageCode .= '<a href="' . htmlspecialchars($href) . '" class="btn">' . $flagButtonIcon . '</a> ';
}
}
$languageCode .= '<a href="' . htmlspecialchars($href) . '" class="btn">' . $flagButtonIcon . '</a> ';
}
}
<trans-unit id="translateMetadata" xml:space="preserve">
<source>Translate metadata</source>
</trans-unit>
<trans-unit id="translateMetadata" xml:space="preserve">
<source>Translate metadata</source>
</trans-unit>
+ <trans-unit id="createMetadataForLanguage" xml:space="preserve">
+ <source>Create metadata of this file for %s</source>
+ </trans-unit>
+ <trans-unit id="editMetadataForLanguage" xml:space="preserve">
+ <source>Edit metadata of this file for %s</source>
+ </trans-unit>