From b6d5ae70a82e090c7041e1e7558f7cbe41e9e90a Mon Sep 17 00:00:00 2001 From: dyszczo <krzysztof.dyszczyk@gmail.com> Date: Wed, 18 Sep 2019 16:00:35 +0200 Subject: [PATCH] translations --- lang/wp-basic-requirements-pl_PL.mo | Bin 0 -> 3142 bytes lang/wp-basic-requirements-pl_PL.po | 132 ++++++++++++++++++ src/Basic_Requirement_Checker_Factory.php | 2 +- ...Test_Basic_Requirement_Checker_Factory.php | 6 +- 4 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 lang/wp-basic-requirements-pl_PL.mo create mode 100644 lang/wp-basic-requirements-pl_PL.po 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 GIT binary patch literal 3142 zcmca7#4?qEfq{XWfq_AWfq|iffq_Agfq~%+NRWYnL4c8gp&TT}$iR@nz`)SS$iR@o zz`*c{k%1wBfq@~MiGiVpfq`KM69Ypf0|SF8GXp~b0|Uc)W(I~x1_lNN76yiB1_p*I z76yh81_p*}EDQ|!ObiU#tPBiO7#J94vokPMGcYh1a6s%?!vQf@g_D7ygMopem6L&C zHUk3#9~T2d1p@=aDlP_wJO%~^Wo`zB2nGg*N!$z!Q49<Wueli*7#SEC*cccXxS(za z`3cHoU}a!n;ACK6V228@FfcH1K-nOQiGhKE8N>+5NL5f%wlFd>uvRSwGYqX23UW%* zGxHRZ6Z7)&OB9Mq^Az&)6aqW~6v|SIiZk=`iWTy6Qc{Z)N-`4j6jY1#6asQm6N^(7 zlJoOQ5|c|5D)UQ=6f*LQOB53GQWO%4vlU7*Qganb@)b%8(u)#PQuP>!w>LaL-#I@w zH?=4^m5}|V1u2OosR~FsNVBLYC7>v^xR_{bpz4XXq&%}EBfqpnLA6*RF}WnOEEOJd znR&$}i8(ot@B&GJ{GnP5jR|rrD99*K$jwhF%}G^&8lIX0w~lZ`LG^%Qm)N*M@*T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-WUDU^dF_sC3;3eo}<WI=9zO6k$2QiXzy z0xOUS<VG&UVc@6*8AG~5N{dSp%QI8+G7~{=0hOi@k^H>W^n8W9M3AZEIu2q|Dk!ys zsy>op9~4N5*(K0efK_VAASY$z=4Ga4!7>aiilC_+6f>ZFbY!LiR1==)&q^&WQAo}x z&&<g$&sWIHOa<GRm#Cvqke`>CTAp}xk3xB6Zen_3ULrKYK>?xw)>nSCDe>rRkmq1I zEWbQ4FA<M*5ThU|C=cWVa1w%e09GSDYM7&1{HS5Bog>KerCFdDfz@9)0}yI(QfgJf T(Wb-_TxNr7TcpH{R5bzsm`vwh literal 0 HcmV?d00001 diff --git a/lang/wp-basic-requirements-pl_PL.po b/lang/wp-basic-requirements-pl_PL.po new file mode 100644 index 0000000..b621343 --- /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 c736e11..5c691b6 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 14e4bc1..adbf8d9 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 ); -- GitLab