[Flow] default locale / i18n question
Alexander Berl
a.berl at outlook.com
Thu May 16 11:41:55 CEST 2013
You could try the following, I'm not sure if it works though:
in your AbstractController->initializeAction():
foreach ($this->arguments as $argument) {
$argument->getPropertyMappingConfiguration()->forProperty('*')->setTypeConverterOption(
'TYPO3\Flow\Property\TypeConverter\FloatConverter', 'locale', TRUE
);
}
Regarding the translation of validation messages, there seems to be a
major documentation hole. You actually have to invoke the translation in
your template where the errors are output:
see http://forge.typo3.org/issues/33970
I'll take care to have proper documentation for that added.
Regards,
Alexander
Am 16.05.2013 09:51, schrieb Winfried Mingst:
> Hi Alexander, thx for help.
>
> {album.amount->f:format.currency()} works for me.
>
> I set an TypeConverter in initializUpdateAction and CreateAction which
> works fine:
>
> $this->arguments['album']->getPropertyMappingConfiguration()->forProperty['amount']->setTypeConverterOption(
>
> 'TYPO3\Flow\Property\TypeConverter\FloatConverter',
> 'locale', TRUE
> );
>
> But I have a lot of float properties in an object. So I tried this
> (without- >forProperty('amount'):
>
> $this->arguments['album']->getPropertyMappingConfiguration()->setTypeConverterOption(
>
> 'TYPO3\Flow\Property\TypeConverter\FloatConverter',
> 'locale', TRUE
> );
>
>
> But that does'nt work. Is it possible to set a general typeconversion
> rule for floats in an object?
>
> Btw: Validation error messages are in english. How can I display them in
> german?
>
> thx
>
>
>
More information about the Flow
mailing list