Page 1 of 1
[SOLVED] CGcalendar date language format
Posted: Mon Feb 20, 2012 6:24 pm
by thomahawk
Hello all
For weekdays and months to be displayed in german language, I have tried this as suggested in the module help:
{CGCalendar display="list" listtemplate="uebersicht" lang="de_DE"}
But it does not help. Its still showing english names.
The general setting for the website also is German already.
What else can/should I do to make this work?
Regards
Thomas
Re: CGcalendar date language
Posted: Wed Feb 22, 2012 3:02 pm
by thomahawk
Maybe I did not explain it good enough:
My weekdays are shown in english: Monday, etc...
But they should be in German: Montag, etc...
How can I change that?
Greetings
Thomas
Re: CGcalendar date language
Posted: Wed Feb 22, 2012 4:35 pm
by uniqu3
in your config.php set $config['locale'] = 'de_DE'; or similar.
Re: CGcalendar date language
Posted: Wed Feb 22, 2012 4:51 pm
by thomahawk
Thank you. But no, placing $config['locale'] = 'de_DE' in config.php makes no difference.
Who is using a German calendar, and how did you set it right? Should this not already work upon the language setting for CMSMS?
Regards,
Thomas
Re: CGcalendar date language
Posted: Wed Feb 22, 2012 4:55 pm
by uniqu3
Maybe this helps you
http://www.i-do-this.com/blog/59/Find-l ... your-Setup in finding correct locale.
See also comment by Arnoud.
Re: CGcalendar date language
Posted: Wed Feb 22, 2012 5:31 pm
by thomahawk
I am surprised to say (because I strongly believed it would not be a different result from my first try) – it worked!
I created a user defined tag putting in the PHP code system('locale -a');
Letting it run gave out a large list of language-formats, among which I choose de_CH.UTF-8
Then I placed the code into config.php like you said:
$config['locale'] = 'de_CH.UTF-8';
THANK YOU!
Re: [SOLVED] CGcalendar date language format
Posted: Wed Feb 22, 2012 5:37 pm
by uniqu3
It depends on what your host has enabled, setup.
Switching it in backend will give you only de_DE so if it's not supported by server setting it will not work and fall back to default server setting, which in your case was English.
Re: [SOLVED] CGcalendar date language format
Posted: Thu May 10, 2012 9:47 am
by rednose
Thank you so much, this UDT was exactly what I needed.
I had the CGCalendar who putted the days in english and the months in german. config was set on de_DE, and I couldn't check what was wrong.
With your UDT I saw, that this server had a locale de_DE.UTF-8 and the problem was solved.
