cvs: phpdoc-kr /language namespaces.xml
| From: | Yu Ilho | Date: | Thu, 04 Dec 2008 14:50:33 +0000 |
| Subject: | cvs: phpdoc-kr /language namespaces.xml | ||
| Groups: | php.doc.kr | ||
| Request: | Send a blank email to doc-kr+get-803@lists.php.net to get a copy of this message | ||
acidd15 Thu Dec 4 14:50:33 2008 UTC
Modified files:
/phpdoc-kr/language namespaces.xml
Log:
translate "namespace definition"
http://cvs.php.net/viewvc.cgi/phpdoc-kr/language/namespaces.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-kr/language/namespaces.xml
diff -u phpdoc-kr/language/namespaces.xml:1.2 phpdoc-kr/language/namespaces.xml:1.3
--- phpdoc-kr/language/namespaces.xml:1.2 Mon Nov 24 06:23:50 2008
+++ phpdoc-kr/language/namespaces.xml Thu Dec 4 14:50:33 2008
@@ -7,34 +7,33 @@
<sect1 xml:id="language.namespaces.rationale">
<title>ë¤ìì¤íì´ì¤ì ê´íì¬</title>
<simpara>
- PHPììì ë¤ìì¤íì´ì¤ë ê´ë²ìí PHP
ë¼ì´ë¸ë¬ë¦¬ë¤ ì¬ì´ìì ë°ìíë
+ PHPìì ë¤ìì¤íì´ì¤ë ê´ë²ìí PHP
ë¼ì´ë¸ë¬ë¦¬ë¤ ì¬ì´ì ë°ìíë
ì¤ì½í 문ì 를 í´ê²°í기 ìí´
ëìì¸ëìë¤.
- PHPììë 모ë í´ëì¤ ì ìê°
ì ìì´ë¤. ìì ë§íë°ì ê°ì´
ë¼ì´ë¸ë¬ë¦¬
- ê°ë°ìê° ì´ë¤ ì í¸ë¦¬í° ë° ê³µì© API
í´ëì¤ ë¼ì´ë¸ë¬ë¦¬ë¥¼ ë§ë¤ë
+ PHPììë 모ë í´ëì¤ ì ìê°
ì ìì´ë¤. ê·¸ë¬ë¯ë¡ ë¼ì´ë¸ë¬ë¦¬
+ ê°ë°ìê° ì´ë¤ ì í¸ë¦¬í° ë° ê³µì© API
í´ëì¤ ë¼ì´ë¸ë¬ë¦¬ë¥¼ ë§ë¤ëë
ë¤ë¥¸ ë¼ì´ë¸ë¬ë¦¬ë¤ì ë¹ì·í 기ë¥ì´
ì¡´ì¬íëì§ ììì¼íê³ ì´ë°
- ë¼ì´ë¸ë¬ë¦¬ë¤ì´ í¨ê» ì¬ì©ë기
ìí´ìë ê³ ì í ì´ë¦ì ì íí´ì¼
íë¤.
+ ë¼ì´ë¸ë¬ë¦¬ë¤ì´ í¨ê» ì¬ì©ë기
ìí´ìë ê³ ì í ì´ë¦ì ì§ì´ì¼ë§
íë¤.
- ë³´íµì í´ëì¤ ì´ë¦ ìì ê³ ì í
문ìì´ì ë§ë¶ì´ê±°ë - ì를 ë¤ë©´
ë°ì´í°ë² ì´ì¤ í´ëì¤ë
<classname>My_Library_DB</classname> ë±ê³¼ í ì
ììê²ì´ë¤.
+ ë³´íµì í´ëì¤ ì´ë¦ ìì ê³ ì í ìë³
문ìì´ì ë§ë¶ì¸ë¤ - ì를 ë¤ë©´
ë°ì´í°ë² ì´ì¤ í´ëì¤ë
+ <classname>My_Library_DB</classname> ë±ê³¼ ê°ì´ í ì
ììê²ì´ë¤.
- ë¼ì´ë¸ë¬ë¦¬ê° ëì´ë ìë¡, ê³ ì í
문ìì´ì ë¶ì´ëê²ë ëì´ëì ë§¤ì° ê¸´
ì´ë¦ì ê°ì§ê² ëë¤.
+ ì´ ê²½ì°ìë ë¼ì´ë¸ë¬ë¦¬ê°
ëì´ë ìë¡, ê³ ì í 문ìì´ì
ë¶ì´ëê²ë ëì´ëì ë§¤ì° ê¸´ ì´ë¦ì
ê°ì§ê² ë ê²ì´ë¤.
</simpara>
<simpara>
- The namespaces allow the developer to manage naming scopes without using the
- long names each time the class is referred to, and solve the problem of
- shared globals space without making code unreadable.
+ ë§¤ë² í´ëì¤ë¥¼ 참조í ëë§ë¤
긴ì´ë¦ì ì¬ì©íì§ìê³ ,
+ ê·¸ë¦¬ê³ ì½ë를 ìì보기 ì´ë µê¸°
ë§ë¤ì§ ìì¼ë©´ì
+ ì ìê³µê°ì ê³µì í기 ìí 문ì 를
í´ê²°í기 ìí´ ë¤ìì¤íì´ì¤ë
ê°ë°ìê° ë¤ì´ë° ì¤ì½í를 ê´ë¦¬í ì
ìëë¡ íì©íë¤.
</simpara>
<simpara>
- Namespaces are available in PHP as of PHP 5.3.0. This section is experimental
- and subject to changes.
- </simpara>
+ ë¤ìì¤íì´ì¤ë PHP 5.3.0 ë²ì ë¶í°
ì¡´ì¬íë¤. ë¤ìì¤íì´ì¤ë
ì¤íë¨ê³ì´ê³ ë³ê²½ì´ ë ì ìë¤.
+ </simpara>
</sect1>
<sect1 xml:id="language.namespaces.definition">
- <title>Namespace definition</title>
+ <title>ë¤ìì¤íì´ì¤ ì ì</title>
<para>
- The namespace is declared using <literal>namespace</literal>
- keyword, which should be at the very beginning of the file. Example:
+ ë¤ìì¤íì´ì¤ë <literal>namespace</literal>
í¤ìë를 ì¬ì©í´ ì ìí ì ìì¼ë©°,
íì¼ì 맨ì²ìì ìì¹í´ì¼ë§ íë¤. ì:
<example>
<title>Defining namespace</title>
<programlisting role="php">
@@ -52,74 +51,67 @@
]]>
</programlisting>
</example>
- Same namespace name can be used in multiple files.
+ ëì¼í ë¤ìì¤íì´ì¤ëª
ë ì¬ë¬
íì¼ììì ì¬ì©í ì ìë¤.
</para>
<para>
- Namespace can contain class, constant and function definitions, but no free code.
+ ë¤ìì¤íì´ì¤ë í´ëì¤, ìì ë° í¨ì
ì ì를 í¬í¨í ì ìì§ë§ ê·¸ ì´ì¸ì
구조를 ê°ì§ë ì½ëë í¬í¨í ìê°
ìë¤.
</para>
<para>
- Namespace definition does the following:
+ ë¤ìì¤íì´ì¤ ì ìë ë¤ìê³¼ ê°ì´
í ì ìë¤:
<itemizedlist>
<listitem>
<simpara>
- Inside namespace, all class, function and constant names in definitions are
- automatically prefixed with namespace name. The class name is always the
- full name, i.e. in the example above the class is called
- <classname>MyProject::DB::Connection</classname>.
+ ë¤ìì¤íì´ì¤ ë´ë¶ì ì ìí 모ë
í´ëì¤, í¨ìì ììëª
ë¤ ììë
ìëì¼ë¡ ë¤ìì¤íì´ì¤ëª
ì´ ë¶ëë¤.
+ í´ëì¤ëª
ì íì íë¤ì(full name)ì´ë©°, i.e.
ìì ìì ì ìë í´ëì¤ë¥¼ í¸ì¶íë©´
+ <classname>MyProject::DB::Connection</classname> ì´ ëë¤.
</simpara>
</listitem>
<listitem>
<simpara>
- Constant definitions create constant which is composed of namespace name and constant name.
- Like class constants, namespace constant can only contains static values.
+ ìì ì ìë, ë¤ìì¤íì´ì¤ëª
ê³¼
ììëª
ì¼ë¡ ì¡°í©íì¬ ìì를 ë§ë ë¤.
+ í´ëì¤ ììì ê°ì´, ë¤ìì¤íì´ì¤
ììë ì ì ì¸ ê°ë§ ê°ì§ì ìë¤.
</simpara>
</listitem>
<listitem>
<para>
- Unqualified class name (i.e., name not containing <literal>::</literal>)
- is resolved at runtime following this procedure:
+ ììì´ ëì§ ìì í´ëì¤ëª
ì (i.e.,
<literal>::</literal> 를 í¬í¨íì§ ìë)
ì¤íìì ë¤ìììì ìí´ ì²ë¦¬ê°
ì´ë£¨ì´ì§ë¤.
<orderedlist>
<listitem>
<simpara>
- Class is looked up inside the current namespace (i.e. prefixing the
- name with the current namespace name) without attempting to
- <link linkend="language.oop5.autoload">autoload</link>.
+ í´ëì¤ë <link
linkend="language.oop5.autoload">autoload</link> íì§ ìê³ ,
+ íì¬ ë¤ìì¤íì´ì¤(i.e. íì¬
ë¤ìì¤íì´ì¤ëª
ì ìì ë¶ì¬) ë´ë¶ë¥¼
ì°¾ëë¤.
</simpara>
</listitem>
<listitem>
<simpara>
- Class is looked up inside the global namespace without attempting to
- autoload.
+ í´ëì¤ë autoload íì§ ìê³ , ì ì
ë¤ìì¤íì´ì¤ ë´ë¶ë¥¼ ì°¾ëë¤.
</simpara>
</listitem>
<listitem>
<simpara>
- Autoloading for name in current namespace is attempted.
+ íì¬ ë¤ìì¤íì´ì¤ìì autoload íë¤.
</simpara>
</listitem>
<listitem>
- <simpara>If previous failed, lookup fails.</simpara>
+ <simpara>ìì ë¨ê³ê° 모ë ì¤í¨íë©´,
í´ëì¤ë¥¼ ì°¾ëê²ì ì¤í¨íë¤.</simpara>
</listitem>
</orderedlist>
</para>
</listitem>
<listitem>
<para>
- Unqualified function name (i.e., name not containing
- <literal>::</literal>) is looked up at runtime first in the current namespace
- and then in the global space.
+ ììì´ ëì§ ìì í¨ìëª
ì (i.e.,
<literal>::</literal> 를 í¬í¨íì§ ìë) 첫
ì¤íì ì°¨ë¡ëë¡ íì¬ ë¤ìì¤íì´ì¤ì
ì ìê³µê°ìì ì°¾ëë¤.
</para>
</listitem>
<listitem>
<para>
- Unqualified constant names are looked up first at current namespace and then
- among globally defined constants.
+ ììì´ ëì§ ìì ìì ì´ë¦ë¤ì
ì°¨ë¡ëë¡ íì¬ ë´ìì¤íì´ì¤ì ì ìì
ì ìë ììë¤ ì¬ì´ìì ì°ì ì ì¼ë¡
ì°¾ëë¤.
</para>
</listitem>
</itemizedlist>
- See also the full <link linkend="language.namespaces.rules">name resolution
rules</link>.
+ ìì í <link linkend="language.namespaces.rules">ì´ë¦
ë¶ì ê·ì¹</link>ë ì°¸ê³ í기 ë°ëë¤.
</para>
</sect1>