Project

General

Profile

Actions

Bug #63755

closed

LocalizationUtility and $extensionName

Added by Tomasz Krawczyk almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2014-12-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Class \TYPO3\CMS\Extbase\Utility\LocalizationUtility uses variable $extensionName in a few places. I think that variable should be called $extensionKey.

F.e. method initializeLocalization contains such line:

$locallangPathAndFilename = 'EXT:' . \TYPO3\CMS\Core\Utility\GeneralUtility::camelCaseToLowerCaseUnderscored($extensionName) . '/' . self::$locallangPath . 'locallang.xml';

In case of my extension "Mobile Detector" (key: "tk_mobiledetector") name $extensionName leads to errors. Because

$locallangPathAndFilename = 'EXT:mobile detector/Resources/Private/Language/locallang.xml';

where path doesn't exist.

Actions

Also available in: Atom PDF