Skip to content

Commit f935b35

Browse files
committed
Plugin Check review
1 parent 436b87c commit f935b35

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

includes/MslsAdmin.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,21 @@ public function has_problems(): bool {
137137
$message = '';
138138

139139
if ( $this->options->is_empty() ) {
140-
$message = sprintf(
141-
__(
142-
'Multisite Language Switcher is almost ready. You must <a href="%s">complete the configuration process</a>.',
143-
'multisite-language-switcher'
144-
),
145-
esc_url( admin_url( $this->get_options_page_link() ) )
140+
/* translators: %s: URL to the options page */
141+
$format = __(
142+
'Multisite Language Switcher is almost ready. You must <a href="%s">complete the configuration process</a>.',
143+
'multisite-language-switcher'
146144
);
145+
$message = sprintf( $format, esc_url( admin_url( $this->get_options_page_link() ) ) );
147146
} elseif ( 1 == count( $this->options->get_available_languages() ) ) {
147+
/* translators: %1$s: URL to a page at WordPress.orgs */
148+
$format = __(
149+
'TNo language files are currently installed. Learn how to install various languages in WordPress by <a href="%1$s">reading more here</a>.',
150+
'multisite-language-switcher'
151+
);
148152
$message = sprintf(
149-
__(
150-
'There are no language files installed. You can <a href="%1$s">manually install some language files</a> or you could use a <a href="%2$s">plugin</a> to download these files automatically.',
151-
'multisite-language-switcher'
152-
),
153-
esc_url( 'http://codex.wordpress.org/Installing_WordPress_in_Your_Language#Manually_Installing_Language_Files' ),
154-
esc_url( 'http://wordpress.org/plugins/wp-native-dashboard/' )
153+
$format,
154+
esc_url( 'https://developer.wordpress.org/advanced-administration/before-install/in-your-language/#Manually_Installing_Language_Files' )
155155
);
156156
}
157157

includes/MslsMetaBox.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php declare( strict_types=1 );
22

3-
/**
4-
* MslsMetaBox
5-
*
6-
* @author Dennis Ploetner <re@lloc.de>
7-
* @since 0.9.8
8-
*/
9-
103
namespace lloc\Msls;
114

125
use lloc\Msls\ContentImport\MetaBox as ContentImportMetaBox;

0 commit comments

Comments
 (0)