Make WordPress Core


Ignore:
Timestamp:
04/12/2019 08:33:48 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Site Health: i18n audit, take 2.

  • Use wp.i18n to translate JavaScript strings.
  • Use _n() for proper plural forms support.

Props TimothyBlynJacobs, ocean90, afercia.
Fixes #46683.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r45170 r45178  
    4747        $health_check_js_variables = array(
    4848            'screen'      => $screen->id,
    49             'string'      => array(
    50                 'please_wait'                        => __( 'Please wait...' ),
    51                 'copied'                             => __( 'Copied' ),
    52                 'running_tests'                      => __( 'Currently being tested...' ),
    53                 'site_health_complete'               => __( 'All site health tests have finished running.' ),
    54                 'site_info_show_copy'                => __( 'Show options for copying this information' ),
    55                 'site_info_hide_copy'                => __( 'Hide options for copying this information' ),
    56                 // translators: %s: The percentage score for the tests.
    57                 'site_health_complete_screen_reader' => __( 'All site health tests have finished running. Your site scored %s, and the results are now available on the page.' ),
    58                 'site_info_copied'                   => __( 'Site information has been added to your clipboard.' ),
    59             ),
    6049            'nonce'       => array(
    6150                'site_status'        => wp_create_nonce( 'health-check-site-status' ),
Note: See TracChangeset for help on using the changeset viewer.