WordPress.org

Make WordPress Core


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

I18N: Merge similar strings in _deprecated_argument() calls.

Add translator comments.

Props ramiy, SergeyBiryukov.
Fixes #39020.

File:
1 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    }
Note: See TracChangeset for help on using the changeset viewer.