Forums | Mahara Community

Support /
Problem with languages


anonymous profile picture
Account deleted
Posts: 7

22 July 2010, 2:37

Here an extract of my errorlogfile:

[Thu Jul 22 02:41:21 2010] [error] [client 66.249.66.58] PHP Fatal error:  Class 'XMLDBgenerator' not found in /srv/www/mahara.elearn.ch/mahara/htdocs/lib/xmldb/classes/generators/mssql/mssql.class.php on line 31
[Thu Jul 22 06:40:57 2010] [error] [client 66.249.66.58] PHP Fatal error:  Call to undefined function  get_config() in /srv/www/mahara.elearn.ch/mahara/htdocs/lib/ddl.php on line 48
[Thu Jul 22 08:04:37 2010] [error] [client 95.108.150.235] [ENV] 3a Your server does not have the mime_magic extension enabled. Mahara may have trouble detecting file types.
[Thu Jul 22 08:04:37 2010] [error] [client 95.108.150.235] Call stack (most recent first):
[Thu Jul 22 08:04:37 2010] [error] [client 95.108.150.235]   * log_message("Your server does not have the mime_magic extension...", 1, true, true) at /srv/www/mahara.elearn.ch/mahara/htdocs/lib/errors.php:123
[Thu Jul 22 08:04:37 2010] [error] [client 95.108.150.235]   * log_environ("Your server does not have the mime_magic extension...") at /srv/www/mahara.elearn.ch/mahara/htdocs/lib/mahara.php:80

 

Many Thanks

Max

 

Iñaki Arenaza's profile picture
Posts: 253

22 July 2010, 6:59

Max, I don't think any of those errors have anything to do with the language problem.

Saludos.
Iñaki.

anonymous profile picture
Account deleted
Posts: 7

22 July 2010, 17:03

Thanks for that.

Good to know that I don't have to search further in this direction.

Cheers

Max

 

anonymous profile picture
Account deleted
Posts: 2

22 July 2010, 2:59

Checking out this problem on my local installation (with Catalan and Spanish language packs) I find that to actually change the language I have to click twice in the change button. The first time you click it change the dropdown menu showing the first row (the site default language) but if you just click again it change the language to the one you selected.

It's a really strange behavior.

I hope this will help to solve the problem.

Best regards.

Yolanda

anonymous profile picture
Account deleted
Posts: 7

22 July 2010, 4:44

Many thanks for this hint.

I tried it out. Unfortunately (with my German Language Pack) it doesn't solve the problem.

 

 

anonymous profile picture
Account deleted
Posts: 338

22 July 2010, 5:35

Hello, I replaced the lib-mahara.php of the v 1.2.3 with the code of v. 1.2.5, as Antonio suggested that the problem may lie in the current_language function, but for me it is working fine, with 1.2.5. (Spanish and English packages) Maybe the problem lies in other parts of the code. Regards
Iñaki Arenaza's profile picture
Posts: 253

22 July 2010, 6:39

This is "normal". When you submit the form, it's actually an AJAX request that submits the new values (to verify them, save them in the db, etc.). So the page is only partially reloaded, and some parts remain form the old page. The old parts were rendered with the previous language, so that's what you see that behaviour.

As soon as you click on any part that provokes a page load, you get the contents in the new language.

Saludos.
Iñaki.

anonymous profile picture
Account deleted
Posts: 808

22 July 2010, 17:20

Yeah, we really need to force a reload of the page whenever the language is changed for logged-out users.  I've done this on master, so it should now behave correctly on 1.3.0b2, but I noticed I never made the change to the 1.2 series.  I've just added it now so it'll be in 1.2.6.

Just this change, for those in a hurry:

http://gitorious.org/mahara/mahara/commit/c3a420e99111d4f2630ce1afb481b2a7f66ab6ba

22 July 2010, 12:31

Hello I have had the same problem when I upgraded the first time from 1.1.x to 1.2. In 1.2 the languages files are in a different place (in the data folder). After my upgrade I noticed that there was a conflict between old location of langpacks (all over the system) and the new language pack folder. In one of my instance of mahara I have proceeded a new installation from sratch and the diff languages packs reworked correctly. In a second one I removed by hand all previous Lang files and it rewroked as well. Hope that helps D Jan

anonymous profile picture
Account deleted
Posts: 7

22 July 2010, 16:58

Thank you for the hint.

I also tried with a new installation. Did you also rebuild the database? I only reinstalled the files from scratch and this didn't solve the problem.

Cheers

Max