Overview of Django Translations

Guiomar Valderrama
Jul 5, 2017 · 1 min read

We recently had an internal talk about Django Translation (see presentation above). It’s mostly an overview of basic functionality, but it helped us realise we could be doing things better.

At the moment, our dev team is in charge of generating translations, so it’s important for us to have a basic understanding of them.

The slides look at how strings can be marked for translating using Django template tags, and methods from django.utils.translation in python code, template html and js.

Some convenient techniques are mentioned, like using context to help in translation, or how to allow translations to have singular and plural forms.

You’ll also find url translations, useful blocktrans options like trimmed or asvar, a brief look at the translation files themselves, and some recommended practices.

Our developer stories

Collection of stories on how we’re learning and using…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store