[wp-trac] [WordPress Trac] #34216: Remove HTML tags from translatable database error strings

WordPress Trac noreply at wordpress.org
Thu Oct 8 16:35:53 UTC 2015


#34216: Remove HTML tags from translatable database error strings
----------------------------+-----------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.4
Component:  Database        |    Version:
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------
 Currently, our database error strings are just large chunks of HTML:
 * [source:tags/4.3.1/src/wp-includes/wp-db.php#L1046 "Can't select
 database"]
 * [source:tags/4.3.1/src/wp-includes/wp-db.php#L1497 "Error establishing a
 database connection"]
 * [source:tags/4.3.1/src/wp-includes/wp-db.php#L1590 "Error reconnecting
 to the database"]

 Looking at #polyglots-warnings, they often cause warnings in GlotPress due
 to missing or incorrectly translated tags, as well as starting and ending
 with a newline.

 We generally avoid unnecessary HTML tags in translatable strings, so we
 should split these ones too.

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


More information about the wp-trac mailing list