diff --git a/inc/admin/class-spacious-admin.php b/inc/admin/class-spacious-admin.php index 02f5ccb..64ce413 100644 --- a/inc/admin/class-spacious-admin.php +++ b/inc/admin/class-spacious-admin.php @@ -33,7 +33,14 @@ public function __construct() { public function admin_menu() { $theme = wp_get_theme( get_template() ); - $page = add_theme_page( esc_html__( 'About', 'spacious' ) . ' ' . $theme->display( 'Name' ), esc_html__( 'About', 'spacious' ) . ' ' . $theme->display( 'Name' ), 'activate_plugins', 'spacious-welcome', array( $this, 'welcome_screen' ) ); + $page = add_theme_page( + /* translators: %s is theme name. */ + sprintf( esc_html__('About %s', 'spacious'), $theme->display( 'Name' ) ), + /* translators: %s is theme name. */ + sprintf( esc_html__('About %s', 'spacious'), $theme->display( 'Name' ) ), + 'activate_plugins', + 'spacious-welcome', + array( $this, 'welcome_screen' ) ); add_action( 'admin_print_styles-' . $page, array( $this, 'enqueue_styles' ) ); } @@ -113,9 +120,12 @@ private function intro() { ?>

- - display( 'Name' ); ?> - + display( 'Name' ), + sprintf( '%s', $major_version ) + ); ?>

@@ -214,16 +224,22 @@ public function about_screen() {

display( 'Name' ); + printf( + /* translators: %s is theme name. */ + esc_html__('Translate %s', 'spacious'), + $theme->display( 'Name' ) + ) ?>

display( 'Name' ); + printf( + /* translators: %s is theme name. */ + esc_html__('Translate %s', 'spacious'), + $theme->display( 'Name' ) + ) ?>