22427 Posts in 6976 Topics by 2750 members
General questions about getting started with SilverStripe that don't fit in any of the categories above.
|Go to End|
29 August 2011 at 1:51am Last edited: 29 August 2011 1:52am
Hi @ all,
Can someone tell me where i can find the month names?
i want that the months are displayed in german language and not in english.
I searched a view files. but the cms structure and the amount of files is to complex for me perhaps someone knows it
29 August 2011 at 6:11am
The month names aren't really anywhere. SilverStripe dates are diplayed using PHP date formatting directly. To show Date fields in German from your template, first set the desired PHP locale. For instance in your config.php:
Now in your template:
FormatI18N() uses PHP strftime. %B will show you the monthname only. See the PHP docs for available formatting: http://php.net/manual/en/function.strftime.php
|Go to Top|