Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#44722 closed defect (bug) (invalid)

Double escape issue on translated for some locales

Reported by: cbrandt's profile cbrandt Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Site Keywords: has-screenshots
Focuses: Cc:


Forgive the simplicity of this first bug report, done by a non-developer.

Dates are being shown wrongly on the /team/ page belonging to certain locales of

Where the English language date string is F j, Y

The pt-BR locale at [] would have j \d\e F \d\e Y

However, the text on the page, for March 21, 2018, reads 21 \21\-03:00 março \21\-03:00 2018 in what looks like a double escaping issue.

A similar issue was also found on []. Not every locale opted to include a connector (de) that needed escaping, therefore this issue is not seen, for example, on [] or [].

We did not do a comprehensive search, more locales may be affected.

We did an attempt at trying to find a translation that may have a double escape wrongly inserted on the string, j \\d\\e F \\d\\e Y, which would result in the malformed strings we see on the final page, but could not find any for pt-BR.

The correct timestamp, untranslated, is present at the HTML code of the page. So we think this may be a Javascript function somewhere down the pipe adding the second escape and causing this issue.

Attachments (2)

br.wordpress-team-bug.png (94.7 KB) - added by cbrandt 6 years ago.
br.wordpress-team-bug-2.png (176.6 KB) - added by cbrandt 6 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ocean90
6 years ago

  • Component changed from Date/Time to site
  • Focuses javascript removed
  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hello @cbrandt, welcome to WordPress Trac!

This Trac is only used for reporting issues with WordPress core. The team sites are using a plugin/theme called o2. There’s already an issue for this problem at where you can follow the progress.

#2 @cbrandt
6 years ago

Hi @ocean90,

Great! Glad it's been taken care of. Thank you.

Note: See TracTickets for help on using tickets.