luk Thu Apr 25 17:58:14 2002 EDT
Modified files:
/phpdoc/cs language-defs.ent language-snippets.ent translation.xml
/phpdoc/cs/language control-structures.xml operators.xml
Log:
Synced to the English version.
Index: phpdoc/cs/language-defs.ent
diff -u phpdoc/cs/language-defs.ent:1.7 phpdoc/cs/language-defs.ent:1.8
--- phpdoc/cs/language-defs.ent:1.7 Thu Mar 7 18:25:02 2002
+++ phpdoc/cs/language-defs.ent Thu Apr 25 17:58:12 2002
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.11 Maintainer: luk Status: ready -->
+<!-- EN-Revision: 1.12 Maintainer: luk Status: ready -->
<!ENTITY PHPManual "Manu�l PHP">
<!ENTITY Date "Datum:">
@@ -9,8 +9,9 @@
<!ENTITY Features "Vlastnosti">
<!ENTITY FunctionReference "Reference funkc�">
<!ENTITY Appendixes "Dodatky">
-<!ENTITY PEAR "PEAR: the PHP Extension and Application Repository">
-<!ENTITY FAQ "FAQ: Frequently Asked Questions">
+<!ENTITY PEAR "PEAR: Repozit�� roz���en� a aplikac� PHP">
+<!ENTITY FAQ "FAQ: �asto zodpov�dan� ot�zky">
<!ENTITY FAQabbrev "FAQ">
-<!ENTITY FunctionIndex "Function Index">
-<!ENTITY CHMEdition "HTML Help Edition">
+<!ENTITY FunctionIndex "Rejst��k funkc�">
+<!ENTITY CHMEdition "Vyd�n� HTML Help">
+<!ENTITY ReservedConstants "P�eddefinovan� konstanty">
Index: phpdoc/cs/language-snippets.ent
diff -u phpdoc/cs/language-snippets.ent:1.12 phpdoc/cs/language-snippets.ent:1.13
--- phpdoc/cs/language-snippets.ent:1.12 Sun Apr 14 15:35:23 2002
+++ phpdoc/cs/language-snippets.ent Thu Apr 25 17:58:12 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.22 Maintainer: luk Status: ready -->
+<!-- EN-Revision: 1.25 Maintainer: luk Status: ready -->
<!ENTITY warn.experimental '<warning><simpara>Tento modul je
<emphasis>EXPERIMENT�LN�</emphasis>. To znamen�, �e chov�n� t�chto funkc� a
@@ -36,6 +36,7 @@
<link linkend="language.operators.comparison">oper�tor
===</link>.</simpara></warning>'>
+<!-- Various notes -->
<!ENTITY note.not-bin-safe '<warning><simpara>Tato funkce nen� (je�t�) bin�rn�
bezpe�n�!</simpara></warning>'>
@@ -83,3 +84,26 @@
<!ENTITY no.constants '<para>Toto roz���en� nem� definov�ny ��dn�
konstanty.</para>'>
+<!-- Common pieces in partintro-sections -->
+<!ENTITY no.requirement '<para>Tyto funkce jsou k dispozici jako sou��st
+standardn�ho modulu, kter� je v�dy dostupn�.</para>'>
+<!ENTITY no.install '<para>K pou��v�n� t�chto funkc� nen� t�eba ��dn�
+instalace, jsou sou��st� j�dra PHP.</para>'>
+
+<!-- Used in reference/$extname/constants.xml -->
+<!ENTITY extension.constants '<simpara>
+Tyto konstanty jsou definov�ny t�mto roz���en�m a budou k dispozici pouze
+tehdy, bylo-li roz���en� zkompilov�no spole�n� s PHP nebo dynamicky zavedeno
+za b�hu.
+</simpara>'>
+
+<!-- These are using in reference/$extname/reference.xml and other
+supplemental files to mark section titles -->
+<!ENTITY reftitle.intro '<title>�vod</title>'>
+<!ENTITY reftitle.required '<title>Po�adavky</title>'>
+<!ENTITY reftitle.install '<title>Instalace</title>'>
+<!ENTITY reftitle.runtime '<title>Konfigurace b�hu</title>'>
+<!ENTITY reftitle.resources '<title>Typy prost�edk�</title>'>
+<!ENTITY reftitle.constants '<title>P�eddefinovan� konstanty</title>'>
+<!ENTITY reftitle.examples '<title>P��klady</title>'>
+<!ENTITY reftitle.seealso '<title>Viz tak�</title>'>
Index: phpdoc/cs/translation.xml
diff -u phpdoc/cs/translation.xml:1.5 phpdoc/cs/translation.xml:1.6
--- phpdoc/cs/translation.xml:1.5 Mon Mar 25 18:07:15 2002
+++ phpdoc/cs/translation.xml Thu Apr 25 17:58:12 2002
@@ -17,9 +17,7 @@
<file name="appendices/phpdevel.xml" person="luk" type="translation" />
<file name="appendices/predefined.xml" person="luk" type="translation" />
<file name="appendices/resources.xml" person="luk" type="translation" />
- <file name="functions/mysql.xml" person="costra" type="translation"
/>
<file name="language/control-structures.xml" person="luk" type="translation" />
- <file name="language/operators.xml" person="luk" type="translation" />
<file name="language/oop.xml" person="luk" type="translation" />
<file name="language/types.xml" person="luk" type="translation" />
<file name="language/variables.xml" person="luk" type="translation" />
Index: phpdoc/cs/language/control-structures.xml
diff -u phpdoc/cs/language/control-structures.xml:1.3
phpdoc/cs/language/control-structures.xml:1.4
--- phpdoc/cs/language/control-structures.xml:1.3 Thu Apr 4 14:55:40 2002
+++ phpdoc/cs/language/control-structures.xml Thu Apr 25 17:58:13 2002
@@ -638,21 +638,19 @@
<sect1 id="control-structures.continue">
<title><literal>continue</literal></title>
<simpara>
- <literal>continue</literal> is used within looping structures to
- skip the rest of the current loop iteration and continue execution
- at the beginning of the next iteration.
+ <literal>continue</literal> se pou��v� uvnit� cykl� k p�esko�en� zbytku
+ aktu�ln� iterace a bezprost�edn�mu p�echodu na n�sleduj�c� iteraci.
</simpara>
<simpara>
- <literal>continue</literal> accepts an optional numeric argument
- which tells it how many levels of enclosing loops it should skip
- to the end of.
+ <literal>continue</literal> akceptuje nepovinn� ��seln� argument, kter�
+ ��k�, kolik �rovn� cykl� se m� nar�z dokon�it.
</simpara>
<para>
<informalexample>
<programlisting role="php">
<![CDATA[
while (list ($key, $value) = each ($arr)) {
- if (!($key % 2)) { // skip odd members
+ if (!($key % 2)) { // p�esko� sud� �leny
continue;
}
do_something_odd ($value);
@@ -660,16 +658,16 @@
$i = 0;
while ($i++ < 5) {
- echo "Outer<br>\n";
+ echo "Vn�j��<br>\n";
while (1) {
- echo " Middle<br>\n";
+ echo " St�edn�<br>\n";
while (1) {
- echo " Inner<br>\n";
+ echo " Vnit�n�<br>\n";
continue 3;
}
- echo "This never gets output.<br>\n";
+ echo "Toto se nikdy nevytiskne.<br>\n";
}
- echo "Neither does this.<br>\n";
+ echo "Ani tohle se neprov�d�.<br>\n";
}
]]>
</programlisting>
@@ -680,40 +678,38 @@
<sect1 id="control-structures.switch">
<title><literal>switch</literal></title>
<simpara>
- The <literal>switch</literal> statement is similar to a series of
- IF statements on the same expression. In many occasions, you may
- want to compare the same variable (or expression) with many
- different values, and execute a different piece of code depending
- on which value it equals to. This is exactly what the
- <literal>switch</literal> statement is for.
+ Konstrukt <literal>switch</literal> je podobn� s�rii konstrukt� IF,
+ testuj�c�ch tent�� v�raz. V mnoha p��padech m��ete cht�t porovn�vat
+ stejnou prom�nnou (nebo v�raz) s mnoha r�zn�mi hodnotami a prov�d�t
+ r�zn� kusy k�du v z�vislosti na tom, kter� hodnot� se rovn�.
+ To je p�esn� to, k �emu je <literal>switch</literal>.
</simpara>
<para>
- The following two examples are two different ways to write the
- same thing, one using a series of <literal>if</literal>
- statements, and the other using the <literal>switch</literal>
- statement:
+ N�sleduj�c� dva p��klady p�edstavuj� dva odli�n� zp�soby, jak napsat
+ tot�; jeden pou��v� s�rii podm�nek <literal>if</literal>, zat�mco
+ druh� je zalo�en na konstruktu <literal>switch</literal>:
<informalexample>
<programlisting role="php">
<![CDATA[
if ($i == 0) {
- print "i equals 0";
+ print "i se rovn� 0";
}
if ($i == 1) {
- print "i equals 1";
+ print "i se rovn� 1";
}
if ($i == 2) {
- print "i equals 2";
+ print "i se rovn� 2";
}
switch ($i) {
case 0:
- print "i equals 0";
+ print "i se rovn� 0";
break;
case 1:
- print "i equals 1";
+ print "i se rovn� 1";
break;
case 2:
- print "i equals 2";
+ print "i se rovn� 2";
break;
}
]]>
@@ -721,54 +717,49 @@
</informalexample>
</para>
<para>
- It is important to understand how the <literal>switch</literal>
- statement is executed in order to avoid mistakes. The
- <literal>switch</literal> statement executes line by line
- (actually, statement by statement). In the beginning, no code is
- executed. Only when a <literal>case</literal> statement is found
- with a value that matches the value of the
- <literal>switch</literal> expression does PHP begin to execute the
- statements. PHP continues to execute the statements until the end
- of the <literal>switch</literal> block, or the first time it sees
- a <literal>break</literal> statement. If you don't write a
- <literal>break</literal> statement at the end of a case's
- statement list, PHP will go on executing the statements of the
- following case. For example:
+ Je d�le�it� pochopit, jak se konstrukt <literal>switch</literal>
+ prov�d�, aby se zabr�nilo chyb�m. Konstrukt <literal>switch</literal>
+ prov�d� ��dek po ��dku (resp. konstrukt po konstruktu). Na za��tku
+ nen� proveden ��dn� k�d. Pouze tehdy, kdy� se najde <literal>case</literal>
+ s hodnotou odpov�daj�c� hodnot� v�razu u <literal>switch</literal>,
+ za�ne PHP prov�d�t n�sleduj�c� konstrukty. Vykon�v�n� k�du pokra�uje,
+ dokud se nedos�hne konce bloku <literal>switch</literal> nebo prvn�ho
+ p��kazu <literal>break</literal>. Pokud nenap��ete na konec bloku po
+ <literal>case</literal> p��kaz <literal>break</literal>, bude PHP
+ pokra�ovat v prov�d�n� dal��ch konstrukt� (po dal��m
+ <literal>case</literal>). Nap��klad:
<informalexample>
<programlisting role="php">
<![CDATA[
switch ($i) {
case 0:
- print "i equals 0";
+ print "i se rovn� 0";
case 1:
- print "i equals 1";
+ print "i se rovn� 1";
case 2:
- print "i equals 2";
+ print "i se rovn� 2";
}
]]>
</programlisting>
</informalexample>
</para>
<simpara>
- Here, if $i equals to 0, PHP would execute all of the print
- statements! If $i equals to 1, PHP would execute the last two
- print statements, and only if $i equals to 2, you'd get the
- 'expected' behavior and only 'i equals 2' would be displayed. So,
- it's important not to forget <literal>break</literal> statements
- (even though you may want to avoid supplying them on purpose under
- certain circumstances).
+ Zde, pokud se $i rovn� 0, se budou prov�d�t v�echny p��kazy "print"!
+ Pokud se $i rovn� 1, PHP provede posledn� dva p��kazy, a pouze rovn�-li se
+ $i ��slu 2, obdr��te "o�ek�van�" chov�n� a zobraz� se pouze "i se rovn� 2".
+ Tak�e je d�le�it� nezapomenout na p��kaz <literal>break</literal> (krom�
+ p��padu, kdy ho chcete vynechat z�m�rn� k dosa�en� ur�it�ho c�le).
</simpara>
<simpara>
- In a <literal>switch</literal> statement, the condition is
- evaluated only once and the result is compared to each
- <literal>case</literal> statement. In an <literal>elseif</literal>
- statement, the condition is evaluated again. If your condition is
- more complicated than a simple compare and/or is in a tight loop,
- a <literal>switch</literal> may be faster.
+ V konstruktu <literal>switch</literal> se podm�nka testuje pouze jednou
+ a v�sledek se porovn�v� s ka�dou hodnotou v <literal>case</literal>.
+ V p��pad� <literal>elseif</literal> se podm�nka poka�d� testuje znovu.
+ Pokud je va�e podm�nka komplikovan�j�� ne� jednoduch� porovn�n� a/nebo
+ je uvnit� cyklu, <literal>switch</literal> m��e b�t rychlej��.
</simpara>
<para>
- The statement list for a case can also be empty, which simply
- passes control into the statement list for the next case.
+ Seznam konstrukt� za <literal>case</literal> m��e b�t tak� pr�zdn�, co�
+ jednodu�e p�ed� ��zen� n�sleduj�c�mu <literal>case</literal>.
<informalexample>
<programlisting role="php">
<![CDATA[
@@ -776,65 +767,64 @@
case 0:
case 1:
case 2:
- print "i is less than 3 but not negative";
+ print "i je men�� ne� 3, ale nez�porn�";
break;
case 3:
- print "i is 3";
+ print "i je 3";
}
]]>
</programlisting>
</informalexample>
</para>
<para>
- A special case is the default case. This case matches anything
- that wasn't matched by the other cases, and should be the last
- <literal>case</literal> statement. For example:
+ Speci�ln� <literal>case</literal> je "default". Vyhovuje v�em ostatn�m
+ hodnot�m, kter� nejsou pokryty n�kter�m z ostatn�ch
+ <literal>case</literal> a m� b�t v�dy jako posledn�. Nap��klad:
<informalexample>
<programlisting role="php">
<![CDATA[
switch ($i) {
case 0:
- print "i equals 0";
+ print "i se rovn� 0";
break;
case 1:
- print "i equals 1";
+ print "i se rovn� 1";
break;
case 2:
- print "i equals 2";
+ print "i se rovn� 2";
break;
default:
- print "i is not equal to 0, 1 or 2";
+ print "i se nerovn� 0, 1 ani 2";
}
]]>
</programlisting>
</informalexample>
</para>
<para>
- The <literal>case</literal> expression may be any expression that
- evaluates to a simple type, that is, integer or floating-point
- numbers and strings. Arrays or objects cannot be used here unless
- they are dereferenced to a simple type.
+ V�raz v <literal>case</literal> m��e b�t libovoln� v�raz, jeho� hodnota
+ je jednoduch�ho typu, tj. cel� nebo re�ln� ��slo nebo �et�zec. Pole ani
+ objekty nelze pou��t, leda�e by odkazovaly na jednoduch� typ.
</para>
<para>
- The alternative syntax for control structures is supported with
- switches. For more information, see <link
- linkend="control-structures.alternative-syntax">Alternative syntax
- for control structures</link> .
+ Alternativn� syntaxe pro konstrukty <literal>switch</literal> je
+ podporov�na. Pro v�c informac� viz
+ <link linkend="control-structures.alternative-syntax">Alternativn� syntaxe
+ ��dic�ch struktur</link> .
<informalexample>
<programlisting role="php">
<![CDATA[
switch ($i):
case 0:
- print "i equals 0";
+ print "i se rovn� 0";
break;
case 1:
- print "i equals 1";
+ print "i se rovn� 1";
break;
case 2:
- print "i equals 2";
+ print "i se rovn� 2";
break;
default:
- print "i is not equal to 0, 1 or 2";
+ print "i se nerovn� 0, 1 ani 2";
endswitch;
]]>
</programlisting>
@@ -845,10 +835,9 @@
<sect1 id="control-structures.declare">
<title><literal>declare</literal></title>
<para>
- The <literal>declare</literal> construct is used to
- set execution directives for a block of code.
- The syntax of <literal>declare</literal> is similar to
- the syntax of other flow control constructs:
+ Konstrukt <literal>declare</literal> se pou��v� k nastaven� prov�d�c�ch
+ direktiv pro blok k�du. Syntaxe <literal>declare</literal> je podobn�
+ syntaxi ostatn�cj konstrukt� pro ��zen� toku:
<informalexample>
<programlisting>
<![CDATA[
@@ -858,14 +847,11 @@
</informalexample>
</para>
<para>
- The <literal>directive</literal> section allows the
- behavior of the <literal>declare</literal> block to
- be set.
- Currently only one directive is recognized: the
- <literal>ticks</literal> directive. (See below for more
- information on the
- <link linkend="control-structures.declare.ticks">ticks</link>
- directive)
+ ��st <literal>directive</literal> umo��uje nastavit chov�n� bloku, kter�
+ m� b�t ovlivn�n pomoc� <literal>declare</literal>. V sou�asnosti je
+ rozpozn�v�na pouze jedin� direktiva: <literal>ticks</literal>.
+ (Pro v�ce informac� viz n��e - direktiva
+ <link linkend="control-structures.declare.ticks">ticks</link>)
</para>
<para>
The <literal>statement</literal> part of the
Index: phpdoc/cs/language/operators.xml
diff -u phpdoc/cs/language/operators.xml:1.4 phpdoc/cs/language/operators.xml:1.5
--- phpdoc/cs/language/operators.xml:1.4 Wed Apr 24 14:42:34 2002
+++ phpdoc/cs/language/operators.xml Thu Apr 25 17:58:13 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.32 Maintainer: luk Status: mixed -->
+<!-- EN-Revision: 1.32 Maintainer: luk Status: ready -->
<chapter id="language.operators">
<title>Oper�tory</title>
@@ -490,108 +490,106 @@
<sect1 id="language.operators.precedence">
<title>Priorita oper�tor�</title>
<para>
- The precedence of an operator specifies how "tightly" it binds two
- expressions together. For example, in the expression <literal>1 +
- 5 * 3</literal>, the answer is <literal>16</literal> and not
- <literal>18</literal> because the multiplication ("*") operator
- has a higher precedence than the addition ("+") operator.
- Parentheses may be used to force precedence, if necessary. For
- instance: <literal>(1 + 5) * 3</literal> evaluates to
- <literal>18</literal>.
+ Priorita oper�toru specifikuje, jak "t�sn�" v�e dva v�razy mezi sebou.
+ Nap��klad v�raz <literal>1 + 5 * 3</literal>,
+ v�sledkem je <literal>16</literal> a nikoli <literal>18</literal>,
+ proto�e oper�tor n�soben� ("*") m� vy��� prioritu ne� oper�tor s��t�n�
+ ("+"). K vynucen� priority m��eme v p��pad� pot�eby pou��t z�vorky.
+ Kup�. <literal>(1 + 5) * 3</literal> m� hodnotu <literal>18</literal>.
</para>
<para>
- The following table lists the precedence of operators with the
- lowest-precedence operators listed first.
+ N�sleduj�c� tabulka ukazuje p�ehled oper�tor� vzestupn� se�azen�ch podle
+ priority.
<table>
- <title>Operator Precedence</title>
+ <title>Priorita oper�tor�</title>
<tgroup cols="2">
<thead>
<row>
- <entry>Associativity</entry>
- <entry>Operators</entry>
+ <entry>Asociativita</entry>
+ <entry>Oper�tory</entry>
</row>
</thead>
<tbody>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>,</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>or</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>xor</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>and</entry>
</row>
<row>
- <entry>right</entry>
+ <entry>prav�</entry>
<entry>print</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>
= += -= *= /= .= %= &= |= ^= ~= <<= >>=
</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>? :</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>||</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>&&</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>|</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>^</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>&</entry>
</row>
<row>
- <entry>non-associative</entry>
+ <entry>bez asociativity</entry>
<entry>== != === !==</entry>
</row>
<row>
- <entry>non-associative</entry>
+ <entry>bez asociativity</entry>
<entry>< <= > >=</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry><< >></entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>+ - .</entry>
</row>
<row>
- <entry>left</entry>
+ <entry>lev�</entry>
<entry>* / %</entry>
</row>
<row>
- <entry>right</entry>
+ <entry>prav�</entry>
<entry>! ~ ++ -- (int) (double) (string) (array) (object) @</entry>
</row>
<row>
- <entry>right</entry>
+ <entry>prav�</entry>
<entry>[</entry>
</row>
<row>
- <entry>non-associative</entry>
+ <entry>bez asociativity</entry>
<entry>new</entry>
</row>
</tbody>
@@ -601,26 +599,24 @@
</sect1>
<sect1 id="language.operators.string">
- <title>String Operators</title>
+ <title>�et�zcov� oper�tory</title>
<simpara>
- There are two string operators. The first is the concatenation
- operator ('.'), which returns the concatenation of its right and
- left arguments. The second is the concatenating assignment
- operator ('.='), which appends the argument on the right side to
- the argument on the left side. Please read <link
- linkend="language.operators.assignment">Assignment
- Operators</link> for more information.
+ Existuj� dva �etezcov� oper�tory. Jedn�m je oper�tor spojen� ('.'),
+ kter� vrac� spojen� prav�ho a lev�ho argumentu. Druh�m je oper�tor
+ spojuj�c�ho p�i�azen� ('.='), jen� p�ipoj� argument na prav� stran�
+ k argumentu na stran� lev�. Pro v�ce informac� si laskav� p�e�t�te
+ <link linkend="language.operators.assignment">Oper�tory p�i�azen�</link>.
</simpara>
<para>
<informalexample>
<programlisting role="php">
<![CDATA[
-$a = "Hello ";
-$b = $a . "World!"; // now $b contains "Hello World!"
+$a = "Ahoj ";
+$b = $a . "sv�te!"; // nyn� $b obsahuje "Ahoj sv�te!"
-$a = "Hello ";
-$a .= "World!"; // now $a contains "Hello World!"
+$a = "Ahoj ";
+$a .= "sv�te!"; // nyn� $a obsahuje "Ahoj sv�te!"
]]>
</programlisting>
</informalexample>