How add new language to libraries

Hello. i use h5p in drupal and i want add fa language to it. i can add fa for h5p-editor in module/vendor/h5p-editor-language and this work properly and h5p-editor translated to my language.
But i can't find any way to translate libraries to my language. for example when i add fa.json to MultiChoise libraries in sites/default/files/h5p/MultiChoise/language and translate file my language still is english and i can't changed it.
for translate i try with 2 solution
1- use h5p-cli to add my language file to librarie
2- create fa language file manually from semantic.json file

can anybody help me to explain how can i add new language file to libraries?

BV52's picture

Hi arefen,

This page is a good place to start.

-BV52

Hi

I have a same problem

I cant find any way to translate libraries to my language

Attachments: 

I want translate for persian language

BV52's picture

Hi Amir,

The page I provided above should help you with translating H5Ps.

-BV52

Hi BV52. i read that page and create a pull request in this url.

Isn't there any fast soulution ?

I faced this problem as you. I cannot translate my library in Indian and it really hurts me 

BV52's picture

Hi Joseph,

Following the instructions on the link above should let you create those translations.

-BV52

Hello,

I contributed translations of few content types to Slovene and would need information for our Moodle admin, how to add these translations to Moodle libraries. They are allready merged on master branch in Github.

We tried to update content types in Moodle (like here) and nothing happened. Our translation is still not reachable (e.g. Text overrides and translations).

Do we have to just wait for the new releases of the content types? How often is this?

Thank you.
Best regards,

Miro

BV52's picture

Hi Miro,

I suggest that you wait for the update. It may cause issues if you manually add them locally and a new update is released. We usually release updates once or twice a month depending on several factors (critical bug fix, major updates takes longer etc.).

-BV52

Hello,

We updated H5P (in Moodle) on release 1.20.1 and still do not see Slovenian translations (not even in Text overrides and translations). Could you please direct me to solution? I can not figure out what are we doing wrong :(

Best regards,

Miro

BV52's picture

Hi Miro,

Sorry for the late reply. I checked this in Moodle and everything seems working correctly (screenshot attached). I specifically checked Quiz (Question Set). Are you not seeing the translations for all content types or just specific ones?

-BV

Hello,

No, I cannot see those translations. I attached an example from Single Choice Set. I also tried both types on H5P.org (your tryout environment), where everything seems fine.

It seems that we are really doing something wrong, but cannot figure it out what :(. Thank you for information.

Best regards,

Miro

Attachments: 

Hello BV52,

thank you for your support and a great tool. We made it.

Best wishes,

Miro

BV52's picture

Hi Miro,

I'm glad you were able to make it work and thank you for your contribution.

-BV

otacke's picture

There's a site that makes translating for H5P a little more convenient for those who are not that experienced with git(hub): https://translate-h5p.tk/

Unfortunately, Persian/Farsi is not in the list on the website and start new translation is deactivated. Any hints how I can itranslate interactive video content in Farsi?

New translations are deactivated on the site, I'd like to translate interactive video content in Farsi. Any hints how I could do that?

otacke's picture

Thank you Oliver, Yes I checked the link you provided. I also asked the site admin to add Farsi to the language list so that I can start translating contents in Farsi.

Best,

Mahdi

otacke's picture

Hi Mahdi!

I fear then you will have to wait until Sebastian gets around to it. He is the only one who can help out here.

Best,

Oliver 

Any hints how I could translate interactive video content in Farsi locally? Cause contribution in a translation project takes time to be imported?