[wp-trac] [WordPress Trac] #15887: Capital letters for writing the word "Error"

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 12 19:40:09 UTC 2011


#15887: Capital letters for writing the word "Error"
------------------------------+-----------------------------
 Reporter:  doktorbro         |       Owner:  markjaquith
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  Future Release
Component:  Warnings/Notices  |     Version:  3.1
 Severity:  minor             |  Resolution:
 Keywords:  i18n has-patch    |
------------------------------+-----------------------------

Comment (by JDTrower):

 In my attached patch, I updated every instance of "Error:" to be "ERROR:"
 In most places, I wrapped "ERROR" in strong tags.  However, there were a
 few places that were unclear as to whether or not HTML tags could be used,
 for example:
 wp-admin/includes/class-ftp.php

 {{{
 $this->SendMSG("ERROR: Cannot connect to remote host
 \"".$this->_fullhost." :".$this->_port."\"");
 }}}

 wp-admin/includes/class-wp-importer.php

 {{{
 fwrite( STDERR, "ERROR: can not determine blog_id from $blog_id\n" );
 }}}

 wp-includes/class-snoopy.php

 {{{
 $this->error = "ERROR: cURL could not retrieve the document, error
 $return.";
 }}}

 wp-includes/ms-functions.php

 {{{
 return __( 'ERROR: Site URL already taken.' );
 }}}

 I also brought up on IRC about whether words like "Warning" and "Caution"
 (maybe "Notice" as well) needed to be in all caps for consistency
 purposes.  JJJ responded with "For some reason, I don't think Warning or
 Caution should be capitalized. I feel like those words alone already mean
 something important, and capitalizing them runs the risk of
 overemphasizing them."

 If the examples above can include strong tags, I'll add them in and
 recreate the patch.  Also, if we decide to capitalize words like "Warning"
 and "Caution" I'll create a patch that does that.

 This patch, capitalizes the word Error in the code.  If we want to use CSS
 text-transform: uppercase I'll incorporate that method.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15887#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list