Make WordPress Core


Ignore:
Timestamp:
08/30/2018 12:13:53 PM (7 years ago)
Author:
jrf
Message:

I18n: Improve translators comments [1].

  • Add missing translators comments.
  • Fix placement of some translators comments. Translators comments should be on the line directly above the line containing the translation function call for optimal compatibility with various .pot file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translators comments.

Patch 44360-src.2.diff of the series.

Props garyj, alvarogois, michielatyoast
See #44360

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r43571 r43595  
    942942        if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
    943943            if ( headers_sent() ) {
    944                 /* translators: 1: Browser cookie documentation URL, 2: Support forums URL */
    945944                $user = new WP_Error(
    946945                    'test_cookie',
    947946                    sprintf(
     947                        /* translators: 1: Browser cookie documentation URL, 2: Support forums URL */
    948948                        __( '<strong>ERROR</strong>: Cookies are blocked due to unexpected output. For help, please see <a href="%1$s">this documentation</a> or try the <a href="%2$s">support forums</a>.' ),
    949949                        __( 'https://codex.wordpress.org/Cookies' ),
     
    953953            } elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) {
    954954                // If cookies are disabled we can't log in even with a valid user+pass
    955                 /* translators: %s: Browser cookie documentation URL */
    956955                $user = new WP_Error(
    957956                    'test_cookie',
    958957                    sprintf(
     958                        /* translators: %s: Browser cookie documentation URL */
    959959                        __( '<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
    960960                        __( 'https://codex.wordpress.org/Cookies' )
Note: See TracChangeset for help on using the changeset viewer.