Skip to content

Commit 1940d67

Browse files
committed
Sync some files with EN
1 parent 5bd19c2 commit 1940d67

File tree

23 files changed

+120
-83
lines changed

23 files changed

+120
-83
lines changed

appendices/reserved.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: a63b9c754188b610fe1916404831aa9f1b41efbf Maintainer: sobak Status: ready -->
2+
<!-- EN-Revision: 170b6cda37f29c39b9e08375344c5eb9523b2de3 Maintainer: sobak Status: ready -->
33
<!-- $Revision$ -->
44

55
<appendix xml:id="reserved" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -519,40 +519,48 @@
519519
<tgroup cols="4">
520520
<tbody>
521521
<row>
522+
<entry>
523+
parent
524+
</entry>
525+
<entry>
526+
self
527+
</entry>
522528
<entry>
523529
int
524530
</entry>
525531
<entry>
526532
float
527533
</entry>
534+
</row>
535+
<row>
528536
<entry>
529537
bool
530538
</entry>
531539
<entry>
532540
string
533541
</entry>
534-
</row>
535-
<row>
536542
<entry>
537543
true
538544
</entry>
539545
<entry>
540546
false
541547
</entry>
548+
</row>
549+
<row>
542550
<entry>
543551
null
544552
</entry>
545553
<entry>
546554
void (od PHP 7.1)
547555
</entry>
548-
</row>
549-
<row>
550556
<entry>
551557
iterable (od PHP 7.1)
552558
</entry>
553559
<entry>
554560
object (od PHP 7.2)
555561
</entry>
562+
</row>
563+
<row>
556564
<entry>
557565
mixed (od PHP 8.0)
558566
</entry>

language-snippets.ent

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: sobak Status: wip -->
2+
<!-- EN-Revision: 69fe083419b7888f6d424595771d54fe2d850d9d Maintainer: sobak Status: wip -->
33
<!-- $Revision$ -->
44
<!-- CREDITS: leszek, adi, cyb0org, joeaccord -->
55
<!-- TODO: Nieliczne sekcje opisane przez "TODO DOKOŃCZYĆ" nie są faktycznie przetłumaczone na j. polski. Pomoc mile widziana -->
@@ -343,6 +343,11 @@ xmlns="http://docbook.org/ns/docbook"><simpara>Ta funkcja jest
343343
<emphasis>PRZESTARZAŁA</emphasis> od PHP 8.0.0. Używanie tej funkcji
344344
jest niezalecane.</simpara></warning>'>
345345

346+
<!ENTITY warn.deprecated.feature-8-1-0 '<warning
347+
xmlns="http://docbook.org/ns/docbook"><simpara>Ta opcja jest
348+
<emphasis>PRZESTARZAŁA</emphasis> od PHP 8.1.0. Używanie tej opcji
349+
jest niezalecane.</simpara></warning>'>
350+
346351
<!ENTITY warn.deprecated.function-8-1-0 '<warning
347352
xmlns="http://docbook.org/ns/docbook"><simpara>Ta funkcja jest
348353
<emphasis>PRZESTARZAŁA</emphasis> od PHP 8.1.0. Używanie tej funkcji
@@ -373,6 +378,16 @@ xmlns="http://docbook.org/ns/docbook"><simpara>Ta funkcja jest
373378
<emphasis>PRZESTARZAŁA</emphasis> od PHP 8.4.0. Używanie tej funkcji
374379
jest niezalecane.</simpara></warning>'>
375380

381+
<!ENTITY warn.deprecated.feature-8-5-0 '<warning
382+
xmlns="http://docbook.org/ns/docbook"><simpara>Ta opcja jest
383+
<emphasis>PRZESTARZAŁA</emphasis> od PHP 8.5.0. Używanie tej opcji
384+
jest niezalecane.</simpara></warning>'>
385+
386+
<!ENTITY warn.deprecated.function-8-5-0 '<warning
387+
xmlns="http://docbook.org/ns/docbook"><simpara>Ta funkcja jest
388+
<emphasis>PRZESTARZAŁA</emphasis> od PHP 8.5.0. Używanie tej funkcji
389+
jest niezalecane.</simpara></warning>'>
390+
376391
<!ENTITY removed.php.future 'Ta przestarzała funkcja <emphasis xmlns="http://docbook.org/ns/docbook">zostanie</emphasis>
377392
na pewno w przyszłości <emphasis xmlns="http://docbook.org/ns/docbook">usunięta</emphasis>.'>
378393

