Multilang not working

Multilang not working

Jay S -
回帖数: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)
回复Jay S

Re: Multilang not working

Eloy Lafuente (stronk7) -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 Testers的头像
Hi Jason,

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

Ciao 微笑
回复Eloy Lafuente (stronk7)

Re: Multilang not working

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.

回复Jay S

Re: Multilang not working

Eloy Lafuente (stronk7) -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 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 微笑
回复Eloy Lafuente (stronk7)

Re: Multilang not working

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>
回复Jay S

Re: Multilang not working

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

One more question, format="auto" can I put format="html"??
回复Jay S

Re: Multilang not working

Eloy Lafuente (stronk7) -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 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 微笑
回复Jay S

Re: Multilang not working

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
回复Ronaldo Reis Jr.

Re: Multilang not working

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