Issue Details (XML | Word | Printable)

Key: MDL-11634
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Koen Roggemans
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

Dates do not always follow Course's Forced language setting

Created: 07/Oct/07 09:17 PM   Updated: 31/Oct/07 04:15 AM
Return to search
Component/s: Languages
Affects Version/s: 1.8.2
Fix Version/s: None

File Attachments: None
Image Attachments:

1. Schermafdruk_datesbug.png
(7 kB)

2. screenshot-1.jpg
(128 kB)

Participants: Joseph Rézeau and Koen Roggemans
Security Level: None
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
NOTE.- This is a very tricky bug, which does not happen on my local moodle test sites (Windows XP, Apache, etc.) but happens on 2 distant sites: my university and my personal test site at http://rezeau.info/moodle where it can be seen logging in as moodler, password moodler, go to course Dates bug Test.

The attached table screen shot sums up the problem, which only happens with certain settings, including unfortunately the one I have to use for my English courses on an otherwise all French moodle site (my university).
Site language = French; User's Preferred language = French; Site front page language choice = default (French); Course forced language = English. RESULT: dates within the course are displayed in French, not English.
The same bug happens with an all German moodle site and Course forced language = English.
However, there is no such bug with Spanish, and there is no such bug in a ***reverse*** situation where you have Site language = English; User's Preferred language = English; Site front page language choice = default (English); Course forced language = French.

There is a workaround, selecting on the site's front page from the languages dropdown list the course's forced language as the language option for navigating the site. But this is not a valid option for users who have several courses on the same moodle site with different Force language settings.

I am puzzled why this bug should happen a) with some language combinations and not with others and b) why it should happen on some platforms and not on others...

Joseph

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Koen Roggemans added a comment - 07/Oct/07 11:53 PM
Have you any idea on which os Moodle runs on your university and your personal site?

Joseph Rézeau added a comment - 09/Oct/07 05:04 PM
Hi Koen,
1- Here is what the admin of our university site tells me about our moodle site:
Distribution Linux : CentOS release 4.5
Noyau : 2.6.9-55.plus.c4smp
Apache : 2.0.59
PHP : 5.2.2

2- As for my personal site online I am with 1&1 and I do not know how to get that info

3- On my local home site, I use Windows XP, PHP Version 5.2.0, Apache/2.2.3 (Win32) mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0

I should add that on all those moodle sites the locale parameter is empty in :
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.
--------
Joseph


Koen Roggemans added a comment - 27/Oct/07 03:59 AM
There seems to be more wrong there: look at the search box for forum search.

Joseph Rézeau added a comment - 27/Oct/07 06:39 PM
Koen > There seems to be more wrong there: look at the search box for forum search.

This is a separate matter. I am at the moment compiling a list of Moodle modules where there is a language mix-up in the situation explained in my original post. Will post it as a separate bug.

And I have made progress on a solution to MDL-11634 and will post a tentative fix here soon.
Joseph


Koen Roggemans added a comment - 31/Oct/07 04:15 AM
Just a guess: I wonder if this can have something to do with the Moodle detecting the language of your browser and therefore showing the dates wrong.