Make WordPress Core

Changeset 42730


Ignore:
Timestamp:
02/22/2018 12:58:12 AM (8 years ago)
Author:
pento
Message:

REST API: Translate the taxonomy visibility description strings.

This was missed in [42729].

Props TimothyBlynJacobs.
Fixes #42707.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    r42729 r42730  
    311311                                        'properties'  => array(
    312312                                                'public'             => array(
    313                                                         'description' => 'Whether a taxonomy is intended for use publicly either via the admin interface or by front-end users.',
     313                                                        'description' => __( 'Whether a taxonomy is intended for use publicly either via the admin interface or by front-end users.' ),
    314314                                                        'type'        => 'boolean',
    315315                                                ),
    316316                                                'publicly_queryable' => array(
    317                                                         'description' => 'Whether the taxonomy is publicly queryable.',
     317                                                        'description' => __( 'Whether the taxonomy is publicly queryable.' ),
    318318                                                        'type'        => 'boolean',
    319319                                                ),
    320320                                                'show_ui'            => array(
    321                                                         'description' => 'Whether to generate a default UI for managing this taxonomy.',
     321                                                        'description' => __( 'Whether to generate a default UI for managing this taxonomy.' ),
    322322                                                        'type'        => 'boolean',
    323323                                                ),
    324324                                                'show_admin_column'  => array(
    325                                                         'description' => 'Whether to allow automatic creation of taxonomy columns on associated post-types table.',
     325                                                        'description' => __( 'Whether to allow automatic creation of taxonomy columns on associated post-types table.' ),
    326326                                                        'type'        => 'boolean',
    327327                                                ),
    328328                                                'show_in_nav_menus'  => array(
    329                                                         'description' => 'Whether to make the taxonomy available for selection in navigation menus.',
     329                                                        'description' => __( 'Whether to make the taxonomy available for selection in navigation menus.' ),
    330330                                                        'type'        => 'boolean',
    331331                                                ),
    332332                                                'show_in_quick_edit' => array(
    333                                                         'description' => 'Whether to show the taxonomy in the quick/bulk edit panel.',
     333                                                        'description' => __( 'Whether to show the taxonomy in the quick/bulk edit panel.' ),
    334334                                                        'type'        => 'boolean',
    335335                                                ),
Note: See TracChangeset for help on using the changeset viewer.