Skip to content

Commit

Permalink
Plugin-directory: Sentence case meta details and remove ':'.
Browse files Browse the repository at this point in the history
See: #312
Props: joen


git-svn-id: https://meta.svn.wordpress.org/sites/trunk@13751 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
StevenDufresne committed May 28, 2024
1 parent cf1bc10 commit f0560bc
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function widget( $args, $instance ) {
<?php
printf(
/* translators: %s: version number */
__( 'Version: %s', 'wporg-plugins' ),
__( 'Version %s', 'wporg-plugins' ),
'<strong>' . esc_html( get_post_meta( $post->ID, 'version', true ) ) . '</strong>'
);
?>
Expand All @@ -69,7 +69,7 @@ public function widget( $args, $instance ) {

printf(
/* translators: %s: time since the last update */
__( 'Last updated: %s', 'wporg-plugins' ),
__( 'Last updated %s', 'wporg-plugins' ),
/* translators: %s: time since the last update */
'<strong>' . wp_kses( sprintf( __( '%s ago', 'wporg-plugins' ), '<span>' . human_time_diff( $modified_time ) . '</span>' ), array( 'span' => true ) ) . '</strong>'
);
Expand All @@ -79,15 +79,15 @@ public function widget( $args, $instance ) {
<?php
printf(
/* translators: %s: active installations count */
__( 'Active installations: %s', 'wporg-plugins' ),
__( 'Active installations %s', 'wporg-plugins' ),
'<strong>' . esc_html( Template::active_installs( false ) ) . '</strong>'
);
?>
</li>

<?php if ( $requires = (string) get_post_meta( $post->ID, 'requires', true ) ) : ?>
<li>
<?php esc_html_e( 'WordPress Version:', 'wporg-plugins' ); ?>
<?php esc_html_e( 'WordPress version', 'wporg-plugins' ); ?>
<strong>
<?php
printf(
Expand All @@ -105,7 +105,7 @@ public function widget( $args, $instance ) {
<?php
printf(
/* translators: %s: version number */
__( 'Tested up to: %s', 'wporg-plugins' ),
__( 'Tested up to %s', 'wporg-plugins' ),
'<strong>' . esc_html( $tested_up_to ) . '</strong>'
);
?>
Expand All @@ -114,7 +114,7 @@ public function widget( $args, $instance ) {

<?php if ( $requires_php = (string) get_post_meta( $post->ID, 'requires_php', true ) ) : ?>
<li>
<?php esc_html_e( 'PHP Version:', 'wporg-plugins' ); ?>
<?php esc_html_e( 'PHP version', 'wporg-plugins' ); ?>
<strong>
<?php
printf(
Expand All @@ -135,9 +135,9 @@ public function widget( $args, $instance ) {
<li>
<?php
if ( 1 === $available_languages_count ) {
esc_html_e( 'Language:', 'wporg-plugins' );
esc_html_e( 'Language', 'wporg-plugins' );
} else {
esc_html_e( 'Languages:', 'wporg-plugins' );
esc_html_e( 'Languages', 'wporg-plugins' );
}

echo '<div class="languages">';
Expand Down Expand Up @@ -208,7 +208,7 @@ public function widget( $args, $instance ) {
echo '<li class="clear">';
printf(
/* translators: %s: tag list */
_n( 'Tag: %s', 'Tags: %s', count( $term_links ), 'wporg-plugins' ),
_n( 'Tag %s', 'Tags %s', count( $term_links ), 'wporg-plugins' ),
'<div class="tags">' . implode( $term_links ) . '</div>'
);
echo '</li>';
Expand Down

0 comments on commit f0560bc

Please sign in to comment.