diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/credits.php --- a/wp/wp-admin/credits.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-admin/credits.php Mon Oct 14 18:28:13 2019 +0200 @@ -18,18 +18,36 @@ ?>
-

- -

+

+ +

-
+

+ +

- +
'; - /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ - printf( __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), + printf( + /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ + __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), 'https://wordpress.org/about/', __( 'https://make.wordpress.org/' ) ); @@ -64,23 +83,26 @@ // Considered a special slug in the API response. (Also, will never be returned for en_US.) $title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' ); } elseif ( isset( $group_data['placeholders'] ) ) { + // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText $title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] ); } else { + // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText $title = translate( $group_data['name'] ); } - echo '

' . esc_html( $title ) . "

\n"; + echo '

' . esc_html( $title ) . "

\n"; } - if ( ! empty( $group_data['shuffle'] ) ) + if ( ! empty( $group_data['shuffle'] ) ) { shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt. + } switch ( $group_data['type'] ) { - case 'list' : + case 'list': array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] ); echo '

' . wp_sprintf( '%l.', $group_data['data'] ) . "

\n\n"; break; - case 'libraries' : + case 'libraries': array_walk( $group_data['data'], '_wp_credits_build_object_link' ); echo '

' . wp_sprintf( '%l.', $group_data['data'] ) . "

\n\n"; break; @@ -91,18 +113,20 @@ foreach ( $group_data['data'] as $person_data ) { echo '
  • ' . "\n\t"; echo ''; - $size = 'compact' == $group_data['type'] ? 30 : 60; - $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); - $size *= 2; + $size = 'compact' == $group_data['type'] ? 30 : 60; + $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); + $size *= 2; $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); echo '' . "\n"; echo esc_html( $person_data[0] ) . "\n\t"; - if ( ! $compact ) + if ( ! $compact ) { + // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText echo '' . translate( $person_data[3] ) . "\n"; + } echo "
  • \n"; } echo "\n"; - break; + break; } } @@ -117,6 +141,7 @@ // These are strings returned by the API that we want to be translatable __( 'Project Leaders' ); +/* translators: %s: The current WordPress version number */ __( 'Core Contributors to WordPress %s' ); __( 'Noteworthy Contributors' ); __( 'Cofounder, Project Lead' );