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
Go to WordPress Dashboard > Loco Translate > Plugins > LifterLMS > New Language. Set Choose a language: > WordPress language: to English (United States). And set Choose a location: to Custom.
Translate "Courses" (Admin menu name), to "My Courses". This works as you can see in this video.
Now, translate ""Course Information Options" to "My Course Information Options Test". This does not work, as you can see in this video.
Expected Behavior
""Course Information Options" must be translatable, as well as other strings in libraries/lifterlms-blocks/assets/js/llms-blocks.js (e.g., Display Estimated Time, Display Difficulty, Display Tracks, etc)..
Actual Behavior
""Course Information Options" did not translate. Other strings in libraries/lifterlms-blocks/assets/js/llms-blocks.js also did not translate (e.g., Display Estimated Time, Display Difficulty, Display Tracks, etc).
This issue has be recreated:
Locally
On a staging site
On a production website
With only LifterLMS and a default theme
The text was updated successfully, but these errors were encountered:
dominiquemariano
changed the title
Strings in libraries/lifterlms-blocks/assets/js/llms-blocks.js does not translate.
Strings in libraries/lifterlms-blocks/assets/js/llms-blocks.js do not translate.
Sep 25, 2023
Removing the check for file existence seems to fix the translation string loading: c35516e
In Loco Translate, the existing translation doesn't seem to be showing for me (ie. es_ES), but if I put a translation in and save, it now shows in the editor along with already translated strings:
As a note to self, the Course Information Options block is disabled when trying to add it to an existing course.
We also may not need to try loading in all the directory options. From the Block Editor documentation, it seems loading the plugin directory should be enough.
Reproduction Steps
Loco Translate
.WordPress Dashboard > Loco Translate > Plugins > LifterLMS > New Language
. SetChoose a language: > WordPress language:
toEnglish (United States)
. And setChoose a location:
toCustom
.Admin menu name
), to "My Courses". This works as you can see in this video.Expected Behavior
""Course Information Options" must be translatable, as well as other strings in
libraries/lifterlms-blocks/assets/js/llms-blocks.js
(e.g.,Display Estimated Time
,Display Difficulty
,Display Tracks
, etc)..Actual Behavior
""Course Information Options" did not translate. Other strings in
libraries/lifterlms-blocks/assets/js/llms-blocks.js
also did not translate (e.g.,Display Estimated Time
,Display Difficulty
,Display Tracks
, etc).This issue has be recreated:
The text was updated successfully, but these errors were encountered: