-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Don't scrape unnecessary strings for i18n #3438
Conversation
Result is:
What should be translated: values
So as they are not translated, I think internationalization may be removed from line 128 at all. |
Hmm. Unfortunately we don't yet have a way to do i18n for XModule fields (this is defined in 'common/lib/xmodule/xmodule/video_module/video_xfields.py' yes?) We could do something fancy for this particular file though, if the |
@sarina: "this is defined in 'common/lib/xmodule/xmodule/video_module/video_xfields.py' yes?" |
Yes, those values, from transcript_download_format are shown in LMS. |
@auraz yes, that is the case, see https://edx-wiki.atlassian.net/browse/LMS-2078 However there is a workaround, see what I've done in this PR. What I did was in the |
@auraz this is ready for a second look, please |
thanks for explanation. 👍 |
Use this pattern if you have need to i18n more things from Fields. And don't hesitate to ask me if you encounter any weird issues and need clarification. |
OK, thanks! |
Don't scrape unnecessary strings for i18n
@auraz can you take a look at this?