WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#43388 closed defect (bug) (wontfix)

Long string without spaces in wptexturize() breaks layout in translation platform

Reported by: tobifjellner Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Text Changes Keywords:
Focuses: Cc:

Description

Whenever I open https://translate.wordpress.org/projects/wp/dev for translation, I get broken layout in the main core translation project.
(Yes, I've selected to show the whole translation project on one page, and this particular project always has a broken (non-responsive) layout.

The reason is a long string without any spaces in function wptexturize().
Namely:
’tain’t,’twere,’twas,’tis,’twill,’til,’bout,’nuff,’round,’cause,’em

String is used to populate cockneyreplace matrix.

Would it be possible to have that list separated by spaces, or comma and space, or use comma+space and then throw away the spaces before exploding into an array?

Location: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/formatting.php?marks=141#L141

Attachments (1)

2018-02-22.png (26.7 KB) - added by tobifjellner 3 years ago.
Screenshot of broken layout on translation platform

Download all attachments as: .zip

Change History (2)

@tobifjellner
3 years ago

Screenshot of broken layout on translation platform

#1 @ocean90
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version 4.9.4 deleted

Closing as wontfix since it's just a UI issue which actually doesn't happen in Chrome but in Firefox.

There's already a related GlotPress issue: https://github.com/GlotPress/GlotPress-WP/issues/875

Note: See TracTickets for help on using tickets.