MDL-68227 core_h5p: localize H5P editor strings
commita42a9ad997bf0a08e94d050a7d96c08f1ac7a5da
authorSara Arjona <sara@moodle.com>
Thu, 26 Mar 2020 12:38:27 +0000 (26 13:38 +0100)
committerSara Arjona <sara@moodle.com>
Tue, 12 May 2020 14:39:42 +0000 (12 16:39 +0200)
treeb8256904b180271bbc736872eecb6a80afdda999
parent206e179df5757db226cd1d24cd525fc5073f7fcd
MDL-68227 core_h5p: localize H5P editor strings

H5P editor has a folder with all supported languages in JS files.
A mechanish has been added to let users to translate them using AMOS.
That's how the translations are managed (the order how they are processed):

- If there a JS file for a language, it's loaded.
- If a string has been translated in Moodle (they are placed in
h5plib_vXXX), it will override strings loaded from the JS file.
h5p/classes/editor.php
h5p/classes/helper.php
h5p/classes/local/library/autoloader.php
h5p/classes/local/library/handler.php
h5p/h5plib/v124/joubel/editor/readme_moodle.txt
h5p/h5plib/v124/lang/en/h5plib_v124.php
h5p/tests/editor_test.php
h5p/tests/local/library/handler_test.php [new file with mode: 0644]