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
Have a course with a unit that has an assignment in it.
Have this waffle flag enabled for the course completion.enable_completion_tracking.
Configure a Due Date for that assignment as shown in the following image:
Have a user enrolled in that course.
When entering the assignment logged in as the user enrolled, you should be able to see the Due Date on top of the assignment content as shown in the screenshot:
When changing the Site Language through the user preferences page
The Due Date should be translated accordingly but only the word Due is translated. The subsection_format and date remain in the same language.
Conditions
The conditions required to trigger the bug are:
completion.enable_completion_tracking
.When changing the Site Language through the user preferences page
The Due Date should be translated accordingly but only the word
Due
is translated. Thesubsection_format
anddate
remain in the same language.Expected Results
Trace
Django Template line of code that renders the
Due Date
Due Date rendered in template
Dates for the unit are handled by custom JS: https://github.com/openedx/edx-platform/blob/master/lms/static/js/dateutil_factory.js . We currently localize the date format but not the actual date (i.e. based on the locale, we might get any of the following formats):
But this part of the string along with the
subsection_format
are never sent through translation.Suggestion
Changing the order of translation (format string, THEN translate instead of translate THEN format) would fix the issue.
The text was updated successfully, but these errors were encountered: