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
Ensure the language from context (NDLA = articles) is set when opening CA to create copies. Edlib (Hub) seems to have gotten this info, as it displays the correct language in the header.
Note: this is the same behavior as when new content is created today -> the language from the article is set within CA + H5P.
Desired solution:
the language selector in Edlib should be set according to article language
the language selector in H5P settings and texts should be set according to article language
Screenshot shows the desired outcome
The text was updated successfully, but these errors were encountered:
@tmkarlsen
In the image above, you had Norwegian Bokmål selected in the NDLA editor, and used the copy function on a Norwegian Nynorsk content, and this should cause the two language selectors to show Norwegian Bokmål?
The translations in the "Texts overrides and translations" section in the H5P are stored in the H5P content. The switching of language is handled by the H5P editor in JavaScript when the user selects a different language from the dropdown. It may be possible to trigger this change after the H5P editor and H5P content are loaded, but a dialog will appear. This may also be possible to handle in JavaScript, but the user experience will not be good.
The other option is to copy the code that does the handling, this however increases the complexity when updating H5P Editor as we must verify that the code hasn't changed.
Copy endpoint flow
Ensure the language from context (NDLA = articles) is set when opening CA to create copies. Edlib (Hub) seems to have gotten this info, as it displays the correct language in the header.
Note: this is the same behavior as when new content is created today -> the language from the article is set within CA + H5P.
Desired solution:
Screenshot shows the desired outcome
The text was updated successfully, but these errors were encountered: