Project

General

Profile

Actions

Feature #77540

closed

ExtensionManagementUtility::addStaticFile language handling for $title

Added by David C. over 7 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2016-08-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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'
);
?>


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #79928: PageTS config from file not localizableRejected2017-02-20

Actions
Actions

Also available in: Atom PDF