Changeset 2074
- Timestamp:
- 11/11/2015 05:13:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/wp-plugins.php
r2071 r2074 60 60 $translation_locale_complete = array(); 61 61 foreach ( $translation_locale_statuses as $locale => $sets ) { 62 unset( $sets['waiting'] );62 unset( $sets['waiting'], $sets['untranslated'] ); 63 63 $translation_locale_complete[ $locale ] = round( array_sum( $sets ) / count( $sets ), 3 ); 64 64 } 65 65 unset( $locale, $sets ); 66 66 67 67 68 // Sort by translation completeness, least number of waiting strings, and locale slug. 68 69 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 ] ) { 70 71 return 1; 71 72 } elseif ( $translation_locale_complete[ $a ] == $translation_locale_complete[ $b ] ) {
Note: See TracChangeset
for help on using the changeset viewer.