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/includes/class-wp-site-health-auto-updates.php

    r45049 r45099  
    228228            return array(
    229229                'description' => sprintf(
    230                     // translators: %1$s: Folder name. %2$s: Version control directory. %3$s: Filter name.
     230                    // translators: 1: Folder name. 2: Version control directory. 3: Filter name.
    231231                    __( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ),
    232232                    '<code>' . $check_dir . '</code>',
     
    241241            return array(
    242242                'description' => sprintf(
    243                     // translators: %1$s: Folder name. %2$s: Version control directory.
     243                    // translators: 1: Folder name. 2: Version control directory.
    244244                    __( 'The folder %1$s was detected as being under version control (%2$s).' ),
    245245                    '<code>' . $check_dir . '</code>',
Note: See TracChangeset for help on using the changeset viewer.