Changeset 1163 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/all-locales.php
- Timestamp:
- 01/22/2015 07:18:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/all-locales.php
r1139 r1163 2 2 <p class="locale-filters"> 3 3 <?php 4 $statuses = array( 5 'all' => _n_noop( '%s locale.', '%s locales.' ), 4 _e( 'Releases:', 'worg' ); 5 6 $release_statuses = array( 7 'all' => _n_noop( '%s locale.', '%s locales.', 'wporg' ), 6 8 'latest' => _n_noop( '%s locale up to date.', '%s locales up to date.', 'wporg' ), 7 9 'minor-behind' => _n_noop( '%s locale behind by minor versions.', '%s locales behind by minor versions.', 'wprog' ), … … 12 14 ); 13 15 14 foreach ( $ statuses as $status => $nooped_plural ) {16 foreach ( $release_statuses as $status => $nooped_plural ) { 15 17 $string = translate_nooped_plural( $nooped_plural, $locale_data['status_counts'][ $status ] ); 16 18 $string = sprintf( $string, sprintf( '<strong class="i18n-label %s">%s</strong>', $status, $locale_data['status_counts'][ $status ] ) ); 17 printf( '<a href="#" class="i18n-filter" data-filter="%s">%s</a> ', $status, $string ); 19 printf( ' <a href="#" class="i18n-filter" data-filter="%s">%s</a>', $status, $string ); 20 } 21 ?> 22 </p> 23 24 <p class="locale-filters"> 25 <?php 26 _e( 'Translations:', 'worg' ); 27 28 $translation_statuses = array( 29 'all' => _n_noop( '%s locale.', '%s locales.', 'wporg' ), 30 'translated-100' => _n_noop( '%s locale at 100%%.', '%s locales at 100%%.', 'wporg' ), 31 'translated-95' => _n_noop( '%s locale has more than 95%%.', '%s locales have more than 95%%.', 'wporg' ), 32 'translated-90' => _n_noop( '%s locale has more than 90%%.', '%s locales have more than 90%%.', 'wporg' ), 33 'translated-50' => _n_noop( '%s locale has more than 50%%.', '%s locales have more than 50%%.', 'wporg' ), 34 'translated-50-less' => _n_noop( '%s locale has less than 50%%.', '%s locales have less than 50%%.', 'wporg' ), 35 ); 36 37 foreach ( $translation_statuses as $status => $nooped_plural ) { 38 $string = translate_nooped_plural( $nooped_plural, $locale_data['status_counts'][ $status ] ); 39 $string = sprintf( $string, sprintf( '<strong class="i18n-label %s">%s</strong>', $status, $locale_data['status_counts'][ $status ] ) ); 40 printf( ' <a href="#" class="i18n-filter" data-filter="%s">%s</a>', $status, $string ); 18 41 } 19 42 ?> … … 23 46 <thead> 24 47 <tr> 25 <th colspan="2"><?php _e( 'Locale', 'wporg' ); ?></th>26 <th><?php _e( 'WP Locale', 'wporg' ); ?></th>27 <th><?php _e( 'Version', 'wporg' ); ?></th>48 <th colspan="2"><?php _e( 'Locale', 'wporg' ); ?></th> 49 <th><?php _e( 'WP Locale', 'wporg' ); ?></th> 50 <th><?php _e( 'Version', 'wporg' ); ?></th> 28 51 <th colspan="2">GlotPress</th> 29 52 <th><!-- intentionally blank --></th> … … 33 56 <tbody> 34 57 <?php foreach ( $locales as $locale ) : ?> 35 <tr class="locale-version <?php echo esc_attr( $locale_data[ $locale->wp_locale ]['status'] ); ?>"> 58 <?php 59 $classes = 'locale-version '; 60 $classes .= $locale_data[ $locale->wp_locale ]['release_status'] . ' ' . $locale_data[ $locale->wp_locale ]['translation_status']; 61 ?> 62 <tr class="<?php echo trim( $classes ); ?>"> 36 63 <td class="no-right-border"> 37 64 <?php if ( $locale_data[ $locale->wp_locale ]['rosetta_site_url'] ) : ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)