Making WordPress.org


Ignore:
Timestamp:
01/28/2018 05:17:28 PM (8 years ago)
Author:
ocean90
Message:

Translate, Consistency: Add number of occurrences to translations.

Fixes #3274.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/consistency.php

    r6006 r6452  
    88?>
    99
    10 <p>Analyze translation consistency across projects.</p>
     10<p>Analyze translation consistency across projects. The result is limited to 500 translations.</p>
    1111
    1212
     
    8282        foreach ( $translations_unique as $translation ) {
    8383            printf(
    84                 '<li>%s <a href="#%s">&darr;</a></li>',
     84                '<li>%s <small>(%s)</small> <a href="#%s">&darr;</a></li>',
    8585                str_replace( ' ', '<span class="space"> </span>', esc_translation( $translation ) ),
     86                1 === $translations_unique_counts[ $translation ] ? $translations_unique_counts[ $translation ] . ' time' : $translations_unique_counts[ $translation ] . ' times',
    8687                esc_attr( sanitize_title( 't-' . $translation ) )
    8788            );
Note: See TracChangeset for help on using the changeset viewer.