#26403: Crazy translation in template processing error
--------------------------------------+--------------------
     Reporter:  interDist             |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Template system       |    Version:
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  1
--------------------------------------+--------------------
 The `invalid_block_tag()` function of template `Parser` makes use of the
 `django.utils.text.get_text_list()` function to generate the list of
 expected block tags. The only caveat is that `get_text_list()` takes a
 concatenation parameter whose default value is the **translated** string
 `or`, while the rest of the error message is untranslated. This results in
 crazy messages such as
     Invalid block tag: 'qq', expected 'xx','yy' 或 'zz'
 (for 1.8 and earlier).

 Looks like the solution should be easy: pass the `'or'` concatenator to
 `get_text_list()` instead of relying on the default value.

--
Ticket URL: <https://code.djangoproject.com/ticket/26403>
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/052.07c9bce4778dbcd492614f66c5704cce%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to