Django

Code

Ticket #3088 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

Filter parameters are not translated in blocktrans

Reported by: diaeresis+bugs@gmail.com Assigned to: permon
Milestone: Component: Internationalization
Version: Keywords: sprintsept14
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

patch.diff (0.7 kB) - added by permon on 09/14/07 10:38:56.
fixed bug

Change History

12/07/06 11:20:34 changed by Loïc d'Anterroches <diaeresis+bugs@gmail.com>

  • component changed from Translations to Internationalization.

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

02/21/07 18:17:41 changed by Simon G. <dev@simon.net.nz>

  • stage changed from Unreviewed to Accepted.

09/14/07 10:37:19 changed by permon

  • owner changed from nobody to permon.
  • status changed from new to assigned.

09/14/07 10:38:56 changed by permon

  • attachment patch.diff added.

fixed bug

09/14/07 10:39:51 changed by permon

  • has_patch set to 1.

09/14/07 14:45:29 changed by permon

  • keywords set to sprintsept14.

09/14/07 15:41:45 changed by permon

  • stage changed from Accepted to Ready for checkin.

09/15/07 00:14:16 changed by adrian

  • status changed from assigned to closed.
  • resolution set to fixed.

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


Add/Change #3088 (Filter parameters are not translated in blocktrans)




Change Properties
Action