luk             Thu Mar 28 18:17:48 2002 EDT

  Modified files:              
    /phpdoc/cs/language control-structures.xml 
  Log:
  
  
  
Index: phpdoc/cs/language/control-structures.xml
diff -u phpdoc/cs/language/control-structures.xml:1.1 
phpdoc/cs/language/control-structures.xml:1.2
--- phpdoc/cs/language/control-structures.xml:1.1       Mon Mar 25 18:07:15 2002
+++ phpdoc/cs/language/control-structures.xml   Thu Mar 28 18:17:48 2002
@@ -178,44 +178,45 @@
     </informalexample>
    </para>
    <simpara>
-    In the above example, the HTML block "A = 5" is nested within an
-    <literal>if</literal> statement written in the alternative syntax.
-    The HTML block would be displayed only if $a is equal to 5.
+    Ve v��e uveden�m p��kladu je HTML blok vno�en do konstruktu
+    <literal>if</literal> napsan�m alternativn� syntax�.
+    Tento HTML blok by se zobrazil pouze v p��pad�, �e je $a rovno 5.
    </simpara>
    <para>
-    The alternative syntax applies to <literal>else</literal> and
-    <literal>elseif</literal> as well.  The following is an
-    <literal>if</literal> structure with <literal>elseif</literal> and
-    <literal>else</literal> in the alternative format:
+    Alternativn� syntaxi lze pou��t i pro <literal>else</literal> a
+    <literal>elseif</literal>. N�sleduj�c� p��klad ukazuje strukturu
+    <literal>if</literal>, <literal>elseif</literal> a
+    <literal>else</literal> v alternativn�m form�tu:
     <informalexample>
      <programlisting role="php">
 <![CDATA[
 if ($a == 5):
-    print "a equals 5";
+    print "a se rovn� 5";
     print "...";
 elseif ($a == 6):
-    print "a equals 6";
+    print "a se rovn� 6";
     print "!!!";
 else:
-    print "a is neither 5 nor 6";
+    print "a nen� ani 5, ani 6";
 endif;
 ]]>
      </programlisting>
     </informalexample>
    </para>
    <para>
-    See also <link linkend="control-structures.while">while</link>,
-    <link linkend="control-structures.for">for</link>, and <link
-    linkend="control-structures.if">if</link> for further examples.
+    Dal�� p��klady - viz tak�
+    <link linkend="control-structures.while">while</link>,
+    <link linkend="control-structures.for">for</link>, a <link
+    linkend="control-structures.if">if</link>.
    </para>
   </sect1>
 
   <sect1 id="control-structures.while">
    <title><literal>while</literal></title>
    <para>
-    <literal>while</literal> loops are the simplest type of loop in
-    PHP.  They behave just like their C counterparts.  The basic form
-    of a <literal>while</literal> statement is:
+    Cykly <literal>while</literal> jsou nejjednodu���m typem cykl� v PHP.
+    Chovaj� se jako jejich prot�j�ci v C. Z�klad� form�t konstruktu
+    <literal>while</literal> je tento:
     <informalexample>
      <programlisting>
 <![CDATA[
@@ -225,17 +226,15 @@
     </informalexample>
    </para>
    <simpara>
-    The meaning of a <literal>while</literal> statement is simple.  It
-    tells PHP to execute the nested statement(s) repeatedly, as long
-    as the <literal>while</literal> expression evaluates to
-    &true;.  The value of the expression is checked
-    each time at the beginning of the loop, so even if this value
-    changes during the execution of the nested statement(s), execution
-    will not stop until the end of the iteration (each time PHP runs
-    the statements in the loop is one iteration).  Sometimes, if the
-    <literal>while</literal> expression evaluates to
-    &false; from the very beginning, the nested
-    statement(s) won't even be run once.
+    V�znam konstruktu <literal>while</literal> je snadno pochopiteln�.
+    ��k� PHP, �e m� prov�d�t vno�en�(�) konstrukt(y) tak dlouho, dokud je
+    v�raz ve <literal>while</literal> roven &true;. Hodnota v�razu je testov�na
+    poka�d� na za��tku cyklu (v ka�d� iteraci), tak�e i kdy� se tato hodnota
+    b�hem prov�d�n� vno�en�ch konstrukt� zm�n�, provede se zbytek k�du uvnit�
+    cyklu - v konkr�tn� iteraci - a� do konce (ka�d� proveden� k�du uvnit�
+    cyklu je jedna iterace). N�kdy, kdy� je v�raz ve 
+    <literal>while</literal> ohodnocen jako &false; ji� p�i vstupu do cyklu,
+    vno�en� k�d se neprovede v�bec.
    </simpara>
    <para>
     Like with the <literal>if</literal> statement, you can group


Reply via email to