Making WordPress.org

Changeset 2074


Ignore:
Timestamp:
11/11/2015 05:13:44 PM (9 years ago)
Author:
obenland
Message:

Tranlate: Don't count untranslated strings as translated.

Introduced in [2069].
See #1365.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/wp-plugins.php

    r2071 r2074  
    6060        $translation_locale_complete = array();
    6161        foreach ( $translation_locale_statuses as $locale => $sets ) {
    62             unset( $sets['waiting'] );
     62            unset( $sets['waiting'], $sets['untranslated'] );
    6363            $translation_locale_complete[ $locale ] = round( array_sum( $sets ) / count( $sets ), 3 );
    6464        }
    6565        unset( $locale, $sets );
    6666
     67
    6768        // Sort by translation completeness, least number of waiting strings, and locale slug.
    6869        uksort( $translation_locale_complete, function ( $a, $b ) use ( $translation_locale_complete, $translation_locale_statuses ) {
    69             if ( $translation_locale_complete[ $a ] > $translation_locale_complete[ $b ] ) {
     70            if ( $translation_locale_complete[ $a ] < $translation_locale_complete[ $b ] ) {
    7071                return 1;
    7172            } elseif ( $translation_locale_complete[ $a ] == $translation_locale_complete[ $b ] ) {
Note: See TracChangeset for help on using the changeset viewer.