#4030: internationalization - auto translation of LANGUAGES
-------------------------------------+--------------------------------------
   Reporter:  [EMAIL PROTECTED]    |                Owner:  hugo                
     Status:  new                    |            Component:  
Internationalization
    Version:  SVN                    |           Resolution:                    
  
   Keywords:  LANGUAGES settings.py  |                Stage:  Accepted          
  
  Has_patch:  0                      |           Needs_docs:  0                 
  
Needs_tests:  0                      |   Needs_better_patch:  0                 
  
-------------------------------------+--------------------------------------
Comment (by mtredinnick):

 You're right about the need to support that use-case. We also need to be
 have the current behaviour.
 
 The language names are stored as their English versions (like every other
 string in Django) and that shouldn't change. So, one problem to solve is
 how to get the right translation strings in the first place. It may be
 possible to rummage through every PO file for the right name at startup
 and cache it in trans_real.py.
 
 The second thing is how to make this accessible to the caller. That is
 probably best done by a function available under django.util.translation.
 It could be a different function to get_available_languages() because we
 need both behaviours anyway and that would avoid any unnecessary
 backwards-incompatibility issues.
 
 An interesting problem to solve here is what if the resulting string (of
 all the languages) is not representable in the output encoding. For
 example, you will have trouble showing Chinese characters in Russia's
 KOI8-R encoding. That's something we can solve in the unicode branch, I
 guess, but it's worth paying attention to.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4030#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to