[FLOW3-general] Translate label in Controller using translateById
Rayuth You (Yuth)
rayuth at typo3cambodia.org
Fri Aug 24 09:52:02 CEST 2012
Hi list,
Using FLOW3 1.1.0-dev and I got some problems with using translate label
in Controller.
Declare:
/**
* @var \TYPO3\FLOW3\I18n\Translator
* @FLOW3\Inject
*/
protected $translator;
Call:
$this->translator->translateById('labelId');
Translate:
<trans-unit id="labelId">
<source>What to be showed</source>
</trans-unit>
Problem:
The result should be 'What to be showed', but it shows 'labelId'.
What did I code something wrong? Does anyone have a hint?
Kind regards,
Rayuth
--
Rayuth You
Web Developer
M: +855 11 262 078
E: rayuth at typo3cambodia.org
TYPO3 .... inspiring people to share!
Get involved: http://www.typo3cambodia.org
More information about the FLOW3-general
mailing list