diff --git a/lang/wp-basic-requirements-pl_PL.mo b/lang/wp-basic-requirements-pl_PL.mo new file mode 100644 index 0000000000000000000000000000000000000000..1be5028dc9cb2e5a10787862f5a381c950c230a7 Binary files /dev/null and b/lang/wp-basic-requirements-pl_PL.mo differ diff --git a/lang/wp-basic-requirements-pl_PL.po b/lang/wp-basic-requirements-pl_PL.po new file mode 100644 index 0000000000000000000000000000000000000000..b621343cd841f8083a7cb9c9853759db9d0cfb9e --- /dev/null +++ b/lang/wp-basic-requirements-pl_PL.po @@ -0,0 +1,132 @@ +msgid "" +msgstr "" +"Project-Id-Version: \n" +"POT-Creation-Date: 2019-09-18 15:50+0200\n" +"PO-Revision-Date: 2019-09-18 15:59+0200\n" +"Last-Translator: Krzysztof Dyszczyk <krzysztof.dyszczyk@gmail.com>\n" +"Language-Team: \n" +"Language: pl_PL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.2.3\n" +"X-Poedit-Basepath: ../src\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" +"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" +"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;" +"\"\n" +"X-Poedit-SearchPath-0: .\n" + +#: Basic_Requirement_Checker.php:187 +#, php-format +msgid "" +"The “%s” plugin cannot run on PHP versions older than %s. Please " +"contact your host and ask them to upgrade." +msgstr "" +"Wtyczka “%s” nie może działać w wersjach PHP starszych niż %s. " +"Skontaktuj się z administratorem hostingu i poproś o aktualizację." + +#: Basic_Requirement_Checker.php:191 +#, php-format +msgid "" +"The “%s” plugin cannot run on WordPress versions older than %s. " +"Please update WordPress." +msgstr "" +"Wtyczka “%s” nie może działać w wersjach WordPress starszych niż " +"%s. Prosimy o aktualizację WordPress." + +#: Basic_Requirement_Checker.php:195 +#, php-format +msgid "" +"The “%s” plugin cannot run on WooCommerce versions older than " +"%s. Please update WooCommerce." +msgstr "" +"Wtyczka “%s” nie może działać w wersjach WooCommerce starszych " +"niż %s. Prosimy o aktualizację WooCommerce." + +#: Basic_Requirement_Checker.php:199 +#, php-format +msgid "" +"The “%s” plugin cannot run without OpenSSL module version at " +"least %s. Please update OpenSSL module." +msgstr "" +"Wtyczka “%s” nie może działać bez aktywacji OpenSSL co najmniej " +"w wersji %s. Zaktualizuj wersję OpenSSL." + +#: Basic_Requirement_Checker.php:290 +#, php-format +msgid "" +"The “%s” plugin cannot run without %s active. Please install and " +"activate %s plugin." +msgstr "" +"Wtyczka “%s” nie może działać bez aktywacji %s. Zainstaluj i " +"aktywuj wtyczkę %s." + +#: Basic_Requirement_Checker.php:349 +#, php-format +msgid "" +"The “%s” plugin requires free %s plugin. <a href=\"%s\">Install " +"%s →</a>" +msgstr "" +"Wtyczka “%s” wymaga bezpłatnej wtyczki %s. <a href=\"%s" +"\">Zainstaluj %s →</a>" + +#: Basic_Requirement_Checker.php:357 +#, php-format +msgid "" +"The “%s” plugin requires activating %s plugin. <a href=\"%s" +"\">Activate %s →</a>" +msgstr "" +"Wtyczka “%s” wymaga aktywnej wtyczki %s. <a href=“%s”>Aktywuj %s " +"→</a>" + +#: Basic_Requirement_Checker.php:403 +#, php-format +msgid "" +"The “%s” plugin cannot run without %s php module installed. " +"Please contact your host and ask them to install %s." +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:431 +#, php-format +msgid "" +"The “%s” plugin cannot run without %s php setting set to %s. " +"Please contact your host and ask them to set %s." +msgstr "" +"Wtyczka “%s” nie może działać bez ustawienia php %s ustawionego " +"na %s. Skontaktuj się z administratorem hostingu i poproś o ustawienie %s." + +#: Basic_Requirement_Checker_With_Update_Disable.php:27 +#, php-format +msgid "" +"The “%s” plugin disables temporarily as required %s plugin is " +"being upgraded." +msgstr "" +"Wtyczka “%s” jest chwilowo nieaktywna, ponieważ wymagana wtyczka " +"%s jest właśnie aktualizowana." + +#~ msgid "" +#~ "The “%s” plugin cannot start as there is a dependency " +#~ "conflict with other existing plugin “%s”. Please upgrade all " +#~ "plugins to the most recent version or disable the “%s” plugin." +#~ msgstr "" +#~ "Wtyczka “%s” nie może zostać uruchomiona, ponieważ powstał " +#~ "konflikt zależności z już uruchomioną wtyczką “%s”. Proszę " +#~ "zaktualizuj wtyczki do najnowszych wersji lub dezaktywuj wtyczkę “" +#~ "%s”." + +#~ msgid "" +#~ "The “%s” plugin cannot start as there is a dependency " +#~ "conflict with other existing plugin “%s”. The required " +#~ "version of dependency %s is %s and the version used by plugin “" +#~ "%s” is %s. Please upgrade all plugins to the most recent version or " +#~ "disable the “%s” plugin." +#~ msgstr "" +#~ "Plugin “%s” nie może zostać uruchomiony, ponieważ powstał " +#~ "konflikt zależności z już uruchomionem pluginem “%s”. " +#~ "Wymagana wersja zależności %s to %s, a wersja używana przez plugin “" +#~ "%s” to %s. Proszę zaktualizuj pluginy do najnowszej wersji lub " +#~ "deaktywuj plugin “%s”." diff --git a/src/Basic_Requirement_Checker_Factory.php b/src/Basic_Requirement_Checker_Factory.php index c736e116ec6c91fc0d9c7fd05b9b5e25e0e1d381..5c691b679b8f52844f78e3af1d63a5ec64074689 100644 --- a/src/Basic_Requirement_Checker_Factory.php +++ b/src/Basic_Requirement_Checker_Factory.php @@ -12,7 +12,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker_With_Update_Disable' ) ) * Falicitates createion of requirement checker */ class WPDesk_Basic_Requirement_Checker_Factory { - const LIBRARY_TEXT_DOMAIN = 'requirement-checker'; + const LIBRARY_TEXT_DOMAIN = 'wp-basic-requirements'; /** * Creates a simplest possible version of requirement checker. diff --git a/tests/unit/Test_Basic_Requirement_Checker_Factory.php b/tests/unit/Test_Basic_Requirement_Checker_Factory.php index 14e4bc131bf8d58e9f19c561dde56ae18ecf195a..adbf8d9578ddb9e8c825983c1e9a90a661e3389e 100644 --- a/tests/unit/Test_Basic_Requirement_Checker_Factory.php +++ b/tests/unit/Test_Basic_Requirement_Checker_Factory.php @@ -3,7 +3,7 @@ class Test_Basic_Requirement_Checker_Factory extends PHPUnit\Framework\TestCase { public function test_can_create_checker_withn_valid_requirements() { - + $existing_locale = 'pl_PL'; $requirements = array( 'php' => '5.6', 'wp' => '4.5', @@ -23,7 +23,9 @@ class Test_Basic_Requirement_Checker_Factory extends PHPUnit\Framework\TestCase ); WP_Mock::wpFunction( 'get_locale' ) - ->andReturn( 'pl_PL' ); + ->andReturn( $existing_locale ); + WP_Mock::wpFunction( 'load_textdomain' ) + ->once(); // locale pl_PL exists so it should try to load it $factory = new WPDesk_Basic_Requirement_Checker_Factory(); $checker = $factory->create_from_requirement_array( 'whatever', 'whatever', $requirements );