diff --git a/dojo/locale/en/LC_MESSAGES/django.po b/dojo/locale/en/LC_MESSAGES/django.po index 427ee4d505b..d294e02631e 100644 --- a/dojo/locale/en/LC_MESSAGES/django.po +++ b/dojo/locale/en/LC_MESSAGES/django.po @@ -4964,3 +4964,23 @@ msgstr "" #: dojo/utils.py msgid "Home" msgstr "" + +#: dojo/templates/dojo/calendar.html +msgid "Previous month" +msgstr "" + +#: dojo/templates/dojo/calendar.html +msgid "Next month" +msgstr "" + +#: dojo/templates/dojo/calendar.html +msgid "Month preview" +msgstr "" + +#: dojo/templates/dojo/calendar.html +msgid "Week preview" +msgstr "" + +#: dojo/templates/dojo/calendar.html +msgid "Day preview" +msgstr "" diff --git a/dojo/templates/dojo/calendar.html b/dojo/templates/dojo/calendar.html index d2d2ae84d1c..f7d96cd058e 100644 --- a/dojo/templates/dojo/calendar.html +++ b/dojo/templates/dojo/calendar.html @@ -1,5 +1,6 @@ {% extends 'base.html' %} {% load static %} +{% load i18n %} {% block content %} {{ block.super }} @@ -75,7 +76,15 @@ }, {% endfor %} {% endif %} - ] + ], + viewRender: function(view, element) { + // Updating aria-label attributes calendar switches after the view is rendered + $('.fc-prev-button').attr('aria-label', '{% trans "Previous month" %}'); + $('.fc-next-button').attr('aria-label', '{% trans "Next month" %}'); + $('.fc-month-button').attr('aria-label', '{% trans "Month preview" %}'); + $('.fc-basicWeek-button').attr('aria-label', '{% trans "Week preview" %}'); + $('.fc-basicDay-button').attr('aria-label', '{% trans "Day preview" %}'); + } }); });