Language picker for the editor
Add a language picker to the editor, to make it easier to create multi language content.
The language picker must list all languages in the "languages" directory of the content type.
When a language is selected, the strings from that translation will overwrite the current strings in the editor.
The user will get a dialog to confirm that they want to overwrite (in case they have changed to custom strings, so they don't lose current changes).
There should be instructions near the language picker, on how to provide translations (Crowdin if available)
Add "language picker" to the editor, that lists the languages with translations in the "languages" directory, for a content type.
When a language is selected, the strings in the editor are overwritten with the new language.
Seems this has been implemented already, except for item 4 (instructions on how to provide translations).
Probably related to:
I have been playing around with this. trying to test the proper generic way for adding a language dialog to a content package,
and eventually looked at the way it was implemented in the H5P.TimeLine librery:
And added it to other H5P libraries too.
Here is an example of the h5p-multi-choice library:
Some RTL CSS selectors + a language menu (inside the semantics.json) + some initial Hebrew translation.
Also, patched moodle mod/hvp & editor-php & library-php, to be able to initiate the Editor based on the hosting environment (Moodle) current user language, if no language was set by the content (package.h5p)
Plus a later update...
Attaching a sample package.h5p (with language menu + some Hebrew translation + RTL CSS fixes)
Please review, as I would LOVE any feedback so I can see if I am on the right track with this, before implementing it on other H5P Libraries.
This feature hasn't been implemented yet. When it is, the commits will show up on the right side column on this page.