@@ -642,6 +657,10 @@ jest niezalecane.</simpara></warning>
642657

643658
<!ENTITY example.outputs.84.similar '<para xmlns="http://docbook.org/ns/docbook">Powyższy przykład w PHP 8.4 wyświetli coś podobnego do:</para>'>
644659

660+
<!ENTITY example.outputs.85 '<para xmlns="http://docbook.org/ns/docbook">Powyższy przykład w PHP 8.5 wyświetli:</para>'>
661+
662+
<!ENTITY example.outputs.85.similar '<para xmlns="http://docbook.org/ns/docbook">Powyższy przykład w PHP 8.5 wyświetli coś podobnego do:</para>'>
663+
645664
<!ENTITY example.outputs.32bit '<para xmlns="http://docbook.org/ns/docbook">Wyświetla następujący przykład na systemach 32 bitowych:</para>'>
646665

647666
<!ENTITY example.outputs.64bit '<para xmlns="http://docbook.org/ns/docbook">Wyświetla następujący przykład na systemach 64 bitowych:</para>'>
@@ -2215,6 +2234,14 @@ dla tego rozszerzenia <acronym xmlns="http://docbook.org/ns/docbook">PECL</acron
22152234
<!ENTITY pecl.moved-ver 'To rozszerzenie zostało przeniesione do repozytorium &link.pecl;
22162235
i nie jest rozprowadzane z PHP od PHP '>
22172236

