Monday, December 26, 2016

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

Thank you!


Uri Even-Chen  
photo Phone: +972-54-3995700
Email: uri@speedy.net
Website: http://www.speedysoftware.com/uri/en/
    

On Mon, Dec 26, 2016 at 1:00 AM, Melvyn Sopacua <m.r.sopacua@gmail.com> wrote:

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1672133.RzSWr4WvZz%40devstation.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMQ2MsHW7MF%3D_r5_X69NpKYSw7KXsP6ohLaW1QZjLK1oGF0_UQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment