Making WordPress.org


Ignore:
Timestamp:
08/10/2022 05:03:34 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Improve consistency of various error messages.

  • Use sentence case for the word Error, instead of all caps. Using all caps should be avoided for better readability and because screen readers may pronounce all-caps words as abbreviations.
  • Move the colon of the Error: prefix inside the <strong> tags.

This matches similar changes in WordPress core.

Follow-up to [WP47156], [WP53118], [WP53337], [WP53458], [3702], [3719], [3797], [3937], [4043], [11301], [11382], [11383], [11580].

Props NekoJonez.
Fixes #6309.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

    r11385 r12012  
    363363                sprintf(
    364364                    /* translators: %s: Link to forum user guide explaining this. */
    365                     __( '<strong>Error</strong>: Please <a href="%s">do not add links to your review</a>, keep the review about your experience in text only.', 'wporg-forums' ),
     365                    __( '<strong>Error:</strong> Please <a href="%s">do not add links to your review</a>, keep the review about your experience in text only.', 'wporg-forums' ),
    366366                    'https://wordpress.org/support/forum-user-guide/faq/#why-are-links-not-allowed-in-reviews'
    367367                )
     
    393393        if ( bbpress()->errors->get_error_message( 'bbp_topic_title' ) && empty( $_POST['bbp_topic_title'] ) ) {
    394394            bbpress()->errors->remove( 'bbp_topic_title' );
    395             bbp_add_error( 'bbp_topic_title', __( '<strong>Error</strong>: Your review needs a title.', 'wporg-forums' ) );
     395            bbp_add_error( 'bbp_topic_title', __( '<strong>Error:</strong> Your review needs a title.', 'wporg-forums' ) );
    396396        }
    397397
    398398        if ( bbpress()->errors->get_error_message( 'bbp_topic_content' ) ) {
    399399            bbpress()->errors->remove( 'bbp_topic_content' );
    400             bbp_add_error( 'bbp_topic_content', __( '<strong>Error</strong>: Your review cannot be empty.', 'wporg-forums' ) );
     400            bbp_add_error( 'bbp_topic_content', __( '<strong>Error:</strong> Your review cannot be empty.', 'wporg-forums' ) );
    401401        }
    402402    }
Note: See TracChangeset for help on using the changeset viewer.