- Posts: 17
How To / General
How to maintain Joomla language setting in Moodle?
- TruckingHR
- Topic Author
- Offline
- New Member
-
Less
More
10 years 6 months ago - 10 years 6 months ago #1
by TruckingHR
How to maintain Joomla language setting in Moodle? was created by TruckingHR
Hello, I have created a joomdle site with two languages (english/french). Both languages function in Joomla and Moodle individually, but when viewing a Moodle window inside Joomla the language always defaults to moodle's preferred language for that user. How can I have Moodle match the language selected in Joomla?
Last edit: 10 years 6 months ago by TruckingHR.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
10 years 6 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic How to maintain Joomla language setting in Moodle?
Hi.
I don't think I have worked with any multi lang sites in Joomla 3, so I cannot tell you much.
What Joomdle does is pass along the lang variable to Moodle.
I have done some simple tests at your site, and this seems to work:
45.79.167.134/joomla/index.php/fr-ca/?op...w=wrapper&lang=fr_ca
while this doesn't:
45.79.167.134/joomla/index.php/fr-ca/?op...w=wrapper&lang=fr-ca
So, maybe you can change your language string in joomla, to be fr_ca instead of fr-ca.
I think that could make it work, although I am not sure.
I don't think I have worked with any multi lang sites in Joomla 3, so I cannot tell you much.
What Joomdle does is pass along the lang variable to Moodle.
I have done some simple tests at your site, and this seems to work:
45.79.167.134/joomla/index.php/fr-ca/?op...w=wrapper&lang=fr_ca
while this doesn't:
45.79.167.134/joomla/index.php/fr-ca/?op...w=wrapper&lang=fr-ca
So, maybe you can change your language string in joomla, to be fr_ca instead of fr-ca.
I think that could make it work, although I am not sure.
Please Log in or Create an account to join the conversation.
- TruckingHR
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
10 years 6 months ago #3
by TruckingHR
Replied by TruckingHR on topic How to maintain Joomla language setting in Moodle?
Hello. By adding '&lang=(lang of my choice)' to the url, I am able to control the display language of moodle. However, joomdle is not appending this variable automatically. Unless I add that string to the url, it does not appear on it's own. How do I resolve this? Thanks
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
10 years 6 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic How to maintain Joomla language setting in Moodle?
Can you set SEF off to see real URLs so I can know how lang is being set?
Please Log in or Create an account to join the conversation.
- TruckingHR
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
10 years 6 months ago #5
by TruckingHR
Replied by TruckingHR on topic How to maintain Joomla language setting in Moodle?
Hello, the full url when viewing a moodle course is:
45.79.167.134/joomla2/index.php?option=c...index%200&lang=en_ca
45.79.167.134/joomla2/index.php?option=c...index%200&lang=en_ca
Please Log in or Create an account to join the conversation.
- TruckingHR
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
10 years 6 months ago #6
by TruckingHR
Replied by TruckingHR on topic How to maintain Joomla language setting in Moodle?
I was able to sync the language in moodle with joomla by changing the URL language codfe for french from 'fr' to 'fr_ca'.
I assume this is because Moodle uses the fr_ca language pack and by not configuring joomla to use 'fr_ca' as the language url causes an error.
I assume this is because Moodle uses the fr_ca language pack and by not configuring joomla to use 'fr_ca' as the language url causes an error.
Please Log in or Create an account to join the conversation.
- TruckingHR
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
10 years 6 months ago #7
by TruckingHR
Replied by TruckingHR on topic How to maintain Joomla language setting in Moodle?
Can anyone comment on what the XML-RPC error embedded in the URL means?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7906
10 years 6 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic How to maintain Joomla language setting in Moodle?
The error is saying web service response was malformed.
Is system check giving all ok?
Is system check giving all ok?
Please Log in or Create an account to join the conversation.