Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.5
-
Fix Version/s: 1.9.6
-
Component/s: Language
-
Labels:None
-
Environment:N/A - Tested on Server 2003 Apache and Wamp Apache
-
Database:Any
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
When doing the following
- Log in as admin
- Go to administration
- Language
- Language editing
- Edit words or phrases
- Countries.php
- Find Taiwan, Prov...
- Remove the ', Prov...' bit
- Press 'Save countries.php'
Here the differences start. On the live server it says
Changes saved (C:\data\languagehouse\moodledata/lang/en_utf8_local/countries.php)
However it also says
No missing strings
On the test server it says
Changes saved (C:\wamp\moodledata/lang/en_utf8_local/countries.php)
However it also says
Number of missing strings: 1
Taiwan is highlighted green as a missing string and DOES have the new edited text.
The trouble is that this still doesn't change the country list in edit profile.
[What needs to change]
In moodlelib.php around line 5739
if (!file_exists($CFG->dirroot .'/lang/'. $lang .'/countries.php') &&
!file_exists($CFG->dataroot.'/lang/'. $lang .'/countries.php')) {
Must change to
if (!file_exists($CFG->dirroot .'/lang/'. $lang .'/countries.php') &&
!file_exists($CFG->dataroot.'/lang/'. $lang . '_local' . '/countries.php')) {
OR
When creating the folder in moodledata\lang the file should be called en_utf8 instead of en_utf8_local
Some context to this bug is missing as it was copied from a forum. Some background - http://moodle.org/mod/forum/discuss.php?d=117990#p560021