From 07949e08c58033bad94ebf5e76a74b62df359257 Mon Sep 17 00:00:00 2001 From: Justin Foell Date: Tue, 26 Dec 2017 14:41:20 -0600 Subject: [PATCH] translator formatting --- lib/API.class.php | 4 ++-- lib/LatestRidesWidget.class.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/API.class.php b/lib/API.class.php index 5f1fc3d..56ce806 100755 --- a/lib/API.class.php +++ b/lib/API.class.php @@ -44,7 +44,7 @@ class WPStrava_API { return new WP_Error( 'wp-strava_post', - // translators: message shown when there's a problem with ab HTTP POST to the Strava API. + // Translators: message shown when there's a problem with ab HTTP POST to the Strava API. sprintf( __( 'ERROR %1$s %2$s - See full error by adding define( \'WP_STRAVA_DEBUG\', true ); to wp-config.php', 'wp-strava' ), $response['response']['code'], $response['response']['message'] ), $error ); @@ -89,7 +89,7 @@ class WPStrava_API { return new WP_Error( 'wp-strava_get', - // translators: message shown when there's a problem with an HTTP GET to the Strava API. + // Translators: message shown when there's a problem with an HTTP GET to the Strava API. sprintf( __( 'ERROR %1$s %2$s - See full error by adding define( \'WP_STRAVA_DEBUG\', true ); to wp-config.php', 'wp-strava' ), $response['response']['code'], $response['response']['message'] ), $error ); diff --git a/lib/LatestRidesWidget.class.php b/lib/LatestRidesWidget.class.php index 8171179..df4e34a 100644 --- a/lib/LatestRidesWidget.class.php +++ b/lib/LatestRidesWidget.class.php @@ -98,18 +98,18 @@ class WPStrava_LatestRidesWidget extends WP_Widget { $response .= "" . $ride->name . ''; $response .= "
"; $unixtime = strtotime( $ride->start_date_local ); - // translators: Shows something like "On ." + // Translators: Shows something like "On <[went 10 miles] [during 2 hours] [climbing 100 feet]>." $response .= sprintf( __( 'On %1$s %2$s', 'wp-strava' ), date_i18n( get_option( 'date_format' ), $unixtime ), date_i18n( get_option( 'time_format' ), $unixtime ) ); if ( is_numeric( $strava_club_id ) ) { $response .= " " . $ride->athlete_name . ''; } - // translators: "went 10 miles" + // Translators: "went 10 miles" $response .= sprintf( __( ' went %1$s %2$s', 'wp-strava' ), $som->distance( $ride->distance ), $som->get_distance_label() ); - // translators: "during 1 hour" + // Translators: "during 2 hours" $response .= sprintf( __( ' during %1$s %2$s', 'wp-strava' ), $som->time( $ride->elapsed_time ), $som->get_time_label() ); - // translators: "climbing 100 feet" + // Translators: "climbing 100 ft." $response .= sprintf( __( ' climbing %1$s %2$s', 'wp-strava' ), $som->elevation( $ride->total_elevation_gain ), $som->get_elevation_label() ); $response .= '
'; }