def locale(request):
locale = request.session.get('locale') or getattr(
settings, "LANGUAGE_CODE", None)
if locale and translation.check_for_language(locale):
translation.activate(locale)
return {"locale": locale}
[x] Make sure all magic strings are wrapped in translation.
[x] Remake locale messages using python manage.py makemessages -l ar
[x] Translate the msgid property inside the django.po file where the msgstr is msgstr "" to Arabic and recompile the messages using python manage.py compilemessages
[x] Make datatables language definitions dynamic based on the current locale/language code.
User story
Ensure that Arabic Language is in place throughout the system and Arabic language is the default one for particular deployments.
Acceptance Criteria
Task check list
python manage.py makemessages -l ar
msgid
property inside the django.po file where themsgstr
ismsgstr ""
to Arabic and recompile the messages usingpython manage.py compilemessages