From 8a7efe0ed26ed80f947cd3385285ed0241169d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor-Bj=C3=B6rn=20Fjellner?= Date: Thu, 12 Jun 2025 19:06:10 +0200 Subject: [PATCH] Improve comments to translators and removing indirect formatting (#63) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tor-Björn Fjellner --- inc/updater/class-lite.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/inc/updater/class-lite.php b/inc/updater/class-lite.php index a81abd6..f3b9e9e 100644 --- a/inc/updater/class-lite.php +++ b/inc/updater/class-lite.php @@ -398,7 +398,7 @@ if ( ! class_exists( 'Fragen\\Git_Updater\\Lite' ) ) { ); if ( ! empty( $current->response[ $theme->slug ]['package'] ) ) { 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' ), $theme->remote_version = isset( $theme->remote_version ) ? esc_attr( $theme->remote_version ) : null, '', @@ -410,16 +410,13 @@ if ( ! class_exists( 'Fragen\\Git_Updater\\Lite' ) ) { ); } else { 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' ), $theme->remote_version = isset( $theme->remote_version ) ? esc_attr( $theme->remote_version ) : null, '' ); - printf( - /* translators: %s: opening/closing paragraph and italic tags */ - esc_html__( '%1$sAutomatic update is unavailable for this theme.%2$s', 'fair' ), - '

', - '

' + echo( + '

' . esc_html__( 'Automatic update is unavailable for this theme.', 'fair' ) . '

' ); } ?>