[wp-trac] [WordPress Trac] #31858: Avoid using HTML tags in translation strings (wp-admin/edit-form-advanced.php)‎

WordPress Trac noreply at wordpress.org
Fri Apr 10 18:24:05 UTC 2015


#31858: Avoid using HTML tags in translation strings (wp-admin/edit-form-
advanced.php)‎
-------------------------------------------------+-------------------------
 Reporter:  ramiy                                |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  I18N                                 |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-testing 2nd-opinion  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by ramiy):

 Pavel,

 * I've spoken to friend, he speaks Arabic language - same answer. The
 patch splits the string into two sentences - first we show the action
 result and then the link to the post.

 * This patch is a part of set of tickets to avoid HTML tags in translation
 strings: #31840, #31852, #31853, #31855, #31856, #31857, #31858, #31859,
 #31860, #31861, #31862, #31863, #31864, #31867, #31868, #31870, #31871.

 * This string split, is not actually a split. Some of the new string
 already exist in other places in the code. For example:
  * "Post updated." - exist in wp-admin/edit-form-advanced.php:84
  * "Page updated." - exist in wp-admin/edit-form-advanced.php:100
  * "View post" - exist in wp-includes/post.php:1637

 * From my perspective, the "translators freedom" you are talking about, is
 to make the translation work easier. It's very hard to translate strings
 with HTML code because the string is in hebrew and the code is in english.
 With RTL it's even harder, When the code is in RTL it's very confusing.
 This is why I'm trying to promote this issue to avoid using HTML tags in
 translation strings.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31858#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list