Making WordPress.org


Ignore:
Timestamp:
05/13/2019 05:49:46 AM (5 years ago)
Author:
tellyworth
Message:

Translation Teams: show current and past contributors separately.

See #2320.

File:
1 edited

Legend:

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

    r5344 r8781  
    130130
    131131<?php if ( ! empty( $locale_data['translators'] ) ) : ?>
    132     <h2><?php printf( __( 'All Translation Contributors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['translators'] ) ) ); ?></h2>
     132    <h2><?php printf( __( 'Current Translation Contributors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['translators'] ) ) ); ?></h2>
    133133
    134134    <p>
     
    136136        $translators = array();
    137137        foreach ( $locale_data['translators'] as $translator ) {
     138            $translators[] = sprintf(
     139                '<a href="https://profiles.wordpress.org/%s">%s</a>',
     140                esc_attr( $translator['nice_name'] ),
     141                esc_html( $translator['display_name'] )
     142            );
     143        }
     144        echo wp_sprintf( '%l.', $translators );
     145        ?>
     146    </p>
     147<?php endif; ?>
     148
     149<?php if ( ! empty( $locale_data['translators_past'] ) ) : ?>
     150    <h2><?php printf( __( 'Past Translation Contributors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['translators_past'] ) ) ); ?></h2>
     151
     152    <p>
     153        <?php
     154        $translators = array();
     155        foreach ( $locale_data['translators_past'] as $translator ) {
    138156            $translators[] = sprintf(
    139157                '<a href="https://profiles.wordpress.org/%s">%s</a>',
Note: See TracChangeset for help on using the changeset viewer.