cvs: peardoc /ja Translators /ja/chapters standards.xml
| From: | Rui Hirokawa | Date: | Sun, 10 Feb 2002 08:33:16 +0000 |
| Subject: | cvs: peardoc /ja Translators /ja/chapters standards.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2353@lists.php.net to get a copy of this message | ||
hirokawa Sun Feb 10 03:33:16 2002 EDT
Modified files:
/peardoc/ja Translators
/peardoc/ja/chapters standards.xml
Log:
updated translation status.
Index: peardoc/ja/Translators diff -u peardoc/ja/Translators:1.1 peardoc/ja/Translators:1.2 --- peardoc/ja/Translators:1.1 Fri Feb 1 09:37:25 2002 +++ peardoc/ja/Translators Sun Feb 10 03:33:16 2002 @@ -1,47 +1,52 @@ Files Translators Maintainers ============================================================================= -bookinfo.xml Rui Hirokawa -preface.xml Rui Hirokawa +bookinfo.xml Rui Hirokawa (m) Rui Hirokawa +preface.xml Rui Hirokawa (m) ---chapters------------------------------------------------------------------ -intro.xml Rui Hirokawa -parts.xml Rui Hirokawa -standards.xml Rui Hirokawa +intro.xml Rui Hirokawa (d) Rui Hirokawa +parts.xml Rui Hirokawa (d) +standards.xml Rui Hirokawa (d) ---contributing-------------------------------------------------------------- -howto.xml +howto.xml skeleton.xml ---core---------------------------------------------------------------------- -db.xml Rui Hirokawa -log.xml Rui Hirokawa -networking.xml -system.xml -http.xml Rui Hirokawa -mail.xml Rui Hirokawa -pear.xml Rui Hirokawa +console.xml Rui Hirokawa (d) Rui Hirokawa +db.xml Rui Hirokawa (w) +networking.xml Rui Hirokawa (d) +system.xml Rui Hirokawa (d) +http.xml Rui Hirokawa (d) +mail.xml Rui Hirokawa (w) +pear.xml Rui Hirokawa (d) ---packages------------------------------------------------------------------ -authentication.xml +authentication.xml file.xml +log.xml Rui Hirokawa (w) networking.xml templates.xml xml.xml ------authentication---------------------------------------------------------- -auth.xml Rui Hirokawa +auth.xml Rui Hirokawa (d) auth_http.xml ------file-------------------------------------------------------------------- -find.xml -passwd.xml -searchreplace.xml +find.xml Yoshiyuki Suzuki (w) +passwd.xml Yoshiyuki Suzuki (w) +searchreplace.xml Yoshiyuki Suzuki (w) ------networking-------------------------------------------------------------- -Net_CheckIP.xml -Net_Finger.xml -Net_IPv6.xml -Net_Ping.xml -Net_Portscan.xml -Net_Whois.xml +Net_CheckIP.xml Yoshiyuki Suzuki (w) +Net_Finger.xml Yoshiyuki Suzuki (w) +Net_IPv6.xml Yoshiyuki Suzuki (w) +Net_Ping.xml Yoshiyuki Suzuki (w) +Net_Portscan.xml Yoshiyuki Suzuki (w) +Net_Whois.xml Yoshiyuki Suzuki (w) ------templates--------------------------------------------------------------- -it.xml -itx.xml +it.xml Yoshiyuki Suzuki (w) +itx.xml Yoshiyuki Suzuki (w) ------xml--------------------------------------------------------------------- -xml_rss.xml -xml_sql2xml.xml +xml_rss.xml Yoshiyuki Suzuki (w) +xml_sql2xml.xml Yoshiyuki Suzuki (w) ---pecl----------------------------------------------------------------------- imagick.xml +satellite.xml +session_pgsql.xml Rui Hirokawa (w) +------------------------------------------------------------------------------ +w: working for translation, d: draft, m: maintaining \ No newline at end of file Index: peardoc/ja/chapters/standards.xml diff -u peardoc/ja/chapters/standards.xml:1.2 peardoc/ja/chapters/standards.xml:1.3 --- peardoc/ja/chapters/standards.xml:1.2 Sun Feb 3 18:28:28 2002 +++ peardoc/ja/chapters/standards.xml Sun Feb 10 03:33:16 2002 @@ -1,5 +1,5 @@ <?xml encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <chapter id="standards"> <title>æ¨æºã³ã¼ãã£ã³ã°è¦ç´</title> <note> @@ -121,7 +121,7 @@ <sect1 id="standards.funcdef"> <title>颿°å®ç¾©</title> <para> - Function declarations follow the "one true brace" convention: + 颿°å®£è¨ã¯ã以ä¸ã®ãããª"one true brace"表è¨ã«åºã¥ãã¾ãã <programlisting role="php"> <![CDATA[ function fooFunction($arg1, $arg2 = '') @@ -135,9 +135,9 @@ </programlisting> </para> <para> - Arguments with default values go at the end of the argument list. - Always attempt to return a meaningful value from a function if one - is appropriate. Here is a slightly longer example: + ããã©ã«ãå¤ãæãã弿°ã¯å¼æ°ãªã¹ãã®çµããã«ç½®ãã¾ãã + ãã®é¢æ°ã¯å¦çãé©å½ã§ããå ´åã常ã«é¢æ°ããæå³ã®ããå¤ãè¿ããã + ã«ãã¦ä¸ããã以ä¸ã«ããé·ãä¾ã示ãã¾ãã <programlisting role="php"> <![CDATA[ function connect(&$dsn, $persistent = false) @@ -162,39 +162,38 @@ <sect1 id="standards.comments"> <title>ã³ã¡ã³ã</title> <para> - Inline documentation for classes should follow the PHPDoc - convention, similar to Javadoc. More information about PHPDoc can - be found here: <ulink url="&url.phpdoc;">&url.phpdoc;</ulink> + ã¯ã©ã¹ã®ã¤ã³ã©ã¤ã³ããã¥ã¡ã³ãã¯ãJavadocã«ä¼¼ãPHPDocã®è¡¨è¨ã«åºã¥ + ãå¿ è¦ãããã¾ããPHPDocã«é¢ããããè©³ç´°ãªæ å ±ã¯ã + <ulink url="&url.phpdoc;">&url.phpdoc;</ulink>ã«ããã¾ãã </para> <para> - Non-documentation comments are strongly encouraged. A general rule of - thumb is that if you look at a section of code and think "Wow, I don't - want to try and describe that", you need to comment it before you - forget how it works. + ããã¥ã¡ã³ã以å¤ã®ã³ã¡ã³ãã¯ãå¼·ãæ¨å¥¨ããã¾ããä¸è¬çãªç®å®ã¨ãã¦ã + ã³ã¼ãã®ããã»ã¯ã·ã§ã³ãè¦ãæã«ãããã説æããããªããªãã¨æã㨠+ ããããå¦çå 容ãå¿ããåã«ã³ã¡ã³ãã追å ããå¿ è¦ãããã¾ãã </para> <para> - C style comments (/* */) and standard C++ comments (//) are both - fine. Use of Perl/shell style comments (#) is discouraged. + Cè¨èªå½¢å¼ã®(/* */)ã¨æ¨æºC++ã³ã¡ã³ã(//)ã®ã©ã¡ãã使ç¨å¯è½ã§ãã + Perl/shellå½¢å¼ã®ã³ã¡ã³ã(#)ã®ä½¿ç¨ã¯æ¨å¥¨ããã¾ããã </para> </sect1> <sect1 id="standards.including"> <title>ã³ã¼ãã®èªã¿è¾¼ã¿</title> <para> - Anywhere you are unconditionally including a class file, use - <function>require_once</function>. Anywhere you are conditionally - including a class file (for example, factory methods), use - <function>include_once</function>. Either of these will ensure - that class files are included only once. They share the same file - list, so you don't need to worry about mixing them - a file - included with <function>require_once</function> will not be - included again by <function>include_once</function>. + ããã¯ã©ã¹ãã¡ã¤ã«ãç¡æ¡ä»¶ã§èªã¿è¾¼ãå ´åã¯ã + <function>require_once</function>ã使ç¨ãã¦ä¸ãããããã¯ã©ã¹ãã¡ + ã¤ã«ãæ¡ä»¶ä»ãã§èªã¿è¾¼ãå ´å(ä¾ãã°ãfactoryã¡ã½ãã)ã¯ã + <function>include_once</function>ã使ç¨ãã¦ä¸ããã + ãããã¯ã©ã¡ããã¯ã©ã¹ãã¡ã¤ã«ã1度ã ãèªã¿è¾¼ã¾ãããã¨ãä¿è¨¼ãã¾ + ãããããã¯ãåããã¡ã¤ã«ãªã¹ããå ±æãã¦ãããæ··ç¨ãããã¨ã«ã¤ã + ã¦å¿é ããå¿ è¦ã¯ããã¾ããã<function>require_once</function>ã§èª + ã¿è¾¼ã¾ãããã¡ã¤ã«ã¯ã<function>include_once</function>ã«ããå度 + èªã¿è¾¼ã¾ãããã¨ã¯ããã¾ããã <note> <simpara> - <function>include_once</function> and - <function>require_once</function> are statements, not - functions. You don't <emphasis>need</emphasis> parentheses - around the filename to be included. + <function>include_once</function>ããã³ + <function>require_once</function>ã¯å½ä»¤ã§ããã颿°ã§ã¯ããã¾ã + ããèªã¿è¾¼ããã¡ã¤ã«åã®åå¾ã«æ¬å¼§ã¯ä¸è¦ã§ãã </simpara> </note> </para> @@ -203,18 +202,19 @@ <sect1 id="standards.tags"> <title>PHPã³ã¼ãã¿ã°</title> <para> - <emphasis>Always</emphasis> use <literal><?php ?></literal> to - delimit PHP code, not the <literal><? ?></literal> shorthand. - This is required for PEAR compliance and is also the most portable - way to include PHP code on differing operating systems and setups. + PHPã³ã¼ããåºåããããã«<emphasis>ãç縮åã® + <literal><? ?></literal>ã§ã¯ãªãã常㫠+ </emphasis><literal><?php ?></literal>ã使ç¨ãã¦ä¸ããã + PEAR対å¿ã®ããã«å¿ è¦ã§ããªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ãè¨å®ãç°ãªãæ åµ + ã§PHPã³ã¼ããå°å ¥ããããã®æãäºææ§ã®é«ãæ¹æ³ã§ãããã¾ãã </para> </sect1> <sect1 id="standards.header"> <title>ãããã®ã³ã¡ã³ããããã¯</title> <para> - All source code files in the core PEAR distribution should contain - the following comment block as the header: + ã³ã¢PEARé å¸ãã¡ã¤ã«ã«ããå ¨ã¦ã®ã½ã¼ã¹ã³ã¼ããã¡ã¤ã«ã«ã¯ã以ä¸ã®ã³ + ã¡ã³ããããã¯ããããã¨ãã¦å«ã¾ãã¦ããå¿ è¦ãããã¾ãã <programlisting role="php"> <![CDATA[ /* vim: set expandtab tabstop=4 shiftwidth=4: */ @@ -235,38 +235,37 @@ // | Your Name <you@example.com> | // +----------------------------------------------------------------------+ // -// $Id: standards.xml,v 1.2 2002/02/03 23:28:28 hirokawa Exp $ +// $Id: standards.xml,v 1.3 2002/02/10 08:33:16 hirokawa Exp $ ]]> </programlisting> </para> <para> - There's no hard rule to determine when a new code contributor - should be added to the list of authors for a given source file. - In general, their changes should fall into the "substantial" - category (meaning somewhere around 10% to 20% of code changes). - Exceptions could be made for rewriting functions or contributing - new logic. + ããã½ã¼ã¹ãã¡ã¤ã«ã®ä½è ã®ãªã¹ãã«æ°ããªã³ã¼ãæä¾è ã®ååã追å ã + ãã¹ããã©ãããå®ç¾©ããæç¢ºãªè¦åã¯ããã¾ãããä¸è¬çã«ãä½è ã«å± + ãã夿´ç¹ã¯ã"æ¬è³ªçãª"åé¡ã«å±ãã(10%ãã20%ã®ã³ã¼ã夿´ãæå³ + ãã¾ã)å¿ è¦ãããã¾ãã颿°ã®æ¸æããæ°ããªãã¸ãã¯ãæä¾ããå ´å + ã«ã¯ãä¾å¤ãããå ´åãããã¾ãã </para> <para> - Simple code reorganization or bug fixes would not justify the - addition of a new individual to the list of authors. + ç°¡åãªã³ã¼ãã®æ´çããã°ä¿®æ£ã¯ãä½è ã®ãªã¹ãã«æ°ãã«å人ã追å ãã + ã¾ã§ã®çç±ã«ã¯ãªãã¾ããã </para> <para> - Files not in the core PEAR repository should have a similar block - stating the copyright, the license, and the authors. All files - should include the modeline comments to encourage consistency. + ã³ã¢PEARãªãã¸ããªã«ãªããã¡ã¤ã«ã«ã¯ãä¼¼ããããªè使¨©ãã©ã¤ã»ã³ã¹ã + ä½è ãè¨è¿°ãããããã¯ãå«ãå¿ è¦ãããã¾ããå ¨ã¦ã®ãã¡ã¤ã«ã«ã¯ãçµ± + ä¸ããmodelineã³ã¡ã³ããå«ãã¹ãã§ã </para> </sect1> <sect1 id="standards.cvs"> <title>CVSã®ä½¿ç¨</title> <simpara> - This section applies only to packages using CVS at cvs.php.net. + æ¬ç¯ã¯ãcvs.php.netã«ããCVSã使ç¨ããããã±ã¼ã¸ã«ã®ã¿é©ç¨ããã¾ãã </simpara> <para> - Include the $Id$ CVS keyword in each file. As each file - is edited, add this tag if it's not yet present (or replace - existing forms such as "Last Modified:", etc.). + åãã¡ã¤ã«ã«ãCVSã®ãã¼ã¯ã¼ã $Id$ ãå«ãã¦ä¸ããã + åãã¡ã¤ã«ãç·¨éããéãã¾ã ãªãå ´åã«ã¯ãã®ã¿ã°ã追å ãã¦ä¸ããã + (ã¾ãã¯ã"Last Modified:"ã®ãããªæ¢åã®å½¢å¼ãç½®æãã¦ä¸ãã) <!-- <note> <simpara> @@ -279,22 +278,22 @@ --> </para> <para> - The rest of this section assumes that you have basic knowledge - about CVS tags and branches. + æ¬ç¯ã®æ®ãã®é¨åã¯ãèªè ãCVSã¿ã°ããã³ãã©ã³ãã«é¢ããåºæ¬çãªç¥ + èãæãã¦ãããã¨ãåå ¤ã¨ãã¾ãã </para> <para> - CVS tags are used to label which revisions of the files in your - package belong to a given release. Below is a list of the - required and suggested CVS tags: + CVSã¿ã°ã¯ãæå®ãããªãªã¼ã¹ã«å±ããããã±ã¼ã¸ã®ãã¡ã¤ã«ã®ãªãã¸ã§ + ã³ã示ãã©ãã«ã¨ãã¦ä½¿ç¨ããã¾ãã以ä¸ã«å¿ é åã³æ¨å¥¨ãããCVSã¿ã° + ã®ãªã¹ãã示ãã¾ãã <variablelist> <varlistentry> <term>RELEASE_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (required) Used for tagging a release. If you don't use it, - there's no way to go back and retrieve your package from the - CVS server in the state it was in at the time of the release. + (å¿ é ) ãªãªã¼ã¹ç¨ã¿ã°ã¨ãã¦ä½¿ç¨ããã¾ããããã使ç¨ããªãå ´åã + ãªãªã¼ã¹æç¹ã®ç¶æ ã§CVSãµã¼ãããããã±ã¼ã¸ãåå¾ããææ®µã㪠+ ããªãã¾ãã </simpara> </listitem> </varlistentry> @@ -302,11 +301,11 @@ <term>QA_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (branch, optional) If you feel you need to roll out a - release candidate before releasing, it's a good idea to make a - branch for it so you can isolate the release and apply only - those critical fixes before the actual release. Meanwhile, - normal development may continue on the main trunk. + (ãã©ã³ã, ãªãã·ã§ã³) ãªãªã¼ã¹åã«ãªãªã¼ã¹ä¾¯è£çãå ¬éããå¿ + è¦ãããã¨èããå ´åã«ã¯ããªãªã¼ã¹çãåå²ããå®éã®ãªãªã¼ã¹å + ã«éè¦ãªä¿®æ£ã®ã¿ãé©ç¨ãããããã«ããã¨ããã®ã¯è¯ãèãã§ãã + ãã®éã«ãé常ã®éçºã¯ã¡ã¤ã³ãã©ã³ã¯ã«ããã¦ç¶ç¶ãããã¨ãå¯è½ + ã§ãã </simpara> </listitem> </varlistentry> @@ -314,55 +313,54 @@ <term>MAINT_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (branch, optional) If you need to make "micro-releases" (for - example 1.2.1 and so on after 1.2), you can use a branch for - that too, if your main trunk is very active and you want only - minor changes between your micro-releases. + (ãã©ã³ã, ãªãã·ã§ã³) (ä¾ãã°1.2ã®å¾ã«1.2.1ã¨ãã£ã)"ãã¤ã¯ã + ãªãªã¼ã¹"ãè¡ãéã«ãã¡ã¤ã³ã®éçºãã©ã³ã¯ãéå¸¸ã«æ´»æºã§ãã㤠+ ã¯ããªãªã¼ã¹éã§å ããªå¤æ´ã®ã¿ãè¡ãããå ´åã«ããã©ã³ããä½¿ç¨ + ãããã¨ãã§ãã¾ãã </simpara> </listitem> </varlistentry> </variablelist> - Only the RELEASE tag is required, the rest are recommended for - your convenience. + RELEASEã¿ã°ã®ã¿ãå¿ é ã§ãæ®ãã¯æç¨ãªãã®ãæ¨å¥¨ãã¦ããã ãã§ãã </para> <para> - Below is an example of how to tag the 1.2 release of the - "Money_Fast" package: + 以ä¸ã¯ã"Money_Fast"ããã±ã¼ã¸ã«1.2ãªãªã¼ã¹ã¿ã°ãä»ããæ¹æ³ã示ã + ãã®ã§ãã <informalexample> <screen><prompt>$ </prompt><command>cd pear/Money_Fast</command> <prompt>$ </prompt><command>cvs tag RELEASE_1_2</command> <computeroutput>T Fast.php T README T package.xml -</computeroutput> -</screen> + </computeroutput> + </screen> </informalexample> - By doing this you make it possible for the PEAR web site to take - you through the rest of your release process. + ããã«ãããPEAR Webãµã¤ãã§ãªãªã¼ã¹æé ã®æ®ããè¡ããã¨ãã§ããã + ãã«ãªãã¾ãã </para> <para> - Here's an example of how to create a QA branch: + 以ä¸ã¯ãQAãã©ã³ãã使ããæ¹æ³ã示ãä¾ã§ãã <informalexample> <screen><prompt>$ </prompt><command>cvs tag QA_2_0_BP</command> ... <prompt>$ </prompt><command>cvs rtag -b -r QA_2_0_BP QA_2_0</command> <prompt>$ </prompt><command>cvs update -r QA_2_0</command> <prompt>$ </prompt><command>cvs tag RELEASE_2_0RC1</command> -...and then the actual release, from the same branch: +...ããã¦ãå®éã®ãªãªã¼ã¹ã§ã¯ãåããã©ã³ããã以ä¸ã®ããã«ãã¾ã <prompt>$ </prompt><command>cvs tag RELEASE_2_0</command> </screen> </informalexample> - The "QA_2_0_BP" tag is a "branch point" tag, which is the start - point of the tag. It's always a good idea to start a CVS branch - from such branch points. MAINT branches may use the RELEASE tag - as their branch point. + "QA_2_0_BP"ã¿ã°ã¯"åå²ç¹"ã¿ã°ã§ãã¿ã°ã®éå§ç¹ã§ãããã®ãããªåå² + ç¹ããCVSãã©ã³ããéå§ããã®ã¯å¸¸ã«è¯ãèãã§ãã + MAINTãã©ã³ãã¯ãã®åå²ç¹ã¨åæ§ã«RELEASEã¿ã°ã使ç¨ãããã¨ãå¯è½ã§ + ãã </para> </sect1> <sect1 id="standards.exampleurls"> <title>URLã®ä¾</title> <para> - Use "example.com" for all example URLs, per RFC 2606. + å ¨ã¦ã®URLã®ä¾ã«ã¤ãã¦RFC 2606ã«åºã¥ãURLã使ç¨ãã¦ä¸ããã </para> </sect1> @@ -371,11 +369,11 @@ <sect2> <title>ã¯ã©ã¹</title> <para> - Classes should be given descriptive names. Avoid using abbreviations - where possible. Class names should always begin with an uppercase - letter. The PEAR class hierarchy is also reflected in the class name, - each level of the hierarchy separated with a single underscore. - Examples of good class names are: + ã¯ã©ã¹ã¯ãå 容ãåããååãæå®ããå¿ è¦ãããã¾ããå¯è½ãªãã°ç + ç¥ããååã使ç¨ãããã¨ã¯é¿ãã¦ä¸ãããã¯ã©ã¹åã¯ã常ã«å¤§æåã§ + å§ã¾ãå¿ è¦ãããã¾ããPEARã¯ã©ã¹é層ã¯ãã¯ã©ã¹åã«ãåæ ãããå + é層ã¬ãã«ã¯ãã¢ã³ãã¼ã¹ã³ã¢1ã¤ã§åºåããã¾ãã + è¯ãã¯ã©ã¹åã®ä¾ã以ä¸ã«ç¤ºãã¾ãã <informaltable> <tgroup cols="3"> <tbody> @@ -392,12 +390,12 @@ <sect2> <title>颿°ã¨ã¡ã½ãã</title> <para> - Functions and methods should be named using the "studly caps" - style (also referred to as "bumpy case" or "camel caps"). - Functions should in addition have the package name as a prefix, - to avoid name collisions between packages. The initial letter of - the name (after the prefix) is lowercase, and each letter that - starts a new "word" is capitalized. Some examples: + 颿°ã¨ã¡ã½ããã¯ã"studly caps"å½¢å¼("bumpy case"ã¾ãã¯"camel + caps"ã¨ãå¼ã°ãã¾ã)ã使ç¨ãã¦ååãä»ããå¿ è¦ãããã¾ãã + 颿°ã¯ãããã±ã¼ã¸éã®ååã®è¡çªãé¿ããããã«ããã±ã¼ã¸åãæ¥é + è¾ã¨ãã¦å ããå¿ è¦ãããã¾ãã(æ¥é è¾ã®å¾ã®)ååã®æåã®æåã¯ã + å°æåã§ãæ°ããåèªãå§ããéã®åå é æåã¯å¤§æåã¨ãã¾ããä¾ã + ããã¤ã以ä¸ã«ç¤ºãã¾ãã <informaltable> <tgroup cols="4"> <tbody> @@ -412,10 +410,10 @@ </informaltable> </para> <para> - Private class members (meaning class members that are intented - to be used only from within the same class in which they are - declared; PHP does not yet support truly-enforceable private - namespaces) are preceded by a single underscore. For example: + ãã©ã¤ãã¼ãã¯ã©ã¹ã¡ã³ã(ãã®ã¯ã©ã¹ã¡ã³ãã¯å®£è¨ãããåãã¯ã©ã¹ã® + å é¨ããã®ã¿ä½¿ç¨ããããã¨ãæå³ãã¦ãã¾ããPHPã¯ãã©ã¤ãã¼ãåå + 空éãã¾ã ãµãã¼ããã¦ãã¾ãã)ã¯ãã¢ã³ãã¼ã¹ã³ã¢1ã¤ãåã«ä»ãã¾ + ããä¾ã以ä¸ã«ç¤ºãã¾ãã <informaltable> <tgroup cols="3"> <tbody> @@ -432,20 +430,20 @@ <sect2> <title>宿°</title> <para> - Constants should always be all-uppercase, with underscores to - separate words. Prefix constant names with the uppercased name - of the class/package they are used in. For example, the constants - used by the <literal>DB::</literal> package all begin with - "<literal>DB_</literal>". + 宿°ã¯å¸¸ã«å ¨ã¦å¤§æåã§è¨è¿°ããåèªãåºåãéã«ã¯ã¢ã³ãã¼ã¹ã³ã¢ã + 使ç¨ãã¾ãã使ç¨ãããã¯ã©ã¹/ããã±ã¼ã¸ã大æåã§è¡¨ããååãåç½® + 宿°åã¨ãã¦ä½¿ç¨ãã¾ããä¾ãã°ã<literal>DB::</literal>ããã±ã¼ã¸ + ã§ä½¿ç¨ããã宿°ã¯å ¨ã¦"<literal>DB_</literal>"ã§å§ã¾ãã¾ãã </para> </sect2> <sect2> <title>ã°ãã¼ãã«å¤æ°</title> <para> - If your package needs to define global variables, their name - should start with a single underscore followed by the package - name and another underscore. For example, the PEAR package uses - a global variable called $_PEAR_destructor_object_list. + ããã±ã¼ã¸ã§ã°ãã¼ãã«å¤æ°ãå®ç¾©ããå¿ è¦ãããå ´åããã®ååã¯ã + ã¢ã³ãã¼ã¹ã³ã¢ã§å§ã¾ãããã®å¾ã«ããã±ã¼ã¸åã¨å¥ã®ã¢ã³ãã¼ã¹ã³ã¢ + ãç¶ãããã«ããå¿ è¦ãããã¾ããä¾ãã°ãPEARããã±ã¼ã¸ã¯ã + $_PEAR_destructor_object_listã¨ããååã®ã°ãã¼ãã«å¤æ°ã使ç¨ãã¾ + ãã </para> </sect2> </sect1>
Index: peardoc/ja/Translators diff -u peardoc/ja/Translators:1.1 peardoc/ja/Translators:1.2 --- peardoc/ja/Translators:1.1 Fri Feb 1 09:37:25 2002 +++ peardoc/ja/Translators Sun Feb 10 03:33:16 2002 @@ -1,47 +1,52 @@ Files Translators Maintainers ============================================================================= -bookinfo.xml Rui Hirokawa -preface.xml Rui Hirokawa +bookinfo.xml Rui Hirokawa (m) Rui Hirokawa +preface.xml Rui Hirokawa (m) ---chapters------------------------------------------------------------------ -intro.xml Rui Hirokawa -parts.xml Rui Hirokawa -standards.xml Rui Hirokawa +intro.xml Rui Hirokawa (d) Rui Hirokawa +parts.xml Rui Hirokawa (d) +standards.xml Rui Hirokawa (d) ---contributing-------------------------------------------------------------- -howto.xml +howto.xml skeleton.xml ---core---------------------------------------------------------------------- -db.xml Rui Hirokawa -log.xml Rui Hirokawa -networking.xml -system.xml -http.xml Rui Hirokawa -mail.xml Rui Hirokawa -pear.xml Rui Hirokawa +console.xml Rui Hirokawa (d) Rui Hirokawa +db.xml Rui Hirokawa (w) +networking.xml Rui Hirokawa (d) +system.xml Rui Hirokawa (d) +http.xml Rui Hirokawa (d) +mail.xml Rui Hirokawa (w) +pear.xml Rui Hirokawa (d) ---packages------------------------------------------------------------------ -authentication.xml +authentication.xml file.xml +log.xml Rui Hirokawa (w) networking.xml templates.xml xml.xml ------authentication---------------------------------------------------------- -auth.xml Rui Hirokawa +auth.xml Rui Hirokawa (d) auth_http.xml ------file-------------------------------------------------------------------- -find.xml -passwd.xml -searchreplace.xml +find.xml Yoshiyuki Suzuki (w) +passwd.xml Yoshiyuki Suzuki (w) +searchreplace.xml Yoshiyuki Suzuki (w) ------networking-------------------------------------------------------------- -Net_CheckIP.xml -Net_Finger.xml -Net_IPv6.xml -Net_Ping.xml -Net_Portscan.xml -Net_Whois.xml +Net_CheckIP.xml Yoshiyuki Suzuki (w) +Net_Finger.xml Yoshiyuki Suzuki (w) +Net_IPv6.xml Yoshiyuki Suzuki (w) +Net_Ping.xml Yoshiyuki Suzuki (w) +Net_Portscan.xml Yoshiyuki Suzuki (w) +Net_Whois.xml Yoshiyuki Suzuki (w) ------templates--------------------------------------------------------------- -it.xml -itx.xml +it.xml Yoshiyuki Suzuki (w) +itx.xml Yoshiyuki Suzuki (w) ------xml--------------------------------------------------------------------- -xml_rss.xml -xml_sql2xml.xml +xml_rss.xml Yoshiyuki Suzuki (w) +xml_sql2xml.xml Yoshiyuki Suzuki (w) ---pecl----------------------------------------------------------------------- imagick.xml +satellite.xml +session_pgsql.xml Rui Hirokawa (w) +------------------------------------------------------------------------------ +w: working for translation, d: draft, m: maintaining \ No newline at end of file Index: peardoc/ja/chapters/standards.xml diff -u peardoc/ja/chapters/standards.xml:1.2 peardoc/ja/chapters/standards.xml:1.3 --- peardoc/ja/chapters/standards.xml:1.2 Sun Feb 3 18:28:28 2002 +++ peardoc/ja/chapters/standards.xml Sun Feb 10 03:33:16 2002 @@ -1,5 +1,5 @@ <?xml encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <chapter id="standards"> <title>æ¨æºã³ã¼ãã£ã³ã°è¦ç´</title> <note> @@ -121,7 +121,7 @@ <sect1 id="standards.funcdef"> <title>颿°å®ç¾©</title> <para> - Function declarations follow the "one true brace" convention: + 颿°å®£è¨ã¯ã以ä¸ã®ãããª"one true brace"表è¨ã«åºã¥ãã¾ãã <programlisting role="php"> <![CDATA[ function fooFunction($arg1, $arg2 = '') @@ -135,9 +135,9 @@ </programlisting> </para> <para> - Arguments with default values go at the end of the argument list. - Always attempt to return a meaningful value from a function if one - is appropriate. Here is a slightly longer example: + ããã©ã«ãå¤ãæãã弿°ã¯å¼æ°ãªã¹ãã®çµããã«ç½®ãã¾ãã + ãã®é¢æ°ã¯å¦çãé©å½ã§ããå ´åã常ã«é¢æ°ããæå³ã®ããå¤ãè¿ããã + ã«ãã¦ä¸ããã以ä¸ã«ããé·ãä¾ã示ãã¾ãã <programlisting role="php"> <![CDATA[ function connect(&$dsn, $persistent = false) @@ -162,39 +162,38 @@ <sect1 id="standards.comments"> <title>ã³ã¡ã³ã</title> <para> - Inline documentation for classes should follow the PHPDoc - convention, similar to Javadoc. More information about PHPDoc can - be found here: <ulink url="&url.phpdoc;">&url.phpdoc;</ulink> + ã¯ã©ã¹ã®ã¤ã³ã©ã¤ã³ããã¥ã¡ã³ãã¯ãJavadocã«ä¼¼ãPHPDocã®è¡¨è¨ã«åºã¥ + ãå¿ è¦ãããã¾ããPHPDocã«é¢ããããè©³ç´°ãªæ å ±ã¯ã + <ulink url="&url.phpdoc;">&url.phpdoc;</ulink>ã«ããã¾ãã </para> <para> - Non-documentation comments are strongly encouraged. A general rule of - thumb is that if you look at a section of code and think "Wow, I don't - want to try and describe that", you need to comment it before you - forget how it works. + ããã¥ã¡ã³ã以å¤ã®ã³ã¡ã³ãã¯ãå¼·ãæ¨å¥¨ããã¾ããä¸è¬çãªç®å®ã¨ãã¦ã + ã³ã¼ãã®ããã»ã¯ã·ã§ã³ãè¦ãæã«ãããã説æããããªããªãã¨æã㨠+ ããããå¦çå 容ãå¿ããåã«ã³ã¡ã³ãã追å ããå¿ è¦ãããã¾ãã </para> <para> - C style comments (/* */) and standard C++ comments (//) are both - fine. Use of Perl/shell style comments (#) is discouraged. + Cè¨èªå½¢å¼ã®(/* */)ã¨æ¨æºC++ã³ã¡ã³ã(//)ã®ã©ã¡ãã使ç¨å¯è½ã§ãã + Perl/shellå½¢å¼ã®ã³ã¡ã³ã(#)ã®ä½¿ç¨ã¯æ¨å¥¨ããã¾ããã </para> </sect1> <sect1 id="standards.including"> <title>ã³ã¼ãã®èªã¿è¾¼ã¿</title> <para> - Anywhere you are unconditionally including a class file, use - <function>require_once</function>. Anywhere you are conditionally - including a class file (for example, factory methods), use - <function>include_once</function>. Either of these will ensure - that class files are included only once. They share the same file - list, so you don't need to worry about mixing them - a file - included with <function>require_once</function> will not be - included again by <function>include_once</function>. + ããã¯ã©ã¹ãã¡ã¤ã«ãç¡æ¡ä»¶ã§èªã¿è¾¼ãå ´åã¯ã + <function>require_once</function>ã使ç¨ãã¦ä¸ãããããã¯ã©ã¹ãã¡ + ã¤ã«ãæ¡ä»¶ä»ãã§èªã¿è¾¼ãå ´å(ä¾ãã°ãfactoryã¡ã½ãã)ã¯ã + <function>include_once</function>ã使ç¨ãã¦ä¸ããã + ãããã¯ã©ã¡ããã¯ã©ã¹ãã¡ã¤ã«ã1度ã ãèªã¿è¾¼ã¾ãããã¨ãä¿è¨¼ãã¾ + ãããããã¯ãåããã¡ã¤ã«ãªã¹ããå ±æãã¦ãããæ··ç¨ãããã¨ã«ã¤ã + ã¦å¿é ããå¿ è¦ã¯ããã¾ããã<function>require_once</function>ã§èª + ã¿è¾¼ã¾ãããã¡ã¤ã«ã¯ã<function>include_once</function>ã«ããå度 + èªã¿è¾¼ã¾ãããã¨ã¯ããã¾ããã <note> <simpara> - <function>include_once</function> and - <function>require_once</function> are statements, not - functions. You don't <emphasis>need</emphasis> parentheses - around the filename to be included. + <function>include_once</function>ããã³ + <function>require_once</function>ã¯å½ä»¤ã§ããã颿°ã§ã¯ããã¾ã + ããèªã¿è¾¼ããã¡ã¤ã«åã®åå¾ã«æ¬å¼§ã¯ä¸è¦ã§ãã </simpara> </note> </para> @@ -203,18 +202,19 @@ <sect1 id="standards.tags"> <title>PHPã³ã¼ãã¿ã°</title> <para> - <emphasis>Always</emphasis> use <literal><?php ?></literal> to - delimit PHP code, not the <literal><? ?></literal> shorthand. - This is required for PEAR compliance and is also the most portable - way to include PHP code on differing operating systems and setups. + PHPã³ã¼ããåºåããããã«<emphasis>ãç縮åã® + <literal><? ?></literal>ã§ã¯ãªãã常㫠+ </emphasis><literal><?php ?></literal>ã使ç¨ãã¦ä¸ããã + PEAR対å¿ã®ããã«å¿ è¦ã§ããªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ãè¨å®ãç°ãªãæ åµ + ã§PHPã³ã¼ããå°å ¥ããããã®æãäºææ§ã®é«ãæ¹æ³ã§ãããã¾ãã </para> </sect1> <sect1 id="standards.header"> <title>ãããã®ã³ã¡ã³ããããã¯</title> <para> - All source code files in the core PEAR distribution should contain - the following comment block as the header: + ã³ã¢PEARé å¸ãã¡ã¤ã«ã«ããå ¨ã¦ã®ã½ã¼ã¹ã³ã¼ããã¡ã¤ã«ã«ã¯ã以ä¸ã®ã³ + ã¡ã³ããããã¯ããããã¨ãã¦å«ã¾ãã¦ããå¿ è¦ãããã¾ãã <programlisting role="php"> <![CDATA[ /* vim: set expandtab tabstop=4 shiftwidth=4: */ @@ -235,38 +235,37 @@ // | Your Name <you@example.com> | // +----------------------------------------------------------------------+ // -// $Id: standards.xml,v 1.2 2002/02/03 23:28:28 hirokawa Exp $ +// $Id: standards.xml,v 1.3 2002/02/10 08:33:16 hirokawa Exp $ ]]> </programlisting> </para> <para> - There's no hard rule to determine when a new code contributor - should be added to the list of authors for a given source file. - In general, their changes should fall into the "substantial" - category (meaning somewhere around 10% to 20% of code changes). - Exceptions could be made for rewriting functions or contributing - new logic. + ããã½ã¼ã¹ãã¡ã¤ã«ã®ä½è ã®ãªã¹ãã«æ°ããªã³ã¼ãæä¾è ã®ååã追å ã + ãã¹ããã©ãããå®ç¾©ããæç¢ºãªè¦åã¯ããã¾ãããä¸è¬çã«ãä½è ã«å± + ãã夿´ç¹ã¯ã"æ¬è³ªçãª"åé¡ã«å±ãã(10%ãã20%ã®ã³ã¼ã夿´ãæå³ + ãã¾ã)å¿ è¦ãããã¾ãã颿°ã®æ¸æããæ°ããªãã¸ãã¯ãæä¾ããå ´å + ã«ã¯ãä¾å¤ãããå ´åãããã¾ãã </para> <para> - Simple code reorganization or bug fixes would not justify the - addition of a new individual to the list of authors. + ç°¡åãªã³ã¼ãã®æ´çããã°ä¿®æ£ã¯ãä½è ã®ãªã¹ãã«æ°ãã«å人ã追å ãã + ã¾ã§ã®çç±ã«ã¯ãªãã¾ããã </para> <para> - Files not in the core PEAR repository should have a similar block - stating the copyright, the license, and the authors. All files - should include the modeline comments to encourage consistency. + ã³ã¢PEARãªãã¸ããªã«ãªããã¡ã¤ã«ã«ã¯ãä¼¼ããããªè使¨©ãã©ã¤ã»ã³ã¹ã + ä½è ãè¨è¿°ãããããã¯ãå«ãå¿ è¦ãããã¾ããå ¨ã¦ã®ãã¡ã¤ã«ã«ã¯ãçµ± + ä¸ããmodelineã³ã¡ã³ããå«ãã¹ãã§ã </para> </sect1> <sect1 id="standards.cvs"> <title>CVSã®ä½¿ç¨</title> <simpara> - This section applies only to packages using CVS at cvs.php.net. + æ¬ç¯ã¯ãcvs.php.netã«ããCVSã使ç¨ããããã±ã¼ã¸ã«ã®ã¿é©ç¨ããã¾ãã </simpara> <para> - Include the $Id$ CVS keyword in each file. As each file - is edited, add this tag if it's not yet present (or replace - existing forms such as "Last Modified:", etc.). + åãã¡ã¤ã«ã«ãCVSã®ãã¼ã¯ã¼ã $Id$ ãå«ãã¦ä¸ããã + åãã¡ã¤ã«ãç·¨éããéãã¾ã ãªãå ´åã«ã¯ãã®ã¿ã°ã追å ãã¦ä¸ããã + (ã¾ãã¯ã"Last Modified:"ã®ãããªæ¢åã®å½¢å¼ãç½®æãã¦ä¸ãã) <!-- <note> <simpara> @@ -279,22 +278,22 @@ --> </para> <para> - The rest of this section assumes that you have basic knowledge - about CVS tags and branches. + æ¬ç¯ã®æ®ãã®é¨åã¯ãèªè ãCVSã¿ã°ããã³ãã©ã³ãã«é¢ããåºæ¬çãªç¥ + èãæãã¦ãããã¨ãåå ¤ã¨ãã¾ãã </para> <para> - CVS tags are used to label which revisions of the files in your - package belong to a given release. Below is a list of the - required and suggested CVS tags: + CVSã¿ã°ã¯ãæå®ãããªãªã¼ã¹ã«å±ããããã±ã¼ã¸ã®ãã¡ã¤ã«ã®ãªãã¸ã§ + ã³ã示ãã©ãã«ã¨ãã¦ä½¿ç¨ããã¾ãã以ä¸ã«å¿ é åã³æ¨å¥¨ãããCVSã¿ã° + ã®ãªã¹ãã示ãã¾ãã <variablelist> <varlistentry> <term>RELEASE_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (required) Used for tagging a release. If you don't use it, - there's no way to go back and retrieve your package from the - CVS server in the state it was in at the time of the release. + (å¿ é ) ãªãªã¼ã¹ç¨ã¿ã°ã¨ãã¦ä½¿ç¨ããã¾ããããã使ç¨ããªãå ´åã + ãªãªã¼ã¹æç¹ã®ç¶æ ã§CVSãµã¼ãããããã±ã¼ã¸ãåå¾ããææ®µã㪠+ ããªãã¾ãã </simpara> </listitem> </varlistentry> @@ -302,11 +301,11 @@ <term>QA_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (branch, optional) If you feel you need to roll out a - release candidate before releasing, it's a good idea to make a - branch for it so you can isolate the release and apply only - those critical fixes before the actual release. Meanwhile, - normal development may continue on the main trunk. + (ãã©ã³ã, ãªãã·ã§ã³) ãªãªã¼ã¹åã«ãªãªã¼ã¹ä¾¯è£çãå ¬éããå¿ + è¦ãããã¨èããå ´åã«ã¯ããªãªã¼ã¹çãåå²ããå®éã®ãªãªã¼ã¹å + ã«éè¦ãªä¿®æ£ã®ã¿ãé©ç¨ãããããã«ããã¨ããã®ã¯è¯ãèãã§ãã + ãã®éã«ãé常ã®éçºã¯ã¡ã¤ã³ãã©ã³ã¯ã«ããã¦ç¶ç¶ãããã¨ãå¯è½ + ã§ãã </simpara> </listitem> </varlistentry> @@ -314,55 +313,54 @@ <term>MAINT_<replaceable>n_n</replaceable></term> <listitem> <simpara> - (branch, optional) If you need to make "micro-releases" (for - example 1.2.1 and so on after 1.2), you can use a branch for - that too, if your main trunk is very active and you want only - minor changes between your micro-releases. + (ãã©ã³ã, ãªãã·ã§ã³) (ä¾ãã°1.2ã®å¾ã«1.2.1ã¨ãã£ã)"ãã¤ã¯ã + ãªãªã¼ã¹"ãè¡ãéã«ãã¡ã¤ã³ã®éçºãã©ã³ã¯ãéå¸¸ã«æ´»æºã§ãã㤠+ ã¯ããªãªã¼ã¹éã§å ããªå¤æ´ã®ã¿ãè¡ãããå ´åã«ããã©ã³ããä½¿ç¨ + ãããã¨ãã§ãã¾ãã </simpara> </listitem> </varlistentry> </variablelist> - Only the RELEASE tag is required, the rest are recommended for - your convenience. + RELEASEã¿ã°ã®ã¿ãå¿ é ã§ãæ®ãã¯æç¨ãªãã®ãæ¨å¥¨ãã¦ããã ãã§ãã </para> <para> - Below is an example of how to tag the 1.2 release of the - "Money_Fast" package: + 以ä¸ã¯ã"Money_Fast"ããã±ã¼ã¸ã«1.2ãªãªã¼ã¹ã¿ã°ãä»ããæ¹æ³ã示ã + ãã®ã§ãã <informalexample> <screen><prompt>$ </prompt><command>cd pear/Money_Fast</command> <prompt>$ </prompt><command>cvs tag RELEASE_1_2</command> <computeroutput>T Fast.php T README T package.xml -</computeroutput> -</screen> + </computeroutput> + </screen> </informalexample> - By doing this you make it possible for the PEAR web site to take - you through the rest of your release process. + ããã«ãããPEAR Webãµã¤ãã§ãªãªã¼ã¹æé ã®æ®ããè¡ããã¨ãã§ããã + ãã«ãªãã¾ãã </para> <para> - Here's an example of how to create a QA branch: + 以ä¸ã¯ãQAãã©ã³ãã使ããæ¹æ³ã示ãä¾ã§ãã <informalexample> <screen><prompt>$ </prompt><command>cvs tag QA_2_0_BP</command> ... <prompt>$ </prompt><command>cvs rtag -b -r QA_2_0_BP QA_2_0</command> <prompt>$ </prompt><command>cvs update -r QA_2_0</command> <prompt>$ </prompt><command>cvs tag RELEASE_2_0RC1</command> -...and then the actual release, from the same branch: +...ããã¦ãå®éã®ãªãªã¼ã¹ã§ã¯ãåããã©ã³ããã以ä¸ã®ããã«ãã¾ã <prompt>$ </prompt><command>cvs tag RELEASE_2_0</command> </screen> </informalexample> - The "QA_2_0_BP" tag is a "branch point" tag, which is the start - point of the tag. It's always a good idea to start a CVS branch - from such branch points. MAINT branches may use the RELEASE tag - as their branch point. + "QA_2_0_BP"ã¿ã°ã¯"åå²ç¹"ã¿ã°ã§ãã¿ã°ã®éå§ç¹ã§ãããã®ãããªåå² + ç¹ããCVSãã©ã³ããéå§ããã®ã¯å¸¸ã«è¯ãèãã§ãã + MAINTãã©ã³ãã¯ãã®åå²ç¹ã¨åæ§ã«RELEASEã¿ã°ã使ç¨ãããã¨ãå¯è½ã§ + ãã </para> </sect1> <sect1 id="standards.exampleurls"> <title>URLã®ä¾</title> <para> - Use "example.com" for all example URLs, per RFC 2606. + å ¨ã¦ã®URLã®ä¾ã«ã¤ãã¦RFC 2606ã«åºã¥ãURLã使ç¨ãã¦ä¸ããã </para> </sect1> @@ -371,11 +369,11 @@ <sect2> <title>ã¯ã©ã¹</title> <para> - Classes should be given descriptive names. Avoid using abbreviations - where possible. Class names should always begin with an uppercase - letter. The PEAR class hierarchy is also reflected in the class name, - each level of the hierarchy separated with a single underscore. - Examples of good class names are: + ã¯ã©ã¹ã¯ãå 容ãåããååãæå®ããå¿ è¦ãããã¾ããå¯è½ãªãã°ç + ç¥ããååã使ç¨ãããã¨ã¯é¿ãã¦ä¸ãããã¯ã©ã¹åã¯ã常ã«å¤§æåã§ + å§ã¾ãå¿ è¦ãããã¾ããPEARã¯ã©ã¹é層ã¯ãã¯ã©ã¹åã«ãåæ ãããå + é層ã¬ãã«ã¯ãã¢ã³ãã¼ã¹ã³ã¢1ã¤ã§åºåããã¾ãã + è¯ãã¯ã©ã¹åã®ä¾ã以ä¸ã«ç¤ºãã¾ãã <informaltable> <tgroup cols="3"> <tbody> @@ -392,12 +390,12 @@ <sect2> <title>颿°ã¨ã¡ã½ãã</title> <para> - Functions and methods should be named using the "studly caps" - style (also referred to as "bumpy case" or "camel caps"). - Functions should in addition have the package name as a prefix, - to avoid name collisions between packages. The initial letter of - the name (after the prefix) is lowercase, and each letter that - starts a new "word" is capitalized. Some examples: + 颿°ã¨ã¡ã½ããã¯ã"studly caps"å½¢å¼("bumpy case"ã¾ãã¯"camel + caps"ã¨ãå¼ã°ãã¾ã)ã使ç¨ãã¦ååãä»ããå¿ è¦ãããã¾ãã + 颿°ã¯ãããã±ã¼ã¸éã®ååã®è¡çªãé¿ããããã«ããã±ã¼ã¸åãæ¥é + è¾ã¨ãã¦å ããå¿ è¦ãããã¾ãã(æ¥é è¾ã®å¾ã®)ååã®æåã®æåã¯ã + å°æåã§ãæ°ããåèªãå§ããéã®åå é æåã¯å¤§æåã¨ãã¾ããä¾ã + ããã¤ã以ä¸ã«ç¤ºãã¾ãã <informaltable> <tgroup cols="4"> <tbody> @@ -412,10 +410,10 @@ </informaltable> </para> <para> - Private class members (meaning class members that are intented - to be used only from within the same class in which they are - declared; PHP does not yet support truly-enforceable private - namespaces) are preceded by a single underscore. For example: + ãã©ã¤ãã¼ãã¯ã©ã¹ã¡ã³ã(ãã®ã¯ã©ã¹ã¡ã³ãã¯å®£è¨ãããåãã¯ã©ã¹ã® + å é¨ããã®ã¿ä½¿ç¨ããããã¨ãæå³ãã¦ãã¾ããPHPã¯ãã©ã¤ãã¼ãåå + 空éãã¾ã ãµãã¼ããã¦ãã¾ãã)ã¯ãã¢ã³ãã¼ã¹ã³ã¢1ã¤ãåã«ä»ãã¾ + ããä¾ã以ä¸ã«ç¤ºãã¾ãã <informaltable> <tgroup cols="3"> <tbody> @@ -432,20 +430,20 @@ <sect2> <title>宿°</title> <para> - Constants should always be all-uppercase, with underscores to - separate words. Prefix constant names with the uppercased name - of the class/package they are used in. For example, the constants - used by the <literal>DB::</literal> package all begin with - "<literal>DB_</literal>". + 宿°ã¯å¸¸ã«å ¨ã¦å¤§æåã§è¨è¿°ããåèªãåºåãéã«ã¯ã¢ã³ãã¼ã¹ã³ã¢ã + 使ç¨ãã¾ãã使ç¨ãããã¯ã©ã¹/ããã±ã¼ã¸ã大æåã§è¡¨ããååãåç½® + 宿°åã¨ãã¦ä½¿ç¨ãã¾ããä¾ãã°ã<literal>DB::</literal>ããã±ã¼ã¸ + ã§ä½¿ç¨ããã宿°ã¯å ¨ã¦"<literal>DB_</literal>"ã§å§ã¾ãã¾ãã </para> </sect2> <sect2> <title>ã°ãã¼ãã«å¤æ°</title> <para> - If your package needs to define global variables, their name - should start with a single underscore followed by the package - name and another underscore. For example, the PEAR package uses - a global variable called $_PEAR_destructor_object_list. + ããã±ã¼ã¸ã§ã°ãã¼ãã«å¤æ°ãå®ç¾©ããå¿ è¦ãããå ´åããã®ååã¯ã + ã¢ã³ãã¼ã¹ã³ã¢ã§å§ã¾ãããã®å¾ã«ããã±ã¼ã¸åã¨å¥ã®ã¢ã³ãã¼ã¹ã³ã¢ + ãç¶ãããã«ããå¿ è¦ãããã¾ããä¾ãã°ãPEARããã±ã¼ã¸ã¯ã + $_PEAR_destructor_object_listã¨ããååã®ã°ãã¼ãã«å¤æ°ã使ç¨ãã¾ + ãã </para> </sect2> </sect1>