2237+
<!ENTITY pecl.moving.to.pie '<note xmlns="http://docbook.org/ns/docbook">
2238+
<simpara>
2239+
Instalator rozszerzeń dla PHP (ang. <emphasis>PHP Installer for Extensions</emphasis>, <acronym>PIE</acronym>) to nowe narzędzie, które zastąpi PECL.
2240+
Zalecamy użycie PIE do instalacji rozszerzeń.
2241+
Dowiedz się więcej pod adresem <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://github.com/php/pie">https://github.com/php/pie</link>
2242+
</simpara>
2243+
</note>'>
2244+
22182245
<!ENTITY warn.pecl.unmaintained '<warning xmlns="http://docbook.org/ns/docbook">
22192246
<simpara>To rozszerzenie <emphasis>nie jest już utrzymywane</emphasis>.</simpara>
22202247
</warning>'>
@@ -3446,6 +3473,16 @@ local: {
34463473
</listitem>
34473474
</varlistentry>
34483475
'>
3476+
<!ENTITY mongodb.parameter.bulkwritecommand '
3477+
<varlistentry xmlns="http://docbook.org/ns/docbook">
3478+
<term><parameter>bulk</parameter> (<classname>MongoDB\Driver\BulkWriteCommand</classname>)</term>
3479+
<listitem>
3480+
<para>
3481+
Zapis(y) do wykonania.
3482+
</para>
3483+
</listitem>
3484+
</varlistentry>
3485+
'>
34493486
<!ENTITY mongodb.parameter.command '
34503487
<varlistentry xmlns="http://docbook.org/ns/docbook">
34513488
<term><parameter>command</parameter> (<classname>MongoDB\Driver\Command</classname>)</term>
@@ -3672,10 +3709,12 @@ local: {
36723709
'>
36733710
<!ENTITY mongodb.returns.cursor '<para xmlns="http://docbook.org/ns/docbook">Zwraca <classname>MongoDB\Driver\Cursor</classname> przy powodzeniu.</para>'>
36743711
<!ENTITY mongodb.returns.writeresult '<para xmlns="http://docbook.org/ns/docbook">Zwraca <classname>MongoDB\Driver\WriteResult</classname> przy powodzeniu.</para>'>
3712+
<!ENTITY mongodb.returns.bulkwritecommandresult '<para xmlns="http://docbook.org/ns/docbook">Zwraca <classname>MongoDB\Driver\BulkWriteCommandResult</classname> przy powodzeniu.</para>'>
36753713
<!ENTITY mongodb.throws.std '&mongodb.throws.argumentparsing;&mongodb.throws.connection;&mongodb.throws.authentication;'>
36763714
<!ENTITY mongodb.throws.session-readwriteconcern '<member xmlns="http://docbook.org/ns/docbook">Rzuca wyjątek <classname>MongoDB\Driver\Exception\InvalidArgumentException</classname> jeśli opcja <literal>"session"</literal> jest używana w powiązanej transakcji w połączeniu z opcją <literal>"readConcern"</literal> lub <literal>"writeConcern"</literal>.</member>'>
36773715
<!-- //// TODO DOKOŃCZYĆ //// -->
36783716
<!ENTITY mongodb.throws.session-unacknowledged '<member xmlns="http://docbook.org/ns/docbook">Rzuca wyjątek <classname>MongoDB\Driver\Exception\InvalidArgumentException</classname> jeśli opcja <literal>"session"</literal> option is used in combination with an unacknowledged write concern.</member>'>
3717+
<!ENTITY mongodb.throws.bulkwritecommandexception '<member xmlns="http://docbook.org/ns/docbook">Throws <classname>MongoDB\Driver\Exception\BulkWriteCommandException</classname> on any write failure (e.g. command failure, write or write concern error)</member>'>
36793718
<!ENTITY mongodb.throws.bulkwriteexception '<member xmlns="http://docbook.org/ns/docbook">Rzuca wyjątek <classname>MongoDB\Driver\Exception\BulkWriteException</classname> w przypadku niepowodzenia zapisu (e.g. write error, failure to apply a write concern)</member>'>
36803719
<!ENTITY mongodb.throws.argumentparsing '<member xmlns="http://docbook.org/ns/docbook">Rzuca wyjątek <classname>MongoDB\Driver\Exception\InvalidArgumentException</classname> przy błędach parsowania argumentów.</member>'>
36813720
<!ENTITY mongodb.throws.authentication '<member xmlns="http://docbook.org/ns/docbook">Rzuca wyjątek <classname>MongoDB\Driver\Exception\AuthenticationException</classname> jeśli wymagana autoryzacja nie powiedzie się.</member>'>

language/context/http.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: e7b81f2c31e6b824748eeb8106b8bd4dec386781 Maintainer: grzesiek Status: ready -->
2+
<!-- EN-Revision: 3abd17e61d5022d503604cc06894254e3281acf5 Maintainer: grzesiek Status: ready -->
33
<!-- $Revision$ -->
44

55
<refentry xml:id="context.http" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_context_option">
@@ -209,19 +209,19 @@
209209
<?php
210210
211211
$postdata = http_build_query(
212-
array(
212+
[
213213
'var1' => 'some content',
214214
'var2' => 'doh'
215-
)
215+
]
216216
);
217217
218-
$opts = array('http' =>
219-
array(
218+
$opts = [
219+
'http' => [
220220
'method' => 'POST',
221221
'header' => 'Content-type: application/x-www-form-urlencoded',
222-
'content' => $postdata
223-
)
224-
);
222+
'content' => $postdata,
223+
]
224+
];
225225
226226
$context = stream_context_create($opts);
227227
@@ -241,13 +241,13 @@ $result = file_get_contents('http://example.com/submit.php', false, $context);
241241
242242
$url = "http://www.example.org/header.php";
243243
244-
$opts = array('http' =>
245-
array(
246-
'method' => 'GET',
244+
$opts = [
245+
'http' => [
246+
'method' => 'GET',
247247
'max_redirects' => '0',
248-
'ignore_errors' => '1'
249-
)
250-
);
248+
'ignore_errors' => '1',
249+
]
250+
];
251251
252252
$context = stream_context_create($opts);
253253
$stream = fopen($url, 'r', false, $context);

language/control-structures/match.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 22583751fbfdaa3eaa41aeb6470d1343f5cb2c78 Maintainer: grzesiek Status: ready -->
2+
<!-- EN-Revision: 17502ebe0691a84e7d0738c13e8c1061dde98de7 Maintainer: grzesiek Status: ready -->
33
<!-- $Revision$ -->
44

55
<sect1 xml:id="control-structures.match" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -291,8 +291,8 @@ string(11) "young adult"
291291
$text = 'Bienvenue chez nous';
292292
293293
$result = match (true) {
294-
str_contains($text, 'Welcome') || str_contains($text, 'Hello') => 'en',
295-
str_contains($text, 'Bienvenue') || str_contains($text, 'Bonjour') => 'fr',
294+
str_contains($text, 'Welcome'), str_contains($text, 'Hello') => 'en',
295+
str_contains($text, 'Bienvenue'), str_contains($text, 'Bonjour') => 'fr',
296296
// ...
297297
};
298298

language/oop5/basic.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: sobak Status: ready -->
2+
<!-- EN-Revision: fc068b4857342eb409efeafe6723058f39ab1045 Maintainer: sobak Status: ready -->
33

44
<sect1 xml:id="language.oop5.basic" xmlns="http://docbook.org/ns/docbook">
55
<title>Podstawy</title>
@@ -537,7 +537,7 @@ $extended->wyswietlWlasciwosc();
537537
<screen>
538538
<![CDATA[
539539
Klasa rozszerzająca
540-
domyślna wartość
540+
Klasa rodzica
541541
]]>
542542
</screen>
543543
</example>

language/oop5/decon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: sobak Status: ready -->
2+
<!-- EN-Revision: 82fc6a1c8670b96f1bd2b40932b6eb19929f4f6f Maintainer: sobak Status: ready -->
33
<sect1 xml:id="language.oop5.decon" xmlns="http://docbook.org/ns/docbook">
44
<title>Konstruktory i destruktory</title>
55

@@ -263,7 +263,7 @@ class Produkt {
263263
public static function fromXml(string $xml): static {
264264
$data = simplexml_load_string($xml);
265265
$new = new static();
266-
$new->id = $data->id;
266+
$new->id = (int) $data->id;
267267
$new->nazwa = $data->nazwa;
268268
return $new;
269269
}

language/oop5/interfaces.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 0c2a0d736df56dd0f3a1b88bd6ce7c975c38285a Maintainer: sobak Status: ready -->
2+
<!-- EN-Revision: 565bd8b6cf2cae44ae2bc54ef6dbe6ee70ddfefd Maintainer: sobak Status: ready -->
33
<sect1 xml:id="language.oop5.interfaces" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<title>Interfejsy obiektów</title>
55
<para>

language/predefined/variables/httpresponseheader.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 3f1cd5121f7c9f8347ca69c8f657fdb24c0f9729 Maintainer: sobak Status: ready -->
2+
<!-- EN-Revision: fcf847c112e36140d1fdf30cc6fc83cb1c4eb297 Maintainer: sobak Status: ready -->
33
<!-- $Revision$ -->
44
<refentry role="variable" xml:id="reserved.variables.httpresponseheader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
66
<refname>$http_response_header</refname>
77
<refpurpose>Nagłówki odpowiedzi HTTP</refpurpose>
88
</refnamediv>
9+
10+
<refsynopsisdiv>
11+
&warn.deprecated.feature-8-5-0;
12+
<simpara>
13+
Zamiast tego użyj funkcji <function>http_get_last_response_headers</function>.
14+
</simpara>
15+
</refsynopsisdiv>
916

1017
<refsect1 role="description">
1118
&reftitle.description;

language/types/boolean.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: e587d0655e426f97b3fcb431453da5030e743b23 Maintainer: sobak Status: ready -->
2+
<!-- EN-Revision: f90b26b377a61c76c0f64028e47553e550411d08 Maintainer: sobak Status: ready -->
33
<sect1 xml:id="language.types.boolean">
44
<title>Wartości logiczne</title>
55

@@ -35,6 +35,9 @@ $foo = True; // przypisz wartość TRUE do $foo
3535
<programlisting role="php">
3636
<![CDATA[
3737
<?php
38+
$action = "pokaz_wersje";
39+
$show_separators = true;
40+
3841
// == to operator, który sprawdza
3942
// równość i zwraca wartość logiczną
4043
if ($action == "pokaz_wersje") {

language/types/declarations.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: e587d0655e426f97b3fcb431453da5030e743b23 Maintainer: sobak Status: ready -->
2+
<!-- EN-Revision: 0ece873cecfc4dacd14e8bebbec12c6e00de56a0 Maintainer: sobak Status: ready -->
33
<sect1 xml:id="language.types.declarations">
44
<title>Deklaracje typów</title>
55

@@ -359,7 +359,7 @@ NULL
359359
</listitem>
360360
<listitem>
361361
<simpara>
362-
Użycie <type>mixed</type> skutkuje błędem.
362+
Użycie <type>mixed</type> lub <type>never</type> skutkuje błędem.
363363
</simpara>
364364
</listitem>
365365
<listitem>

0 commit comments

Comments
 (0)