#31037: Template truncatechars dots missing.
---------------------------------+--------------------------------------
Reporter: 老广 | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: 2.2
Severity: Normal | Resolution: invalid
Keywords: truncatechars | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by 老广):
Replying to [comment:1 felixxm]:
> `truncatechars` now uses the real ellipsis character (…) instead of 3
dots, this is a
[https://docs.djangoproject.com/en/2.2/releases/2.2/#miscellaneous
documented] and expected change.
>
> `{{ "Hello Django" | truncatechars:10 }}` returns `Hello Dja…` for me.
I found the bug, It's because the Django locale zh-hans Lost the ellipsis
> #, python-format
> msgctxt "String to return when truncating text"
> msgid "%(truncated_text)s…"
> msgstr "%(truncated_text)s"
https://github.com/django/django/blob/stable/2.2.x/django/conf/locale/zh_Hans/LC_MESSAGES/django.po#L1048
--
Ticket URL: <https://code.djangoproject.com/ticket/31037#comment:2>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.97e964197f20fcd5f3bba56f66b6f993%40djangoproject.com.