Translating Strings

Created on Nov. 10, 2012, 10:59 p.m. by Hevok & updated by Hevok on May 2, 2013, 5:27 p.m.

A given string can be translated into any other language and saved as variable within a template block::

{% load i18n %}
{% trans "a_string" as translated_string %}
{{ translated_string }}
translating.jpg

Tags: template, translation, django
Categories: Tutorial
Parent: Web Framework

Update entry (Admin) | See changes

Comment on This Data Unit