Code

Opened 3 years ago

Closed 3 years ago

#16005 closed Bug (fixed)

Missing and operator in blocktrans documentation

Reported by: bezidejni Owned by: bezidejni
Component: Documentation Version: 1.3
Severity: Normal Keywords: blocktrans
Cc: hraban Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The documentation says:

If you need to bind more than one expression inside a blocktrans tag, separate the pieces with and:

{% blocktrans with book_t=book|title author_t=author|title %}
This is {{ book_t }} by {{ author_t }}
{% endblocktrans %}

But as you can see, the and operator is missing between two expressions.

Attachments (1)

blocktrans.diff (588 bytes) - added by bezidejni 3 years ago.

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by bezidejni

comment:1 Changed 3 years ago by jonash

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:3 Changed 3 years ago by DrMeers

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

In [16218]:

Fixed #16005 -- Error in blocktrans docs -- thanks bezidejni

comment:4 Changed 3 years ago by DrMeers

In [16219]:

[1.3.X] Fixed #16005 -- Error in blocktrans docs -- thanks bezidejni

Backport of r16218 from trunk.

comment:5 Changed 3 years ago by hraban

  • Cc hraban added
  • Has patch unset
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • UI/UX unset

the currently distributed version of Django 1.3 doesn’t understand "and" in blocktrans any more, so the documentation has to be reverted to the previous state

comment:6 Changed 3 years ago by DrMeers

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

This has been fixed in #16072

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.