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
[SOLVED] CGcalendar date language format
[SOLVED] CGcalendar date language format
Last edited by thomahawk on Wed Feb 22, 2012 5:33 pm, edited 1 time in total.
Re: CGcalendar date language
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
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
in your config.php set $config['locale'] = 'de_DE'; or similar.
Re: CGcalendar date language
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
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
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.
See also comment by Arnoud.
Re: CGcalendar date language
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!
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
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.
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
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.
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.
