Multilang not working

Multilang not working

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)
評比平均分數: -
In reply to 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 微笑
In reply to 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.

In reply to 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 微笑
In reply to 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>
In reply to 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"??
In reply to 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 微笑
In reply to 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
In reply to 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