Multilang not working

Multilang not working

by Jay S -
Number of replies: 9
On the home page, I have a short blurb about the site in the summary of section 1.

I included the following:

<link lang="de" format="auto">
blabla
</link>

In addition to that one, a english one was included. Why will this not work. It displays them both (without the link tag)
Average of ratings: -
In reply to Jay S

Re: Multilang not working

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Jason,

Have you enabled the filter under "Administration/Filters"?

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Multilang not working

by Jay S -

I sure have.

I'm running moodle1.4, it already had multilang. All I have to do is add it to the filters in use. This is correct?

The reason I ask the above, is because I read a old read me file which said to put a line of code in the config.php file.

In reply to Jay S

Re: Multilang not working

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Oh, you can forget that idea, Moodle detects and uses the filter automatically!

About your problems with the multilang filter, current implementation has some limitations about the type of contents that is able to control. Some HTML structures break it (specially if they contain unclosed tags).

A new, improved, multilang filter is available from http://moodle.org/download/modules/#filters it will be included officially in Moodle's next release but you can download, install and test it.

Feedback will be welcome...of course.

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Multilang not working

by Jay S -
Downloaded and installed the new version, no go.

I read somewhere that the multilang doesnt work everywhere.

Im using it on the homepage in summary of section 1. Below is a example of how Im using it.

<table><tr><td align=center>HELLO</td></tr></table
<p>
blblalbllalbblablba
</p>
<link lang="de" format="auto">
german go blalbla
</link>
In reply to Jay S

Re: Multilang not working

by Jay S -
wow, I figured it out. I was using <link> tags.

One more question, format="auto" can I put format="html"??
In reply to Jay S

Re: Multilang not working

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Then, is it working now? What do you get?

About your format question, multilang filter simply ignore it. Moodle's format popup will decide it!

Ciao smile
In reply to Jay S

Re: Multilang not working

by Ronaldo Reis Jr. -
Hi,

I try to use the multilang filter, but it dont work for me.

I make a label with:

<lang="pt_br">
Teste
</lang>
<lang="en">
Test
</lang>

But in browser the text is empty.

I'm using the last version of moodle with the last version os multilang filter.

What is the problem.

Thanks
Ronaldo
In reply to Ronaldo Reis Jr.

Re: Multilang not working

by Sebastien M. -
Hi Ronaldo:

The multilang tags should be written like this:

<span lang="pt_br" class="multilang">
Teste
</span><span lang="en" class="multilang">
Test
</span>


Seb