[SOLVED] CGcalendar date language format

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

[SOLVED] CGcalendar date language format

Post 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
Last edited by thomahawk on Wed Feb 22, 2012 5:33 pm, edited 1 time in total.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

Re: CGcalendar date language

Post 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
uniqu3

Re: CGcalendar date language

Post by uniqu3 »

in your config.php set $config['locale'] = 'de_DE'; or similar.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

Re: CGcalendar date language

Post 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
uniqu3

Re: CGcalendar date language

Post 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.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am
Location: Zug, Switzerland

Re: CGcalendar date language

Post 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!
uniqu3

Re: [SOLVED] CGcalendar date language format

Post 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.
rednose
Forum Members
Forum Members
Posts: 18
Joined: Fri Jun 26, 2009 3:04 pm

Re: [SOLVED] CGcalendar date language format

Post 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. ;D
Post Reply

Return to “Modules/Add-Ons”