Making WordPress.org


Ignore:
Timestamp:
02/09/2016 12:43:02 PM (10 years ago)
Author:
ocean90
Message:

WP i18n teams: Introduce a new filter for locales which don't have a WP project.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/wp-i18n-teams.php

    r2479 r2485  
    150150
    151151        $statuses = array(
     152            'no-wp-project'      => 0,
    152153            'no-site'            => 0,
    153154            'no-releases'        => 0,
     
    174175            $statuses[ $release_status ]++;
    175176
    176             $translation_status = '';
    177177            if ( isset ( $translation_data[ $locale->wp_locale ] ) ) {
    178178                $translation_status = self::get_locale_translation_status( $translation_data[ $locale->wp_locale ] );
    179179                $statuses[ $translation_status ]++;
     180            } else {
     181                $translation_status = 'no-wp-project';
     182                $statuses[ 'no-wp-project' ]++;
    180183            }
    181184
Note: See TracChangeset for help on using the changeset viewer.