Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#46959 closed defect (bug) (invalid)

Missing translators in inline Doc

Reported by: subrataemfluence's profile subrataemfluence Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Site Health Keywords: site-health has-patch
Focuses: docs Cc:

Description

Following placeholders are missing translators in wp-admin/site-health-info.php

printf( '(%d)', count( $details['fields'] ) );

printf( '<p>%s</p>', wp_kses( $details['description'], $kses_settings ) );

$values .= sprintf( '<li>%s: %s</li>', esc_html( $name ), esc_html( $value ) );

printf( '<tr><td>%s</td><td class="%s">%s</td></tr>', esc_html( $field['label'] ), esc_attr( $field_name ), $values );

printf( '<tr><td>%s</td><td>%s</td></tr>', esc_html( $field['label'] ), $values );

I have uploaded a possible fix. Please check if this worth!

Attachments (1)

46959.diff (1.6 KB) - added by subrataemfluence 5 years ago.

Download all attachments as: .zip

Change History (6)

#1 @subrataemfluence
5 years ago

  • Keywords has-patch added

#2 @tobifjellner
5 years ago

Hmm. You've added comments for translators where there are no translatable strings...

Strings for translation will be wrapped in such functions, as __(), _n(), _e(), etc.

Last edited 5 years ago by tobifjellner (previous) (diff)

#3 @Clorith
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

As @tobifjellner mentioned, there are no translation strings here that need comments, we're using sprintf (which is often used alongside translation functions such as __(), so I can understand the confusion here) to combine strings in a way that's easy to read.

#4 @SergeyBiryukov
5 years ago

  • Component changed from General to Administration

#5 @spacedmonkey
5 years ago

  • Component changed from Administration to Site Health
Note: See TracTickets for help on using tickets.