[MERGE] Branch 'master' of https://github.com/cjel/typo3-templates_aide
This commit is contained in:
commit
38008960d9
@ -370,13 +370,23 @@ class ActionController extends BaseController
|
|||||||
*/
|
*/
|
||||||
protected function getTranslation($key, $arguments = null)
|
protected function getTranslation($key, $arguments = null)
|
||||||
{
|
{
|
||||||
return LocalizationUtility::translate(
|
$translation = LocalizationUtility::translate(
|
||||||
$key,
|
$key,
|
||||||
GeneralUtility::camelCaseToLowerCaseUnderscored(
|
$this->getExtensionKey(),
|
||||||
$this->extensionName
|
|
||||||
),
|
|
||||||
$arguments
|
$arguments
|
||||||
);
|
);
|
||||||
|
if ($translation) {
|
||||||
|
return $translation;
|
||||||
|
}
|
||||||
|
$translation = LocalizationUtility::translate(
|
||||||
|
$key,
|
||||||
|
'site_templates',
|
||||||
|
$arguments
|
||||||
|
);
|
||||||
|
if ($translation) {
|
||||||
|
return $translation;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user