Skip to content

Commit

Permalink
Changes for MM xliff
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Apr 18, 2024
1 parent f326e7b commit 37cf631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -633,16 +633,14 @@ private function getTableHead(EnvironmentInterface $environment)
assert($definition instanceof ContainerInterface);

$tableHead = [];
$properties = $definition->getPropertiesDefinition();
$formatter = $this->getViewSection($definition)->getListingConfig()->getLabelFormatter($definition->getName());
$sorting = ViewHelpers::getCurrentSorting($environment);
$columns = $this->getSortingColumns($sorting);
foreach ($formatter->getPropertyNames() as $field) {
//dump([$properties->hasProperty($field), $properties->getProperty($field)->getLabel(), $this->translateButtonLabel($field, $definition->getName())]);

Check warning on line 640 in src/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php

View workflow job for this annotation

GitHub Actions / PHP: 8.1 Contao: ~4.13.0

Line exceeds 120 characters; contains 162 characters (reported by phpcs: Generic.Files.LineLength.TooLong)

Check warning on line 640 in src/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php

View workflow job for this annotation

GitHub Actions / PHP: 8.2 Contao: ~4.13.0

Line exceeds 120 characters; contains 162 characters (reported by phpcs: Generic.Files.LineLength.TooLong)

Check warning on line 640 in src/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php

View workflow job for this annotation

GitHub Actions / PHP: 8.1 Contao: ~4.13.0

Line exceeds 120 characters; contains 162 characters (reported by phpcs: Generic.Files.LineLength.TooLong)

Check warning on line 640 in src/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php

View workflow job for this annotation

GitHub Actions / PHP: 8.2 Contao: ~4.13.0

Line exceeds 120 characters; contains 162 characters (reported by phpcs: Generic.Files.LineLength.TooLong)
$tableHead[] = [
'class' => 'tl_folder_tlist col_' . $field . (\in_array($field, $columns) ? ' ordered_by' : ''),
'content' => $properties->hasProperty($field)
? $properties->getProperty($field)->getLabel()
: $this->translate($definition->getName() . '.' . $field . '.0', 'contao_' . $definition->getName())
'content' => $this->translateButtonLabel($field, $definition->getName())
];
}

Expand Down
5 changes: 0 additions & 5 deletions src/Contao/View/Contao2BackendView/TreeView.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,6 @@ public static function renderPasteRootButton(GetPasteRootButtonEvent $event)
$definition = $environment->getDataDefinition();
assert($definition instanceof ContainerInterface);

// $label = $translator->translate(
// 'pasteinto.0',
// $definition->getName()
// );

if ('pasteinto.label' === ($label = $translator->translate('pasteinto.label', $definition->getName()))) {
$label = $translator->translate('pasteinto.0', $definition->getName());
}
Expand Down

0 comments on commit 37cf631

Please sign in to comment.