Moodle

Dates do not always follow Course's Forced language setting

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.8.2
  • Fix Version/s: None
  • Component/s: Language
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE

Description

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

Activity

Hide
Koen Roggemans added a comment -

Have you any idea on which os Moodle runs on your university and your personal site?

Show
Koen Roggemans added a comment - Have you any idea on which os Moodle runs on your university and your personal site?
Hide
Joseph Rézeau added a comment -

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

Show
Joseph Rézeau added a comment - 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
Hide
Koen Roggemans added a comment -

There seems to be more wrong there: look at the search box for forum search.

Show
Koen Roggemans added a comment - There seems to be more wrong there: look at the search box for forum search.
Hide
Joseph Rézeau added a comment -

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

Show
Joseph Rézeau added a comment - 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
Hide
Koen Roggemans added a comment -

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.

Show
Koen Roggemans added a comment - 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.
Hide
Koen Roggemans added a comment -

Is this problem still around or can this be closed?

Show
Koen Roggemans added a comment - Is this problem still around or can this be closed?
Hide
Tim Farmer added a comment -

Still an issue. All necessary locales installed to view fr_*.

CentOS release 5.4 (Final)
2.6.18-128.1.10.el5
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4 PHP/5.2.9

Show
Tim Farmer added a comment - Still an issue. All necessary locales installed to view fr_*. CentOS release 5.4 (Final) 2.6.18-128.1.10.el5 Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4 PHP/5.2.9
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: