Make WordPress Core


Ignore:
Timestamp:
04/02/2019 09:31:43 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Site Health: i18n audit, take 1.

  • Split plural strings with multiple sentences to avoid duplicating translations.
  • Decouple strings where the singular and plural form are not just the same string with different numbers, but essentially two different strings.
  • Use an established pattern for numbered placeholders in translator comments.
  • Replace constants in translatable strings with placeholders, mark them as code.
  • Make sure sentences are translated as a whole, not as separate string parts.
  • Remove unnecessary context and escaping.

Props ocean90, SergeyBiryukov.
See #46683.

File:
1 edited

Legend:

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

    r45091 r45099  
    3333    <div class="health-check-title-section">
    3434        <h1>
    35             <?php _ex( 'Site Health', 'Menu, Section and Page Title' ); ?>
     35            <?php _e( 'Site Health' ); ?>
    3636        </h1>
    3737
Note: See TracChangeset for help on using the changeset viewer.