Is there a way to have all content change with language selection?
由Todd Anderson發表於
Number of replies: 4
In reply to Todd Anderson
Re: Is there a way to have all content change with language selection?
由koen roggemans發表於
Yes there is a way 
The tool is called the multilang filter and can be enabled in admin -> filters
You use it by putting the different languages between special tags in one resource, label ...
The documentation should come here: http://docs.moodle.org/en/Filters#Multi-language_content
Any takers to write it? I'll take a quick look if I can find something already...
The tool is called the multilang filter and can be enabled in admin -> filters
You use it by putting the different languages between special tags in one resource, label ...
The documentation should come here: http://docs.moodle.org/en/Filters#Multi-language_content

Any takers to write it? I'll take a quick look if I can find something already...
In reply to koen roggemans
Re: Is there a way to have all content change with language selection?
由David McDermott發表於
Can I change the language of the front page description area?
I'm using 1.6 beta, I have the following variables enabled:
lang menu=Yes
langcache=No
In Filters I have Multi-Language Content at the top of a list with an eye next to it and have the filter setting:
Filter all strings=Yes
The html (I'm just using simple html) I have in the front page description box has 2 blocks of text thus:
<lang lang="en"> my html & text1 here </lang>
<lang lang="fr"> my html & text2 here </lang>
The problem I have is that BOTH text blocks (text1 and text2) display all the time, regardless of which language I choose from the dropdown language selector; it appears the lang tags are being ignored
Am I doing something wrong/missing something obvious? Is it possible to make the text in the front page description box change language with the language selection?
I'd be happy to help with the documentation if I can .. but I'd need some simple working examples ...
I'm using 1.6 beta, I have the following variables enabled:
lang menu=Yes
langcache=No
In Filters I have Multi-Language Content at the top of a list with an eye next to it and have the filter setting:
Filter all strings=Yes
The html (I'm just using simple html) I have in the front page description box has 2 blocks of text thus:
<lang lang="en"> my html & text1 here </lang>
<lang lang="fr"> my html & text2 here </lang>
The problem I have is that BOTH text blocks (text1 and text2) display all the time, regardless of which language I choose from the dropdown language selector; it appears the lang tags are being ignored
Am I doing something wrong/missing something obvious? Is it possible to make the text in the front page description box change language with the language selection?
I'd be happy to help with the documentation if I can .. but I'd need some simple working examples ...
In reply to David McDermott
Re: Is there a way to have all content change with language selection?
Hi David,
I've copied and pasted your code in my test site and, running Moodle 1.6 beta, I'm able to switch contents properly from the lang menu.
More yet, "Filter all strings" is not needed for that exact text.
Could it be possible that such text was cached before enabling filters? Just wondering...
Ciao
I've copied and pasted your code in my test site and, running Moodle 1.6 beta, I'm able to switch contents properly from the lang menu.
More yet, "Filter all strings" is not needed for that exact text.
Could it be possible that such text was cached before enabling filters? Just wondering...
Ciao
In reply to Eloy Lafuente (stronk7)
Re: Is there a way to have all content change with language selection?
由David McDermott發表於