WordPress.org

Make WordPress Core

Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#44722 closed defect (bug) (invalid)

Double escape issue on translated wordpress.org/team/ for some locales

Reported by: cbrandt Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: WordPress.org site Keywords: has-screenshots
Focuses: Cc:

Description

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 wordpress.org.

Where the English language date string is F j, Y

The pt-BR locale at [br.wordpress.org/team/] 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 [es.wordpress.org/team/]. Not every locale opted to include a connector (de) that needed escaping, therefore this issue is not seen, for example, on [fr.wordpress.org] or [it.wordpress.org].

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 13 months ago.
br.wordpress-team-bug-2.png (176.6 KB) - added by cbrandt 13 months ago.

Download all attachments as: .zip

Change History (4)

#1 @ocean90
13 months ago

  • Component changed from Date/Time to WordPress.org 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 https://github.com/Automattic/o2/issues/135 where you can follow the progress.

#2 @cbrandt
13 months ago

Hi @ocean90,

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

Note: See TracTickets for help on using tickets.