#5025: Add a "truncate" template filter
---------------------------------------+---------------------------------
               Reporter:  SmileyChris  |          Owner:  nobody
                   Type:  New feature  |         Status:  reopened
              Milestone:               |      Component:  Template system
                Version:  SVN          |       Severity:  Normal
             Resolution:               |       Keywords:
           Triage Stage:  Accepted     |      Has patch:  1
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
---------------------------------------+---------------------------------
Changes (by SmileyChris):

 * easy:   => 0


Comment:

 The length of the truncated string in floguy's previous patch wasn't
 taking into account the length of the string when it had combining
 characters with no precomposed form.

 I'm pretty happy with the patch I uploaded - I wonder though that if
 instead of having `ugettext_lazy('...')` we should use:
 `ugettext_lazy('%(truncated_text)s...')`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/5025#comment:31>
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 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