Created
August 6, 2014 10:12
-
-
Save fvosberg/80158cae6cd2c47df0fd to your computer and use it in GitHub Desktop.
Translate in Extbase Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function translate( $key, $arguments = array()) { | |
$extensionName = $this->request->getControllerExtensionName(); | |
return \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, $extensionName, $arguments); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment