WordPress.org

Make WordPress Core

Ticket #47298: update-changes.patch

File update-changes.patch, 2.7 KB (added by ajayghaghretiya1, 18 months ago)

update the capitalized text.

  • src/js/_enqueues/admin/site-health.js

     
    6565                count = SiteHealth.site_status.issues[ issue.status ];
    6666
    6767                if ( 'critical' === issue.status ) {
    68                         heading = sprintf( _n( '%s Critical issue', '%s Critical issues', count ), '<span class="issue-count">' + count + '</span>' );
     68                        heading = sprintf( _n( '%s Critical Issue', '%s Critical Issues', count ), '<span class="issue-count">' + count + '</span>' );
    6969                } else if ( 'recommended' === issue.status ) {
    70                         heading = sprintf( _n( '%s Recommended improvement', '%s Recommended improvements', count ), '<span class="issue-count">' + count + '</span>' );
     70                        heading = sprintf( _n( '%s Recommended Improvement', '%s Recommended Improvements', count ), '<span class="issue-count">' + count + '</span>' );
    7171                } else if ( 'good' === issue.status ) {
    72                         heading = sprintf( _n( '%s Item with no issues detected', '%s Items with no issues detected', count ), '<span class="issue-count">' + count + '</span>' );
     72                        heading = sprintf( _n( '%s Item with No Issues Detected', '%s Items with No Issues Detected', count ), '<span class="issue-count">' + count + '</span>' );
    7373                }
    7474
    7575                if ( heading ) {
  • src/wp-admin/site-health.php

     
    9393                        <h3 class="site-health-issue-count-title">
    9494                                <?php
    9595                                        /* translators: %s: number of critical issues found */
    96                                         printf( _n( '%s Critical issue', '%s Critical issues', 0 ), '<span class="issue-count">0</span>' );
     96                                        printf( _n( '%s Critical Issue', '%s Critical Issues', 0 ), '<span class="issue-count">0</span>' );
    9797                                ?>
    9898                        </h3>
    9999
     
    104104                        <h3 class="site-health-issue-count-title">
    105105                                <?php
    106106                                        /* translators: %s: number of recommended improvements */
    107                                         printf( _n( '%s Recommended improvement', '%s Recommended improvements', 0 ), '<span class="issue-count">0</span>' );
     107                                        printf( _n( '%s Recommended Improvement', '%s Recommended Improvements', 0 ), '<span class="issue-count">0</span>' );
    108108                                ?>
    109109                        </h3>
    110110
     
    123123                <h3 class="site-health-issue-count-title">
    124124                        <?php
    125125                                /* translators: %s: number of items with no issues */
    126                                 printf( _n( '%s Item with no issues detected', '%s Items with no issues detected', 0 ), '<span class="issue-count">0</span>' );
     126                                printf( _n( '%s Item with No Issues Detected', '%s Items with No Issues Detected', 0 ), '<span class="issue-count">0</span>' );
    127127                        ?>
    128128                </h3>
    129129