Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 15 months ago

#46959 closed defect (bug) (invalid)

Missing translators in inline Doc

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


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 17 months ago.

Download all attachments as: .zip

Change History (6)

#1 @subrataemfluence
17 months ago

  • Keywords has-patch added

#2 @tobifjellner
17 months 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 17 months ago by tobifjellner (previous) (diff)

#3 @Clorith
17 months 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
17 months ago

  • Component changed from General to Administration

#5 @spacedmonkey
15 months ago

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