Skip to content

Commit

Permalink
De-duplicate some translator comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Dec 21, 2024
1 parent c435c0d commit 2b1735d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion output/headers/overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function get_output() {

if ( ! empty( $data->memory ) ) {
$headers['memory'] = sprintf(
/* translators: %s: Memory used in megabytes */
/* translators: %s: Memory usage in megabytes with a decimal fraction. Note the space between value and unit symbol. */
__( '%s MB', 'query-monitor' ),
number_format_i18n( ( $data->memory / 1024 / 1024 ), 1 )
);
Expand Down
6 changes: 3 additions & 3 deletions output/html/overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function output() {
echo '<p>';
echo esc_html(
sprintf(
/* translators: %s: A time in seconds with a decimal fraction. No space between value and unit. */
/* translators: %s: A time in seconds with a decimal fraction. No space between value and unit symbol. */
_x( '%ss', 'Time in seconds', 'query-monitor' ),
number_format_i18n( $data->time_taken, 4 )
)
Expand Down Expand Up @@ -186,7 +186,7 @@ public function output() {
echo '<p>';
echo esc_html(
sprintf(
/* translators: %s: A time in seconds with a decimal fraction. No space between value and unit. */
/* translators: %s: A time in seconds with a decimal fraction. No space between value and unit symbol. */
_x( '%ss', 'Time in seconds', 'query-monitor' ),
number_format_i18n( $db_queries_data->total_time, 4 )
)
Expand Down Expand Up @@ -234,7 +234,7 @@ public function output() {
echo '<p>';
echo esc_html(
sprintf(
/* translators: %s: A time in seconds with a decimal fraction. No space between value and unit. */
/* translators: %s: A time in seconds with a decimal fraction. No space between value and unit symbol. */
_x( '%ss', 'Time in seconds', 'query-monitor' ),
number_format_i18n( $http_data->ltime, 4 )
)
Expand Down

0 comments on commit 2b1735d

Please sign in to comment.