[mod_hvp] How to produce content in other (Indic) languages?

[mod_hvp] How to produce content in other (Indic) languages?

by Visvanath Ratnaweera -
Number of replies: 5
Picture of Particularly helpful Moodlers Picture of Translators

Could somebody post a tutorial on producing H5P (plug-in) content in other languages, especially in Indic languages? Found this, https://h5p.org/multilingual-content. It says,

  1. In the editor default values for new content are in the active language given that the content type is available for that language. If not the content will use English.
  2. When creating translated versions of content all texts needs to be translated from the original language. H5P normally will support the platforms features for allowing localized content. In Drupal, for instance, H5P supports the Content Translation module.

Point 1. difficult to understand. I guess, it says whether the specific content type being produced has been already translated. In our case, I'm afraid it is not.

What does Point 2 mean? We don't create "translated versions", we create in the target language.

Also found https://h5p.org/node/409592. Still not specific enough, sorry!

We have mod_hvp 1.27.2 and Moodle Moodle 4.5.2 (Build: 20250210)

Average of ratings: -
In reply to Visvanath Ratnaweera

Re: [mod_hvp] How to produce content in other (Indic) languages?

by Oliver Tacke -
Picture of Particularly helpful Moodlers

1. means that the editor will try to set the language to your native language by default, but if there's no translation available for a content type, then English will be used. 

2. means that the H5P integrations (aka plugins) use the translation format that the host platform uses (Moodle uses "PHP lookup files") and that translation files can edited with the respective tools available (e. g. AMOS for Moodle).

Note that the handling of translations is different across H5P integrations, H5P Core and H5P content types.

For the latter, https://snordian.de/2023/01/16/how-can-i-improve-h5p-translations/ might help.

Average of ratings: Useful (1)
In reply to Oliver Tacke

Re: [mod_hvp] How to produce content in other (Indic) languages?

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

Before I take a wrong turn, H5P does not support Moodle language filters, specifically v2, right?

I made this test activity:



This is how it displayed in English:
 
This is the same in Sinhala:
 
So that was the wrong path. I need to take this, https://snordian.de/2023/01/16/how-can-i-improve-h5p-translations/, right?
 
I was testing mod_hvp. Will h5p_activity be different?
In reply to Visvanath Ratnaweera

Re: [mod_hvp] How to produce content in other (Indic) languages?

by Oliver Tacke -
Picture of Particularly helpful Moodlers

H5P's core that renders the editor does not contain any platform specific code (as it is supposed to be platform agnostic) and does not send the texts to the platform to be filtered. Hence, it does not support moodle filters, WordPress filters or anything like that, and hence the behavior is the same for every H5P integration.

Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: [mod_hvp] How to produce content in other (Indic) languages?

by Christophe Coussement -
Hi Visvanath,

Indeed, filters like mlang or FilterCode don’t work inside H5P activities (nor in the Database activity, for that matter), regardless of whether the icon is blue or black.

The workaround I use is to create two separate H5P activities—one for each language—and then use the mlang filter at the course level to switch between them.

Of course, to make this work, you’ll need to embed your H5P content within a Page, Book, or Label, for example.

HTH,

--C
Average of ratings: Useful (1)
In reply to Christophe Coussement

Re: [mod_hvp] How to produce content in other (Indic) languages? [SOLVED]

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Oliver and Christophe

The moment I attached the screenshots it occurred to me that the Moodle filter don't scrape the H5P "canvases". Submitted nevertheless, for confirmation. Yeah, two monolingual activities are OK. The possibility to embed H5P on Moodle activities is a great tip. https://moodle.org/plugins/availability_language also add another dimension.

Matter SOLVED. Right now the ball is in my court, I need to make the people create the content! wink