cvs: peardoc /ja/chapters faq.xml

From: Date: Fri, 16 Apr 2004 03:00:15 +0000
Subject: cvs: peardoc /ja/chapters faq.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-3521@lists.php.net to get a copy of this message
haruki Thu Apr 15 23:00:15 2004 EDT Modified files: /peardoc/ja/chapters faq.xml Log: Sync with en. Translates the resr.

http://cvs.php.net/diff.php/peardoc/ja/chapters/faq.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/ja/chapters/faq.xml diff -u peardoc/ja/chapters/faq.xml:1.4 peardoc/ja/chapters/faq.xml:1.5 --- peardoc/ja/chapters/faq.xml:1.4 Tue Mar 23 22:42:50 2004 +++ peardoc/ja/chapters/faq.xml Thu Apr 15 23:00:14 2004 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.10 Maintainer: Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.11 Maintainer: haruki Status: ready --> +<!-- CREDITS: elf --> <!-- [mj] The FAQ needs some heavy revision - don't translate it right now --> <chapter id="faq"> @@ -9,68 +10,69 @@ <sect1 id="faq.whatis"> <title> - PEARとは? + PEAR とは何ですか? </title> <para> - これについては<link linkend="introduction">ここ</link>に記述されています。 + それについては、 + <link linkend="introduction">こちら</link>に記述されています。 </para> </sect1> <sect1 id="faq.contributor"> <title> - PEARに貢献する方法と(または)PEARのCVSアクセスでの取得方法は? + PEARへの貢献方法とCVSアクセス方法は? </title> <titleabbrev> - 貢献する + 貢献する方法 </titleabbrev> <para> - これについては<link linkend="developers.intro">ここ</link>に記述されています。 + それについては、 + <link linkend="developers.intro">こちら</link>に記述されています。 </para> </sect1> <sect1 id="faq.c-module"> <title> - 私はPHPモジュールをC言語で書きました。PEARにこれを含むためのルールは - ありますか? + PHP モジュールを C言語で書いたのですが、 + それを PEAR に含めてもらうためのルールは? * </title> <titleabbrev> Cモジュール </titleabbrev> <simpara> - Stig Bakken と Martin Jansenが回答を書きました。 + Answer written by Stig Bakken and Martin Jansen. </simpara> <para> - あなたが - <link linkend="standards">PEARコーディング標準</link> - に従わない簡単な拡張ををただ作りたい場合は、 - pear/PECL/ extname - (それはphp-src/ext/extnameから拡張が移動される場所です) - にそれを置いてください。 - あなたがPEARの関数/クラス命名に続く拡張を書きたい場合は、 - pear/Foo_Barあるいは任意の正しい名前にそれを置いてください。 + If you just want to make a simple extension that does not follow + the <link linkend="standards">PEAR coding standards</link>, put it + in pear/PECL/ extname (that is where extensions from + php-src/ext/extname will be moved). If you want to write an extension + following PEAR's function/class naming, put it in pear/Foo_Bar or + whatever the right name is. </para> </sect1> <!-- <sect1 id="faq.install-pecl"> <title> - C言語でかかれたPELCモジュールのインストール方法は? + C言語で書かれたPECLモジュールのインストール方法は? </title> <titleabbrev> PECLモジュールのインストール方法 </titleabbrev> <simpara> - Christian Stockerが回答を書きました。 + Answer written by Christian Stocker. </simpara> <simpara> - C言語で書かれたPEAR、PECL拡張のサポートはあまりよくできていません。 - ここにあなたがあなたのシステム上でC言語で書かれたモジュールを - PEAR:Installerが実行するまでの方法を短く記述しています。 + The support for C-extensions in PEAR/PECL is not very + sophisticated at the moment. Here's a short description of how to + get C-modules running on your system until the PEAR::Installer + does that for you. </simpara> <simpara> - PEARからパッケージをダウンロードし、次にそれをどこかに展開してください。 - 新しく作成されたディレクトリに移動し、次のステップにうつります。: + Download the package from PEAR, then untar it somewhere. Go into + the newly built directory and do the following steps: </simpara> <para> <itemizedlist> @@ -119,85 +121,87 @@ --> <sect1 id="faq.separated"> <title> - なぜPEARはpear/とphp-src/pear/に分かれているのですか? + なぜ PEAR は pear/ と php-src/pear/ に分かれているのですか? </title> <titleabbrev> - どうしてpear/とphp-src/pearが? + pear/ と php-src/pear </titleabbrev> <simpara> - まずphp-src/pearにPEARの第一要素が保存されています。 - そしてそれらは新しいPHPのリリースにバンドルされました。 + PEAR の初期の要素は php-src/pear ディレクトリに保存されており、 + 各 PHP リリースにバンドルされていました。 </simpara> <simpara> - For future releases of PEAR this isn't workable because PEAR will - become too big to be bundled with every release of PHP. So there - was a decision to commit all new elements to an own top level - directory pear. The other elements which are currently remaining - in php-src/pear will be moved to the new top level directory soon. - Only the <link linkend="about-pfc">PFC code</link> and the PEAR - package manager code will be bundled with every new release - automatically. + PEAR の将来のリリースは、 + PHP のリリースにバンドルするには大きくなりすぎるでしょうから、 + その方法はうまくありません。 + それで、すべての新しい要素は、pear という + トップレベルディレクトリにコミットすることにしました。 + 今のところ php-src/pear にある他の要素も、まもなくこの新しい + トップレベルディレクトリに移されます。 + <link linkend="about-pfc">PFC コード</link>と、PEAR + パッケージマネージャだけが、自動的に PHP の新しいリリースに + バンドルされるようになります。 </simpara> </sect1> <sect1 id="faq.directory-structure"> <title> - なぜpear/とphp-src/pear/でディレクトリ構造が違うのですか? + なぜ pear/ と php-src/pear/ でディレクトリ構造が違うのですか? </title> <titleabbrev> - なぜpear/とphp-src/pearは違うのですか? + なぜ pear/ と php-src/pear は違うか </titleabbrev> <simpara> - Stig Bakkenが回答を書きました。 + Stig Bakkenの回答。 </simpara> <para> - <filename>php-src/pear/</filename>のディレクトリ構造は、 - インストールツリーに適した構造になっています。 - (デフォルトが<filename>/usr/local/lib/php</filename>), - そして単純な階層を構成しています。 - しかし<filename>pear/</filename>の構造はパッケージに属する - ファイル構成になっています。 - Where files are located in each package directory is - completely independent from where they end up being installed, - this is all determined by the package description file. + <filename>php-src/pear/</filename> のディレクトリ構造は、 + 単純な階層構成で、そのインストールツリー + (デフォルトでは<filename>/usr/local/lib/php</filename>) + に適した構造になっています。 + しかし、<filename>pear/</filename> の構造は、 + ファイルがどのパッケージに属するかに基づきます。 + 各パッケージのディレクトリ中でのファイルの位置は、 + インストールされた後の位置とは完全に独立です。 + インストール後の位置は、パッケージ記述ファイルにより決定されます。 </para> </sect1> <sect1 id="faq.flat-structure"> <title> - なぜフラットディレクトリ構造ではなく深いの? + なぜフラットなディレクトリ構造なのですか? </title> <titleabbrev> - フラット構造 + フラットなディレクトリ構造 </titleabbrev> <simpara> - Stig Bakkenが回答を書きました。 + Stig Bakkenの回答。 </simpara> <simpara> - In CVS, PEAR code is organized by package instead of hierarchical - like it would finally be installed. For example, if you want to - use the XML_RPC class, you include "XML/RPC.php". It's easy to - think that in CVS, this file should be in pear/XML/RPC.php, but - that's not the case. XML_RPC is an independent package with its - own directory in CVS, in this case the RPC.php file is actually - located at pear/XML_RPC/RPC.php. The package description file - (package.xml) is used to say where the files should finally be - installed. + インストールされた後の最終的な階層構造とは異なり、 + CVS においては、PEAR のコードはパッケージごとにまとめられています。 + たとえば、XML_RPC クラスを使いたいときは、"XML/RPC.php" を読み込みます。 + 単純に想像すれば、CVSにおいてそのファイルは pear/XML/RPC.php + にありそうですが、そうではありません。 + XML_RPC は、独立のパッケージでCVS内に自身のディレクトリを持ちます。 + つまり、RPC.php は pear/XML_RPC/RPC.php にあります。 + パッケージ記述ファイル (package.xml) は、ファイルが最終的にどこに + インストールされるかを示すために使われます。 </simpara> <simpara> - CVSがこのように構成される理由は、 - それがパッケージ管理をはるかに簡単にするということです。 + CVS がこのように構成される理由は、 + パッケージ管理がはるかに簡単になる方法だからです。 </simpara> </sect1> <sect1 id="faq.unstable-code"> <title> - 実験的、または不安定なものをコミット出来ますか? + 実験的または不安定なものをコミットしてよいですか? </title> <titleabbrev> 不安定なコード @@ -205,19 +209,18 @@ <para> はい。 - しかし、 - ドキュメント中のプロジェクトの実験/不安定な状態のマークアップを - 確認してください。 - これを行う最良の場所は&lt;status&gt;タグです。 - <filename>package.xml</filename>の中の - このタグの値は、 + しかし、確実に行ってほしいのは、 + ドキュメント中に、プロジェクトの実験性・不安性についてのステータスを + 書き加えることです。書き加える最良の場所は、 + <filename>package.xml</filename>の中の&lt;status&gt;タグです。 + このタグで用いることのできる値は、以下のとおり。 <variablelist> <varlistentry> <term>alpha</term> <listitem> <simpara> - 開発の初期段階で、すべてのもの無断で変わるかもしれないし - (API、振る舞い)、多くのバグを予想します。 + 開発の初期段階であって、(APIや動作など) + すべてが無断で変わることがあり、バグも多くあることが予想されます。 </simpara> </listitem> </varlistentry> @@ -225,8 +228,8 @@ <term>beta</term> <listitem> <simpara> - APIは通常変わらないはずで、使用可能なソフトウェアですが、 - バグを予測します。 + APIは通常変わりませんし、使用可能なソフトウェアですが、 + バグも多くあることが予想されます。 </simpara> </listitem> </varlistentry> @@ -234,9 +237,9 @@ <term>devel</term> <listitem> <simpara> - 初期のアクセスがフィード・バックをテストし与えることを望む - 他の開発者のためのリリースで、 - コード品質は前アルファから安定していることまで変わるかもしれません。 + テストとフィードバックのために早期のアクセスを望む + 開発者のためのリリースで、 + コード品質はpre-alphaからstableまで様々です。 </simpara> </listitem> </varlistentry> @@ -244,9 +247,8 @@ <term>stable</term> <listitem> <simpara> - ソフトウェアはテストされ、 - 決定したAPI、ドキュメントは書かれ、 - ユーザおよび生産環境のための勧められたリリースです。 + テストされ、APIは固定し、ドキュメントも書かれており、 + 多くのユーザおよび製品環境向けに推奨のリリースです。 </simpara> </listitem> </varlistentry> @@ -254,7 +256,7 @@ <term>snapshot</term> <listitem> <simpara> - ある期日のCVSからのスナップショットです。 + ある期日のCVSスナップショットです。 </simpara> </listitem> </varlistentry> @@ -264,97 +266,100 @@ <sect1 id="faq.add-examples"> <title> - Am I expected to add examples and/or test files to my package and - where to store them? + サンプルやテスト用のファイルは、パッケージの + どこにストアすれば良いですか? </title> <titleabbrev> サンプルの追加 </titleabbrev> <para> - Examples are a good idea, especially when your class has a complex - API. But examples are only a part of a documentation. Don't create - examples instead of a documentation. You should store the - documentation and the examples in a sub directory 'docs' of the - package directory. + サンプルとは良い考えです。特に、クラスが複雑なAPIをもつ場合には。 + しかし、サンプルはドキュメントの一部でしかありません。 + ドキュメントの代わりにサンプルだけを作るのはやめましょう。 + ドキュメントとサンプルは共に 'docs' サブディレクトリにストアしてください。 </para> <para> - Test scripts are recommended when your class has to be compiled, - requires special extentions/programs or needs correctly installed - additional files (i.e. templates, graphics). Store them in sub - directory called 'tests'. + そのクラスが、コンパイルする必要のあるものである場合や、 + 特別な拡張やプログラムを必要とする場合、および、 + (テンプレートや画像などの)追加ファイルが正しくインストールされている + 必要のある場合は、テストスクリプトの作成が推奨されます。 + 'tests' サブディレクトリにストアしてください。 </para> </sect1> <sect1 id="faq.competitive-packages"> <title> - Are different packages or classes with similar features allowed? + 似たような機能に対して + 異なる複数のパッケージやクラスの存在は認められますか? </title> <titleabbrev> - 競争率の高いコード + 競合するコード </titleabbrev> <simpara> - There is no problem with competitive packages, but we want to - avoid pollution with 10 template classes, 7 different mail classes, - and 3 different layers for databases doing the same only with - different function names. + 互いに機能が競合するパッケージ自体には問題はありません。 + しかし、10のテンプレートクラス、7つものメール処理クラス、 + 3つのデータベースレイヤが、関数名が異なるだけで同じ動作をするといった + 公害は、避けたいと思っています。 </simpara> <para> - まず実際に確認する: - なぜ新しいパッケージをコミットしたいのですか? - 非常に悪い答えは<quote>PEARで私の名前が見えるから</quote> - や<quote>私は既存クラスのAPIを理解していないから</quote>です。 + まず真実をチェックしてください。 + なぜ私は新しいパッケージをコミットしたいのか、と。 + <quote>PEARで私の名前が表記される</quote> + とか、<quote>既存クラスのAPIを理解していないから</quote>というのは、 + 非常に悪い答えです。 </para> <para> - 新しいクラスへの正当な理由の多くは、 - 機能や既存の実装の振る舞いや速度や欠けているためです。 - この場合、このクラスを見て、拡張することが出来ます。 - そうでなければ、 - 新しいクラスをコミットするための正当な理由を持っています。 - <quote>そうでなければ</quote>の意味は、 - このクラスの基本を変更せずに、 + 良い理由としては、 + 既存の実装に特定の機能や動作・速度が欠けているということがあります。 + しかし、この場合も、拡張が可能なら、そのクラスをなんとかしてみるべきです。 + そうできなければ、 + 新しいクラスをコミットするための正当な理由となります。 + ここで、<quote>そうできなければ</quote>の意味は、 + このクラスの基礎を変更せずには必要な機能を付加できない、 + ということを意味しています。 </para> <simpara> - 新しいクラスを書き、 - 可能な限り既存のクラスとのAPI互換性を維持しようとする場合! - 互換性をもつクラスをみずからすることが可能でない場合は、 - 互換性を維持するためにラッパクラスを作成しようとしてください。 - もしこのラッパが多くの時間、 - あるいはメモリを必要としてもかまわないなら - ラッパクラスは互換性を維持し、移行をより簡単にするでしょう。 + 新しいクラスを書く場合は、 + 可能な限り既存のクラスとのAPI互換性を維持しよう努めてください。 + 互換性の維持ができない場合は、 + 互換性を維持するためのラッパクラスを作成するようにしてください。 + このラッパが多くの作動時間・メモリを必要としても気にしないでください。 + ラッパクラスは互換性を維持し、移行をより簡単にするためのものですから。 </simpara> <para> + また、競合するクラスをコミットすることは、 <ulink url="mailto:&email.pear.dev;">PEAR開発者メーリングリスト</ulink> - 上で競争率の高いクラスをコミットすることを告知しましょう! + で告知するべきです。 </para> </sect1> <sect1 id="faq.question"> <title> - 私はPEARに疑問があります。どこで尋ねればいいですか? + PEAR について疑問があります。どこで質問すればいいですか? </title> <titleabbrev> - 質問すること + 質問する </titleabbrev> <para> <itemizedlist> <listitem> <para> - PEARコンポーネントの使用法についての一般的な疑問は、 - メーリングリスト<ulink + PEAR コンポーネントの使用法についての一般的な疑問は、 + メーリングリスト <ulink url="mailto:&email.pear.general;">&email.pear.general;</ulink> - に投稿するべきです。 + に投稿してください。 </para> </listitem> <listitem> <para> - PEARコンポーネントの開発に関する技術的な議論は、 - すべて<ulink + PEAR コンポーネントの開発についての技術的な議論は、 + すべて <ulink url="mailto:&email.pear.dev;">&email.pear.dev;</ulink> - に投稿するべきです。 + に投稿してください。 </para> </listitem> @@ -362,272 +367,277 @@ <para> ウェブサイトに関する質問は、<ulink url="mailto:&email.pear.webmaster;">&email.pear.webmaster;</ulink> - へ送ることが出来ます。 + へ送ってください。 </para> </listitem> </itemizedlist> </para> <para> - このメーリングリストの購読情報は<ulink - url="&url.pear.support;">ここ</ulink>で見つけることができます。 + これらメーリングリストの購読についての情報は、<ulink + url="&url.pear.support;">ここ</ulink>で見ることができます。 </para> <para> - すべてのメーリング・リスト上においては、 - 言語は英語で伝えることと、 - あなたが質問が常に丁寧であることが求められます。;-) + 上記のすべてのメーリング・リストは、 + 言語として英語が使われております。また、 + 質問は常に丁寧に行ってください。;-) </para> </sect1> <sect1 id="faq.require"> <title> - パッケージは必要なパッケージを含んでいます。 - 私のパッケージもそれを必要とします。 - 私は再びそれを含めるべきですか? + 読み込み先のパッケージは別のパッケージを読み込みます。 + 私のパッケージ自身も後者が必要です。 + 再び読み込むべきですか? </title> <para> - はい。さらにそれが別のパッケージによって既に含まれている場合、 + はい。 + 他のパッケージによって、読み込みが行われる場合でも、 + 必要なパッケージはすべて読み込むべきです。 + このとき、 <function>require_once</function>または<function>include_once</function> - を必要とします。 + を使う必要があります。 </para> </sect1> <sect1 id="faq.windows"> <title> - PEARはWindowsで動作しますか? + PEAR は Windows で動作しますか? </title> <titleabbrev> - PEARとWindows + PEAR と Windows </titleabbrev> <para> - WindowsでPEARの動作させるには、PEARをインストールしたディレクトリ - (例えば<filename>c:\php\pear</filename>)をあなたの - <filename>php.ini</filename>のinclude_pathに追加する必要が - あるだけです。 + Windows で PEAR を動作させるには、 + PEAR をインストールしたディレクトリ + (例えば<filename>c:\php\pear</filename>)を + <filename>php.ini</filename> の include_path ディレクティブに + 追加すれば良いだけです。 </para> <simpara> - Note: いくつか*nixの特定のコマンドを使用するため、Windowsで動作しないクラス - (Schedule/At.phpのように)があります。 + 注意。 *nix 特有のコマンドを使用するために、 + Windows で動作しないクラス + (たとえばSchedule/At.php)があります。 </simpara> </sect1> <sect1 id="faq.licenses"> <title> - PEAR/PECLで許可されるライセンスは? + PEAR/PECL で使用できるライセンスは? </title> <titleabbrev> - 許可されたライセンス + 使用できるライセンス </titleabbrev> <simpara> - Jan Lehnardt, Tomas V.V. Cox と Rasmus Lerdorf が回答を書きました。 + Jan Lehnardt, Tomas V.V. Cox および Rasmus Lerdorfによる回答。 </simpara> <para> - To make it short: Any Open Source/Free Software License. See the - <ulink url="&url.license.opensource;"> - OSI Approved Licenses</ulink> for a summary of Open Source - licenses and <ulink url="&url.license.gnu;"> - FSF Approved Licenses</ulink>. Pick one that appears on both lists. It - does not need to be a GPL-compatible license from the FSF list. Here are - a subset of the licenses that are on both lists: - Apache License, - Artistic license, - BSD license, - Common Public License, - GPL, - IBM Public License, - Intel Open Source License, - Jabber Open Source License, - LGPL, - MIT license, - Mozilla Public License, - PHP License, - Python license, - Python Software Foundation License, - QPL, - Sleepycat License, - Sun Industry Standards Source License (SISSL), - Sun Public License, - W3C license, - zlib/libpng license, - Zope Public license. - </para> + 現在 PEAR は、以下のライセンスをサポートしています。 + </para> + + <itemizedlist> + <listitem> + <simpara> + PHP ライセンス + </simpara> + </listitem> + <listitem> + <simpara> + Apache ライセンス + </simpara> + </listitem> + <listitem> + <simpara> + LGPL + </simpara> + </listitem> + <listitem> + <simpara> + BSD スタイル + </simpara> + </listitem> + </itemizedlist> <para> - The recommended licenses are - <ulink url="&url.license.php;">PHP</ulink>, - <ulink url="&url.license.lgpl;">LGPL</ulink> - and <ulink url="&url.license.bsd;">BSD</ulink> - style. + 他のライセンスは、ケースバイケースでこのリストに追加されます。 + そのためには、 + <ulink + url="mailto:&email.pear.dev;">PEAR developers mailing list</ulink> + に連絡をください。 </para> <para> - Note that for PECL extensions that are linked into PHP, the license - must be compatible with the PHP license. That means you can not GPL - a PECL extension or you would be violating the GPL. Note also that if - you write an extension that links against a GPL'ed library you will be - violating the GPL. If you need to link against a GPL'ed library, get - permission from the author of the library. + PHP にリンクされる PECL 拡張については、ライセンスは PHP ライセンスと + 矛盾の無いものでなければなりません。つまり、PECL 拡張を GPL とすると + GPL に違反してしまうということです。さらに、GPL なライブラリとリンクする + 拡張を書いた場合にも、GPL に違反するということに注意してください。 + GPL なライブラリとリンクする必要がある場合には、ライブラリの著者に + 許可を得てください。 </para> <para> - To set the license of you PEAR/PECL package, put it in the head of - all source code files of your package and also the type of it - inside the &lt;license&gt; tag of your package description file - (<filename>package.xml</filename>). + PEAR/PECL パッケージにライセンスを設定するには、 + すべてのソースコードの先頭と、パッケージ記述ファイル + (<filename>package.xml</filename>) の &lt;license&gt; タグ内に + 記してください。 </para> + </sect1> <sect1 id="faq.tabs-vs-spaces"> <title> - なぜPEARコーディング標準はインデントはスペースのみなのですか? + なぜ PEAR 標準コーディング規約のインデントはスペースのみなのですか? </title> <titleabbrev> - タブとスペース + タブ対スペース </titleabbrev> <simpara> - Stig Bakken が回答を書きました。 + Stig Bakken による回答。 </simpara> <para> - タブを使用せずスペースを用いることは,コードがすべてのエディタおよび - ビューワで一貫して表示されることを保証するただ一つの方法です。 - 多くのエディタはタブに4つのス、ースを与え,またたくさんのエディタ、 - ターミナル・プログラムやユーティリィティは8つのスペースをタブに与えます。 - 例: + コードにタブを使用せずスペースを用いることは、すべてのエディタや + ビューワにおいて共通した表示を保証する唯一の方法です。 + タブを4つのスペースとして扱うエディタが多いですが、 + 8つのスペースとして扱うターミナルやユーティリィティも数多くあります。 + 例を示します。 <literallayout><![CDATA[printf("%s", $arg);]]></literallayout> - この例では7つのスペースが"$arg"の前にあります。 - もしこのコードが4つのスペースでタブが表示されるエディタの中で書かれれば、 - 1つのタブおよび3つのスペースとして格納されるでしょう。 - もし他の開発者が8つのスペースでタブが表示されるエディタで - 同じファイルを編集すると,次のように見えるでしょう: + この例では、7つのスペースが "$arg" の前にあります。 + もしこのコードが 4スペース-タブのエディタで書かれるとすれば、 + 1つのタブおよび 3つのスペースとして記述されるでしょう。 + もし他の開発者が 8スペース-タブのエディタで + 同じファイルを編集すると,次のように見えるでしょう。 <literallayout><![CDATA[printf("%s", $arg);]]></literallayout> </para> <para> - おなじように、8つのスペースでタブを扱うエディタでの次のコードを - 考えてみましょう: + おなじように、8スペース-タブで書かれた次のコードを + 考えてみます。 <literallayout><![CDATA[ if ($foo && $bar) { }]]></literallayout> - 4つのスペースでタブを扱うエディタでは,次のように見えます。: + 4スペース-タブのエディタでは,次のように見えます。: <literallayout><![CDATA[ if ($foo && $bar) { }]]></literallayout> </para> <simpara> - PEARのような人々が多くの異なったシステムやエディタを使用する - コミュニティでは、タブは単純には機能しません。 - 人々は結局、それぞれのエディタでレンダリングに空白を使用し、 - 他の人には壊れたレンダリングを見せてしまうでしょう。 - スペースを使うことだけが、だれにでも同じように見えるようにする + PEAR のような、 + さまざまなシステムやエディタが使用されるコミュニティでは、 + タブは機能しません。 + 他人にはうまく表示されないとすれば、 + 人々は結局、スペースを使って体裁を整えることになるでしょう。 + スペースを使うことだけが、だれが見ても同じように見えるようにする 唯一の方法なのです。 </simpara> <para> - Jamie Zawinskiも + Jamie Zawinski も <ulink url="&url.tabs.vs.spaces;">この問題について</ulink> - 書いています。 + 記しています。 </para> <para> - またコードを適切なスタイルに変換するのを助ける - <ulink url="&url.astyle;">Astyle</ulink>というツールがあります。 + また、コードを適切なスタイルに変換する助けとなるツールに、 + <ulink url="&url.astyle;">Astyle</ulink> があります。 </para> </sect1> <sect1 id="faq.translators-revision-tracking"> <title> - PEARマニュアル翻訳プログラムが、 - ファイル変更を追跡を支援するツールがありますか。 + ファイルの変更内容をPEAR マニュアルの翻訳者が + 追跡することを支援するツールはありますか? </title> <titleabbrev> - 修正追跡 + 変更の追跡 </titleabbrev> <para> - 翻訳作業をすることは、 - 英語のファイルを単に翻訳し結果をコミットすることではありません。 - 必要な作業の多くは、 - 英語のファイルの内容と同期して取得した内容の翻訳を更新することです。 - 英語ツリーの修正を追跡する為に、 - PEARドキュメンテーション<ulink - url="http://www.pear.php.net/support.php">メーリングリスト</ulink> - の購読し、コミットメッセージかアーカイブを読むべきです。 - あなたがファイルを更新しなければ翻訳は役に立たなくなります。 - </para> - <simpara> - Updating a foreign language file can get difficult, as you may not - know when and who translated that file, so you may not know where - you should look for the updates needed. We have one system - for tracking the revisions and modification dates of the files in <literal>peardoc</literal>. + 翻訳作業に携わるということは、 + 単に英語のファイルを翻訳し結果をコミットするということ + だけではありません。英語のファイルの内容にあわせて、 + 翻訳済みのファイルをアップデートすることにも、 + たくさんの労力が必要となります。 + 英語ツリーのファイルに加えられた変更を追跡するためには、 + <ulink url="http://www.pear.php.net/support.php">PEAR ドキュメンテーション + メーリングリスト</ulink> + を購読し、コミットメッセージやアーカイブを読むべきです。 + ファイルが更新されなければ、翻訳の利用価値がなくなっていきます。 + </para> + <simpara> + 更新するべき場所がどこなのかに加え、 + いつ・だれがそのファイルを翻訳したのかということがわからなければ、 + 他言語のファイルの更新は困難となります。 + そこで、PEARには、 + <literal>peardoc</literal> のファイルの変更日および + リビジョンを追跡するシステムがあります。 </simpara> <sect2 id="faq.translators.revcheck-comments"> - <title>修正コメント</title> + <title>リビジョンコメント</title> <para> - 中央のファイルに責任をすべて格納する代わりに、 - 修正コメントシステムは、 - それらが情報を提供するファイルにそれらを格納します。 - 翻訳プログラム・改訂番号およびステータス情報に関する情報は、 - 修正コメントに格納します。 - それでは例題ファイルのヘッダに何があるか確認しましょう。 - <filename>bookinfo.xml</filename> file in this case: + 中央の単一ファイルに全情報を保持させるものとは異なり、 + リビジョンコメントのシステムはファイルごとに情報を + ストアします。 + 翻訳者・リビジョン番号およびステータス情報に関する情報を、 + リビジョンコメントに格納します。 + それではサンプルのファイルのヘッダがどのようなものか、みてみましょう。 + <filename>bookinfo.xml</filename>ファイルです。 <programlisting> &lt;!-- EN-Revision: 1.16 Maintainer: jane Status: ready --&gt; </programlisting> </para> <para> - We can see the revision number for the last english file used to - update the translation (EN-Revision: 1.16), the translator cvs account - name. - But we can also add some other status information in the case it is - needed (eg. "partial" for incomplete translations). This revision - comment system is basically about storing the information in - the XML files, and not in a central place. This is extremely - convenient now, as there are more than 1300 files in the - English tree. + 翻訳の更新に使われた最後の英語ファイルのリビジョン番号 + (EN-Revision: 1.16)、および、 + 翻訳者の CVS アカウント名がわかります。 + 必要ならば、いくぶんかのステータス情報を追加することができます + (例、部分的な翻訳に対しては"partial")。 + このリビジョンコメントのシステムでは、情報を + 中央の1つの場所ではなく、各XMLファイルに記述します。 + 英語ツリーには1300以上のファイルがあるので、 + このほうが非常に便利です。 </para> <para> - 現在、3つのフィールド(英語リビジョン・メンテナ・状態)はすべて必要です。 - メンテナ(Maintainer)はCVSのユーザ名、 + 現在、3つのフィールド + (英語リビジョン・メンテナ・状態)すべてが必須です。 + メンテナ (Maintainer) は CVS のユーザ名、 あるいは空白文字のないニックネームを用います。 - 状況(Status)はスペースなしで何でもでありです。 - CVS(<literal>$Revision</literal>と対比して自動的に更新される) - によってこのヘッダが更新されないことに注意してください。 - あなた自身がコメントの内容を編集する場合、 - これはただ単に更新されます。 + 状況 (Status) は空白なしで何でもでありです。 + このヘッダは、CVS によって、 + (自動的に更新される <literal>$Revision</literal> と異なり) + 自動的に更新されないことに注意してください。 + 更新するには、自分自身で編集します。 </para> <para> - You may see this as a good thing, but using these comments, - you lose the quick look on the whole list of your - files. - No, you do not lose this, but get much more! - If you would like to build a full list of you files, you - can go to the /peardoc/ directory and run: + 良さを理解いただけたでしょうが、ただし、このコメントを使用すると、 + 翻訳済ファイルの一覧をさっと見ることはできなくなります。 + しかし、これまで以上のものを得ることができます。 + 翻訳済ファイルの全リストを作成したい場合には、 + /peardoc/ ディレクトリで以下を実行します。 <programlisting> ./scripts/revcheck_pear.php xx > revcheck.html </programlisting> - Here <literal>xx</literal> is the imaginary language code. - After running this script you'll get a - <filename>revcheck.html</filename> in the same directory. - You can find revision comparisions and links to diffs - for all the files in this language. - You can also add a further restriction parameter, the maintainer name, - so the script will only list the files corresponding to - the given maintainer. + ここで、<literal>xx</literal> は仮の言語コードです。 + このスクリプトを実行させると、 + 同じディレクトリに <filename>revcheck.html</filename> が作成され、 + その言語の全ファイルのリビジョンの比較や diff への + リンクを得られます。 + また、メンテナの名前をパラメタとして付加すると、 + 指定したメンテナが係わったファイルだけのリストを得ることもできます。 </para> <para> - このスクリプトでHTMLページの生成を利用可能にするために導入された、 - いくつかのオプションの拡張があります。 - このため、<filename>translation.xml</filename>というファイルを導入します。 - ここに想像上のxx言語用の単純な - <filename>translation.xml</filename>のファイルを取り上げます。 + このスクリプトには、生成される HTML ページに対して利用可能な + いくつかのオプション拡張があります。 + <filename>translation.xml</filename> というファイルはこの拡張ためにあります。 + 以下は、想像上の xx 言語向けのシンプルなな + <filename>translation.xml</filename> のファイルです。 <programlisting> <![CDATA[ <?xml version="1.0" encoding="iso-8859-1" ?> @@ -656,41 +666,39 @@ </translation> ]]> </programlisting> - このファイルでは、CVSアカウントのないユーザを加えることが出来、 - それらを即座に文書か作業経過ファイルに反映することができます。 - このアドオンを使用するという最も大きな利点は、 - <filename>revcheck.html</filename>のファイル中の翻訳プログラム、 - およびファイルの動的なテーブルを生成するために、 - この情報がすべて使用するということです。 - All translators are linked to from the individual files they are assigned - to, and there is a nice table showing the state of files for - all the translators. - Assigning ready files may be needed if a time consuming update is - in progress on that file. + このファイルには、CVS アカウントのないユーザも加えることができ、 + 翻訳済のドキュメントにも、進行中(work-in-progress)のファイルにも + アサインできます。 + このアドオンを使用する最大の利点は、 + <filename>revcheck.html</filename> のファイル中に、 + 翻訳者やファイルについての動的なテーブルを生成するのに、 + これらの全情報が使われるということです。 + すべての翻訳者は、アサインされた個別のファイルからリンクされ、 + きれいな表が全翻訳者のステータスを表示します。 + 時間がかかる更新が行われている場合は、翻訳済みのファイルをアサインする + ことが必要かもしれません。 </para> <para> - There are two optional parameters you can add to a &lt;file&gt;, - if you would like to record it: the <literal>date</literal> - and <literal>revision</literal>. - Date is assumed to be the date when the work was started, revision - is the checked out revision of the English file used to start the work - (denoted as CO-Revision in the generated table). - There is currently no fixed format for the <literal>date</literal> - parameter. + &lt;file&gt; には、2つのオプションのパラメータが付加できます。 + <literal>date</literal> および <literal>revision</literal> です。 + 前者は、作業が開始された日付です。後者は、 + 作業の開始のためにチェックアウトされた英語ファイルのリビジョンです + (表中にそのリビジョンが記載されます)。 + 現在のところ、<literal>date</literal> パラメータに決まった形式はありません。。 </para> <para> - Another addon to this system is just to give credit to all people - who worked on one file, and not just the current maintainer. To achieve - this goal, we added the credit comments. One credit comment in - eg. <filename>history.xml</filename> may look like this (in case - Joe Doe translated the file initially, but Jane followed him to - be the maintainer): + さらに、このシステムには、個々のファイルについて、現在のメンテナ以外に作業した + すべての人のクレジット(名前表示)をするためのアドオンがあります。 + この目的を達成するためには、クレジットコメントを付加します。 + たとえば、<filename>history.xml</filename> におけるクレジットコメントは、 + このようになります(この場合、Joe Doe がはじめにファイルを翻訳しましたが、 + Jane がメンテナを引き継いでいます)。 <programlisting> &lt;!-- CREDITS: joedoe --&gt; </programlisting> - The credits comment can contain a comma-separated list. These - comments only affect the display of the translators table in - <filename>revcheck.html</filename>. + クレジットコメントには、コンマ区切りのリストを記すことができます。 + <filename>revcheck.html</filename> の翻訳者に関する表の表示のところに、 + これらのコメントの内容が反映されます。 </para> </sect2> </sect1>
« previous php.pear.doc (#3521) next »