#44722 closed defect (bug) (invalid)
Double escape issue on translated wordpress.org/team/ for some locales
Reported by: |
|
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.
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.