Opened 17 years ago

Closed 17 years ago

#3088 closed defect (fixed)

Filter parameters are not translated in blocktrans

Reported by: diaeresis+bugs@… Owned by: Tomáš Kopeček
Component: Internationalization Version:
Severity: normal Keywords: sprintsept14
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Consider a template with:

{% blocktrans with day|date:_("F j") as date%}Something on {{ date }}{% endblocktrans %}

"F j" is not available in the resulting .po file when running make-messages.py.

I found that the problem comes from the templatize function in utils/translations/trans_real.py but was not able to fix it as I am not good at playing with Lexer/Parser.

Attachments (1)

patch.diff (705 bytes ) - added by Tomáš Kopeček 17 years ago.
fixed bug

Download all attachments as: .zip

Change History (8)

comment:1 by Loïc d'Anterroches <diaeresis+bugs@…>, 17 years ago

Component: TranslationsInternationalization

Changed to the Internationalization component, as it is not a translation problem.

comment:2 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Tomáš Kopeček, 17 years ago

Owner: changed from nobody to Tomáš Kopeček
Status: newassigned

by Tomáš Kopeček, 17 years ago

Attachment: patch.diff added

fixed bug

comment:4 by Tomáš Kopeček, 17 years ago

Has patch: set

comment:5 by Tomáš Kopeček, 17 years ago

Keywords: sprintsept14 added

comment:6 by Tomáš Kopeček, 17 years ago

Triage Stage: AcceptedReady for checkin

comment:7 by Adrian Holovaty, 17 years ago

Resolution: fixed
Status: assignedclosed

(In [6263]) Fixed #3088 -- Filter parameters are now translated in blocktrans. Thanks, permon

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