-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more translations for the language chapter
- Loading branch information
Showing
26 changed files
with
2,127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: db7aa4f29bd5909f8ab9e3739f60afb77837e4df Maintainer: sobak Status: ready --> | ||
<!-- $Revision$ --> | ||
|
||
<sect1 xml:id="function.return" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<title>return</title> | ||
<?phpdoc print-version-for="return"?> | ||
<simpara> | ||
Wyrażenie <literal>return</literal> zwraca kontrolę programu do modułu wykonującego. | ||
Wykonywanie wznawiane jest na wyrażeniu następującym po wywołaniu wywoływanego modułu. | ||
</simpara> | ||
<simpara> | ||
Jeżeli użyte wewnątrz funkcji, wyrażenie <literal>return</literal> | ||
natychmiast kończy wykonanie tej funkcji i | ||
zwraca swój argument jako wartość wywołania | ||
funkcji. <literal>return</literal> kończy też wykonanie | ||
wyrażeń <function>eval</function> i pliku skryptu. | ||
</simpara> | ||
<simpara> | ||
Jeżeli zostało wywołane z zasięgu globalnego, to kończone jest | ||
wykonanie aktualnego pliku skryptu. Jeżeli obecny zasięg pliku | ||
dołączony za pomocą <function>include</function> lub <function>require</function>, | ||
to kontrola jest przekazywana z powrotem do pliku, który je wykonał. Ponadto, jeśli | ||
obecny skrypt został dołączony przez <function>include</function>, to | ||
wartość podana dla <literal>return</literal> będzie zwrócona jako | ||
wartość wywołania <function>include</function>. Jeżeli | ||
<literal>return</literal> jest wywołane w głównym pliku | ||
skryptu, to wykonywanie skryptu kończy się. Jeżeli obecny skrypt był | ||
ustawiony jako opcja <link | ||
linkend="ini.auto-prepend-file">auto_prepend_file</link> lub <link | ||
linkend="ini.auto-append-file">auto_append_file</link> | ||
w &php.ini; | ||
to wykonywanie tego pliku skryptu kończy się. | ||
</simpara> | ||
<simpara>Aby dowiedzieć się więcej zobacz rozdział <link | ||
linkend="functions.returning-values">Zwracanie wartości</link>. | ||
</simpara> | ||
<para> | ||
<note> | ||
<simpara> | ||
Zauważ, że jako iż <literal>return</literal> jest konstrukcją | ||
języka, a nie funkcją, nawiasy okalające jego | ||
argument nie są wymagane, a ich użycie jest niezalecane. | ||
</simpara> | ||
</note> | ||
<note> | ||
<simpara> | ||
Jeżeli nie podano parametru, to nawiasy muszą zostać pominięte, | ||
a zwrócony zostanie &null;. | ||
Wywołanie <literal>return</literal> z nawiasami, ale | ||
bez argumentów spowoduje błąd parsowania. | ||
</simpara> | ||
</note> | ||
</para> | ||
|
||
<para> | ||
Od PHP 7.1.0 wyrażenia return bez argumentu w funkcjach, które deklarują zwracany typ wywołują <constant>E_COMPILE_ERROR</constant>, | ||
chyba że zwracanym typem jest <type>void</type>, gdyż w takim wypadku to wyrażenia return | ||
z argumentem wywołują taki błąd. | ||
</para> | ||
</sect1> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 681fd84dbdef6c0f8fe92848677d95a993b66143 Maintainer: sobak Status: ready --> | ||
<!-- $Revision$ --> | ||
<refentry xml:id="allowdynamicproperties.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>AllowDynamicProperties::__construct</refname> | ||
<refpurpose>Tworzy nową instancję atrybutu AllowDynamicProperties</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<constructorsynopsis role="AllowDynamicProperties"> | ||
<modifier>public</modifier> <methodname>AllowDynamicProperties::__construct</methodname> | ||
<void/> | ||
</constructorsynopsis> | ||
<para> | ||
Tworzy nową instancję <classname>AllowDynamicProperties</classname>. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
&no.function.parameters; | ||
</refsect1> | ||
</refentry> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: sobak Status: ready --> | ||
<!-- $Revision$ --> | ||
<phpdoc:exceptionref xml:id="class.argumentcounterror" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<title>ArgumentCountError</title> | ||
<titleabbrev>ArgumentCountError</titleabbrev> | ||
|
||
<partintro> | ||
|
||
<!-- {{{ Error intro --> | ||
<section xml:id="argumentcounterror.intro"> | ||
&reftitle.intro; | ||
<para> | ||
<ooclass><classname>ArgumentCountError</classname></ooclass> jest rzucany, | ||
gdy zostało przekazanych zbyt mało argumentów do funkcji lub metody zdefiniowanej przez użytkownika. | ||
</para> | ||
<para> | ||
Ten błąd jest także rzucany, gdy przekazano zbyt mało argumentów | ||
do nie-wariadycznej funkcji wbudowanej. | ||
</para> | ||
</section> | ||
<!-- }}} --> | ||
|
||
<section xml:id="argumentcounterror.synopsis"> | ||
&reftitle.classsynopsis; | ||
|
||
<!-- {{{ Synopsis --> | ||
<classsynopsis class="class"> | ||
<ooexception> | ||
<exceptionname>ArgumentCountError</exceptionname> | ||
</ooexception> | ||
|
||
<ooclass> | ||
<modifier>extends</modifier> | ||
<classname>TypeError</classname> | ||
</ooclass> | ||
|
||
<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo> | ||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))"> | ||
<xi:fallback/> | ||
</xi:include> | ||
|
||
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo> | ||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Error'])"> | ||
<xi:fallback/> | ||
</xi:include> | ||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Error'])"> | ||
<xi:fallback/> | ||
</xi:include> | ||
</classsynopsis> | ||
|
||
<!-- }}} --> | ||
|
||
</section> | ||
</partintro> | ||
</phpdoc:exceptionref> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 681fd84dbdef6c0f8fe92848677d95a993b66143 Maintainer: sobak Status: ready --> | ||
<!-- $Revision$ --> | ||
<refentry xml:id="attribute.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>Attribute::__construct</refname> | ||
<refpurpose>Tworzy nową instancję atrybutu</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<constructorsynopsis role="Attribute"> | ||
<modifier>public</modifier> <methodname>Attribute::__construct</methodname> | ||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>Attribute::TARGET_ALL</initializer></methodparam> | ||
</constructorsynopsis> | ||
<para> | ||
Tworzy nową instancję atrybutu (<classname>Attribute</classname>). | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<para> | ||
<variablelist> | ||
<varlistentry><term><parameter>flags</parameter></term> | ||
<listitem> | ||
<para> | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</para> | ||
</refsect1> | ||
</refentry> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: fe11910e25e7eba44959bd347ba946ffc4d56934 Maintainer: sobak Status: ready --> | ||
<part xml:id="reserved.attributes" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<title>Predefined Attributes</title> | ||
|
||
<partintro> | ||
<para> | ||
PHP dostarcza kilka wbudowanych atrybutów, z których można skorzystać. | ||
</para> | ||
</partintro> | ||
|
||
&language.predefined.attributes.attribute; | ||
&language.predefined.attributes.allowdynamicproperties; | ||
&language.predefined.attributes.override; | ||
&language.predefined.attributes.returntypewillchange; | ||
&language.predefined.attributes.sensitiveparameter; | ||
</part> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: f94d903985119d3ac00f4528551df947f57b667f Maintainer: sobak Status: ready --> | ||
<phpdoc:classref xml:id="class.allowdynamicproperties" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<title>Klasa AllowDynamicProperties</title> | ||
<titleabbrev>AllowDynamicProperties</titleabbrev> | ||
|
||
<partintro> | ||
|
||
<section xml:id="allowdynamicproperties.intro"> | ||
&reftitle.intro; | ||
<para> | ||
Ten atrybut jest używany do oznaczania klas, które pozwalają na | ||
<link linkend="language.oop5.properties.dynamic-properties">dynamiczne właściwości</link>. | ||
</para> | ||
</section> | ||
|
||
<section xml:id="allowdynamicproperties.synopsis"> | ||
&reftitle.classsynopsis; | ||
|
||
<classsynopsis class="class"> | ||
<ooclass> | ||
<modifier>final</modifier> | ||
<classname>AllowDynamicProperties</classname> | ||
</ooclass> | ||
|
||
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> | ||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.allowdynamicproperties')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='AllowDynamicProperties'])"> | ||
<xi:fallback/> | ||
</xi:include> | ||
</classsynopsis> | ||
|
||
</section> | ||
|
||
<section> | ||
&reftitle.examples; | ||
<para> | ||
Dynamiczne właściwości są przestarzałe od PHP 8.2.0, | ||
a ich użycie bez oznaczenia klasy tym atrybutem wywoła komunikat | ||
<constant>E_DEPRECATED</constant>. | ||
</para> | ||
<informalexample> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
class DomyslneZachowanie { } | ||
#[\AllowDynamicProperties] | ||
class KlasaPozwalajacaNaDynamiczneWlasnosci { } | ||
$o1 = new DomyslneZachowanie(); | ||
$o2 = new KlasaPozwalajacaNaDynamiczneWlasnosci(); | ||
$o1->nieistniejacaWlasciwosc = true; | ||
$o2->nieistniejacaWlasciwosc = true; | ||
?> | ||
]]> | ||
</programlisting> | ||
&example.outputs.82; | ||
<screen> | ||
<![CDATA[ | ||
Deprecated: Creation of dynamic property DomyslneZachowanie::$nieistniejacaWlasciwosc is deprecated in file on line 10 | ||
]]> | ||
</screen> | ||
</informalexample> | ||
</section> | ||
|
||
<section xml:id="allowdynamicproperties.seealso"> | ||
&reftitle.seealso; | ||
<para><link linkend="language.attributes">Przegląd atrybutów</link></para> | ||
</section> | ||
|
||
</partintro> | ||
|
||
&language.predefined.allowdynamicproperties.construct; | ||
|
||
</phpdoc:classref> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
Oops, something went wrong.