[wp-trac] [WordPress Trac] #44722: Double escape issue on translated wordpress.org/team/ for some locales
WordPress Trac
noreply at wordpress.org
Fri Aug 3 18:42:36 UTC 2018
#44722: Double escape issue on translated wordpress.org/team/ for some locales
--------------------------+-----------------------------------------
Reporter: cbrandt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: minor | Keywords: has-screenshots needs-patch
Focuses: javascript |
--------------------------+-----------------------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44722>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list