multilang problem

multilang problem

Daniel Schimrik -
回帖数:5
Hello,

I am currently trying to create a multilingual feedback. The different languages (feedback title) are shown correctly in the navigation bar and also in the menu (currently placed in HTML-block).

What is not working correctly is the feedback title, if you click on this feedback. Then you find the title in all languages. (see screenshot)
Checking the html-source the title is in multilang style, but seems not to be recognized by Moodle as multilang. The text under the title is in the correct language.

How can I have the title also be translated correctly?

regards, Daniel

附件 feedback-multilang.jpg
回复Daniel Schimrik

Re: multilang problem

Anthony Borrow -
Core developers的头像 Plugin developers的头像 Testers的头像
In Moodle 1.9 under administration there is an option in filter settings to filter all strings. If you turn this on you will find that it translates the titles and headings for you. Let me know if that works for you. For more details see:

http://docs.moodle.org/en/Multi_language_content#Course_summary_and_title_tags

Peace - Anthony
回复Anthony Borrow

Re: multilang problem

Daniel Schimrik -
Hello Anthony,

I am running final Moodle 1.9 and feedback version 2007102603.

The "filter all strings" setting is activated in my installation. It translates many things, but not everything. As I could see, html-block titles and also this feedback-issue were not filtered by this setting.

But I think its nearly the same problem I had with html-block and multilang (see: http://moodle.org/mod/forum/discuss.php?d=93491), so the fix should be the nearly the same?

Regards, Daniel
回复Daniel Schimrik

Re: multilang problem

Daniel Schimrik -
Hello,

I found a solution that works fine for me:
Edit file /mod/feedback/view.php at line 90:


original version: print_heading($feedback->name);
changed into: print_heading(format_text($feedback->name));


regards, Daniel
回复Daniel Schimrik

Re: multilang problem

Andreas Grabs -
Core developers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 Translators的头像
Hi Daniel,

thank you for find out this. I have put this in all files with the print_heading(...) lines.

Have a good weekend!
Andreas