Index: Classes/ViewHelpers/TranslateViewHelper.php =================================================================== --- Classes/ViewHelpers/TranslateViewHelper.php (revision 3973) +++ Classes/ViewHelpers/TranslateViewHelper.php (working copy) @@ -58,13 +58,14 @@ * @param string $default if the given locallang key could not be found, this value is used. . If this argument is not set, child nodes will be used to render the default * @param boolean $htmlEscape TRUE if the result should be htmlescaped. This won't have an effect for the default value * @param array $arguments Arguments to be replaced in the resulting string + * @param string $extensionName Key of the extension * @return string The translated key or tag body if key doesn't exist * @author Christopher Hlubek * @author Bastian Waidelich */ - public function render($key, $default = NULL, $htmlEscape = TRUE, array $arguments = NULL) { + public function render($key, $default = NULL, $htmlEscape = TRUE, array $arguments = NULL, $extensionName = NULL) { $request = $this->controllerContext->getRequest(); - $extensionName = $request->getControllerExtensionName(); + $extensionName = (is_null($extensionName) ? $request->getControllerExtensionName() : $extensionName); $value = Tx_Extbase_Utility_Localization::translate($key, $extensionName, $arguments); if ($value === NULL) { $value = $default !== NULL ? $default : $this->renderChildren();