com doc/zh: 翻译了未翻 译段: language/basic-syntax.xml
| From: | Bole Chen | Date: | Sat, 20 Feb 2021 08:46:07 +0000 |
| Subject: | com doc/zh: 翻译了未翻 译段: language/basic-syntax.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-5978@lists.php.net to get a copy of this message | ||
Commit: b79b6df0e5ecca61e0f404fd1b05695ebc329970
Author: Pencil <pencilcore@163.com> Sat, 20 Feb 2021 16:35:48 +0800
Committer: Bole Chen <avenger@php.net> Sat, 20 Feb 2021 16:46:07 +0800
Parents: e387d5dc2b9a1c3c709b5c4df791957be362db82
Branches: master
Link: http://git.php.net/?p=doc/zh.git;a=commitdiff;h=b79b6df0e5ecca61e0f404fd1b05695ebc329970
Log:
翻译了未翻译段
Changed paths:
M language/basic-syntax.xml
Diff:
diff --git a/language/basic-syntax.xml b/language/basic-syntax.xml
index 56d03497..6e7b58ff 100644
--- a/language/basic-syntax.xml
+++ b/language/basic-syntax.xml
@@ -39,18 +39,16 @@
</para>
<para>
- Short tags (example three) are available by default but can be disabled
- either via the <link linkend="ini.short-open-tag">short_open_tag</link>
- &php.ini; configuration file directive, or are disabled by default if
- PHP is built with the <option>--disable-short-tags</option> configuration.
+ 短标记 (第三个例子) 是被默认开启的,但是也可以通过
+ <link linkend="ini.short-open-tag">short_open_tag</link>
+ &php.ini; 来直接禁用。如果PHP在被安装时使用了
<option>--disable-short-tags</option>
+ 的配置,该功能则是被默认禁用的。
</para>
<para>
<note>
<para>
- As short tags can be disabled it is recommened to only use the normal
- tags (<code><?php ?></code> and <code><?=
?></code>) to
- maximise compatibility.
+ 因为短标记可以被禁用,所以建议使用普通标记 (<code><?php
?></code> 和 <code><?= ?></code>) 来最大化兼容性。
</para>
</note>
</para>
@@ -137,7 +135,7 @@
<para>
<example>
- <title>Example showing the closing tag encompasing the trailing newline</title>
+ <title>包含末尾换行符的结束标记的例子</title>
<programlisting role="php">
<![CDATA[
<?php echo "Some text"; ?>
@@ -156,7 +154,7 @@ But newline now
</para>
<para>
- Examples of entering and exiting the PHP parser:
+ 进入和退出PHP解析的例子
<informalexample>
<programlisting role="php">