Skip to content

Commit

Permalink
[BUGFIX] Label of content area not translated
Browse files Browse the repository at this point in the history
Close: #1090
  • Loading branch information
NamelessCoder committed Mar 3, 2016
1 parent affce83 commit 718365c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Classes/View/PreviewView.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use FluidTYPO3\Flux\Service\FluxService;
use FluidTYPO3\Flux\Service\WorkspacesAwareRecordService;
use FluidTYPO3\Flux\Utility\ClipBoardUtility;
use FluidTYPO3\Flux\Utility\ExtensionNamingUtility;
use FluidTYPO3\Flux\Utility\MiscellaneousUtility;
use FluidTYPO3\Flux\Utility\RecursiveArrayUtility;
use TYPO3\CMS\Backend\Utility\BackendUtility;
Expand Down Expand Up @@ -660,14 +661,24 @@ protected function drawPasteIcon(array $row, Column $column, $reference = FALSE,
* @return string
*/
protected function parseGridColumnTemplate(array $row, Column $column, $colPosFluxContent, $dblist, $target, $id, $content) {
$label = $column->getLabel();
if (strpos($label, 'LLL:') === 0) {
$label = LocalizationUtility::translate(
$label,
ExtensionNamingUtility::getExtensionName($column->getExtensionName())
);
if (empty($label)) {
$label = $column->getLabel();
}
}
return sprintf($this->templates['gridColumn'],
$column->getColspan(),
$column->getRowspan(),
$column->getStyle(),
$colPosFluxContent,
$dblist->tt_contentConfig['sys_language_uid'],
$dblist->tt_contentConfig['sys_language_uid'],
$column->getLabel(),
$label,
$target,
$id,
$this->drawNewIcon($row, $column). $this->drawPasteIcon($row, $column) . $this->drawPasteIcon($row, $column, TRUE),
Expand Down

0 comments on commit 718365c

Please sign in to comment.