Sunday, December 25, 2016

Re: How do I translate site.name to other languages?

Hi Uri,

 

On Thursday 22 December 2016 19:40:15 Uri Even-Chen wrote:

 

> We have our site.name and other site names (we have 4 sites in Django

> right now) in templates such as base.html. The site is taken from

> model Site (```from django.contrib.sites.models import Site```).

 

Untested, but since Site is a Django Model, have a look at Django Model Translation. I suspect once you get the idea, you'll use it throughout the project.

--

Melvyn Sopacua

No comments:

Post a Comment