[Neos] DateViewHelper localized month names
Bastian Waidelich
bastian at typo3.org
Fri May 29 18:17:26 CEST 2015
On 29.05.15, at 18:07, Jan Syring-Lingenfelder wrote:
Hi Jan,
> is it possible that the Date ViewHelper outputs month names in a
> language other than english?
If you look at the ViewHelper reference [1] you can see that there are
some locale-related arguments on the format.date ViewHelper.
If you really only need the month name you could also go for a
combination of the translate and date ViewHelpers:
<f:translate id="months.{theDate -> f:format.date(format: 'j')}" />
And then you'd need to add the months names in the format "months.1" -
"months.12" to your xlf file.
[1]
http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartV/FluidViewHelperReference.html#f-format-date
HTH
--
Bastian Waidelich
More information about the Neos
mailing list