diff --git a/.gitignore b/.gitignore index 42e837a184d13a9f374155ec15ba7c8f14e64cae..0072441ee3d36bf5fce9bbed764240923d303500 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /vendor/ .idea composer.lock -build-coverage \ No newline at end of file +build-coverage +/lang/*.mo diff --git a/CHANGELOG.md b/CHANGELOG.md index 1935f2f1ff2585209a4eafc76f19dff446895ba4..daf0d3e3bef03a518b212d49c46f225a21c7363b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [3.2.7] - 2021-03-01 +### Fixed +- Update message and translation + ## [3.2.6] - 2021-03-01 ### Fixed - Update message and translation diff --git a/lang/wp-basic-requirements-pl_PL.po b/lang/wp-basic-requirements-pl_PL.po index 4f64dee4511cad5f5b36596551c8902ebc41b3d0..eebfb4a6985a7e2e3856fcd5fcaad5b7c0298f61 100644 --- a/lang/wp-basic-requirements-pl_PL.po +++ b/lang/wp-basic-requirements-pl_PL.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: WP Basic Requirements\n" -"POT-Creation-Date: 2021-03-01 10:11+0100\n" -"PO-Revision-Date: 2021-03-01 10:12+0100\n" +"POT-Creation-Date: 2021-03-01 11:52+0100\n" +"PO-Revision-Date: 2021-03-01 11:53+0100\n" "Last-Translator: Sebastian Pisula <sebastian.pisula@gmail.com>\n" "Language-Team: \n" "Language: pl_PL\n" @@ -54,16 +54,16 @@ msgstr "" "Wtyczka “%s” nie może dziaÅ‚ać bez aktywacji OpenSSL co najmniej " "w wersji %s. Zaktualizuj wersjÄ™ OpenSSL." -#: Basic_Requirement_Checker.php:306 +#: Basic_Requirement_Checker.php:308 #, php-format msgid "" -"The “%s” plugin requires at least %s version of %s to work " +"The “%1$s” plugin requires at least %2$s version of %3$s to work " "correctly. Please update it to its latest release." msgstr "" -"Do poprawnego dziaÅ‚ania “%s” wymaga wtyczki %s co najmniej w " -"wersji %s. Prosimy o wykonanie aktualizacji." +"Do poprawnego dziaÅ‚ania wtyczki “%1$s” wymagana jest wtyczka " +"%3$s w wersji co najmniej %2$s. Prosimy o wykonanie aktualizacji." -#: Basic_Requirement_Checker.php:391 +#: Basic_Requirement_Checker.php:395 #, php-format msgid "" "The “%s” plugin cannot run without %s active. Please install and " @@ -72,7 +72,7 @@ msgstr "" "Wtyczka “%s” nie może dziaÅ‚ać bez aktywacji %s. Zainstaluj i " "aktywuj wtyczkÄ™ %s." -#: Basic_Requirement_Checker.php:452 +#: Basic_Requirement_Checker.php:456 #, php-format msgid "" "The “%s” plugin requires free %s plugin. <a href=\"%s\">Install " @@ -81,7 +81,7 @@ msgstr "" "Wtyczka “%s” wymaga bezpÅ‚atnej wtyczki %s. <a href=\"%s" "\">Zainstaluj %s →</a>" -#: Basic_Requirement_Checker.php:461 +#: Basic_Requirement_Checker.php:465 #, php-format msgid "" "The “%s” plugin requires activating %s plugin. <a href=\"%s" @@ -90,7 +90,7 @@ msgstr "" "Wtyczka “%s” wymaga aktywnej wtyczki %s. <a href=\"%s\">Aktywuj " "%s →</a>" -#: Basic_Requirement_Checker.php:508 +#: Basic_Requirement_Checker.php:512 #, php-format msgid "" "The “%s” plugin cannot run without %s php module installed. " @@ -99,7 +99,7 @@ msgstr "" "Wtyczka “%s” nie może dziaÅ‚ać bez moduÅ‚u php: %s. Skontaktuj siÄ™ " "z administratorem hostingu i poproÅ› o instalacjÄ™ %s." -#: Basic_Requirement_Checker.php:536 +#: Basic_Requirement_Checker.php:540 #, php-format msgid "" "The “%s” plugin cannot run without %s php setting set to %s. " diff --git a/src/Basic_Requirement_Checker.php b/src/Basic_Requirement_Checker.php index cffcafa3181274856d9e9fb690b15f98d4c37c5a..b943db84bf3d22081b2276a76b9ff24765707c93 100644 --- a/src/Basic_Requirement_Checker.php +++ b/src/Basic_Requirement_Checker.php @@ -303,10 +303,14 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) { if ( count( $required_plugins ) > 0 ) { foreach ( $required_plugins as $plugin ) { if ( version_compare( $plugin['Version'], $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ], '<' ) ) { - $notices[] = $this->prepare_notice_message( sprintf( __( 'The “%s” plugin requires at least %s version of %s to work correctly. Please update it to its latest release.', - $this->get_text_domain() ), - esc_html( $this->plugin_name ), $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ], - $plugin['Name'] ) ); + $notices[] = $this->prepare_notice_message( + sprintf( + __( 'The “%1$s” plugin requires at least %2$s version of %3$s to work correctly. Please update it to its latest release.', $this->get_text_domain() ), + esc_html( $this->plugin_name ), + $plugin[ self::PLUGIN_INFO_APPEND_PLUGIN_DATA ], + $plugin['Name'] + ) + ); } } }