#23328: get_javascript_catalog bug
--------------------------------------+----------------------
     Reporter:  liminspace            |      Owner:  nobody
         Type:  Bug                   |     Status:  new
    Component:  Internationalization  |    Version:  1.7-rc-2
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+----------------------
 There is a project with two languages: "en" and "uk" (ukrainian).
 Default language is "uk".

 There are pharases:
 locale/
     en/
         djangojs.po
             msgid "Всім привіт!"
             msgstr "Hello everyone!"
     uk/
         djangojs.po
             msgid "Всім привіт!"
             msgstr ""

 In this case, the activated language "uk" phrase "Всім привіт!" will be in
 "en" -- "Hello everyone!".
 It's a bug, because must be "uk".

 I propose remove loading "en" translation as default (is better).
 Or change update method for other default language:
 {{{
 if default_locale != 'en':
     for path in paths:
         try:
             catalog = gettext_module.translation(domain, path,
 [default_locale])
         except IOError:
             catalog = None
         if catalog is not None:
             # t.update(catalog._catalog)  # remove it
             t = catalog._catalog          # <- add it
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23328>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.c3a94c4911d23f7e7d8630c460245bc3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to