|
Koen Roggemans comment stating that this is not a very useful feature is wrong. I'd say its a not very useful implementation. Having the site come up with the default language based on a persons browser is a very good thing, having it so that you cant control it is a bad thing. I'm an English administrator for an all French site. I need the Administration pages to be in English so I can administrate the site with out learning the language. The site itself is not supposed to have a drip of English in it as it's a french school in Canada. So I need to override this behavior of browser language. Otherwise I'd love the feature of using the Browser language! Now I know how to operate diffs and patches but it's not something that every one knows how to do or has the ability to do. For those of you that have to manually apply the above file... Locate the section of code in the files shown inside the text and add (Inserts) the code followed by + signs. Don't forget to remove the leading plus signs! I'd copy paste and remove the plus signs. This will make sure you don't get any typos. For example in the 1.8 file given above find the section at the end that reads: index bac5fed..427c0b7 100644 + if (empty($CFG->langbrowser)) {
+ // We prefer configured site default language over browser language.
+ return;
+ } Now I mention this exact section in the code as it is really the only confusing addition to be made out of the changes required. P.S This issue has been fixed in
So closing now. Thanks to everybody! Saludos. Iñaki. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I reassign it to moodle.com.
I've read about this behaviour somewhere, but can't remember where, which is not very useful.