Make WordPress Core

Changeset 40028


Ignore:
Timestamp:
01/29/2017 11:49:49 AM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Merge similar strings in _deprecated_argument() calls.

Add translator comments.

Props ramiy, SergeyBiryukov.
Fixes #39020.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r39936 r40028  
    12081208
    12091209    if ( 'misc' == $page ) {
    1210         _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1210        _deprecated_argument( __FUNCTION__, '3.0.0',
     1211            /* translators: %s: misc */
     1212            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1213                'misc'
     1214            )
     1215        );
    12111216        $page = 'general';
    12121217    }
    12131218
    12141219    if ( 'privacy' == $page ) {
    1215         _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1220        _deprecated_argument( __FUNCTION__, '3.5.0',
     1221            /* translators: %s: privacy */
     1222            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1223                'privacy'
     1224            )
     1225        );
    12161226        $page = 'reading';
    12171227    }
     
    12591269
    12601270    if ( 'misc' == $page ) {
    1261         _deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
     1271        _deprecated_argument( __FUNCTION__, '3.0.0',
     1272            /* translators: %s: misc */
     1273            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1274                'misc'
     1275            )
     1276        );
    12621277        $page = 'general';
    12631278    }
    12641279
    12651280    if ( 'privacy' == $page ) {
    1266         _deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) );
     1281        _deprecated_argument( __FUNCTION__, '3.5.0',
     1282            /* translators: %s: privacy */
     1283            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1284                'privacy'
     1285            )
     1286        );
    12671287        $page = 'reading';
    12681288    }
  • trunk/src/wp-includes/category-template.php

    r39639 r40028  
    343343    // Back compat.
    344344    if ( isset( $args['type'] ) && 'link' == $args['type'] ) {
    345         /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */
    346345        _deprecated_argument( __FUNCTION__, '3.0.0',
     346            /* translators: 1: "type => link", 2: "taxonomy => link_category" */
    347347            sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
    348348                '<code>type => link</code>',
  • trunk/src/wp-includes/category.php

    r39188 r40028  
    4242    // Back compat
    4343    if ( isset($args['type']) && 'link' == $args['type'] ) {
    44         /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */
    4544        _deprecated_argument( __FUNCTION__, '3.0.0',
     45            /* translators: 1: "type => link", 2: "taxonomy => link_category" */
    4646            sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
    4747                '<code>type => link</code>',
  • trunk/src/wp-includes/class-wp-query.php

    r39952 r40028  
    17141714
    17151715        if ( isset( $q['caller_get_posts'] ) ) {
    1716             _deprecated_argument( 'WP_Query', '3.1.0', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) );
    1717             if ( !isset( $q['ignore_sticky_posts'] ) )
     1716            _deprecated_argument( 'WP_Query', '3.1.0',
     1717                /* translators: 1: caller_get_posts, 2: ignore_sticky_posts */
     1718                sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
     1719                    '<code>caller_get_posts</code>',
     1720                    '<code>ignore_sticky_posts</code>'
     1721                )
     1722            );
     1723
     1724            if ( ! isset( $q['ignore_sticky_posts'] ) ) {
    17181725                $q['ignore_sticky_posts'] = $q['caller_get_posts'];
     1726            }
    17191727        }
    17201728
  • trunk/src/wp-includes/option.php

    r39932 r40028  
    19141914
    19151915    if ( 'misc' == $option_group ) {
    1916         _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1916        _deprecated_argument( __FUNCTION__, '3.0.0',
     1917            /* translators: %s: misc */
     1918            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1919                'misc'
     1920            )
     1921        );
    19171922        $option_group = 'general';
    19181923    }
    19191924
    19201925    if ( 'privacy' == $option_group ) {
    1921         _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1926        _deprecated_argument( __FUNCTION__, '3.5.0',
     1927            /* translators: %s: privacy */
     1928            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1929                'privacy'
     1930            )
     1931        );
    19221932        $option_group = 'reading';
    19231933    }
     
    19501960
    19511961    if ( 'misc' == $option_group ) {
    1952         _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
     1962        _deprecated_argument( __FUNCTION__, '3.0.0',
     1963            /* translators: %s: misc */
     1964            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1965                'misc'
     1966            )
     1967        );
    19531968        $option_group = 'general';
    19541969    }
    19551970
    19561971    if ( 'privacy' == $option_group ) {
    1957         _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1972        _deprecated_argument( __FUNCTION__, '3.5.0',
     1973            /* translators: %s: privacy */
     1974            sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
     1975                'privacy'
     1976            )
     1977        );
    19581978        $option_group = 'reading';
    19591979    }
     
    19641984    }
    19651985    if ( '' !== $deprecated ) {
    1966         _deprecated_argument( __FUNCTION__, '4.7.0', __( '$sanitize_callback is deprecated. The callback from register_setting() is used instead.' ) );
     1986        _deprecated_argument( __FUNCTION__, '4.7.0',
     1987            /* translators: 1: $sanitize_callback, 2: register_setting() */
     1988            sprintf( __( '%1$s is deprecated. The callback from %2$s is used instead.' ),
     1989                '<code>$sanitize_callback</code>',
     1990                '<code>register_setting()</code>'
     1991            )
     1992        );
    19671993        remove_filter( "sanitize_option_{$option_name}", $deprecated );
    19681994    }
Note: See TracChangeset for help on using the changeset viewer.