-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting language of course for Google Translate #499
Setting language of course for Google Translate #499
Comments
The _defaultLanguage of the config.json may help. You should just need to set it to We also have this readme and tooling on translations and a plugin for multi language courses called adapt-contrib-languagePicker Spoor, this extension, is really only for implementing the SCORM API to communicate with an LMS. |
I know about the _defaultLanguage in the config.json but that doesn´t fix the problem. Maybe it fires too late? Maybe Chrome checks the lang-attribute with javascript turned off. If i manually change the lang-attribute in the index_lms.html from en to sv all is working as expected. |
Ok, cool. References: I'm going to move this issue to adapt-contrib-core and have a brief look. |
Please try the two pull requests attached. |
Works perfectly |
Could you please mark your satisfaction on both prs? We have a 3 review protocol to get them merged. |
🎉 This issue has been resolved in version 6.45.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Subject of the issue/enhancement/features
index_lms.html contains and is not reflecting the language of the course and Chrome translates the course with "wrong words" when certain settings is used.
Your environment
Steps to reproduce
Create a course in Swedish. Use for example the Swedish word "Hat" (Meaning hate).
In Chrome (chrome://settings/languages) activate Google Translate. Set Translate to Swedish. Add English to the list of languages that should be translated automatically.
Expected behaviour
The example swedish word "Hat" should still show up as the swedish word "Hat".
Actual behaviour
The swedish word "Hat" is translated to "Hatt" (Its also a swedish word meaning hat. The thing you wear on your head).
This translation can be difficult to find in a long course. Most of the words seems just fine.
Suggestion
The lang-attribute should reflect the language setting of the course or a separate setting in adapt-contrib-spoor.
The text was updated successfully, but these errors were encountered: