Opened 15 years ago

Closed 15 years ago

#11988 closed (invalid)

Wrong translated result count text on admin search form block when LANGUAGE_CODE = 'zh-CN'

Reported by: twinsant Owned by: nobody
Component: Translations Version: 1.1
Severity: Keywords: search_form
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

1 result/{{ coutner }} results always will be "1 个结果", which means 1 result in Chinese.

We have two solution for this bug, just see attached files.

Attachments (2)

django_search_form_po_zh.patch (694 bytes ) - added by twinsant 15 years ago.
solution one
django_search_form_po_zh.patch2 (688 bytes ) - added by twinsant 15 years ago.
solution two

Download all attachments as: .zip

Change History (4)

by twinsant, 15 years ago

solution one

by twinsant, 15 years ago

solution two

comment:1 by twinsant, 15 years ago

forgot the bug code block: django/contrib/admin/templates/admin/search_form.html

{% if show_result_count %}

<span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span>

{% endif %}

comment:2 by Russell Keith-Magee, 15 years ago

Resolution: invalid
Status: newclosed

It's no help giving us two solutions - we don't speak chinese, so we aren't in a position to judge the correctness of the solution.

Closing invalid - please reopen if you want to make a single recommendation.

Note: See TracTickets for help on using tickets.
Back to Top