Feature Requests
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
[Closed] Moodle-style multilingual content
- Ivan
- Topic Author
- New Member
-
Less
More
13 years 4 months ago - 13 years 4 weeks ago #1
by Ivan
[Closed] Moodle-style multilingual content was created by Ivan
In order to have pieces of content in multiple languages
in Moodle there is multilingual conten filter:
docs.moodle.org/23/en/Multi-language_content_filter
You simply wrap your language specific content into html
tags and within moodle, only content related to active language
is displayed.
AFAIK this filtration is ignored in Joomdle. We have course
titles in 2 languages, Moodle correctly shows only 1 version
related to current language, while Joomle shows both
in Moodle there is multilingual conten filter:
docs.moodle.org/23/en/Multi-language_content_filter
You simply wrap your language specific content into html
tags and within moodle, only content related to active language
is displayed.
AFAIK this filtration is ignored in Joomdle. We have course
titles in 2 languages, Moodle correctly shows only 1 version
related to current language, while Joomle shows both
Last edit: 13 years 4 weeks ago by Antonio Durán.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 4 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Moodle-style multilingual content
Thanks for the suggestion. Other user asked for this some time ago, but other than you two we have not seend requests for this feature.
Anyway, we will try to add it for a future release.
If you are interested in sponsoring development, so it is available sooner, plese write to development@joomdle.com
Anyway, we will try to add it for a future release.
If you are interested in sponsoring development, so it is available sooner, plese write to development@joomdle.com
Please Log in or Create an account to join the conversation.
- Ivan
- Topic Author
- New Member
-
Less
More
13 years 4 months ago #3
by Ivan
Replied by Ivan on topic Moodle-style multilingual content
I guess I just coded it by myself 
Here is the solution:
- First we need to pass information about active language from joomla to moodle webservices. I did it via adding lang=XX parameter to xmlrpc url.
In administrator/components/com_joomdle/helpers/content.php, edit _get_xmlrpc_url
change
to
- Second, we need to pass every piece of text to Moodle formatters . For example, I need course list view be multilingual, I add these transformations:
to list_courses function in auth/joomdle/auth.php
Here is the solution:
- First we need to pass information about active language from joomla to moodle webservices. I did it via adding lang=XX parameter to xmlrpc url.
In administrator/components/com_joomdle/helpers/content.php, edit _get_xmlrpc_url
change
Code:
return $moodle_xmlrpc_server_url;
Code:
$lang = &JFactory::getLanguage();
$lang = explode('-',$lang->_lang);
$lang = $lang[0];
$moodle_xmlrpc_server_url.="&lang=".$lang;
return $moodle_xmlrpc_server_url;
- Second, we need to pass every piece of text to Moodle formatters . For example, I need course list view be multilingual, I add these transformations:
Code:
$c['fullname']=format_string($c['fullname']);
$c['summary'] = format_text($c['summary']);
to list_courses function in auth/joomdle/auth.php
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 4 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Moodle-style multilingual content
Thank you very much for contributing your code. I will work on integrating it to Joomdle as soon as possible.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 4 weeks ago #5
by Antonio Durán
Replied by Antonio Durán on topic Moodle-style multilingual content
Added in R0.91.
Please Log in or Create an account to join the conversation.
- Ivan
- Topic Author
- New Member
-
Less
More
13 years 4 weeks ago #6
by Ivan
Replied by Ivan on topic Moodle-style multilingual content
Thanks!
Will 0.91 be available for J1.5?
Will 0.91 be available for J1.5?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 4 weeks ago #7
by Antonio Durán
Replied by Antonio Durán on topic Moodle-style multilingual content
Thank you for developing it!
No. we have stopped development for J1.5.
We will only release new versions for security or important bugs.
No. we have stopped development for J1.5.
We will only release new versions for security or important bugs.
Please Log in or Create an account to join the conversation.