Improve comments to translators and removing indirect formatting (#63)

Signed-off-by: Tor-Björn Fjellner <tobifjellner@users.noreply.github.com>
This commit is contained in:
Tor-Björn Fjellner 2025-06-12 19:06:10 +02:00 committed by GitHub
parent 82f372431c
commit 8a7efe0ed2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -398,7 +398,7 @@ if ( ! class_exists( 'Fragen\\Git_Updater\\Lite' ) ) {
); );
if ( ! empty( $current->response[ $theme->slug ]['package'] ) ) { if ( ! empty( $current->response[ $theme->slug ]['package'] ) ) {
printf( printf(
/* translators: 1: version number, 2: closing anchor tag, 3: update URL */ /* translators: 1: opening anchor with version number, 2: closing anchor tag, 3: opening anchor with update URL */
esc_html__( 'View version %1$s details%2$s or %3$supdate now%2$s.', 'fair' ), esc_html__( 'View version %1$s details%2$s or %3$supdate now%2$s.', 'fair' ),
$theme->remote_version = isset( $theme->remote_version ) ? esc_attr( $theme->remote_version ) : null, $theme->remote_version = isset( $theme->remote_version ) ? esc_attr( $theme->remote_version ) : null,
'</a>', '</a>',
@ -410,16 +410,13 @@ if ( ! class_exists( 'Fragen\\Git_Updater\\Lite' ) ) {
); );
} else { } else {
printf( printf(
/* translators: 1: version number, 2: closing anchor tag, 3: update URL */ /* translators: 1: opening anchor with version number, 2: closing anchor tag, 3: opening anchor with update URL */
esc_html__( 'View version %1$s details%2$s.', 'fair' ), esc_html__( 'View version %1$s details%2$s.', 'fair' ),
$theme->remote_version = isset( $theme->remote_version ) ? esc_attr( $theme->remote_version ) : null, $theme->remote_version = isset( $theme->remote_version ) ? esc_attr( $theme->remote_version ) : null,
'</a>' '</a>'
); );
printf( echo(
/* translators: %s: opening/closing paragraph and italic tags */ '<p><i>' . esc_html__( 'Automatic update is unavailable for this theme.', 'fair' ) . '</i></p>'
esc_html__( '%1$sAutomatic update is unavailable for this theme.%2$s', 'fair' ),
'<p><i>',
'</i></p>'
); );
} }
?> ?>