You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If labels are supposed to be overridden using the alter_semantics hook, then $libraryData->semantics already contains the overrides. Both the semantics structure ($libraryData->semantics) and the translated labels ($libraryData->language) will end up in the browser, where in
When using the
alter_semantics
hook, overriding field labels does only work when the platform is set to English.cause
When loading the editor, the
getLibraryData
functionh5p-editor-php-library/h5peditor.class.php
Lines 376 to 475 in 050a684
is used to gather information to be passed to the browser, among them
h5p-editor-php-library/h5peditor.class.php
Line 393 in 050a684
and
h5p-editor-php-library/h5peditor.class.php
Line 394 in 050a684
If labels are supposed to be overridden using the
alter_semantics
hook, then$libraryData->semantics
already contains the overrides. Both the semantics structure ($libraryData->semantics
) and the translated labels ($libraryData->language
) will end up in the browser, where inh5p-editor-php-library/scripts/h5peditor.js
Line 214 in 757f705
the labels of the semantics will be overridden by the translation labels, thus overwriting the changes that were supposed to be set for the labels.
The text was updated successfully, but these errors were encountered: