On Wed, Jan 22, 2014 at 2:38 PM, Shai Berger <s...@platonix.com> wrote:

> I don't think Django should take responsibility for a 3rd-party package
> which
> decides that some part of a setting should be translatable whether the user
> said so or not.
>
> You might want to take this up with django-cms.


Not exactly true.  Even though my problem was with django-cms, if you grep
django source code for "LANGUAGES"  you will find this templatetag:

# templatetags/i18n.py
 15 class GetAvailableLanguagesNode(Node):
 16     def __init__(self, variable):
 17         self.variable = variable
 18
 19     def render(self, context):
 20         from django.conf import settings
 21         context[self.variable] = [(k, translation.ugettext(v)) for k, v
in settings.LANGUAGES]
 22         return ''

 It is also translating the given language name.  My suggestion is to
update the documentation saying that the developer should use ugettext_lazy
for the language name if they want it translated *or* at least use a
unicode string.

-- 
Henrique Romano

In the face of ambiguity, refuse the temptation to guess.
    -- Tim Peters

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

Reply via email to