This Sunday, I participated in This Week in Django, and tried to give some ideas on Django localization.
Here I'll post some of the ideas of the interview (and some that I missed), for serving as reference:
How to translate your application (quick guide):
-
- In models.py, views.py... convert 'my text in just one language' to ('my text to translate'). Don't forget to import : from django.utils.translation import ugettext_lazy as _
- In templates, convert
Text in english
to{% trans 'Text in many languages' %}
(also this can be done with blocktrans tag)
Things that IMHO should be improved in Django for a better L10n expirience:
-
Finally I want to thank for letting me participate in TWID to Michael Trier, who is a father, husband, software architect, entrepreneur, a great journalist, and a better person. And also to Malcolm Tredinnick, who recommended me to the show (not sure if I deserved the honour), and for his unpayable help and support on my Django work.