Changeset 4430 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/locale-details.php
- Timestamp:
- 11/27/2016 10:57:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/locale-details.php
r2200 r4430 19 19 </li> 20 20 <li> 21 <strong><?php _e( 'Team site:', 'wporg' ); ?></strong> 22 <?php if ( $locale_data['team_url'] ) : ?> 23 <a href="<?php echo esc_url( $locale_data['team_url'] ); ?>"><?php 24 $url = parse_url( $locale_data['team_url'] ); 25 printf( '%s%s', $url['host'], $url['path'] ); 26 ?></a> 27 <?php else : ?> 28 — 29 <?php endif; ?> 30 </li> 31 <li> 32 <strong><?php _e( 'Forums:', 'wporg' ); ?></strong> 33 <?php if ( $locale_data['forums_url'] ) : ?> 34 <a href="<?php echo esc_url( $locale_data['forums_url'] ); ?>"><?php 35 $url = parse_url( $locale_data['forums_url'] ); 36 printf( '%s%s', $url['host'], $url['path'] ); 37 ?></a> 38 <?php else : ?> 39 — 40 <?php endif; ?> 41 </li> 42 <li> 21 43 <strong><?php _e( 'Latest release:', 'wporg' ); ?></strong> 22 44 <?php echo $locale_data['latest_release'] ? $locale_data['latest_release'] : '—'; ?> … … 29 51 <strong><?php _e( 'GlotPress Locale Code:', 'wporg' ); ?></strong> 30 52 <?php echo esc_html( $locale->slug ); ?> 53 </li> 54 <li> 55 <strong><?php _e( 'Translation Projects:', 'wporg' ); ?></strong> 56 <a href="https://translate.wordpress.org/locale/<?php echo $locale->slug; ?>">translate.wordpress.org/locale/<?php echo $locale->slug; ?></a> 31 57 </li> 32 58 </ul> … … 55 81 56 82 57 <h2><?php _e( 'General Translation Editors', 'wporg'); ?></h2>83 <h2><?php printf( __( 'General Translation Editors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['validators'] ) ) ); ?></h2> 58 84 59 85 <?php if ( empty( $locale_data['validators'] ) ) : ?> … … 64 90 ?> 65 91 <li> 66 <a class="user-avatar" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php 67 echo get_avatar( $validator['email'], 50 ); 68 ?></a> 69 <a class="user-name" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php 92 <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php 93 echo get_avatar( $validator['email'], 60 ); 70 94 echo esc_html( $validator['display_name'] ); 71 95 ?></a> … … 82 106 83 107 <?php if ( ! empty( $locale_data['project_validators'] ) ) : ?> 84 <h2><?php _e( 'Project Translation Editors', 'wporg'); ?></h2>108 <h2><?php printf( __( 'Project Translation Editors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['project_validators'] ) ) ); ?></h2> 85 109 86 110 <ul class="validators project-validators"> … … 88 112 ?> 89 113 <li> 90 <a class="user-avatar" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php 91 echo get_avatar( $validator['email'], 25 ); 92 ?></a> 93 <a class="user-name" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php 114 <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php 115 echo get_avatar( $validator['email'], 40 ); 94 116 echo esc_html( $validator['display_name'] ); 95 117 ?></a> 118 <?php 119 if ( $validator['slack'] ) { 120 printf( '<span class="user-slack">@%s on <a href="%s">Slack</a></span>', $validator['slack'], 'https://make.wordpress.org/chat/' ); 121 } 122 ?> 96 123 </li> 97 124 <?php endforeach; ?> … … 99 126 <?php endif; ?> 100 127 101 102 <h2><?php _e( 'Translation Contributors', 'wporg' ); ?></h2> 128 <h2><?php printf( __( 'All Translation Contributors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['translators'] ) ) ); ?></h2> 103 129 104 130 <?php if ( empty( $locale_data['translators'] ) ) : ?>
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)