- Use the following commands, replacing your string here with the string that you want to test.
- Obs.:
shell_plus
is provided by django-extensions
python manage.py shell_plus
from django.utils.translation import activate, get_language_info, ugettext as _
get_language_info('fr')
activate('fr')
print(_("your string here"))