Issue Details (XML | Word | Printable)

Key: MDL-11635
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jon Papaioannou
Reporter: Joseph Rézeau
Votes: 1
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Calendar months not displayed in actual language

Created: 07/Oct/07 09:39 PM   Updated: 10/Jan/09 06:23 PM
Return to search
Component/s: Calendar, Languages
Affects Version/s: 1.8.2
Fix Version/s: None

File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(15 kB)

Participants: Brian King, Jon Papaioannou, Joseph Rézeau, Martin Dougiamas and Thierry Bagnoud
Security Level: None
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
Calendar months not displayed in actual language.
You can test it at my moodle test site http://rezeau.info/moodle (no need to login) by switching to various languages.
Calendar months correctly displayed for : English, Deutsch, French
Incorrectly displayed for Español, Português, Serbian language (both Latin and Cyrillic).
This looks like an old bug I reported back in 2004!
It may be related to recently reported bug MDL-11634
Joseph

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas added a comment - 08/Oct/07 01:14 PM
This uses locales on your operating system ... what is your setup?

Joseph Rézeau added a comment - 10/Oct/07 04:06 PM
Hi Martin,

I still have no idea what "locales on your operating system" means. The wrong month calendar display is an old bug (see this post: http://moodle.org/mod/forum/discuss.php?d=31320#p149970) and I am surprised it has still not been resolved in Moodle.

In that same thread I asked what exactly is meant by "locale on your system" and my question has remained un-answered in more than 2 years...

Please, please, can you tell me once for all where exactly I should look for that infamous LOCALE setting. Is it somewhere in the Moodle files? In the Apache files?

And anyway I am surprised that the correct display of the MONTH name should depend on that parameter, when all other things are displayed according to the selected language.

Just one more thing, I find the explanation for the locale setting in Admin->language settings rather confusing:
------------------------------
Sitewide locale locale
Choose a sitewide locale - this will override the format and language of dates for all language packs (though names of days in calendar are not affected). You need to have this locale data installed on your operating system (eg for linux en_US.UTF-8 or es_ES.UTF-8). In most cases this field should be left blank.
----------------------------
What does "In most cases this field should be left blank." mean? Or rather, what are the cases where it should NOT be left blank?
Finally, on my test sites (and on my university site) the locale setting IS left blank.

I hope we can find a final answer to this language problem which has been plaguing us for so long...

Joseph
In fact, I find the reverse to be true


Brian King added a comment - 19/Sep/08 06:30 PM
I'd like to add some information. This is for a Moodle 1.9.2+ (Build: 20080917) running on a debian (virtual) server.

Only english month names were being displayed, regardless of language selected by user (Spanish, English, French, German, or Italian).

On the server, "locale -a" showed:
...
en_IN.utf8
de_CH.utf8
fr_CH.utf8
...

I did a "dpkg-reconfigure locales" and added the following locales:
de_DE.utf8
fr_FR.utf8
it_IT.utf8
es_ES.utf8

After restarting apache and disabling then re-enabling language text caching in Moodle (not sure if either or both of these was necessary), the month in the calendar was displayed correctly; i.e. October is Oktober if the user has selected Deutsch, octobre if the user has selected Francais, etc.

So it seems that the "default" country locale for a given language needs to be installed. Or the locale that matches the language pack that the user is currently using?

Brian


Brian King added a comment - 19/Sep/08 07:36 PM
Note that it is not clear for most of the Moodle language packs what locale needs to be installed on the server. Most of them are just the two letter language code (e.g. "de" for German). How would we know from that that we need to install the de_DE.utf8 locale?

Thierry Bagnoud added a comment - 10/Jan/09 06:23 PM
For information : for Swiss French

Moodle 1.9.3+

Debian Etch

/etc/locale.gen = fr_CH.UTF-8 UTF-8

> locale -a

fr_CH.utf8

> dpkg-reconfigure locales -> add language pack fr_FR.utf8

> locale -a

fr_CH.utf8
fr_FR.utf8

restart Apache

and it's display date in french