You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is quite complicated at the moment to work with localized values in forms.
You must format the value by your own and set as value. So you can't use the "property" attribute and for example. Maybe an additional attribute for localization could help, but better were a general handling of localizations in the backgroud for some cases (e.g. forms)
Also you have to create initialize actions to change the options for this property for every - value receiving - action (create/update), so the validator will except your formated value.
public function initializeCreateAction() {
$pmc = $this->arguments['course']->getPropertyMappingConfiguration();
$pmc->forProperty('startDate')
->setTypeConverterOption('TYPO3\Flow\Property\TypeConverter\DateTimeConverter',
\TYPO3\Flow\Property\TypeConverter
DateTimeConverter::CONFIGURATION*DATE*FORMAT,
'd.m.Y');
}
At the end I think the currently set up locale could be used in backgroud and operate as default, as long as there is no locale explicit set to overwrite the default locale.
In my case above it's just the date, but I guess the localized output of currencies and numbers will also have the same issues.
Jira issue originally created by user lubitz:
It is quite complicated at the moment to work with localized values in forms.
You must format the value by your own and set as value. So you can't use the "property" attribute and for example. Maybe an additional attribute for localization could help, but better were a general handling of localizations in the backgroud for some cases (e.g. forms)
Also you have to create initialize actions to change the options for this property for every - value receiving - action (create/update), so the validator will except your formated value.
At the end I think the currently set up locale could be used in backgroud and operate as default, as long as there is no locale explicit set to overwrite the default locale.
In my case above it's just the date, but I guess the localized output of currencies and numbers will also have the same issues.
Jira-URL: https://jira.neos.io/browse/FLOW-368
The text was updated successfully, but these errors were encountered: