Behaviour of Course full name and Course short name with multilang

Behaviour of Course full name and Course short name with multilang

by Visvanath Ratnaweera -
Number of replies: 4
Picture of Particularly helpful Moodlers Picture of Translators
This is a beginner's question, or rather two:

- Course full name
I have entered the following code in to Course full name:
2. Electronics ඉලෙක්ට්‍රොනික තාක්ෂණය

But the course title remains "2. Electronic Technology ඉලෙක්ට්‍රොනික තාක්ෂණය" in both languages. I expected it to be "2. Electronic Technology" in English and "2. ඉලෙක්ට්‍රොනික තාක්ෂණය" in Sinhala.

In topic titles it works as exepected. What is wrong?

- Course short name
I can not enter multilang code like above in the Course short name. The field is too short!

Any solution?

Moodle 2.7.8+ (Build: 20150521), Theme: Clean.
Average of ratings: -
In reply to Visvanath Ratnaweera

Re: Behaviour of Course full name and Course short name with multilang

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Sorry, I should have protected the <> tag markers! This is the corrected version:

<span lang="en" class="multilang">2. Electronics</span>  <span lang="si" class="multilang">ඉලෙක්ට්‍රොනික තාක්ෂණය</span>
In reply to Visvanath Ratnaweera

Re: Behaviour of Course full name and Course short name with multilang

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Addendum: Found https://docs.moodle.org/27/en/Language_FAQ#How_can_I_provide_course_headings_in_more_than_one_language.3F.

In this site Site Administration > Plug-ins > Filters > Manage filters > Multi-Language content > Active? = On and Apply to = Content and headings. But not helping.
In reply to Visvanath Ratnaweera

Re: Behaviour of Course full name and Course short name with multilang

by Robert Brenstein -
Short name doesn't do multilang (unless you modify the core). That should work for long course name, though. Have you tried copying your string, exactly as it is, into a label field, for example, to see whether it works there? Try removing the spaces between span tags.

In reply to Robert Brenstein

Re: Behaviour of Course full name and Course short name with multilang

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Robert

- Course full name

Goodness! It was the &nbsp; between the span tags!

That also solved my next problem. Course description had the same problem. The culprit: a new line between the span tags.

- Course short name

Not a big deal. I can find a short form for both languages.

Thanks a lot!