-
Notifications
You must be signed in to change notification settings - Fork 197
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
Some texts are not translated #6351
Comments
I added another one: texts of "break point" |
Note that some of these strings are in Sensei Pro, not Sensei LMS. |
As for the "Contact Teacher" button, it is a normal block with a title. The title on it is translatable. But is translated at the moment of adding the block. So if the user switches language after adding the block, the title remains in the original language. I see two ways to fix the button: 1) remove the old button and add a new one immediately; 2) just update the text on the button in the Editor. -- At the moment, I'm looking at Interactive Block. And it looks tricky. There is a translation for the text, but is not used for some reason. So I'm looking for that reason. |
I was trying to find a clue why title and description are not translated in some cases, but didn't make progress. |
As we could notice in that Video block, they already call the Here is the block type switcher (Transform to), no translation function here: https://github.com/WordPress/gutenberg/blob/1d9288443b38d254092f38d0d818f96be22346ad/packages/editor/src/components/block-switcher/index.js#LL109C1-L109C1 And also no call to the translation function later in the block type list: https://github.com/WordPress/gutenberg/blob/1d9288443b38d254092f38d0d818f96be22346ad/packages/editor/src/components/block-types-list/index.js#LL74C1-L74C1 |
Here are PR that fix title and description translations in Sensei LMS and Sensei Pro. As for Points, I couldn't reproduce the issue. I set Russian translation for corresponding strings for "sensei-lms" and "sensei-pro" domains via Loco Translate: |
@merkushin Only "Point" and "Points" were fixed. |
@amroland Glad to hear the problem with points was solved for you. |
Support References This comment is automatically generated. Please do not edit it.
|
Solution for this issue is documented here. |
Reopening this issue as we're going to have to revert the fix that we made in #7643 as it introduced a regression. |
Closing as we no longer need to revert this as the regression was fixed in #7669 without affecting translations. |
Note: A solution for this issue has already been documented here.
Some text does not translate even after running the CLI.
Texts are the following:
"Contact Teacher" on Learning mode screen:
"Interactive Video - Timeline"
"Interactive Video"
"Interactive Video Block."
"Course Actions" icon name
"Quiz"
"Evaluate progress and strengthen understanding of course concepts."
"Answers"
"Question Answers."
"Point"
"Points"
"Break Point"
"Break Point for the Interactive Video Block."
"Accordion"
PHP / WordPress / Sensei LMS version
PHP 7.4.26
WordPress 6.1.1
Sensei LMS Version: 4.9.1 | Sensei Pro Version: 1.9.1 - Sensei LMS Version: 4.15.1 | Sensei Pro Version: 1.15.1
The text was updated successfully, but these errors were encountered: