WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months ago

Last modified 5 months ago

#47374 closed defect (bug) (reported-upstream)

Avoid adding a space character at the end of a translatable string

Reported by: Presskopp Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:
PR Number:

Description

We should never add a space at the end of a translatable string, because you cannot see it and you don't expect it to be there as a translator.

In this case, there's one at
https://build.trac.wordpress.org/browser/trunk/wp-includes/js/dist/edit-post.js?marks=5663#L5663

..leading to an ugly link - see screenshot

Attachments (1)

space.png (2.3 KB) - added by Presskopp 6 months ago.

Download all attachments as: .zip

Change History (3)

@Presskopp
6 months ago

#1 @ocean90
6 months ago

  • Keywords needs-patch good-first-bug removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Thanks for the report @Presskopp. Since the string is part of an external package by Gutenberg, I have moved the report to GitHub: https://github.com/WordPress/gutenberg/issues/15813.

#2 @Presskopp
5 months ago

There are more strings like that:

"Pingback excerpt: "
"Trackback excerpt: "
"Tags: "

Note: See TracTickets for help on using tickets.