[wp-trac] [WordPress Trac] #33073: Some strings need "no HTML entities" translator comments

WordPress Trac noreply at wordpress.org
Wed Jul 22 14:45:01 UTC 2015


#33073: Some strings need "no HTML entities" translator comments
-------------------------+-----------------------------
 Reporter:  xibe         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  I18N         |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 This is a renewal of #10005, which was apparently my first patch to WP 6
 years ago, but never got accepted. #10005 was closed as fixed, but it
 truth it was not (see my last comment there).

 So, I'm opening a new ticket about this... and updating the description
 and patch from 6 years :)

 Here goes!

 Several strings need to have an indication warning translators against the
 inclusion of HTML entities within their translation, because of where the
 strings are user (RSS feeds, e-mails, JavaScript...).

 Case in point: in French, there should be a non-breaking space ( )
 before any double sign (; : ! ?). So, translators would turn "URL: %s"
 into "Adresse web : %s". But since it is used in e-mails, it is
 displayed as-is. And for strings that are used in feeds, it breaks them...

 Suggestions comment: "Do not add HTML entities ( , etc): used in
 [context]".

 Patch fixes all strings that I could find.

 I do hope it is a simple enough patch, and not too close to RC, that it
 could make it into 4.3.

 Thanks!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33073>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list