Making WordPress.org


Ignore:
Timestamp:
03/31/2016 08:25:15 PM (9 years ago)
Author:
ocean90
Message:

Translate: Display stats, contributors and language packs on theme project pages.

See #1388.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates-new/projects-wp-themes.php

    r2858 r2864  
    33$table_headings = array(
    44    'locale'        => __( 'Locale' ),
    5     'dev'           => __( 'Development' ),
    6     'dev-readme'    => __( 'Development Readme' ),
    75    'stable'        => __( 'Stable' ),
    8     'stable-readme' => __( 'Stable Readme' ),
    96    'waiting'       => __( 'Waiting' ),
    107);
     
    4643</div>
    4744
    48 <?php if ( $has_error ) : ?>
    49 <div class="wporg-notice wporg-notice-warning">
    50     <p>This plugin is not <a href="https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/">properly prepared for localization</a>. If you would like to translate this plugin, <a href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $project->slug ); ?>">please contact the author</a>.</p>
    51 </div>
    52 <?php endif; ?>
    53 
    5445<div class="stats-table">
    5546    <table id="stats-table" class="table">
    5647        <thead>
    5748            <tr>
    58                 <?php foreach ( $table_headings as $heading ) : ?>
    59                 <th class="title"><?php echo $heading; ?></th>
     49                <?php foreach ( $table_headings as $key => $heading ) : ?>
     50                <th class="col-<?php echo $key; ?>"><?php echo $heading; ?></th>
    6051                <?php endforeach; ?>
    6152            </tr>
     
    8879                    <?php
    8980                        if ( $translation_locale_statuses[ $locale_slug ] ) :
    90                             foreach ( array( 'dev', 'dev-readme', 'stable', 'stable-readme', 'waiting' ) as $subproject_slug ) :
     81                            foreach ( array( 'stable', 'waiting' ) as $subproject_slug ) :
    9182                                if ( isset( $translation_locale_statuses[ $locale_slug ][ $subproject_slug ] ) ) :
    9283                                    $percent = $translation_locale_statuses[ $locale_slug ][ $subproject_slug ];
     
    10596                                    else :
    10697                                        $percent_class = (int) ( $percent / 10 ) * 10;
    107                                         $link_url  = gp_url_project( $project->path, gp_url_join( $subproject_slug, $gp_locale->slug, $set_slug ) );
     98                                        $link_url  = gp_url_project( $project->path, gp_url_join( $gp_locale->slug, $set_slug ) );
    10899                                        $link_text = "$percent%";
    109100
Note: See TracChangeset for help on using the changeset viewer.