Issue Feature Rejected

#77540ExtensionManagementUtility::addStaticFile language handling for $title

David C. 08/18/16, 14:22 updated 03/17/20, 22:38

Description

Currently it’s not possible to use a string from language file for the $title when adding a static TypoScript template file.

This works:

<?php
// Add an entry in the static template list found in sys_templates for static TS
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
    'ext_key',
    'Configuration/TypoScript',
    'TS Title'
);
?>

This doesn’t, but should:

<?php
// Add an entry in the static template list found in sys_templates for static TS
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
    'ext_key',
    'Configuration/TypoScript',
    'LLL:EXT:ext_key/Resources/Private/Language/locallang.xlf:tstitle'
);
?>

Reviews 1