cvs: phpdoc-ru /language basic-syntax.xml

From: Date: Sat, 28 Dec 2002 11:32:04 +0000
Subject: cvs: phpdoc-ru /language basic-syntax.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-61@lists.php.net to get a copy of this message
kai Sat Dec 28 06:32:04 2002 EDT Modified files: /phpdoc-ru/language basic-syntax.xml Log: Translated Index: phpdoc-ru/language/basic-syntax.xml diff -u phpdoc-ru/language/basic-syntax.xml:1.1 phpdoc-ru/language/basic-syntax.xml:1.2 --- phpdoc-ru/language/basic-syntax.xml:1.1 Sat Dec 28 04:52:33 2002 +++ phpdoc-ru/language/basic-syntax.xml Sat Dec 28 06:32:04 2002 @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- EN-Revision: 1.33 Maintainer: kai Status: ready --> +<!-- $Revision: 1.2 $ --> <chapter id="language.basic-syntax"> <title>Îñíîâíîé ñèíòàêñèñ</title> <sect1 id="language.basic-syntax.phpmode"> @@ -127,24 +128,24 @@ </sect1> <sect1 id="language.basic-syntax.instruction-separation"> - <title>Instruction separation</title> + <title>Ðàçäåëåíèå èíñòðóêöèé</title> <simpara> - Instructions are separated the same as in C or Perl - terminate - each statement with a semicolon.</simpara> + Èíñòðóêöèè ðàçäåëÿþòñÿ òàêæå êàê è â C èëè Perl - êàæäîå + âûðàæåíèå çàêàí÷èâàåòñÿ òî÷êîé ñ çàïÿòîé.</simpara> <para> - The closing tag (?&gt;) also implies the end of the statement, so - the following are equivalent: + Çàêðûâàþùèé òåã (?&gt;) òàêæå ïîäðàçóìåâàåò êîíåö èíñòðóêöèè, + ïîýòîìó äâà ñëåäóþùèõ ôðàãìåíòà êîäà ýêâèâàëåíòû: <informalexample> <programlisting role="php"> <![CDATA[ <?php - echo "This is a test"; + echo "Ýòî òåñò"; ?> -<?php echo "This is a test" ?> +<?php echo "Ýòî òåñò" ?> ]]> </programlisting> </informalexample> @@ -152,20 +153,20 @@ </sect1> <sect1 id="language.basic-syntax.comments"> - <title>Comments</title> + <title>Êîììåíòàðèè</title> <para> - PHP supports 'C', 'C++' and Unix shell-style comments. For example: + PHP ïîääåðæèâàåò êîììåòàðèè â ñòèëå 'C', 'C++' è îáîëî÷êè Unix. Íàïðèìåð: <informalexample> <programlisting role="php"> <![CDATA[ <?php - echo "This is a test"; // This is a one-line c++ style comment - /* This is a multi line comment - yet another line of comment */ - echo "This is yet another test"; - echo "One Final Test"; # This is shell-style style comment + echo "Ýòî òåñò"; // Ýòî îäíîñòðî÷íûé êîììåíòàðèé â ñòèëå c++ + /* Ýòî ìíîãîñòðî÷íûé êîììåíòàðèé + åùå îäíà ñòðîêà êîììåíòàðèÿ */ + echo "Ýòî åùå îäèí òåñò"; + echo "Ïîñëåäíèé òåñò"; # Ýòî êîììåíòàðèé â ñòèëå îáîë÷êè Unix ?> ]]> </programlisting> @@ -173,22 +174,21 @@ </para> <simpara> - The "one-line" comment styles actually only comment to the end of - the line or the current block of PHP code, whichever comes - first. + Îäíîñòðî÷íûå êîììåíòàðèè èäóò òîëüêî äî êîíöà ñòðîêè èëè òåêóùåãî + áëîêà PHP-êîäà, â çàâèñèìîñòè îò òîãî, ÷òî èäåò ïåðåä íèìè. </simpara> <informalexample> <programlisting role="php"> <![CDATA[ -<h1>This is an <?php # echo "simple";?> example.</h1> -<p>The header above will say 'This is an example'. +<h1>Ýòî <?php # echo "ïðîñòîé";?> ïðèìåð.</h1> +<p>Çàãîëîâîê ââåðõó âûâåäåò 'Ýòî ïðèìåð'. ]]> </programlisting> </informalexample> <simpara> - You should be careful not to nest 'C' style comments, which can - happen when commenting out large blocks. + Áóäüòå âíèìàòåëüíû, ñëåäèòå çà îòñóòñòâèåì âëîæåííûõ 'C'-êîììåíàðèåâ, + îíè ìîãóò ïîÿâèòüñÿ âî âðåìÿ êîììåíòèðîâàíèÿ áîëüøèõ áëîêîâ. </simpara> <informalexample> @@ -196,7 +196,7 @@ <![CDATA[ <?php /* - echo "This is a test"; /* This comment will cause a problem */ + echo "Ýòî òåñò"; /* Ýòîò êîììåíòàðèé âûçîâåò ïðîáëåìó */ */ ?> ]]> @@ -204,10 +204,10 @@ </informalexample> <simpara> - The one-line comment styles actually only comment to the end - of the line or the current block of PHP code, whichever comes first. - This means that HTML code after // ?> WILL be printed: ?> skips out of - the PHP mode and returns to HTML mode, and // cannot influence that. + Îäíîñòðî÷íûå êîììåíòàðèè èäóò òîëüêî äî êîíöà ñòðîêè èëè òåêóùåãî + áëîêà PHP-êîäà, â çàâèñèìîñòè îò òîãî, ÷òî èäåò ïåðåä íèìè. + Ýòî îçíà÷àåò, ÷òî HTML-êîä ïîñëå // ?> ÁÓÄÅÒ íàïå÷àòàí: ?> âûâîäèò + èç ðåæèìà PHP è âîçâðàùàåò â ðåæèì HTML, íî // íå ïîçâîëÿåò ýòîãî ñäåëàòü. </simpara> </sect1> </chapter>

« previous php.doc.ru (#61) next »