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?