Code

Opened 7 years ago

Closed 7 years ago

#3088 closed defect (fixed)

Filter parameters are not translated in blocktrans

Reported by: diaeresis+bugs@… Owned by: permon
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: UI/UX:

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 permon 7 years ago.
fixed bug

Download all attachments as: .zip

Change History (8)

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

  • Component changed from Translations to Internationalization

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

comment:2 Changed 7 years ago by Simon G. <dev@…>

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 7 years ago by permon

  • Owner changed from nobody to permon
  • Status changed from new to assigned

Changed 7 years ago by permon

fixed bug

comment:4 Changed 7 years ago by permon

  • Has patch set

comment:5 Changed 7 years ago by permon

  • Keywords sprintsept14 added

comment:6 Changed 7 years ago by permon

  • Triage Stage changed from Accepted to Ready for checkin

comment:7 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.