Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16721 closed Bug (fixed)

Blocktrans does not handle correctly litteral percents (%) in content

Reported by: claudep Owned by: nobody
Component: Internationalization Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When a string inside a blocktrans tag contains litteral percent signs, the matching translation is not retrieved, because escaping is done too late in the render code of blocktrans. Patch follows.

Attachments (1)

16721.diff (3.6 KB) - added by claudep 3 years ago.
Fix percent escaping in blocktrans rendering

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by claudep

Fix percent escaping in blocktrans rendering

comment:1 Changed 3 years ago by claudep

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 3 years ago by jezdez

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

In [16730]:

Fixed #16721 -- Made sure that blocktrans correctly handles percents (%), even in the plural block. Thanks for the initial patch, Claude Paroz.

comment:4 Changed 3 years ago by jacob

  • milestone 1.4 deleted

Milestone 1.4 deleted

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.