#7163: Region locales' translation objects get overwritten
-------------------------------------------+--------------------------------
          Reporter:  oggy                  |         Owner:  mtredinnick        
              
            Status:  closed                |     Milestone:                     
              
         Component:  Internationalization  |       Version:  SVN                
              
        Resolution:  fixed                 |      Keywords:  translation 
gettext region locale
             Stage:  Accepted              |     Has_patch:  1                  
              
        Needs_docs:  0                     |   Needs_tests:  0                  
              
Needs_better_patch:  1                     |  
-------------------------------------------+--------------------------------
Comment (by spoof):

 what if
 {{{
 #!python
  res = _translation(globalpath)
 }}}
 returns None? The following code:
 {{{
 #!python
 base_lang = lambda x: x.split('-', 1)[0]
 if base_lang(lang) in [base_lang(trans) for trans in _translations]:
   res._info = res._info.copy()
   res._catalog = res._catalog.copy()
 }}}
 will fail with error:
 {{{
 #!python
 AttributeError: 'NoneType' object has no attribute '_info'
 }}}
 is it right?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7163#comment:8>
Django <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