Forums | Mahara Community
Support
/
Wrong language on login
27 June 2011, 6:17
I'm having an issue with my Mahara 1.4.0 installation. The default language for the site as been set as Portuguese, but upon the login of any user the page shows up as english, after this if the user refresh or click on any link it will show up correctley in portuguese, but on entry it always shows in english. I also downloaded other language packs, and the same situation is ocurring with other languages. I've tested this both in my live server and on a VM server. Does anyone has any solution for this?
29 June 2011, 3:02
Hi all,
!sup,I got same problem with French language here. After a connection, the default language set to French doen't appear and the whole site is in English instead. The user needs to reload the page to fix this problem. Both on a local installation and an online test plateform.
Thanks for your help.
Regards.
29 June 2011, 5:39
After some time reading the forums and looking at the code, I've managed to solve it, just coment line 925 in /lib/mahara.php, it contains "static $lang". At least in my case it solved this issue
29 June 2011, 6:40
I will say that we all have the same problem. I think it's due to the cache. Flushing the cache with F5 or relaoading the page usually makes the language change.
If you think this is a bug, don't hesitate to put a bug report into the bug tracker (mahara.org/tracker)
Cheers,
-dajan
29 June 2011, 19:59
Sorry about this. Heinz filed a bug about this a while ago, and I think it may be the same problem. Hopefully it's fixed on master already, but it's more widespread than I thought, so I think we should try to get the fixes into 1.4.1.
https://bugs.launchpad.net/mahara/+bug/787123
https://gitorious.org/mahara/mahara/commit/9ca6bb553673486287bba8000e18c7027b8ad13f
https://bugs.launchpad.net/mahara/+bug/800512
https://gitorious.org/mahara/mahara/commit/966e804bb39e2151f00dbb4a7881994139fc7288