Tracker: Statutory declaration field label isn't translated into other languages
Prerequisites
Student should have basic knowledge of the Django framework. Having some Tracker tasks completed before taking this one is recommended.
Problem
If you try to create a task in a topic that requires statutory declarations (you can enable that in admin interface, go to Topics, select/create one and make sure //Require statutory declaration// is checked), check the "Did you travel by car" box, you'll see Statutory declaration headline is stil in English, regardless the language of the interface.
If you try it in shell, everything works correctly:
$ ./manage.py shell
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.utils.translation import activate
>>> from django.utils.translation import gettext as _
>>> activate('cs')
>>> _('Statutory declaration')
'Čestné prohlášení'
>>>
$
Criteria
You should investigate why Tracker misbehaves. If you're able to find a fix, please upload a patch to Wikimedia Gerrit against wikimedia-cz/tracker
.
For this task to be considered completed, you need to show a genuine effort to investigate the issue. You should keep notes about what you tried at the phabricator task, so in case you're not successful, others don't need to repeat your work.
Materials
- Tracker in production
- Test Tracker version - you can play with Tracker freely here
- Codebase