MDL-68271 core_h5p: implement localization methods for editor
commitf635915137aa73fd1201d185f60fbb05e09a5eb5
authorSara Arjona <sara@moodle.com>
Mon, 30 Mar 2020 10:35:40 +0000 (30 12:35 +0200)
committerSara Arjona <sara@moodle.com>
Fri, 8 May 2020 16:18:24 +0000 (8 18:18 +0200)
treead775b0ae578a70d330c15b7fcf128fabeefaafc
parent36e5a07a59ac88dda261e606792672788dc4c3b9
MDL-68271 core_h5p: implement localization methods for editor

The following methods have been implemented for supporting
content-type translations:
- H5PEditorAjaxInterface.getTranslations. This method is used for
loading the "Text overrides and translations" section.
- H5peditorStorage.getLanguage. This method is used for displaying
the specific fields and messages for each content-type library.
- H5peditorStorage.getAvailableLanguages. This method is used to
get the language list displayed into the "Text overrides and
translations" section.
h5p/classes/core.php
h5p/classes/editor_ajax.php
h5p/classes/editor_framework.php
h5p/classes/helper.php
h5p/tests/editor_ajax_test.php
h5p/tests/editor_framework_test.php
h5p/tests/generator/lib.php
lang/en/cache.php
lib/db/caches.php