chiark / gitweb /
0f7172b62d202f27287830a002e41ff7e14e2eeb
[developers-reference.git] / po4a / ja / best-pkging-practices.po
1 # Debian Developer's Reference (Japanese)
2 # (C) Hideki Yamane <henrich@debian.org>, 2008-2011.
3 #
4 msgid ""
5 msgstr ""
6 "Project-Id-Version: developers-reference 3.4.7\n"
7 "POT-Creation-Date: 2011-12-05 00:59+0900\n"
8 "PO-Revision-Date: 2011-12-13 23:18+0900\n"
9 "Last-Translator: Hideki Yamane <henrich@debian.org>\n"
10 "Language-Team: Debian JP Project <debian-doc@debian.or.jp>\n"
11 "Language: Japanese\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15
16 # type: Content of: <chapter><title>
17 #. type: Content of: <chapter><title>
18 #: best-pkging-practices.dbk:7
19 msgid "Best Packaging Practices"
20 msgstr "パッケージ化のベストプラクティス"
21
22 # type: Content of: <chapter><para>
23 #. type: Content of: <chapter><para>
24 #: best-pkging-practices.dbk:9
25 msgid ""
26 "Debian's quality is largely due to the <ulink url=\"&url-debian-policy;"
27 "\">Debian Policy</ulink>, which defines explicit baseline requirements which "
28 "all Debian packages must fulfill.  Yet there is also a shared history of "
29 "experience which goes beyond the Debian Policy, an accumulation of years of "
30 "experience in packaging.  Many very talented people have created great "
31 "tools, tools which help you, the Debian maintainer, create and maintain "
32 "excellent packages."
33 msgstr ""
34 "Debian の品質は、全ての Debian パッケージが満たす必要がある基本的要求を明示的"
35 "に規定する<ulink url=\"&url-debian-policy;\">Debian ポリシー</ulink>に大きく"
36 "依存しています。そして、パッケージングでの長年の経験で溜め込まれた財産であ"
37 "る、Debian ポリシーを越えて共有してきた経験の積み重ねというものもあります。多"
38 "くの非常に優秀な人々が素晴らしいツールを作っており、このツールがあなた、つま"
39 "り Debian のメンテナが素晴らしいパッケージを作り、維持していくのを手助けして"
40 "くれます。"
41
42 # type: Content of: <chapter><para>
43 #. type: Content of: <chapter><para>
44 #: best-pkging-practices.dbk:18
45 msgid ""
46 "This chapter provides some best practices for Debian developers.  All "
47 "recommendations are merely that, and are not requirements or policy.  These "
48 "are just some subjective hints, advice and pointers collected from Debian "
49 "developers.  Feel free to pick and choose whatever works best for you."
50 msgstr ""
51 "この章では、Debian 開発者へのベストプラクティスをいくつか提供します。すべての"
52 "勧めは単に勧めであり、要求事項やポリシーではありません。Debian 開発者らからの"
53 "主観的なヒント、アドバイス、ポインタです。あなたにとって一番うまくいくやり方"
54 "を、どうぞご自由に選んでください。"
55
56 # type: Content of: <chapter><section><title>
57 #. type: Content of: <chapter><section><title>
58 #: best-pkging-practices.dbk:24
59 msgid "Best practices for <filename>debian/rules</filename>"
60 msgstr "<filename>debian/rules</filename> についてのベストプラクティス"
61
62 # type: Content of: <chapter><section><para>
63 #. type: Content of: <chapter><section><para>
64 #: best-pkging-practices.dbk:26
65 msgid ""
66 "The following recommendations apply to the <filename>debian/rules</filename> "
67 "file.  Since <filename>debian/rules</filename> controls the build process "
68 "and selects the files which go into the package (directly or indirectly), "
69 "it's usually the file maintainers spend the most time on."
70 msgstr ""
71 "以下の推奨事項は、<filename>debian/rules</filename> ファイルに適用されます。"
72 "<filename>debian/rules</filename> は、ビルド作業を管理し、(直接にせよ、そうで"
73 "ないにせよ) パッケージにどのファイルが入るかを選択します。大抵の場合、メンテ"
74 "ナが最も時間を費やすファイルです。"
75
76 # type: Content of: <chapter><section><section><title>
77 #. type: Content of: <chapter><section><section><title>
78 #: best-pkging-practices.dbk:32
79 msgid "Helper scripts"
80 msgstr "ヘルパースクリプト"
81
82 # type: Content of: <chapter><section><section><para>
83 #. type: Content of: <chapter><section><section><para>
84 #: best-pkging-practices.dbk:34
85 msgid ""
86 "The rationale for using helper scripts in <filename>debian/rules</filename> "
87 "is that they let maintainers use and share common logic among many "
88 "packages.  Take for instance the question of installing menu entries: you "
89 "need to put the file into <filename>/usr/share/menu</filename> (or "
90 "<filename>/usr/lib/menu</filename> for executable binary menufiles, if this "
91 "is needed), and add commands to the maintainer scripts to register and "
92 "unregister the menu entries.  Since this is a very common thing for packages "
93 "to do, why should each maintainer rewrite all this on their own, sometimes "
94 "with bugs? Also, supposing the menu directory changed, every package would "
95 "have to be changed."
96 msgstr ""
97 "<filename>debian/rules</filename> でヘルパースクリプトを使う根拠は、多くの"
98 "パッケージ間でメンテナらに共通のロジックを利用・共有させるようになるからで"
99 "す。メニューエントリのインストールについての問いを例にとってみましょう: ファ"
100 "イルを <filename>/usr/share/menu</filename> (必要であれば、実行形式のバイナリ"
101 "のメニューファイルの場合 <filename>/usr/lib/menu</filename>) に置き、メンテナ"
102 "スクリプトにメニューエントリを登録・解除するためのコマンドを追加する必要があ"
103 "ります。これはパッケージが行う、非常に一般的なことです。なぜ個々のメンテナが"
104 "これらのすべてを自分で書き直し、時にはバグを埋め込む必要があるでしょう? ま"
105 "た、メニューディレクトリが変更された場合、すべてのパッケージを変更する必要が"
106 "あります。"
107
108 # type: Content of: <chapter><section><section><para>
109 #. type: Content of: <chapter><section><section><para>
110 #: best-pkging-practices.dbk:45
111 msgid ""
112 "Helper scripts take care of these issues.  Assuming you comply with the "
113 "conventions expected by the helper script, the helper takes care of all the "
114 "details.  Changes in policy can be made in the helper script; then packages "
115 "just need to be rebuilt with the new version of the helper and no other "
116 "changes."
117 msgstr ""
118 "ヘルパースクリプトがこれらの問題を引き受けてくれます。ヘルパースクリプトの期"
119 "待するやり方に従っているならば、ヘルパースクリプトはすべての詳細について考慮"
120 "をします。ポリシーの変更はヘルパースクリプト中で行えます; そして、パッケージ"
121 "を新しいバージョンのヘルパースクリプトでリビルドする必要があるだけです。他に"
122 "何の変更も必要ありません。"
123
124 # type: Content of: <chapter><section><section><para>
125 #. type: Content of: <chapter><section><section><para>
126 #: best-pkging-practices.dbk:52
127 msgid ""
128 "<xref linkend=\"tools\"/> contains a couple of different helpers.  The most "
129 "common and best (in our opinion) helper system is <systemitem role=\"package"
130 "\">debhelper</systemitem>.  Previous helper systems, such as <systemitem "
131 "role=\"package\">debmake</systemitem>, were monolithic: you couldn't pick "
132 "and choose which part of the helper you found useful, but had to use the "
133 "helper to do everything.  <systemitem role=\"package\">debhelper</"
134 "systemitem>, however, is a number of separate little <command>dh_*</command> "
135 "programs.  For instance, <command>dh_installman</command> installs and "
136 "compresses man pages, <command>dh_installmenu</command> installs menu files, "
137 "and so on.  Thus, it offers enough flexibility to be able to use the little "
138 "helper scripts, where useful, in conjunction with hand-crafted commands in "
139 "<filename>debian/rules</filename>."
140 msgstr ""
141 "<xref linkend=\"tools\"/> には、複数の異なったヘルパーが含まれています。もっ"
142 "とも一般的で (我々の意見では) ベストなヘルパーシステムは <systemitem role="
143 "\"package\">debhelper</systemitem> です。<systemitem role=\"package"
144 "\">debmake</systemitem> のような、以前のヘルパーシステムはモノリシックでし"
145 "た: 使えそうなヘルパーの一部を取り出して選ぶことはできず、何を行うにもヘル"
146 "パーを使う必要がありました。ですが、<systemitem role=\"package\">debhelper</"
147 "systemitem> は、いくつもの分割された小さな <command>dh_*</command> プログラム"
148 "です。たとえば、<command>dh_installman</command> は man ページをインストール"
149 "して圧縮し、<command>dh_installmenu</command> は menu ファイルをインストール"
150 "するなどします。つまり、<filename>debian/rules</filename> 内で使える部分では"
151 "小さなヘルパースクリプトを使い、手製のコマンドを使うといった十分な柔軟性を与"
152 "えてくれます。"
153
154 #. type: Content of: <chapter><section><section><para>
155 #: best-pkging-practices.dbk:66
156 msgid ""
157 "You can get started with <systemitem role=\"package\">debhelper</systemitem> "
158 "by reading <citerefentry> <refentrytitle>debhelper</refentrytitle> "
159 "<manvolnum>1</manvolnum> </citerefentry>, and looking at the examples that "
160 "come with the package.  <command>dh_make</command>, from the <systemitem "
161 "role=\"package\">dh-make</systemitem> package (see <xref linkend=\"dh-make\"/"
162 ">), can be used to convert a vanilla source package to a <systemitem role="
163 "\"package\">debhelper</systemitem>ized package.  This shortcut, though, "
164 "should not convince you that you do not need to bother understanding the "
165 "individual <command>dh_*</command> helpers.  If you are going to use a "
166 "helper, you do need to take the time to learn to use that helper, to learn "
167 "its expectations and behavior."
168 msgstr ""
169 "<citerefentry> <refentrytitle>debhelper</refentrytitle> <manvolnum>1</"
170 "manvolnum> </citerefentry> を読んで、パッケージに付属している例を参照すれば、"
171 "<systemitem role=\"package\">debhelper</systemitem> を使い始めることができま"
172 "す。 <systemitem role=\"package\">dh-make</systemitem> パッケージ (<xref "
173 "linkend=\"dh-make\"/> 参照) の <command>dh_make</command> は、素のソースパッ"
174 "ケージを <systemitem role=\"package\">debhelper</systemitem>化されたパッケー"
175 "ジに変換するのに利用できます。ですが、この近道では個々の <command>dh_*</"
176 "command> ヘルパーをわざわざ理解する必要がないので、満足できないでしょう。ヘル"
177 "パースクリプトを使おうとするのであれば、そのヘルパーを使うこと、つまり前提と"
178 "動作を学ぶのに時間を割く必要があります。"
179
180 # type: Content of: <chapter><section><section><para>
181 #. type: Content of: <chapter><section><section><para>
182 #: best-pkging-practices.dbk:79
183 msgid ""
184 "Some people feel that vanilla <filename>debian/rules</filename> files are "
185 "better, since you don't have to learn the intricacies of any helper system.  "
186 "This decision is completely up to you.  Use what works for you.  Many "
187 "examples of vanilla <filename>debian/rules</filename> files are available at "
188 "<ulink url=\"&url-rules-files;\"></ulink>."
189 msgstr ""
190 "いかなるヘルパーシステムの複雑さも学ぶ必要がないので、素の <filename>debian/"
191 "rules</filename> ファイルのほうが良いと考える人もいます。この判断は完全にあな"
192 "た次第です。あなたに合っている方を選んでください。素の <filename>debian/"
193 "rules</filename> ファイルの多くの例は <ulink url=\"&url-rules-files;\"></"
194 "ulink> から入手できます。"
195
196 # type: Content of: <chapter><section><section><title>
197 #. type: Content of: <chapter><section><section><title>
198 #: best-pkging-practices.dbk:88
199 msgid "Separating your patches into multiple files"
200 msgstr "パッチを複数のファイルに分離する"
201
202 # type: Content of: <chapter><section><section><para>
203 #. type: Content of: <chapter><section><section><para>
204 #: best-pkging-practices.dbk:90
205 msgid ""
206 "Big, complex packages may have many bugs that you need to deal with.  If you "
207 "correct a number of bugs directly in the source, and you're not careful, it "
208 "can get hard to differentiate the various patches that you applied.  It can "
209 "get quite messy when you have to update the package to a new upstream "
210 "version which integrates some of the fixes (but not all).  You can't take "
211 "the total set of diffs (e.g., from <filename>.diff.gz</filename>) and work "
212 "out which patch sets to back out as a unit as bugs are fixed upstream."
213 msgstr ""
214 "巨大で複雑なパッケージには、対処が必要なたくさんのバグが含まれているかもしれ"
215 "ません。直接ソース中で大量のバグを修正し、あまり注意を払っていなかった場合、"
216 "適用した様々なパッチを識別するのは難しいことになるでしょう。(全てではなく) 幾"
217 "つか修正を取り入れた新しい開発元のバージョンへパッケージを更新する必要が出た"
218 "場合、とても悲惨なことになります。(例えば、<filename>.diff.gz</filename> か"
219 "ら) diff をすべて適用することもできませんし、開発元で修正されたバグごとにどの"
220 "パッチをバックアウトするようにすればよいのか分かりません。"
221
222 #. type: Content of: <chapter><section><section><para>
223 #: best-pkging-practices.dbk:99
224 msgid ""
225 "Fortunately, with the source format “3.0 (quilt)” it is now possible to keep "
226 "patches separate without having to modify <filename>debian/rules</filename> "
227 "to setup a patch system. Patches are stored in <filename>debian/patches/</"
228 "filename> and when the source package is unpacked patches listed in "
229 "<filename>debian/patches/series</filename> are automatically applied.  As "
230 "the name implies, patches can be managed with <command>quilt</command>."
231 msgstr ""
232 "幸いなことに、ソースフォーマット“3.0 (quilt)”では、パッチシステムを設定するた"
233 "めに <filename>debian/rules</filename> を変更することなく、パッチを分割して保"
234 "持できるようになっています。パッチは <filename>debian/patches/</filename> に"
235 "保持され、ソースパッケージが展開されるときに <filename>debian/patches/"
236 "series</filename> に記載されているパッチが自動的に適用されます。名前が指すよ"
237 "うに、パッチは <command>quilt</command> で管理することができます。"
238
239 #. type: Content of: <chapter><section><section><para>
240 #: best-pkging-practices.dbk:107
241 msgid ""
242 "When using the older source “1.0”, it's also possible to separate patches "
243 "but a dedicated patch system must be used: the patch files are shipped "
244 "within the Debian patch file (<filename>.diff.gz</filename>), usually within "
245 "the <filename>debian/</filename> directory. The only difference is that they "
246 "aren't applied immediately by <command>dpkg-source</command>, but by the "
247 "<literal>build</literal> rule of <filename>debian/rules</filename>, through "
248 "a dependency on the <literal>patch</literal> rule.  Conversely, they are "
249 "reverted in the <literal>clean</literal> rule, through a dependency on the "
250 "<literal>unpatch</literal> rule."
251 msgstr ""
252 "より古いソースフォーマット“1.0”を使っている場合でも、パッチを分割することは可"
253 "能ですが、専用のパッチシステムを使う必要があります: パッチファイルは Debian "
254 "パッチファイル (<filename>.diff.gz</filename>) 内に組み込まれ、通常 "
255 "<filename>debian/</filename> ディレクトリ内にあります。違いは、すぐに "
256 "<command>dpkg-source</command> では適用されないが、<filename>debian/rules</"
257 "filename> の <literal>build</literal> ルールで <literal>patch</literal> ルー"
258 "ルへの依存を通じて適用されることだけです。逆に言うと、これらのパッチは "
259 "<literal>unpatch</literal> ルールへの依存を通じて <literal>clean</literal> "
260 "ルールで外されます。"
261
262 #. type: Content of: <chapter><section><section><para>
263 #: best-pkging-practices.dbk:119
264 msgid ""
265 "<command>quilt</command> is the recommended tool for this.  It does all of "
266 "the above, and also allows to manage patch series.  See the <systemitem role="
267 "\"package\">quilt</systemitem> package for more information."
268 msgstr ""
269 "<command>quilt</command> はこの作業にお勧めのツールです。上記の全てを行う上、"
270 "パッチ一覧の管理も可能です。詳細な情報は <systemitem role=\"package\">quilt</"
271 "systemitem> パッケージを参照してください。"
272
273 #. type: Content of: <chapter><section><section><para>
274 #: best-pkging-practices.dbk:125
275 msgid ""
276 "There are other tools to manage patches, like <command>dpatch</command>, and "
277 "the patch system integrated with <systemitem role=\"package\">cdbs</"
278 "systemitem>."
279 msgstr ""
280 "他にもパッチを管理するツールはあります。<command>dpatch</command> や、パッチ"
281 "システムが統合されている <systemitem role=\"package\">cdbs</systemitem> など"
282 "です。"
283
284 # type: Content of: <chapter><section><section><title>
285 #. type: Content of: <chapter><section><section><title>
286 #: best-pkging-practices.dbk:132
287 msgid "Multiple binary packages"
288 msgstr "複数のバイナリパッケージ"
289
290 # type: Content of: <chapter><section><section><para>
291 #. type: Content of: <chapter><section><section><para>
292 #: best-pkging-practices.dbk:134
293 msgid ""
294 "A single source package will often build several binary packages, either to "
295 "provide several flavors of the same software (e.g., the <systemitem role="
296 "\"package\">vim</systemitem> source package) or to make several small "
297 "packages instead of a big one (e.g., so the user can install only the subset "
298 "needed, and thus save some disk space)."
299 msgstr ""
300 "単一のソースパッケージはしばしば複数のバイナリパッケージを生成します。それ"
301 "は、同じソフトウェアで複数のフレーバーを提供することであったり (例: "
302 "<systemitem role=\"package\">vim</systemitem> ソースパッケージ)、巨大なパッ"
303 "ケージではなく複数の小さなパッケージを作ったりします (例: ユーザがサブセット"
304 "のみをインストールできるようにして、ディスク容量を節約できます)。"
305
306 # type: Content of: <chapter><section><section><para>
307 #. type: Content of: <chapter><section><section><para>
308 #: best-pkging-practices.dbk:141
309 msgid ""
310 "The second case can be easily managed in <filename>debian/rules</filename>.  "
311 "You just need to move the appropriate files from the build directory into "
312 "the package's temporary trees.  You can do this using <command>install</"
313 "command> or <command>dh_install</command> from <systemitem role=\"package"
314 "\">debhelper</systemitem>.  Be sure to check the different permutations of "
315 "the various packages, ensuring that you have the inter-package dependencies "
316 "set right in <filename>debian/control</filename>."
317 msgstr ""
318 "二つ目の例は、<filename>debian/rules</filename> で簡単に扱うことができます。"
319 "ビルドディレクトリからパッケージの一時ツリーへ、適切なファイルを移動する必要"
320 "があるだけです。これは、<command>install</command> または <systemitem role="
321 "\"package\">debhelper</systemitem> の <command>dh_install</command> を使って"
322 "できます。パッケージ間の依存関係を <filename>debian/control</filename> 内で正"
323 "しく設定したのを忘れずに確認してください。"
324
325 # type: Content of: <chapter><section><section><para>
326 #. type: Content of: <chapter><section><section><para>
327 #: best-pkging-practices.dbk:150
328 msgid ""
329 "The first case is a bit more difficult since it involves multiple recompiles "
330 "of the same software but with different configuration options.  The "
331 "<systemitem role=\"package\">vim</systemitem> source package is an example "
332 "of how to manage this using an hand-crafted <filename>debian/rules</"
333 "filename> file."
334 msgstr ""
335 "最初の例は、同じソフトウェアでありながら異なった設定オプションで複数回再コン"
336 "パイルする必要があるので、ちょっと難しくなります。<systemitem role=\"package"
337 "\">vim</systemitem> ソースパッケージは、手作りの <filename>debian/rules</"
338 "filename> ファイルを使ってどのようにこの作業を扱うか、という例です。"
339
340 # type: Content of: <chapter><section><title>
341 #. type: Content of: <chapter><section><title>
342 #: best-pkging-practices.dbk:162
343 msgid "Best practices for <filename>debian/control</filename>"
344 msgstr "<filename>debian/control</filename> のベストプラクティス"
345
346 # type: Content of: <chapter><section><para>
347 #. type: Content of: <chapter><section><para>
348 #: best-pkging-practices.dbk:164
349 msgid ""
350 "The following practices are relevant to the <filename>debian/control</"
351 "filename> file.  They supplement the <ulink url=\"&url-debian-policy;ch-"
352 "binary.html#s-descriptions\">Policy on package descriptions</ulink>."
353 msgstr ""
354 "以下のプラクティスは、<filename>debian/control</filename> ファイルに関するも"
355 "のです。<ulink url=\"&url-debian-policy;ch-binary.html#s-descriptions\">パッ"
356 "ケージ説明文についてのポリシー</ulink>を補完します。"
357
358 # type: Content of: <chapter><section><para>
359 #. type: Content of: <chapter><section><para>
360 #: best-pkging-practices.dbk:170
361 msgid ""
362 "The description of the package, as defined by the corresponding field in the "
363 "<filename>control</filename> file, contains both the package synopsis and "
364 "the long description for the package.  <xref linkend=\"bpp-desc-basics\"/> "
365 "describes common guidelines for both parts of the package description.  "
366 "Following that, <xref linkend=\"bpp-pkg-synopsis\"/> provides guidelines "
367 "specific to the synopsis, and <xref linkend=\"bpp-pkg-desc\"/> contains "
368 "guidelines specific to the description."
369 msgstr ""
370 "パッケージの説明文は、<filename>control</filename> ファイルの対応するフィール"
371 "ドにて定義されている様に、パッケージの概要とパッケージに関する長い説明文の両"
372 "方を含んでいます。<xref linkend=\"bpp-desc-basics\"/> では、パッケージ説明文"
373 "の双方の部分についての一般的なガイドラインが記述されています。それによると、"
374 "<xref linkend=\"bpp-pkg-synopsis\"/> が概要に特化したガイドラインを提供してお"
375 "り、そして <xref linkend=\"bpp-pkg-desc\"/> が説明文 (description) に特化した"
376 "ガイドラインを含んでいます。"
377
378 # type: Content of: <chapter><section><section><title>
379 #. type: Content of: <chapter><section><section><title>
380 #: best-pkging-practices.dbk:179
381 msgid "General guidelines for package descriptions"
382 msgstr "パッケージ説明文の基本的なガイドライン"
383
384 # type: Content of: <chapter><section><section><para>
385 #. type: Content of: <chapter><section><section><para>
386 #: best-pkging-practices.dbk:181
387 msgid ""
388 "The package description should be written for the average likely user, the "
389 "average person who will use and benefit from the package.  For instance, "
390 "development packages are for developers, and can be technical in their "
391 "language.  More general-purpose applications, such as editors, should be "
392 "written for a less technical user."
393 msgstr ""
394 "パッケージの説明文は平均的なユーザーに向けて書く必要があります。平均的な人と"
395 "いうのは、パッケージを使って得をするであろう人のことです。例えば、開発用パッ"
396 "ケージであれば開発者向けですし、彼ら向けの言葉でテクニカルに記述することがで"
397 "きます。より汎用的なアプリケーション、例えばエディタなどであれば、あまり技術"
398 "的ではないユーザ向けに書く必要があります。"
399
400 # type: Content of: <chapter><section><section><para>
401 #. type: Content of: <chapter><section><section><para>
402 #: best-pkging-practices.dbk:188
403 msgid ""
404 "Our review of package descriptions lead us to conclude that most package "
405 "descriptions are technical, that is, are not written to make sense for non-"
406 "technical users.  Unless your package really is only for technical users, "
407 "this is a problem."
408 msgstr ""
409 "パッケージ説明文のレビューを行った結果、ほとんどのものがテクニカルである、つ"
410 "まり、技術に詳しくはないユーザに通じるようには書かれてはいないという結論に達"
411 "しました。あなたのパッケージが、本当に技術に精通したユーザ用のみではない限"
412 "り、これは問題です。"
413
414 # type: Content of: <chapter><section><section><para>
415 #. type: Content of: <chapter><section><section><para>
416 #: best-pkging-practices.dbk:194
417 msgid ""
418 "How do you write for non-technical users? Avoid jargon.  Avoid referring to "
419 "other applications or frameworks that the user might not be familiar with — "
420 "GNOME or KDE is fine, since users are probably familiar with these terms, "
421 "but GTK+ is probably not.  Try not to assume any knowledge at all.  If you "
422 "must use technical terms, introduce them."
423 msgstr ""
424 "どうやって技術に詳しくはないユーザに対して書けばいいのでしょう? ジャーゴンを"
425 "避けましょう。ユーザが詳しくないであろう他のアプリケーションやフレームワーク"
426 "への参照を避けましょうー GNOME や KDE については、おそらくユーザはその言葉に"
427 "ついて知っているでしょうから構いませんが、GTK+ はおそらくダメです。まったく知"
428 "識がないと仮定してみましょう。技術用語を使わねばならない場合は、説明しましょ"
429 "う。"
430
431 # type: Content of: <chapter><section><section><para>
432 #. type: Content of: <chapter><section><section><para>
433 #: best-pkging-practices.dbk:201
434 msgid ""
435 "Be objective.  Package descriptions are not the place for advocating your "
436 "package, no matter how much you love it.  Remember that the reader may not "
437 "care about the same things you care about."
438 msgstr ""
439 "客観的になりましょう。パッケージ説明文はあなたのパッケージの宣伝場所ではあり"
440 "ません。あなたがそのパッケージをどんなに愛しているかは関係ありません。その説"
441 "明文を読む人は、あなたが気にすることと同じことを気にはしないであろうことを覚"
442 "えておいてください。"
443
444 # type: Content of: <chapter><section><section><para>
445 #. type: Content of: <chapter><section><section><para>
446 #: best-pkging-practices.dbk:206
447 msgid ""
448 "References to the names of any other software packages, protocol names, "
449 "standards, or specifications should use their canonical forms, if one "
450 "exists.  For example, use X Window System, X11, or X; not X Windows, X-"
451 "Windows, or X Window.  Use GTK+, not GTK or gtk.  Use GNOME, not Gnome.  Use "
452 "PostScript, not Postscript or postscript."
453 msgstr ""
454 "他のソフトウェアパッケージ、プロトコル名、標準規格、仕様の名前を参照する場合"
455 "には、もしあれば正規名称を使いましょう。X Windows や X-Windows や X Window で"
456 "はなく、X Window System あるいは X11 または X を使いましょう。GTK や gtk では"
457 "なく GTK+ を使いましょう。Gnome ではなく GNOME を使いましょう。Postscript や "
458 "postscript ではなく PostScript を使いましょう。"
459
460 # type: Content of: <chapter><section><section><para>
461 #. type: Content of: <chapter><section><section><para>
462 #: best-pkging-practices.dbk:213
463 msgid ""
464 "If you are having problems writing your description, you may wish to send it "
465 "along to &email-debian-l10n-english; and request feedback."
466 msgstr ""
467 "説明文を書くことに問題があれば、&email-debian-l10n-english; へそれを送って"
468 "フィードバックを求めるとよいでしょう。"
469
470 # type: Content of: <chapter><section><section><title>
471 #. type: Content of: <chapter><section><section><title>
472 #: best-pkging-practices.dbk:219
473 msgid "The package synopsis, or short description"
474 msgstr "パッケージの概要、あるいは短い説明文"
475
476 #. type: Content of: <chapter><section><section><para>
477 #: best-pkging-practices.dbk:221
478 msgid ""
479 "Policy says the synopsis line (the short description) must be concise, not "
480 "repeating the package name, but also informative."
481 msgstr ""
482 "ポリシーでは、概要行 (短い説明文) はパッケージ名を繰り返すのではなく、簡潔か"
483 "つ有益なものである必要がある、となっています。"
484
485 #. type: Content of: <chapter><section><section><para>
486 #: best-pkging-practices.dbk:225
487 msgid ""
488 "The synopsis functions as a phrase describing the package, not a complete "
489 "sentence, so sentential punctuation is inappropriate: it does not need extra "
490 "capital letters or a final period (full stop). It should also omit any "
491 "initial indefinite or definite article — \"a\", \"an\", or \"the\". Thus for "
492 "instance:"
493 msgstr ""
494 "概要は、完全な文章ではなくパッケージを記述するフレーズとして機能します。です"
495 "ので、句読点は不適切です: 追加の大文字や最後のピリオドは不要です。また、最初"
496 "の不定冠詞や定冠詞 — \"a\", \"an\", or \"the\" を削る必要があります。つまり、"
497 "例えば以下のようになります:"
498
499 #. type: Content of: <chapter><section><section><screen>
500 #: best-pkging-practices.dbk:231
501 #, no-wrap
502 msgid ""
503 "Package: libeg0\n"
504 "Description: exemplification support library\n"
505 msgstr ""
506 "Package: libeg0\n"
507 "Description: exemplification support library\n"
508
509 #. type: Content of: <chapter><section><section><para>
510 #: best-pkging-practices.dbk:235
511 #, fuzzy
512 msgid ""
513 "Technically this is a noun phrase minus articles, as opposed to a verb "
514 "phrase.  A good heuristic is that it should be possible to substitute the "
515 "package <replaceable>name</replaceable> and <replaceable>synopsis</"
516 "replaceable> into this formula:"
517 msgstr ""
518 "技術的に言えば、これは名詞のフレーズから文章を差し引いた、動詞のフレーズを"
519
520 #. type: Content of: <chapter><section><section><para>
521 #: best-pkging-practices.dbk:240
522 msgid ""
523 "The package <replaceable>name</replaceable> provides {a,an,the,some} "
524 "<replaceable>synopsis</replaceable>."
525 msgstr ""
526 "パッケージの<replaceable>名前</replaceable>は<replaceable>概要</replaceable>"
527 "を提供します。"
528
529 #. type: Content of: <chapter><section><section><para>
530 #: best-pkging-practices.dbk:244
531 msgid ""
532 "Sets of related packages may use an alternative scheme that divides the "
533 "synopsis into two parts, the first a description of the whole suite and the "
534 "second a summary of the package's role within it:"
535 msgstr ""
536 "関連パッケージ群は、概要を 2 つに分けた別の書き方をした方が良いでしょう。"
537 "最初はその組一式の説明文で、その次はその組内でのパッケージの役割のサマリに"
538 "します:"
539
540 #. type: Content of: <chapter><section><section><screen>
541 #: best-pkging-practices.dbk:249
542 #, no-wrap
543 msgid ""
544 "Package: eg-tools\n"
545 "Description: simple exemplification system (utilities)\n"
546 "\t\t\t              \n"
547 "Package: eg-doc\n"
548 "Description: simple exemplification system - documentation\n"
549 msgstr ""
550 "Package: eg-tools\n"
551 "Description: simple exemplification system (utilities)\n"
552 "\t\t\t              \n"
553 "Package: eg-doc\n"
554 "Description: simple exemplification system - documentation\n"
555
556 #. type: Content of: <chapter><section><section><para>
557 #: best-pkging-practices.dbk:256
558 msgid ""
559 "These synopses follow a modified formula. Where a package "
560 "\"<replaceable>name</replaceable>\" has a synopsis \"<replaceable>suite</"
561 "replaceable> (<replaceable>role</replaceable>)\" or \"<replaceable>suite</"
562 "replaceable> - <replaceable>role</replaceable>\", the elements should be "
563 "phrased so that they fit into the formula:"
564 msgstr ""
565 "これらの要約が、手が加えられた決まり文句に続きます。パッケージ \"<replaceable>"
566 "名</replaceable>\" が、\"<replaceable>プログラム一式</replaceable> (<replaceable>"
567 "役割</replaceable>)\" あるいは \"<replaceable>プログラム一式</replaceable> - "
568 "<replaceable>役割</replaceable>\" という要約を持つ場合、要素はフレーズに"
569 "すべきで、決まり文句に合うようになります:"
570
571 #. type: Content of: <chapter><section><section><para>
572 #: best-pkging-practices.dbk:263
573 msgid ""
574 "The package <replaceable>name</replaceable> provides {a,an,the} "
575 "<replaceable>role</replaceable> for the <replaceable>suite</replaceable>."
576 msgstr ""
577 "パッケージ<replaceable>名</replaceable>は、<replaceable>プログラム一式</"
578 "replaceable>に対する<replaceable>役割</replaceable>を表しています。"
579
580 # type: Content of: <chapter><section><section><title>
581 #. type: Content of: <chapter><section><section><title>
582 #: best-pkging-practices.dbk:269
583 msgid "The long description"
584 msgstr "長い説明文 (long description)"
585
586 # type: Content of: <chapter><section><section><para>
587 #. type: Content of: <chapter><section><section><para>
588 #: best-pkging-practices.dbk:271
589 msgid ""
590 "The long description is the primary information available to the user about "
591 "a package before they install it.  It should provide all the information "
592 "needed to let the user decide whether to install the package.  Assume that "
593 "the user has already read the package synopsis."
594 msgstr ""
595 "長い説明文は、ユーザーがパッケージをインストールする前に利用可能な最初の情報"
596 "です。ユーザーがインストールするか否かを決めるのに必要な情報を、すべて提供す"
597 "る必要があります。ユーザーがパッケージの概要を既に読んでいると仮定してくださ"
598 "い。"
599
600 # type: Content of: <chapter><section><section><para>
601 #. type: Content of: <chapter><section><section><para>
602 #: best-pkging-practices.dbk:277
603 msgid "The long description should consist of full and complete sentences."
604 msgstr "長い説明文は、完全な文章から成る必要があります。"
605
606 # type: Content of: <chapter><section><section><para>
607 #. type: Content of: <chapter><section><section><para>
608 #: best-pkging-practices.dbk:280
609 msgid ""
610 "The first paragraph of the long description should answer the following "
611 "questions: what does the package do? what task does it help the user "
612 "accomplish? It is important to describe this in a non-technical way, unless "
613 "of course the audience for the package is necessarily technical."
614 msgstr ""
615 "長い説明文の最初の段落は、以下の質問に答えている必要があります: このパッケー"
616 "ジは何をするの? ユーザが作業を完了するのに、どのタスクが役に立つの? ─ 技術寄"
617 "りではない書き方でこれを記述するのが重要です。もちろんパッケージの利用者が必"
618 "然的に技術者ではない限り、です。"
619
620 # type: Content of: <chapter><section><section><para>
621 #. type: Content of: <chapter><section><section><para>
622 #: best-pkging-practices.dbk:286
623 msgid ""
624 "The following paragraphs should answer the following questions: Why do I as "
625 "a user need this package? What other features does the package have? What "
626 "outstanding features and deficiencies are there compared to other packages "
627 "(e.g., if you need X, use Y instead)? Is this package related to other "
628 "packages in some way that is not handled by the package manager (e.g., this "
629 "is the client for the foo server)?"
630 msgstr ""
631 "続く段落は以下の質問に答える必要があります: 何故私はユーザーとしてこのパッ"
632 "ケージを必要とするの? パッケージは他にどんな機能を持っているの? 他のパッケー"
633 "ジと比べて、どんな特別な機能や不足している部分があるがあるの? (例: X が必要な"
634 "場合、代わりに Y を使いましょう) このパッケージはパッケージマネージャーで管理"
635 "していない、何らかの方法で他のパッケージに関連している? (例: これは foo サー"
636 "バのクライアントです)"
637
638 # type: Content of: <chapter><section><section><para>
639 #. type: Content of: <chapter><section><section><para>
640 #: best-pkging-practices.dbk:294
641 msgid ""
642 "Be careful to avoid spelling and grammar mistakes.  Ensure that you spell-"
643 "check it.  Both <command>ispell</command> and <command>aspell</command> have "
644 "special modes for checking <filename>debian/control</filename> files:"
645 msgstr ""
646 "スペルミスや文法の間違いを避けるよう、注意してください。スペルチェックを確実"
647 "に行ってください。<command>ispell</command> と <command>aspell</command> の双"
648 "方に、<filename>debian/control</filename> ファイルをチェックするための特別な"
649 "モードがあります:"
650
651 #. type: Content of: <chapter><section><section><screen>
652 #: best-pkging-practices.dbk:299
653 #, no-wrap
654 msgid "ispell -d american -g debian/control\n"
655 msgstr "ispell -d american -g debian/control\n"
656
657 #. type: Content of: <chapter><section><section><screen>
658 #: best-pkging-practices.dbk:302
659 #, no-wrap
660 msgid "aspell -d en -D -c debian/control\n"
661 msgstr "aspell -d en -D -c debian/control\n"
662
663 # type: Content of: <chapter><section><section><para>
664 #. type: Content of: <chapter><section><section><para>
665 #: best-pkging-practices.dbk:305
666 msgid ""
667 "Users usually expect these questions to be answered in the package "
668 "description:"
669 msgstr ""
670 "通常、ユーザは以下のような疑問がパッケージ説明文で答えられることを期待してい"
671 "ます:"
672
673 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
674 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
675 #: best-pkging-practices.dbk:310
676 msgid ""
677 "What does the package do? If it is an add-on to another package, then the "
678 "short description of the package we are an add-on to should be put in here."
679 msgstr ""
680 "パッケージは何をするの? 他のパッケージのアドオンだった場合、パッケージがアド"
681 "オンであるということを概要文に書く必要があります。"
682
683 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
684 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
685 #: best-pkging-practices.dbk:316
686 msgid ""
687 "Why should I want this package? This is related to the above, but not the "
688 "same (this is a mail user agent; this is cool, fast, interfaces with PGP and "
689 "LDAP and IMAP, has features X, Y, and Z)."
690 msgstr ""
691 "なぜこのパッケージを使うべきなの? これは上記に関連しますが、同じではありませ"
692 "ん (これはメールユーザーエージェントです; クールで速く、PGP や LDAP や IMAP "
693 "のインターフェイスがあり、X や Y や Z の機能があります)。"
694
695 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
696 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
697 #: best-pkging-practices.dbk:323
698 msgid ""
699 "If this package should not be installed directly, but is pulled in by "
700 "another package, this should be mentioned."
701 msgstr ""
702 "パッケージが直接インストールされるべきではないが、他のパッケージから引っ張っ"
703 "てこられる時には、付記しておく必要があります。"
704
705 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
706 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
707 #: best-pkging-practices.dbk:329
708 msgid ""
709 "If the package is <literal>experimental</literal>, or there are other "
710 "reasons it should not be used, if there are other packages that should be "
711 "used instead, it should be here as well."
712 msgstr ""
713 "パッケージが<literal>実験的</literal>である、あるいは使われない方が良い他の理"
714 "由がある場合、同様にここに記載する必要があります。"
715
716 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
717 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
718 #: best-pkging-practices.dbk:336
719 msgid ""
720 "How is this package different from the competition? Is it a better "
721 "implementation? more features? different features? Why should I choose this "
722 "package."
723 msgstr ""
724 "パッケージは競合のものと比べてどうでしょうか? より良い実装なのでしょうか? 機"
725 "能がより豊富なのでしょうか? 違った機能があるのでしょうか? このパッケージを選"
726 "ぶ理由は何でしょう。"
727
728 # type: Content of: <chapter><section><section><title>
729 #. type: Content of: <chapter><section><section><title>
730 #: best-pkging-practices.dbk:349
731 msgid "Upstream home page"
732 msgstr "開発元のホームページ"
733
734 # type: Content of: <chapter><section><section><para>
735 #. type: Content of: <chapter><section><section><para>
736 #: best-pkging-practices.dbk:351
737 msgid ""
738 "We recommend that you add the URL for the package's home page in the "
739 "<literal>Homepage</literal> field of the <literal>Source</literal> section "
740 "in <filename>debian/control</filename>.  Adding this information in the "
741 "package description itself is considered deprecated."
742 msgstr ""
743 "<filename>debian/control</filename> 中の <literal>Source</literal> セクション"
744 "の <literal>Homepage</literal> フィールドへ、パッケージのホームページの URL "
745 "を追加することをお勧めします。この情報をパッケージ説明文自身に追加するのは推"
746 "奨されない (deprecated) であると考えられています。"
747
748 # type: Content of: <chapter><section><section><title>
749 #. type: Content of: <chapter><section><section><title>
750 #: best-pkging-practices.dbk:359
751 msgid "Version Control System location"
752 msgstr "バージョン管理システムの場所"
753
754 # type: Content of: <chapter><section><section><para>
755 #. type: Content of: <chapter><section><section><para>
756 #: best-pkging-practices.dbk:361
757 msgid ""
758 "There are additional fields for the location of the Version Control System "
759 "in <filename>debian/control</filename>."
760 msgstr ""
761 "<filename>debian/control</filename> には、バージョン管理システムの場所につい"
762 "ての追加フィールドがあります。"
763
764 # type: Content of: <chapter><section><section><section><title>
765 #. type: Content of: <chapter><section><section><section><title>
766 #: best-pkging-practices.dbk:365
767 msgid "Vcs-Browser"
768 msgstr "Vcs-Browser"
769
770 # type: Content of: <chapter><section><section><section><para>
771 #. type: Content of: <chapter><section><section><section><para>
772 #: best-pkging-practices.dbk:367
773 msgid ""
774 "Value of this field should be a <literal>http://</literal> URL pointing to a "
775 "web-browsable copy of the Version Control System repository used to maintain "
776 "the given package, if available."
777 msgstr ""
778 "このフィールドの値は、指定したパッケージのメンテナンスに使われているバージョ"
779 "ン管理システムのリポジトリのコピーがもしあれば、それを指し示す "
780 "<literal>http://</literal> URL である必要があります。"
781
782 # type: Content of: <chapter><section><section><section><para>
783 #. type: Content of: <chapter><section><section><section><para>
784 #: best-pkging-practices.dbk:372
785 msgid ""
786 "The information is meant to be useful for the final user, willing to browse "
787 "the latest work done on the package (e.g.  when looking for the patch fixing "
788 "a bug tagged as <literal>pending</literal> in the bug tracking system)."
789 msgstr ""
790 "この情報は、パッケージに行われた最新の作業を閲覧したいエンドユーザにとって有"
791 "用であるのが目的です (例: バグ追跡システムで <literal>pending</literal> とタ"
792 "グがつけられているバグを修正するパッチを探している場合)。"
793
794 # type: Content of: <chapter><section><section><section><title>
795 #. type: Content of: <chapter><section><section><section><title>
796 #: best-pkging-practices.dbk:379
797 msgid "Vcs-*"
798 msgstr "Vcs-*"
799
800 # type: Content of: <chapter><section><section><section><para>
801 #. type: Content of: <chapter><section><section><section><para>
802 #: best-pkging-practices.dbk:381
803 msgid ""
804 "Value of this field should be a string identifying unequivocally the "
805 "location of the Version Control System repository used to maintain the given "
806 "package, if available.  <literal>*</literal> identify the Version Control "
807 "System; currently the following systems are supported by the package "
808 "tracking system: <literal>arch</literal>, <literal>bzr</literal> (Bazaar), "
809 "<literal>cvs</literal>, <literal>darcs</literal>, <literal>git</literal>, "
810 "<literal>hg</literal> (Mercurial), <literal>mtn</literal> (Monotone), "
811 "<literal>svn</literal> (Subversion).  It is allowed to specify different VCS "
812 "fields for the same package: they will all be shown in the PTS web interface."
813 msgstr ""
814 "このフィールドの値は、もし利用可能でなのであれば、指定されたパッケージをメン"
815 "テナンスするのに使われているバージョン管理システムの位置を明確に識別できる文"
816 "字列である必要があります。<literal>*</literal> はバージョン管理システムの識別"
817 "に使われます; 現在では、以下のシステムがパッケージ追跡システムによってサポー"
818 "トされています: <literal>arch</literal>、<literal>bzr</literal> (Bazaar)、"
819 "<literal>cvs</literal>、<literal>darcs</literal>、<literal>git</literal>、"
820 "<literal>hg</literal> (Mercurial)、<literal>mtn</literal> (Monotone)、"
821 "<literal>svn</literal> (Subversion)。同じパッケージについて異なった VCS を指"
822 "定することも可能です: これらはすべて PTS のウェブインターフェイスに表示されま"
823 "す。"
824
825 # FIXME-trans: 場所からロケーション、にする?
826 # type: Content of: <chapter><section><section><section><para>
827 #. type: Content of: <chapter><section><section><section><para>
828 #: best-pkging-practices.dbk:392
829 msgid ""
830 "The information is meant to be useful for a user knowledgeable in the given "
831 "Version Control System and willing to build the current version of a package "
832 "from the VCS sources.  Other uses of this information might include "
833 "automatic building of the latest VCS version of the given package.  To this "
834 "end the location pointed to by the field should better be version agnostic "
835 "and point to the main branch (for VCSs supporting such a concept).  Also, "
836 "the location pointed to should be accessible to the final user; fulfilling "
837 "this requirement might imply pointing to an anonymous access of the "
838 "repository instead of pointing to an SSH-accessible version of the same."
839 msgstr ""
840 "この情報は、そのバージョン管理システムについて知識があり、VCS ソースから現在"
841 "のバージョンパッケージを生成ユーザにとって有益であるよう意図されています。こ"
842 "の情報の他の使い方としては、指定されたパッケージの最新の VCS バージョンを自動"
843 "ビルドするなどがあるかもしれません。このため、フィールドによって指し示される"
844 "場所は、バージョンに関係なく、(そのようなコンセプトをサポートしている VCS で"
845 "あれば) メインブランチを指すのが良いでしょう。また、指し示される場所は一般"
846 "ユーザがアクセス可能である必要があります; この要求を満たすには SSH アクセス可"
847 "能なリポジトリを指すのではなく、匿名アクセスが可能なリポジトリを指すようにす"
848 "ることを意味します。"
849
850 # type: Content of: <chapter><section><section><section><para>
851 #. type: Content of: <chapter><section><section><section><para>
852 #: best-pkging-practices.dbk:403
853 msgid ""
854 "In the following example, an instance of the field for a Subversion "
855 "repository of the <systemitem role=\"package\">vim</systemitem> package is "
856 "shown.  Note how the URL is in the <literal>svn://</literal> scheme (instead "
857 "of <literal>svn+ssh://</literal>) and how it points to the <filename>trunk/</"
858 "filename> branch.  The use of the <literal>Vcs-Browser</literal> and "
859 "<literal>Homepage</literal> fields described above is also shown."
860 msgstr ""
861 "以下の例では、<systemitem role=\"package\">vim</systemitem> パッケージの "
862 "Subversion リポジトリに対するフィールドの例が挙げられています。(<literal>svn"
863 "+ssh://</literal> ではなく) <literal>svn://</literal> スキーム中で URL がどの"
864 "ようになっているか、<filename>trunk/</filename> ブランチをどのように指し示し"
865 "ているかに注意してください。上で挙げられた <literal>Vcs-Browser</literal> "
866 "フィールドと <literal>Homepage</literal> フィールドの使い方も出ています。"
867
868 # type: Content of: <chapter><section><section><section><screen>
869 #. type: Content of: <chapter><section><section><section><screen>
870 #: best-pkging-practices.dbk:412
871 #, no-wrap
872 msgid ""
873 "  Source: vim\n"
874 "  Section: editors\n"
875 "  Priority: optional\n"
876 "  &lt;snip&gt;\n"
877 "  Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim\n"
878 "  Vcs-Browser: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim\n"
879 "  Homepage: http://www.vim.org\n"
880 msgstr ""
881 "  Source: vim\n"
882 "  Section: editors\n"
883 "  Priority: optional\n"
884 "  &lt;snip&gt;\n"
885 "  Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim\n"
886 "  Vcs-Browser: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim\n"
887 "  Homepage: http://www.vim.org\n"
888
889 # type: Content of: <chapter><section><title>
890 #. type: Content of: <chapter><section><title>
891 #: best-pkging-practices.dbk:427
892 msgid "Best practices for <filename>debian/changelog</filename>"
893 msgstr "<filename>debian/changelog</filename> のベストプラクティス"
894
895 # type: Content of: <chapter><section><para>
896 #. type: Content of: <chapter><section><para>
897 #: best-pkging-practices.dbk:429
898 msgid ""
899 "The following practices supplement the <ulink url=\"&url-debian-policy;ch-"
900 "docs.html#s-changelogs\">Policy on changelog files</ulink>."
901 msgstr ""
902 "以下のプラクティスは <ulink url=\"&url-debian-policy;ch-docs.html#s-"
903 "changelogs\">changelog ファイルに対するポリシー</ulink>を補完します。"
904
905 # type: Content of: <chapter><section><section><title>
906 #. type: Content of: <chapter><section><section><title>
907 #: best-pkging-practices.dbk:434
908 msgid "Writing useful changelog entries"
909 msgstr "役立つ changelog のエントリを書く"
910
911 # type: Content of: <chapter><section><section><para>
912 #. type: Content of: <chapter><section><section><para>
913 #: best-pkging-practices.dbk:436
914 msgid ""
915 "The changelog entry for a package revision documents changes in that "
916 "revision, and only them.  Concentrate on describing significant and user-"
917 "visible changes that were made since the last version."
918 msgstr ""
919 "パッケージリビジョンに対する changelog エントリは、そのリビジョンでの変更それ"
920 "だけを記載します。最後のバージョンから行われた、重要な、そしてユーザに見える"
921 "形の変更を記述することに集中しましょう。"
922
923 # type: Content of: <chapter><section><section><para>
924 #. type: Content of: <chapter><section><section><para>
925 #: best-pkging-practices.dbk:441
926 msgid ""
927 "Focus on <emphasis>what</emphasis> was changed — who, how and when are "
928 "usually less important.  Having said that, remember to politely attribute "
929 "people who have provided notable help in making the package (e.g., those who "
930 "have sent in patches)."
931 msgstr ""
932 "<emphasis>何が</emphasis>変更されたかについて集中しましょう — 誰が、どうやっ"
933 "て、何時なのか通常あまり重要ではありません。そうは言っても、パッケージ作成に"
934 "ついて明記すべき手助けをしてくれた人々 (例えば、パッチを送ってくれた人) を丁"
935 "寧に明記するのを忘れないようにしましょう。"
936
937 # type: Content of: <chapter><section><section><para>
938 #. type: Content of: <chapter><section><section><para>
939 #: best-pkging-practices.dbk:447
940 msgid ""
941 "There's no need to elaborate the trivial and obvious changes.  You can also "
942 "aggregate several changes in one entry.  On the other hand, don't be overly "
943 "terse if you have undertaken a major change.  Be especially clear if there "
944 "are changes that affect the behaviour of the program.  For further "
945 "explanations, use the <filename>README.Debian</filename> file."
946 msgstr ""
947 "些細で明白な変更を詳細に書く必要はありません。複数の変更点を一つのエントリに"
948 "まとめることもできます。逆に言えば、大きな変更をした場合には、あまりに簡潔に"
949 "しすぎないようにしましょう。プログラムの動作に影響を与える変更がある場合に"
950 "は、特に確認しておきましょう。詳細な説明については、<filename>README.Debian</"
951 "filename> ファイルを使ってください。"
952
953 # type: Content of: <chapter><section><section><para>
954 #. type: Content of: <chapter><section><section><para>
955 #: best-pkging-practices.dbk:454
956 msgid ""
957 "Use common English so that the majority of readers can comprehend it.  Avoid "
958 "abbreviations, tech-speak and jargon when explaining changes that close "
959 "bugs, especially for bugs filed by users that did not strike you as "
960 "particularly technically savvy.  Be polite, don't swear."
961 msgstr ""
962 "平易な英語を使いましょう。そうすれば読者の大半が理解できます。バグをクローズ"
963 "する変更を説明する際には略語や、テクニカルな言い方やジャーゴンを避けましょ"
964 "う。特に、技術的に精通していないと思われるユーザによって登録されたバグを閉じ"
965 "る際には気をつけましょう。礼儀正しく、断言をしないように。"
966
967 # type: Content of: <chapter><section><section><para>
968 #. type: Content of: <chapter><section><section><para>
969 #: best-pkging-practices.dbk:460
970 msgid ""
971 "It is sometimes desirable to prefix changelog entries with the names of the "
972 "files that were changed.  However, there's no need to explicitly list each "
973 "and every last one of the changed files, especially if the change was small "
974 "or repetitive.  You may use wildcards."
975 msgstr ""
976 "時折、changelog エントリに変更したファイルの名前を頭に付けたくなることがあり"
977 "ます。ですが、個々のすべての変更したファイルを一覧にする必要性はありません。"
978 "特に変更点が小さくて繰り返される場合です。ワイルドカードを使いましょう。"
979
980 # type: Content of: <chapter><section><section><para>
981 #. type: Content of: <chapter><section><section><para>
982 #: best-pkging-practices.dbk:466
983 msgid ""
984 "When referring to bugs, don't assume anything.  Say what the problem was, "
985 "how it was fixed, and append the closes: #nnnnn string.  See <xref linkend="
986 "\"upload-bugfix\"/> for more information."
987 msgstr ""
988 "バグに触れる際には、何も仮定しないようにしましょう。何が問題だったのか、どう"
989 "やってそれが直されたのかについて言い、closes: #nnnnn の文字列を追加しましょ"
990 "う。詳細については <xref linkend=\"upload-bugfix\"/> を参照してください。"
991
992 # type: Content of: <chapter><section><section><title>
993 #. type: Content of: <chapter><section><section><title>
994 #: best-pkging-practices.dbk:473
995 msgid "Common misconceptions about changelog entries"
996 msgstr "changelog のエントリに関するよくある誤解"
997
998 # type: Content of: <chapter><section><section><para>
999 #. type: Content of: <chapter><section><section><para>
1000 #: best-pkging-practices.dbk:475
1001 msgid ""
1002 "The changelog entries should <emphasis role=\"strong\">not</emphasis> "
1003 "document generic packaging issues (Hey, if you're looking for foo.conf, it's "
1004 "in /etc/blah/.), since administrators and users are supposed to be at least "
1005 "remotely acquainted with how such things are generally arranged on Debian "
1006 "systems.  Do, however, mention if you change the location of a configuration "
1007 "file."
1008 msgstr ""
1009 "changelog エントリは、一般的なパッケージ化の事柄 (ほら、foo.conf を探している"
1010 "なら /etc/blah にあるよ) を記載するべきでは<emphasis role=\"strong\">ありませ"
1011 "ん</emphasis>。何故なら、管理者やユーザは少なくとも Debian システム上でそのよ"
1012 "うなことがどのように扱われるかを多少は知らされているでしょうから。ですが、設"
1013 "定ファイルの場所を変更したのであれば、それは一言添えておくべきです。"
1014
1015 #. type: Content of: <chapter><section><section><para>
1016 #: best-pkging-practices.dbk:483
1017 msgid ""
1018 "The only bugs closed with a changelog entry should be those that are "
1019 "actually fixed in the same package revision.  Closing unrelated bugs in the "
1020 "changelog is bad practice.  See <xref linkend=\"upload-bugfix\"/>."
1021 msgstr ""
1022 "changelog エントリでクローズされるバグは、実際にそのパッケージリビジョンで修"
1023 "正されたものだけにすべきです。changelog で関係ないバグを閉じるのは良くない習"
1024 "慣です。<xref linkend=\"upload-bugfix\"/> を参照してください。"
1025
1026 # type: Content of: <chapter><section><section><para>
1027 #. type: Content of: <chapter><section><section><para>
1028 #: best-pkging-practices.dbk:488
1029 msgid ""
1030 "The changelog entries should <emphasis role=\"strong\">not</emphasis> be "
1031 "used for random discussion with bug reporters (I don't see segfaults when "
1032 "starting foo with option bar; send in more info), general statements on "
1033 "life, the universe and everything (sorry this upload took me so long, but I "
1034 "caught the flu), or pleas for help (the bug list on this package is huge, "
1035 "please lend me a hand).  Such things usually won't be noticed by their "
1036 "target audience, but may annoy people who wish to read information about "
1037 "actual changes in the package.  See <xref linkend=\"bug-answering\"/> for "
1038 "more information on how to use the bug tracking system."
1039 msgstr ""
1040 "changelog エントリは、バグ報告者との各種の議論の場 (foo をオプション bar 付き"
1041 "で起動した際にはセグメンテーションフォルトは見られません; もっと詳しい情報を"
1042 "送ってください)、生命、宇宙、そして万物についての概要 (すいませんが、このアッ"
1043 "プロードに時間がかかったので風邪をひきました)、手助けの求め (このパッケージの"
1044 "バグ一覧は巨大です、手を貸してください) に使うべきでは<emphasis role=\"strong"
1045 "\">ありません</emphasis>。そのようなことは、大抵の場合対象としている読者は気"
1046 "づくことが無く、パッケージで実際にあった変更点の情報について読みたい人々を悩"
1047 "ますことでしょう。どの様にバグ報告システムを使えばいいのかについて、詳細な情"
1048 "報は<xref linkend=\"bug-answering\"/>を参照してください。"
1049
1050 # type: Content of: <chapter><section><section><para>
1051 #. type: Content of: <chapter><section><section><para>
1052 #: best-pkging-practices.dbk:499
1053 msgid ""
1054 "It is an old tradition to acknowledge bugs fixed in non-maintainer uploads "
1055 "in the first changelog entry of the proper maintainer upload.  As we have "
1056 "version tracking now, it is enough to keep the NMUed changelog entries and "
1057 "just mention this fact in your own changelog entry."
1058 msgstr ""
1059 "正式なメンテナによるアップロードの changelog エントリの最初で、non-"
1060 "maintainer upload で修正されたバグを承認するのは、古い慣習です。今はバージョ"
1061 "ン管理を行っているので、NMU された changelog エントリを残しておいて自分の "
1062 "changelog エントリ中でその事実に触れるだけで十分です。"
1063
1064 # type: Content of: <chapter><section><section><title>
1065 #. type: Content of: <chapter><section><section><title>
1066 #: best-pkging-practices.dbk:507
1067 msgid "Common errors in changelog entries"
1068 msgstr "changelog のエントリ中のよくある間違い"
1069
1070 # type: Content of: <chapter><section><section><para>
1071 #. type: Content of: <chapter><section><section><para>
1072 #: best-pkging-practices.dbk:509
1073 msgid ""
1074 "The following examples demonstrate some common errors or examples of bad "
1075 "style in changelog entries."
1076 msgstr ""
1077 "以下の例で、changelog エントリ中のよくある間違いや間違ったスタイルの例を挙げ"
1078 "ます。"
1079
1080 # type: Content of: <chapter><section><section><screen>
1081 #. type: Content of: <chapter><section><section><screen>
1082 #: best-pkging-practices.dbk:513
1083 #, no-wrap
1084 msgid "  * Fixed all outstanding bugs.\n"
1085 msgstr "  * Fixed all outstanding bugs.\n"
1086
1087 # type: Content of: <chapter><section><section><para>
1088 #. type: Content of: <chapter><section><section><para>
1089 #: best-pkging-practices.dbk:516
1090 msgid "This doesn't tell readers anything too useful, obviously."
1091 msgstr "これは、全く読み手に何も有用なことを教えてくれません。"
1092
1093 # type: Content of: <chapter><section><section><screen>
1094 #. type: Content of: <chapter><section><section><screen>
1095 #: best-pkging-practices.dbk:519
1096 #, no-wrap
1097 msgid "  * Applied patch from Jane Random.\n"
1098 msgstr "  * Applied patch from Jane Random.\n"
1099
1100 # type: Content of: <chapter><section><section><para>
1101 #. type: Content of: <chapter><section><section><para>
1102 #: best-pkging-practices.dbk:522
1103 msgid "What was the patch about?"
1104 msgstr "何についてのパッチですか?"
1105
1106 # type: Content of: <chapter><section><section><screen>
1107 #. type: Content of: <chapter><section><section><screen>
1108 #: best-pkging-practices.dbk:525
1109 #, no-wrap
1110 msgid "  * Late night install target overhaul.\n"
1111 msgstr "  * Late night install target overhaul.\n"
1112
1113 # type: Content of: <chapter><section><section><para>
1114 #. type: Content of: <chapter><section><section><para>
1115 #: best-pkging-practices.dbk:528
1116 msgid ""
1117 "Overhaul which accomplished what? Is the mention of late night supposed to "
1118 "remind us that we shouldn't trust that code?"
1119 msgstr ""
1120 "何をオーバーホールしてどうなったのですか? 深夜というのに言及しているのは、私"
1121 "たちにこのコードを信用するなと言いたいのですか?"
1122
1123 # type: Content of: <chapter><section><section><screen>
1124 #. type: Content of: <chapter><section><section><screen>
1125 #: best-pkging-practices.dbk:532
1126 #, no-wrap
1127 msgid "  * Fix vsync FU w/ ancient CRTs.\n"
1128 msgstr "  * Fix vsync FU w/ ancient CRTs.\n"
1129
1130 # type: Content of: <chapter><section><section><para>
1131 #. type: Content of: <chapter><section><section><para>
1132 #: best-pkging-practices.dbk:535
1133 msgid ""
1134 "Too many acronyms, and it's not overly clear what the, uh, fsckup (oops, a "
1135 "curse word!) was actually about, or how it was fixed."
1136 msgstr ""
1137 "略称が多すぎます。そして、ええっと、fsckup (あぁ、ひどい言葉!) は実際何だった"
1138 "のか、あるいはどうやって修正したのかがまったく明らかではありません。"
1139
1140 # type: Content of: <chapter><section><section><screen>
1141 #. type: Content of: <chapter><section><section><screen>
1142 #: best-pkging-practices.dbk:539
1143 #, no-wrap
1144 msgid "  * This is not a bug, closes: #nnnnnn.\n"
1145 msgstr "  * This is not a bug, closes: #nnnnnn.\n"
1146
1147 # type: Content of: <chapter><section><section><para>
1148 #. type: Content of: <chapter><section><section><para>
1149 #: best-pkging-practices.dbk:542
1150 msgid ""
1151 "First of all, there's absolutely no need to upload the package to convey "
1152 "this information; instead, use the bug tracking system.  Secondly, there's "
1153 "no explanation as to why the report is not a bug."
1154 msgstr ""
1155 "まず初めに、この情報を伝えるためにパッケージをアップロードする必要は、全くあ"
1156 "りません; 代わりにバグ追跡システムを使ってください。次に、何故この報告がバグ"
1157 "ではなかったのかについての説明がありません。"
1158
1159 # type: Content of: <chapter><section><section><screen>
1160 #. type: Content of: <chapter><section><section><screen>
1161 #: best-pkging-practices.dbk:547
1162 #, no-wrap
1163 msgid "  * Has been fixed for ages, but I forgot to close; closes: #54321.\n"
1164 msgstr "  * Has been fixed for ages, but I forgot to close; closes: #54321.\n"
1165
1166 # type: Content of: <chapter><section><section><para>
1167 #. type: Content of: <chapter><section><section><para>
1168 #: best-pkging-practices.dbk:550
1169 msgid ""
1170 "If for some reason you didn't mention the bug number in a previous changelog "
1171 "entry, there's no problem, just close the bug normally in the BTS.  There's "
1172 "no need to touch the changelog file, presuming the description of the fix is "
1173 "already in (this applies to the fixes by the upstream authors/maintainers as "
1174 "well, you don't have to track bugs that they fixed ages ago in your "
1175 "changelog)."
1176 msgstr ""
1177 "何らかの理由で以前の changelog エントリ内でバグ番号について触れていなかったと"
1178 "しても、何も問題はありません。単にいつも通りに BTS でバグをクローズしてくださ"
1179 "い。修正の記述が既にあるものと考えて、changelog ファイルに触れる必要はありま"
1180 "せん (これは、開発元の作者/メンテナによる修正にも同様に適用されます。彼らが"
1181 "ずっと前に修正したバグを、あなたの changelog 内で追いかける必要はありませ"
1182 "ん)。"
1183
1184 # type: Content of: <chapter><section><section><screen>
1185 #. type: Content of: <chapter><section><section><screen>
1186 #: best-pkging-practices.dbk:557
1187 #, no-wrap
1188 msgid "  * Closes: #12345, #12346, #15432\n"
1189 msgstr "  * Closes: #12345, #12346, #15432\n"
1190
1191 # type: Content of: <chapter><section><section><para>
1192 #. type: Content of: <chapter><section><section><para>
1193 #: best-pkging-practices.dbk:560
1194 msgid ""
1195 "Where's the description? If you can't think of a descriptive message, start "
1196 "by inserting the title of each different bug."
1197 msgstr ""
1198 "説明はどこ? 説明文を考えられないのなら、それぞれのバグのタイトルを入れるとこ"
1199 "ろから始めてください。"
1200
1201 #. type: Content of: <chapter><section><section><title>
1202 #: best-pkging-practices.dbk:566
1203 msgid "Supplementing changelogs with <filename>NEWS.Debian</filename> files"
1204 msgstr "<filename>NEWS.Debian</filename> ファイルで changelog を補足する"
1205
1206 #. type: Content of: <chapter><section><section><para>
1207 #: best-pkging-practices.dbk:568
1208 msgid ""
1209 "Important news about changes in a package can also be put in <filename>NEWS."
1210 "Debian</filename> files.  The news will be displayed by tools like "
1211 "<systemitem role=\"package\">apt-listchanges</systemitem>, before all the "
1212 "rest of the changelogs.  This is the preferred means to let the user know "
1213 "about significant changes in a package.  It is better than using <systemitem "
1214 "role=\"package\">debconf</systemitem> notes since it is less annoying and "
1215 "the user can go back and refer to the <filename>NEWS.Debian</filename> file "
1216 "after the install.  And it's better than listing major changes in "
1217 "<filename>README.Debian</filename>, since the user can easily miss such "
1218 "notes."
1219 msgstr ""
1220 "パッケージの変更に関する重要なニュースは <filename>NEWS.Debian</filename> "
1221 "ファイルにも書くことができます。このニュースは <systemitem role=\"package"
1222 "\">apt-listchanges</systemitem> のようなツールで、残りすべての changelog の前"
1223 "に表示されます。これは、ユーザにパッケージ内の著しい変更点について知らせるの"
1224 "に好ましいやり方です。インストール後にユーザが一旦戻って <filename>NEWS."
1225 "Debian</filename> ファイルを参照できるので、<systemitem role=\"package"
1226 "\">debconf</systemitem> の notes を使うより良いです。そして、目立った変更点"
1227 "を <filename>README.Debian</filename> に列挙するより良いです。何故ならば、"
1228 "ユーザは容易にそのような注意書きを見逃すからです。"
1229
1230 #. type: Content of: <chapter><section><section><para>
1231 #: best-pkging-practices.dbk:579
1232 msgid ""
1233 "The file format is the same as a debian changelog file, but leave off the "
1234 "asterisks and describe each news item with a full paragraph when necessary "
1235 "rather than the more concise summaries that would go in a changelog.  It's a "
1236 "good idea to run your file through <literal>dpkg-parsechangelog</literal> to "
1237 "check its formatting as it will not be automatically checked during build as "
1238 "the changelog is.  Here is an example of a real <filename>NEWS.Debian</"
1239 "filename> file:"
1240 msgstr ""
1241 "ファイル形式は debian changelog ファイルと同じですが、アスタリスク (*) を取っ"
1242 "て各ニュースを changelog に書くような簡潔な要約ではなく、必要に応じて完全な段"
1243 "落で記述してください。changelog のようにビルド中に自動的にはチェックされない"
1244 "ので、ファイルを <literal>dpkg-parsechangelog</literal> を実行してチェックす"
1245 "るのは良い考えです。実際の <filename>NEWS.Debian</filename> ファイルの例が、"
1246 "以下になります:"
1247
1248 # type: Content of: <chapter><section><section><screen>
1249 #. type: Content of: <chapter><section><section><screen>
1250 #: best-pkging-practices.dbk:588
1251 #, no-wrap
1252 msgid ""
1253 "cron (3.0pl1-74) unstable; urgency=low\n"
1254 "\n"
1255 "    The checksecurity script is no longer included with the cron package:\n"
1256 "    it now has its own package, checksecurity. If you liked the\n"
1257 "    functionality provided with that script, please install the new\n"
1258 "    package.\n"
1259 "\n"
1260 " -- Steve Greenland &lt;stevegr@debian.org&gt;  Sat,  6 Sep 2003 17:15:03 -0500\n"
1261 msgstr ""
1262 "cron (3.0pl1-74) unstable; urgency=low\n"
1263 "\n"
1264 "    The checksecurity script is no longer included with the cron package:\n"
1265 "    it now has its own package, checksecurity. If you liked the\n"
1266 "    functionality provided with that script, please install the new\n"
1267 "    package.\n"
1268 "\n"
1269 " -- Steve Greenland &lt;stevegr@debian.org&gt;  Sat,  6 Sep 2003 17:15:03 -0500\n"
1270
1271 #. type: Content of: <chapter><section><section><para>
1272 #: best-pkging-practices.dbk:598
1273 msgid ""
1274 "The <filename>NEWS.Debian</filename> file is installed as <filename>/usr/"
1275 "share/doc/<replaceable>package</replaceable>/NEWS.Debian.gz</filename>.  It "
1276 "is compressed, and always has that name even in Debian native packages.  If "
1277 "you use <literal>debhelper</literal>, <literal>dh_installchangelogs</"
1278 "literal> will install <filename>debian/NEWS</filename> files for you."
1279 msgstr ""
1280 "<filename>NEWS.Debian</filename> ファイルは <filename>/usr/share/doc/"
1281 "<replaceable>package</replaceable>/NEWS.Debian.gz</filename> ファイルとしてイ"
1282 "ンストールされます。圧縮されていて、Debian ネイティブパッケージ中でも常にこの"
1283 "名前です。<literal>debhelper</literal> を使う場合は、"
1284 "<literal>dh_installchangelogs</literal> が <filename>debian/NEWS</filename> "
1285 "ファイルをインストールしてくれます。"
1286
1287 # type: Content of: <chapter><section><section><para>
1288 #. type: Content of: <chapter><section><section><para>
1289 #: best-pkging-practices.dbk:605
1290 msgid ""
1291 "Unlike changelog files, you need not update <filename>NEWS.Debian</filename> "
1292 "files with every release.  Only update them if you have something "
1293 "particularly newsworthy that user should know about.  If you have no news at "
1294 "all, there's no need to ship a <filename>NEWS.Debian</filename> file in your "
1295 "package.  No news is good news!"
1296 msgstr ""
1297 "changelog ファイルと違って、毎回のリリースごとに <filename>NEWS.Debian</"
1298 "filename> ファイルを更新する必要はありません。何か特にユーザが知るべき目新し"
1299 "いことがあったときにのみ、更新してください。全くニュースがない場合、"
1300 "<filename>NEWS.Debian</filename> ファイルをパッケージに入れてリリースする必要"
1301 "はありません。便りが無いのは良い知らせ、です (No news is good news!)。"
1302
1303 # type: Content of: <chapter><section><title>
1304 #. type: Content of: <chapter><section><title>
1305 #: best-pkging-practices.dbk:627
1306 msgid "Best practices for maintainer scripts"
1307 msgstr "メンテナスクリプトのベストプラクティス"
1308
1309 # type: Content of: <chapter><section><para>
1310 #. type: Content of: <chapter><section><para>
1311 #: best-pkging-practices.dbk:629
1312 msgid ""
1313 "Maintainer scripts include the files <filename>debian/postinst</filename>, "
1314 "<filename>debian/preinst</filename>, <filename>debian/prerm</filename> and "
1315 "<filename>debian/postrm</filename>.  These scripts take care of any package "
1316 "installation or deinstallation setup which isn't handled merely by the "
1317 "creation or removal of files and directories.  The following instructions "
1318 "supplement the <ulink url=\"&url-debian-policy;\">Debian Policy</ulink>."
1319 msgstr ""
1320 "メンテナスクリプトには <filename>debian/postinst</filename>、"
1321 "<filename>debian/preinst</filename>、<filename>debian/prerm</filename>、"
1322 "<filename>debian/postrm</filename> ファイルが含まれます。これらのスクリプト"
1323 "は、単なるファイルやディレクトリの作成や削除では扱われない、パッケージのイン"
1324 "ストールと削除のセットアップの面倒をみます。以下の説明は、<ulink url=\"&url-"
1325 "debian-policy;\">Debian ポリシー</ulink>を補完します。"
1326
1327 # type: Content of: <chapter><section><para>
1328 #. type: Content of: <chapter><section><para>
1329 #: best-pkging-practices.dbk:637
1330 msgid ""
1331 "Maintainer scripts must be idempotent.  That means that you need to make "
1332 "sure nothing bad will happen if the script is called twice where it would "
1333 "usually be called once."
1334 msgstr ""
1335 "メンテナスクリプトは冪等でなければなりません。これは、通常は 1 回呼ばれるスク"
1336 "リプトが 2 回呼ばれた場合、何も悪いことが起きないのを保証する必要があるという"
1337 "意味です。"
1338
1339 # type: Content of: <chapter><section><para>
1340 #. type: Content of: <chapter><section><para>
1341 #: best-pkging-practices.dbk:642
1342 msgid ""
1343 "Standard input and output may be redirected (e.g.  into pipes) for logging "
1344 "purposes, so don't rely on them being a tty."
1345 msgstr ""
1346 "標準入出力はログの取得のためにリダイレクトされることがあります (例: パイプへ"
1347 "向けられる)。ですので、これらが tty であることに依存してはいけません。"
1348
1349 # type: Content of: <chapter><section><para>
1350 #. type: Content of: <chapter><section><para>
1351 #: best-pkging-practices.dbk:646
1352 msgid ""
1353 "All prompting or interactive configuration should be kept to a minimum.  "
1354 "When it is necessary, you should use the <systemitem role=\"package"
1355 "\">debconf</systemitem> package for the interface.  Remember that prompting "
1356 "in any case can only be in the <literal>configure</literal> stage of the "
1357 "<filename>postinst</filename> script."
1358 msgstr ""
1359 "質問や対話的な設定はすべて最小限に止めておく必要があります。必要になった時"
1360 "は、インターフェイスに <systemitem role=\"package\">debconf</systemitem> パッ"
1361 "ケージを使いましょう。どのような場合でも、質問は <filename>postinst</"
1362 "filename> スクリプトの <literal>configure</literal> 段階にのみ、配置すること"
1363 "ができます。"
1364
1365 # type: Content of: <chapter><section><para>
1366 #. type: Content of: <chapter><section><para>
1367 #: best-pkging-practices.dbk:653
1368 msgid ""
1369 "Keep the maintainer scripts as simple as possible.  We suggest you use pure "
1370 "POSIX shell scripts.  Remember, if you do need any bash features, the "
1371 "maintainer script must have a bash shebang line.  POSIX shell or Bash are "
1372 "preferred to Perl, since they enable <systemitem role=\"package\">debhelper</"
1373 "systemitem> to easily add bits to the scripts."
1374 msgstr ""
1375 "メンテナスクリプトは、できる限りシンプルなものにしておきましょう。我々は、あ"
1376 "なたは純粋な POSIX シェルスクリプトを使っているものだと考えています。覚えてお"
1377 "いて欲しいのですが、何かしら bash の機能が必要になったら、メンテナスクリプト"
1378 "は bash のシェバン行にしておく必要があります。スクリプトへ簡単にちょっとした"
1379 "変更を追加するのに <systemitem role=\"package\">debhelper</systemitem> を使え"
1380 "るので、Perl より POSIX シェル、あるいは Bash の方が好まれます。"
1381
1382 # type: Content of: <chapter><section><para>
1383 #. type: Content of: <chapter><section><para>
1384 #: best-pkging-practices.dbk:660
1385 msgid ""
1386 "If you change your maintainer scripts, be sure to test package removal, "
1387 "double installation, and purging.  Be sure that a purged package is "
1388 "completely gone, that is, it must remove any files created, directly or "
1389 "indirectly, in any maintainer script."
1390 msgstr ""
1391 "メンテナスクリプトを変更したら、パッケージの削除や二重インストール、purge の"
1392 "テストを確認してください。purge されたパッケージが完全に削除されたことを確認"
1393 "してください。つまり、メンテナスクリプト中で直接/間接を問わず作成されたファ"
1394 "イルを削除する必要があるということです。"
1395
1396 # type: Content of: <chapter><section><para>
1397 #. type: Content of: <chapter><section><para>
1398 #: best-pkging-practices.dbk:666
1399 msgid ""
1400 "If you need to check for the existence of a command, you should use "
1401 "something like"
1402 msgstr "コマンドの存在をチェックする必要がある場合は、このような感じで行います"
1403
1404 # type: Content of: <chapter><section><programlisting>
1405 #. type: Content of: <chapter><section><programlisting>
1406 #: best-pkging-practices.dbk:669
1407 #, no-wrap
1408 msgid "if [ -x /usr/sbin/install-docs ]; then ..."
1409 msgstr "if [ -x /usr/sbin/install-docs ]; then ..."
1410
1411 # type: Content of: <chapter><section><para>
1412 #. type: Content of: <chapter><section><para>
1413 #: best-pkging-practices.dbk:671
1414 msgid ""
1415 "If you don't wish to hard-code the path of a command in your maintainer "
1416 "script, the following POSIX-compliant shell function may help:"
1417 msgstr ""
1418 "メンテナスクリプト中でコマンドの path をハードコードしたくない場合には、以下"
1419 "の POSIX 互換シェル機能が役立つでしょう:"
1420
1421 #. type: Content of: <chapter><section><para>
1422 #: best-pkging-practices.dbk:676
1423 msgid ""
1424 "You can use this function to search <varname>$PATH</varname> for a command "
1425 "name, passed as an argument.  It returns true (zero) if the command was "
1426 "found, and false if not.  This is really the most portable way, since "
1427 "<literal>command -v</literal>, <command>type</command>, and <command>which</"
1428 "command> are not POSIX."
1429 msgstr ""
1430 "コマンド名を引数として渡すことで、<varname>$PATH</varname> の検索するのにこの"
1431 "関数を使うことができます。コマンドが見つかった場合は true (ゼロ) を返し、そう"
1432 "でない場合は false を返します。<literal>command -v</literal>、<command>type</"
1433 "command>、<command>which</command> は POSIX に無いので、これがもっとも汎用性"
1434 "の高いやり方です。"
1435
1436 # type: Content of: <chapter><section><para>
1437 #. type: Content of: <chapter><section><para>
1438 #: best-pkging-practices.dbk:683
1439 msgid ""
1440 "While <command>which</command> is an acceptable alternative, since it is "
1441 "from the required <systemitem role=\"package\">debianutils</systemitem> "
1442 "package, it's not on the root partition.  That is, it's in <filename>/usr/"
1443 "bin</filename> rather than <filename>/bin</filename>, so one can't use it in "
1444 "scripts which are run before the <filename>/usr</filename> partition is "
1445 "mounted.  Most scripts won't have this problem, though."
1446 msgstr ""
1447 "<command>which</command> は、Required となっている <systemitem role=\"package"
1448 "\">debianutils</systemitem> パッケージにあるので、別解として利用可能ですが、"
1449 "ルートパーティションにありません。つまり、<filename>/usr/bin</filename> に"
1450 "あって <filename>/bin</filename> ではないので、<filename>/usr</filename> パー"
1451 "ティションがマウントする前に走るスクリプトの中では使えないということです。ほ"
1452 "とんどのスクリプトは、この問題を持つようなことはありませんが。"
1453
1454 # type: Content of: <chapter><section><title>
1455 #. type: Content of: <chapter><section><title>
1456 #: best-pkging-practices.dbk:693
1457 msgid ""
1458 "Configuration management with <systemitem role=\"package\">debconf</"
1459 "systemitem>"
1460 msgstr "<systemitem role=\"package\">debconf</systemitem> による設定管理"
1461
1462 # type: Content of: <chapter><section><para>
1463 #. type: Content of: <chapter><section><para>
1464 #: best-pkging-practices.dbk:695
1465 msgid ""
1466 "<systemitem role=\"package\">Debconf</systemitem> is a configuration "
1467 "management system which can be used by all the various packaging scripts "
1468 "(<filename>postinst</filename> mainly) to request feedback from the user "
1469 "concerning how to configure the package.  Direct user interactions must now "
1470 "be avoided in favor of <systemitem role=\"package\">debconf</systemitem> "
1471 "interaction.  This will enable non-interactive installations in the future."
1472 msgstr ""
1473 "<systemitem role=\"package\">debconf</systemitem> は、(主に "
1474 "<filename>postinst</filename> をはじめとする) すべての様々なパッケージスクリ"
1475 "プトが、ユーザはどの様にパッケージを設定したいのかというフィードバックを問い"
1476 "合わせるのに使うことが可能な設定管理システムです。直接ユーザとの対話処理は、"
1477 "<systemitem role=\"package\">debconf</systemitem> での処理の方を選んだので、"
1478 "現状では避けるべきです。これにより、将来には非対話的なインストールが可能にな"
1479 "る予定です。"
1480
1481 # type: Content of: <chapter><section><para>
1482 #. type: Content of: <chapter><section><para>
1483 #: best-pkging-practices.dbk:703
1484 msgid ""
1485 "Debconf is a great tool but it is often poorly used.  Many common mistakes "
1486 "are listed in the <citerefentry> <refentrytitle>debconf-devel</"
1487 "refentrytitle> <manvolnum>7</manvolnum> </citerefentry> man page.  It is "
1488 "something that you must read if you decide to use debconf.  Also, we "
1489 "document some best practices here."
1490 msgstr ""
1491 "debconf は素晴らしいツールですが、しばしば適当に扱われています。多くの共通す"
1492 "る失敗は、<citerefentry> <refentrytitle>debconf-devel</refentrytitle> "
1493 "<manvolnum>7</manvolnum> </citerefentry> man ページに記載されています。これ"
1494 "は、debconf を使うのを決めた時、あなたが読むべきものです。また、ここではベス"
1495 "トプラクティスを記述しています。"
1496
1497 # type: Content of: <chapter><section><para>
1498 #. type: Content of: <chapter><section><para>
1499 #: best-pkging-practices.dbk:710
1500 msgid ""
1501 "These guidelines include some writing style and typography recommendations, "
1502 "general considerations about debconf usage as well as more specific "
1503 "recommendations for some parts of the distribution (the installation system "
1504 "for instance)."
1505 msgstr ""
1506 "これらのガイドラインは、ディストリビューションの一部 (例えば、インストール"
1507 "システム) に関する、より明確な推奨と同様に、幾つかの書き方と体裁に関する推奨、"
1508 "そして debconf の使い方についての一般的な考慮すべき事柄を含んでいます。"
1509
1510 # type: Content of: <chapter><section><section><title>
1511 #. type: Content of: <chapter><section><section><title>
1512 #: best-pkging-practices.dbk:716
1513 msgid "Do not abuse debconf"
1514 msgstr "debconf を乱用しない"
1515
1516 # type: Content of: <chapter><section><section><para>
1517 #. type: Content of: <chapter><section><section><para>
1518 #: best-pkging-practices.dbk:718
1519 msgid ""
1520 "Since debconf appeared in Debian, it has been widely abused and several "
1521 "criticisms received by the Debian distribution come from debconf abuse with "
1522 "the need of answering a wide bunch of questions before getting any little "
1523 "thing installed."
1524 msgstr ""
1525 "debconf が Debian に現れて以来、広く乱用され続けています。そして、debconf の"
1526 "乱用によって、ちょっとしたものをインストールする前に、大量の質問に答える必要"
1527 "があることに由来するいくつもの非難が Debian ディストリビューションに寄せられました。"
1528
1529 #. type: Content of: <chapter><section><section><para>
1530 #: best-pkging-practices.dbk:724
1531 msgid ""
1532 "Keep usage notes to what they belong: the <filename>NEWS.Debian</filename>, "
1533 "or <filename>README.Debian</filename> file.  Only use notes for important "
1534 "notes which may directly affect the package usability.  Remember that notes "
1535 "will always block the install until confirmed or bother the user by email."
1536 msgstr ""
1537 "使い方のメモは載せるべきところへ載せましょう: <filename>NEWS.Debian</"
1538 "filename>、または <filename>README.Debian</filename> ファイルです。notes は"
1539 "パッケージのユーザビリティに直接影響する重要な記述にだけ使いましょう。notes "
1540 "は確認する (あるいはメールでユーザを悩ます) まで、インストールを常にブロックすること"
1541 "を覚えておいてください。"
1542
1543 # type: Content of: <chapter><section><section><para>
1544 #. type: Content of: <chapter><section><section><para>
1545 #: best-pkging-practices.dbk:730
1546 msgid ""
1547 "Carefully choose the questions priorities in maintainer scripts.  See "
1548 "<citerefentry> <refentrytitle>debconf-devel</refentrytitle> <manvolnum>7</"
1549 "manvolnum> </citerefentry> for details about priorities.  Most questions "
1550 "should use medium and low priorities."
1551 msgstr ""
1552 "メンテナスクリプト中の質問の優先度を注意深く選びましょう。優先度の詳細につい"
1553 "ては、<citerefentry> <refentrytitle>debconf-devel</refentrytitle> "
1554 "<manvolnum>7</manvolnum> </citerefentry> を参照してください。ほとんどの質問は"
1555 "優先度が medium あるいは low を使うべきです。"
1556
1557 # type: Content of: <chapter><section><section><title>
1558 #. type: Content of: <chapter><section><section><title>
1559 #: best-pkging-practices.dbk:738
1560 msgid "General recommendations for authors and translators"
1561 msgstr "作者と翻訳者に対する雑多な推奨"
1562
1563 # type: Content of: <chapter><section><section><section><title>
1564 #. type: Content of: <chapter><section><section><section><title>
1565 #: best-pkging-practices.dbk:740
1566 msgid "Write correct English"
1567 msgstr "正しい英語を書く"
1568
1569 # type: Content of: <chapter><section><section><section><para>
1570 #. type: Content of: <chapter><section><section><section><para>
1571 #: best-pkging-practices.dbk:742
1572 msgid ""
1573 "Most Debian package maintainers are not native English speakers.  So, "
1574 "writing properly phrased templates may not be easy for them."
1575 msgstr ""
1576 "ほとんどの Debian パッケージメンテナはネイティブの英語話者ではありません。で"
1577 "すので、正しいフレーズのテンプレートを書くのは彼らにとっては容易ではありませ"
1578 "ん。"
1579
1580 # type: Content of: <chapter><section><section><section><para>
1581 #. type: Content of: <chapter><section><section><section><para>
1582 #: best-pkging-practices.dbk:746
1583 msgid ""
1584 "Please use (and abuse) &email-debian-l10n-english; mailing list.  Have your "
1585 "templates proofread."
1586 msgstr ""
1587 "&email-debian-l10n-english; メーリングリストを利用してください (むしろ乱用し"
1588 "てください)。テンプレートを査読してもらいましょう。"
1589
1590 #. type: Content of: <chapter><section><section><section><para>
1591 #: best-pkging-practices.dbk:750
1592 msgid ""
1593 "Badly written templates give a poor image of your package, of your work... "
1594 "or even of Debian itself."
1595 msgstr ""
1596 "下手に書かれたテンプレートは、パッケージに対して、そしてあなたの作業に対し"
1597 "て、さらには Debian それ自体にすら対して、悪い印象を与えます。"
1598
1599 # type: Content of: <chapter><section><section><section><para>
1600 #. type: Content of: <chapter><section><section><section><para>
1601 #: best-pkging-practices.dbk:754
1602 msgid ""
1603 "Avoid technical jargon as much as possible.  If some terms sound common to "
1604 "you, they may be impossible to understand for others.  If you cannot avoid "
1605 "them, try to explain them (use the extended description).  When doing so, "
1606 "try to balance between verbosity and simplicity."
1607 msgstr ""
1608 "可能な限り技術的なジャーゴンを避けましょう。いくつかの用語があなたにとっては"
1609 "普通に聞こえても、他の人には理解不可能かもしれません。避けられない場合には、 "
1610 "(説明文を使って) 解説してみましょう。その場合には、冗長さとシンプルさのバラン"
1611 "スを取るようにしましょう。"
1612
1613 # type: Content of: <chapter><section><section><section><title>
1614 #. type: Content of: <chapter><section><section><section><title>
1615 #: best-pkging-practices.dbk:762
1616 msgid "Be kind to translators"
1617 msgstr "翻訳者へ丁寧に接する"
1618
1619 # type: Content of: <chapter><section><section><section><para>
1620 #. type: Content of: <chapter><section><section><section><para>
1621 #: best-pkging-practices.dbk:764
1622 msgid ""
1623 "Debconf templates may be translated.  Debconf, along with its sister package "
1624 "<command>po-debconf</command> offers a simple framework for getting "
1625 "templates translated by translation teams or even individuals."
1626 msgstr ""
1627 "debconf テンプレートは翻訳されるでしょう。debconf、そして関連する姉妹パッケー"
1628 "ジ <command>po-debconf</command> は、テンプレートを翻訳チームやさらには個人が"
1629 "翻訳できるようにする、シンプルなフレームワークを提供します。"
1630
1631 #. type: Content of: <chapter><section><section><section><para>
1632 #: best-pkging-practices.dbk:769
1633 msgid ""
1634 "Please use gettext-based templates.  Install <systemitem role=\"package\">po-"
1635 "debconf</systemitem> on your development system and read its documentation "
1636 "(<command>man po-debconf</command> is a good start)."
1637 msgstr ""
1638 "gettext ベースのテンプレートを使ってください。開発用のシステムに <systemitem "
1639 "role=\"package\">po-debconf</systemitem> をインストールしてドキュメントを読み"
1640 "ましょう (<command>man po-debconf</command> が取っ掛かりとして良いでしょう)。"
1641
1642 #. type: Content of: <chapter><section><section><section><para>
1643 #: best-pkging-practices.dbk:774
1644 msgid ""
1645 "Avoid changing templates too often.  Changing templates text induces more "
1646 "work to translators which will get their translation fuzzied.  A fuzzy "
1647 "translation is a string for which the original changed since it was "
1648 "translated, therefore requiring some update by a translator to be usable.  "
1649 "When changes are small enough, the original translation is kept in PO files "
1650 "but marked as <literal>fuzzy</literal>."
1651 msgstr ""
1652 "テンプレートを頻繁に変更しすぎることを避けましょう。テンプレート文の変更は、翻"
1653 "訳を fuzzy にして、さらなる作業を翻訳作業者に強います。fuzzy になっている翻訳"
1654 "文は、翻訳されてから元の文章が変更された文字列であり、使えるようにする"
1655 "には翻訳作業者による若干の更新が必要なものです。変更点が十分に小さい場合、"
1656 "<literal>fuzzy</literal> とマークされますが、元の翻訳文は PO ファイル中に保持"
1657 "されます。"
1658
1659 #. type: Content of: <chapter><section><section><section><para>
1660 #: best-pkging-practices.dbk:782
1661 msgid ""
1662 "If you plan to do changes to your original templates, please use the "
1663 "notification system provided with the <systemitem role=\"package\">po-"
1664 "debconf</systemitem> package, namely the <command>podebconf-report-po</"
1665 "command>, to contact translators.  Most active translators are very "
1666 "responsive and getting their work included along with your modified "
1667 "templates will save you additional uploads.  If you use gettext-based "
1668 "templates, the translator's name and e-mail addresses are mentioned in the "
1669 "PO files headers and will be used by <command>podebconf-report-po</command>."
1670 msgstr ""
1671 "大本のテンプレートを変更する予定がある場合、<systemitem role=\"package\">po-"
1672 "debconf</systemitem> パッケージで提供されている、<command>podebconf-report-"
1673 "po</command> という名の通知システムを使って翻訳作業者にコンタクトを取ってくだ"
1674 "さい。ほとんどのアクティブな翻訳作業者たちはとても反応が良く、変更を加えたテ"
1675 "ンプレートに対応するための作業をしてくれ、あなたが追加でアップロードする必要"
1676 "を減らしてくれます。gettext ベースのテンプレートを使っている場合、翻訳作業者"
1677 "の名前とメールアドレスは PO ファイルのヘッダに表示されており、"
1678 "<command>podebconf-report-po</command> によって使われます。"
1679
1680 #. type: Content of: <chapter><section><section><section><para>
1681 #: best-pkging-practices.dbk:794
1682 msgid "A recommended use of that utility is:"
1683 msgstr "このユーティリティの使い方のお勧めの使い方:"
1684
1685 #. type: Content of: <chapter><section><section><section><programlisting>
1686 #: best-pkging-practices.dbk:796
1687 #, no-wrap
1688 msgid "cd debian/po &amp;&amp; podebconf-report-po --call --languageteam --withtranslators --deadline=\"+10 days\""
1689 msgstr "cd debian/po &amp;&amp; podebconf-report-po --call --languageteam --withtranslators --deadline=\"+10 days\""
1690
1691 #. type: Content of: <chapter><section><section><section><para>
1692 #: best-pkging-practices.dbk:798
1693 msgid ""
1694 "This command will first synchronize the PO and POT files in <filename>debian/"
1695 "po</filename> with the templates files listed in <filename>debian/po/"
1696 "POTFILES.in</filename>.  Then, it will send a call for new translations, in "
1697 "the &email-debian-i18n; mailing list. Finally, it will also send a call for "
1698 "translation updates to the language team (mentioned in the <literal>Language-"
1699 "Team</literal> field of each PO file)  as well as the last translator "
1700 "(mentioned in <literal>Last-translator</literal>)."
1701 msgstr ""
1702 "このコマンドは、まず <filename>debian/po</filename> にある PO ファイルと POT "
1703 "ファイルを <filename>debian/po/POTFILES.in</filename> に記載しているテンプ"
1704 "レートファイルを使って同期します。そして、&email-debian-i18n; メーリングリス"
1705 "トに call for new translations (新しい翻訳作業の募集) を送信します。最後に、"
1706 "call for translation updates (翻訳更新作業者の募集) を (各 PO ファイルの "
1707 "<literal>Language-Team</literal> 欄に記載されている) 各言語チームおよび "
1708 "(<literal>Last-translator</literal> に記載されている) 最後の翻訳者に送信しま"
1709 "す。"
1710
1711 # lower than ... 以下?未満?
1712 # should be kept for... は only の意味も含んでいるように思う
1713 #. type: Content of: <chapter><section><section><section><para>
1714 #: best-pkging-practices.dbk:807
1715 msgid ""
1716 "Giving a deadline to translators is always appreciated, so that they can "
1717 "organize their work. Please remember that some translation teams have a "
1718 "formalized translate/review process and a delay lower than 10 days is "
1719 "considered as unreasonable. A shorter delay puts too much pressure on "
1720 "translation teams and should be kept for very minor changes."
1721 msgstr ""
1722 "翻訳作業者に締切りを伝えるのは常にお勧めです。それによって、彼らは作業を調"
1723 "整できます。いくつかの翻訳作業チームは形式化された翻訳/レビュープロセスを"
1724 "整えており、10 日未満の猶予は不合理であると考えられています。より短い"
1725 "猶予期間は強すぎるプレッシャーを翻訳チームに与えるので、非常に些細な変更点に"
1726 "対してのみに留めるべきです。"
1727
1728 # type: Content of: <chapter><section><section><section><para>
1729 #. type: Content of: <chapter><section><section><section><para>
1730 #: best-pkging-practices.dbk:814
1731 msgid ""
1732 "If in doubt, you may also contact the translation team for a given language "
1733 "(debian-l10n-xxxxx@&lists-host;), or the &email-debian-i18n; mailing list."
1734 msgstr ""
1735 "迷った場合は、該当の言語の翻訳チーム (debian-l10n-xxxxx@&lists-host;) か "
1736 "&email-debian-i18n; にも問い合わせましょう。"
1737
1738 # type: Content of: <chapter><section><section><section><title>
1739 #. type: Content of: <chapter><section><section><section><title>
1740 #: best-pkging-practices.dbk:821
1741 msgid "Unfuzzy complete translations when correcting typos and spelling"
1742 msgstr "誤字やミススペルを修正する際に fuzzy を取る"
1743
1744 #. type: Content of: <chapter><section><section><section><para>
1745 #: best-pkging-practices.dbk:823
1746 msgid ""
1747 "When the text of a debconf template is corrected and you are <emphasis role="
1748 "\"strong\">sure</emphasis> that the change does <emphasis role=\"strong"
1749 "\">not</emphasis> affect translations, please be kind to translators and "
1750 "<emphasis>unfuzzy</emphasis> their translations."
1751 msgstr ""
1752 "debconf テンプレートの文章が修正されて、その変更が翻訳に<emphasis role="
1753 "\"strong\">影響しない</emphasis>と<emphasis role=\"strong\">確信している</"
1754 "emphasis>場合には、翻訳作業者を労って翻訳文を <emphasis>fuzzy を取り除いて</"
1755 "emphasis>ください。"
1756
1757 # type: Content of: <chapter><section><section><section><para>
1758 #. type: Content of: <chapter><section><section><section><para>
1759 #: best-pkging-practices.dbk:829
1760 msgid ""
1761 "If you don't do so, the whole template will not be translated as long as a "
1762 "translator will send you an update."
1763 msgstr ""
1764 "そうしないと、翻訳作業者が更新をあなたに送るまでテンプレート全体は翻訳されて"
1765 "いない状態になります。"
1766
1767 #. type: Content of: <chapter><section><section><section><para>
1768 #: best-pkging-practices.dbk:833
1769 msgid ""
1770 "To <emphasis>unfuzzy</emphasis> translations, you can use two methods. The "
1771 "first method does <emphasis>preventive</emphasis> search and replace actions "
1772 "in the PO files. The latter uses <command>gettext</command> utilities to "
1773 "<emphasis>unfuzzy</emphasis> strings."
1774 msgstr ""
1775 "翻訳から <emphasis>fuzzy を取り除く</emphasis>場合、2 つの方法を選ぶことがで"
1776 "きます。1 つ目のやり方は<emphasis>preventive</emphasis> 検索を行い、PO ファイ"
1777 "ル中で置換作業を行います。もう一つのやり方は、<emphasis>fuzzy 文字列を取り除"
1778 "く</emphasis>のに <command>gettext</command> ユーティリティを使います。"
1779
1780 #. type: Content of: <chapter><section><section><section><para>
1781 #: best-pkging-practices.dbk:839
1782 msgid "<emphasis>Preventive unfuzzy</emphasis> method:"
1783 msgstr "<emphasis>fuzzy の予防</emphasis> 方法:"
1784
1785 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1786 #: best-pkging-practices.dbk:844
1787 msgid ""
1788 "Try finding a complete translation file <emphasis role=\"strong\">before</"
1789 "emphasis> the change:"
1790 msgstr ""
1791 "変更<emphasis role=\"strong\">前</emphasis>に完全な翻訳ファイルを見つけるよう"
1792 "にしてください:"
1793
1794 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1795 #: best-pkging-practices.dbk:847 best-pkging-practices.dbk:918
1796 #, no-wrap
1797 msgid "for i in debian/po/*po; do echo -n $i: ; msgfmt -o /dev/null --statistics $i; done"
1798 msgstr "for i in debian/po/*po; do echo -n $i: ; msgfmt -o /dev/null --statistics $i; done"
1799
1800 #FIXME-trans: 訳を再度見直す
1801 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1802 #: best-pkging-practices.dbk:849
1803 msgid ""
1804 "The file only showing <emphasis>translated</emphasis> items will be used as "
1805 "the reference file. If there is none (which should not happen if you take "
1806 "care to properly interact with translators), you should use the file with "
1807 "the most translated strings."
1808 msgstr ""
1809 "<emphasis>翻訳済み</emphasis>の項目のみを表示しているファイルは、参照ファイルとして"
1810 "扱われるようになります。何もなければ (もし、あなたが翻訳作業者と対応するのに適切に"
1811 "気を配っていたならば起こるはずがありません)、ほぼ翻訳されている文字列を含んだファイル"
1812 "を使います。"
1813
1814 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1815 #: best-pkging-practices.dbk:857
1816 msgid ""
1817 "Identify the needed change. In this example, let's assume the change is "
1818 "about fixing a typo in the word <literal>typo</literal> which was "
1819 "inadvertently written as <literal>tpyo</literal>. Therefore, the change is "
1820 "<command>s/tpyo/typo</command>."
1821 msgstr ""
1822 "必要な変更を認識します。この例では、文字列 <literal>typo</literal> が不注意に"
1823 "も <literal>tpyo</literal> として書かれている誤字の修正の変更であると仮定して"
1824 "みましょう。そのため、変更は <command>s/tpyo/typo</command> です。"
1825
1826 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1827 #: best-pkging-practices.dbk:865
1828 msgid ""
1829 "Check that this change is only applied to the place where you really intend "
1830 "to make it and <emphasis role=\"strong\">not</emphasis> in any other place "
1831 "where the original string is appropriate. This specifically applies to "
1832 "change in punctuation, for instance."
1833 msgstr ""
1834 "この変更が本当に意図した場所だけに適用されて、元々の文字列が適切な他の場所に"
1835 "は<emphasis role=\"strong\">適用されない</emphasis> ことを確認しましょう。例"
1836 "えば、これは特に句読点の変更に当てはまります。"
1837
1838 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1839 #: best-pkging-practices.dbk:873
1840 msgid ""
1841 "Modify all PO files by using <command>sed</command>. The use of that command "
1842 "is recommended over any text editor to guarantee that the files encoding "
1843 "will not be broken by the edit action:"
1844 msgstr ""
1845 "すべての PO ファイルを <command>sed</command> を使って変更してください。編集"
1846 "作業によってファイルのエンコーディングがこわされないことを保証するため、どの"
1847 "テキストエディタよりもこのコマンドの利用を推奨します。"
1848
1849 # type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1850 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1851 #: best-pkging-practices.dbk:878
1852 #, no-wrap
1853 msgid ""
1854 "cd debian/po\n"
1855 "for i in *.po; do sed -i 's/tpyo/typo/g' $i; done\n"
1856 msgstr ""
1857 "cd debian/po\n"
1858 "for i in *.po; do sed -i 's/tpyo/typo/g' $i; done\n"
1859
1860 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1861 #: best-pkging-practices.dbk:884
1862 msgid "Change the debconf template file to fix the typo."
1863 msgstr "debconf テンプレートファイルを誤字修正のために変更する。"
1864
1865 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1866 #: best-pkging-practices.dbk:889
1867 msgid "Run <command>debconf-updatepo</command>."
1868 msgstr "<command>debconf-updatepo</command> を実行する。"
1869
1870 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1871 #: best-pkging-practices.dbk:894
1872 msgid ""
1873 "Check the <filename>foo.po</filename> reference file. Its statistics should "
1874 "not be changed:"
1875 msgstr ""
1876 "<filename>foo.po</filename> 参照ファイルをチェックする。統計は変化がないはず"
1877 "です:"
1878
1879 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1880 #: best-pkging-practices.dbk:898
1881 #, no-wrap
1882 msgid "msgfmt -o /dev/null --statistics debian/po/foo.po\n"
1883 msgstr "msgfmt -o /dev/null --statistics debian/po/foo.po\n"
1884
1885 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1886 #: best-pkging-practices.dbk:903
1887 msgid ""
1888 "If the file's statistics changed, you did something wrong. Try again or ask "
1889 "for help on the &email-debian-i18n; mailing list."
1890 msgstr ""
1891 "ファイルの統計が変化していた場合、何かしら間違ったことをやっています。再度"
1892 "やってみるか、&email-debian-i18n; メーリングリストで助けを求めましょう。"
1893
1894 #. type: Content of: <chapter><section><section><section><para>
1895 #: best-pkging-practices.dbk:909
1896 msgid "Gettext utilities method:"
1897 msgstr "gettext ユーティリティを使う方法:"
1898
1899 # type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1900 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1901 #: best-pkging-practices.dbk:914
1902 msgid ""
1903 "Put all incomplete PO files out of the way.  You can check the completeness "
1904 "by using (needs the <systemitem role=\"package\">gettext</systemitem> "
1905 "package installed):"
1906 msgstr ""
1907 "不完全な PO ファイルすべてをどけておきましょう。以下の様にすれば達成度を"
1908 "チェックできます (<systemitem role=\"package\">gettext</systemitem> パッケー"
1909 "ジがインストールされている必要があります):"
1910
1911 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1912 #: best-pkging-practices.dbk:922
1913 msgid ""
1914 "Move all files which report either fuzzy strings to a temporary place.  "
1915 "Files which report no fuzzy strings (only translated and untranslated) will "
1916 "be kept in place."
1917 msgstr ""
1918 "fuzzy 文字列を報告してきたすべてのファイルを一時的な場所へ移動しましょう。何"
1919 "も fuzzy 文字列を報告しないファイル (翻訳済と未訳のみ) はそこに置いたままにし"
1920 "ておきます。"
1921
1922 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1923 #: best-pkging-practices.dbk:929
1924 msgid ""
1925 "Now <emphasis role=\"strong\">and now only</emphasis>, modify the template "
1926 "for the typos and check again that translation are not impacted (typos, "
1927 "spelling errors, sometimes typographical corrections are usually OK)."
1928 msgstr ""
1929 "今、<emphasis role=\"strong\">そうたった今</emphasis>、誤字の修正のためにテン"
1930 "プレートに手を入れて翻訳が影響を受けていないことを再確認しましょう (誤字、ス"
1931 "ペルミス、時には文言の修正なども大抵は OK です)。"
1932
1933 #FIXME-trans: You can see this by running the above again. の訳
1934 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1935 #: best-pkging-practices.dbk:936
1936 msgid ""
1937 "Run <command>debconf-updatepo</command>.  This will fuzzy all strings you "
1938 "modified in translations.  You can see this by running the above again."
1939 msgstr ""
1940 "<command>debconf-updatepo</command> を実行します。これは、翻訳中であなたが変"
1941 "更したすべての文字列を fuzzy にします。上記を再度実行すれば、これを見ることができます。"
1942
1943 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1944 #: best-pkging-practices.dbk:942
1945 msgid "Use the following command:"
1946 msgstr "以下のコマンドを利用してください:"
1947
1948 # type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1949 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1950 #: best-pkging-practices.dbk:944
1951 #, no-wrap
1952 msgid "for i in debian/po/*po; do msgattrib --output-file=$i --clear-fuzzy $i; done"
1953 msgstr "for i in debian/po/*po; do msgattrib --output-file=$i --clear-fuzzy $i; done"
1954
1955 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1956 #: best-pkging-practices.dbk:948
1957 msgid ""
1958 "Move back to <filename>debian/po</filename> the files which showed fuzzy "
1959 "strings in the first step."
1960 msgstr ""
1961 "最初の手順で fuzzy 文字列を表示していた <filename>debian/po</filename> のファ"
1962 "イルに戻ってください。"
1963
1964 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1965 #: best-pkging-practices.dbk:953
1966 msgid "Run <command>debconf-updatepo</command> again."
1967 msgstr "再度 <command>debconf-updatepo</command> を実行してください。"
1968
1969 # type: Content of: <chapter><section><section><section><title>
1970 #. type: Content of: <chapter><section><section><section><title>
1971 #: best-pkging-practices.dbk:960
1972 msgid "Do not make assumptions about interfaces"
1973 msgstr "インターフェイスについて仮定をしない"
1974
1975 #. type: Content of: <chapter><section><section><section><para>
1976 #: best-pkging-practices.dbk:962
1977 msgid ""
1978 "Templates text should not make reference to widgets belonging to some "
1979 "debconf interfaces.  Sentences like <emphasis>If you answer Yes...</"
1980 "emphasis> have no meaning for users of graphical interfaces which use "
1981 "checkboxes for boolean questions."
1982 msgstr ""
1983 "テンプレートのテキストは、debconf のインターフェイスに属するウィジェットには"
1984 "言及してはいけません。<emphasis>「はい」と答えた場合には...</emphasis> のよう"
1985 "な文章は、2 択の質問に対してチェックボックスを使うようなグラフィカルインター"
1986 "フェイスのユーザには何の意味もありません。"
1987
1988 # type: Content of: <chapter><section><section><section><para>
1989 #. type: Content of: <chapter><section><section><section><para>
1990 #: best-pkging-practices.dbk:967
1991 msgid ""
1992 "String templates should also avoid mentioning the default values in their "
1993 "description.  First, because this is redundant with the values seen by the "
1994 "users.  Also, because these default values may be different from the "
1995 "maintainer choices (for instance, when the debconf database was preseeded)."
1996 msgstr ""
1997 "文字列テンプレートは、説明文中でのデフォルト値について言及することも避けましょ"
1998 "う。まず、ユーザによってそして、デフォルト値はメンテナの考え方によって違う場"
1999 "合があるからです (たとえば、debconf データベースが preseed で指定されている場"
2000 "合など)。"
2001
2002 # type: Content of: <chapter><section><section><section><para>
2003 #. type: Content of: <chapter><section><section><section><para>
2004 #: best-pkging-practices.dbk:973
2005 msgid ""
2006 "More generally speaking, try to avoid referring to user actions.  Just give "
2007 "facts."
2008 msgstr ""
2009 "より一般的に言うと、ユーザの行動を参照させるのを避けるようにしましょう。"
2010 "単に事実を与えましょう。"
2011
2012 # type: Content of: <chapter><section><section><section><title>
2013 #. type: Content of: <chapter><section><section><section><title>
2014 #: best-pkging-practices.dbk:979
2015 msgid "Do not use first person"
2016 msgstr "一人称を使わない"
2017
2018 # speak for
2019 #. type: Content of: <chapter><section><section><section><para>
2020 #: best-pkging-practices.dbk:981
2021 msgid ""
2022 "You should avoid the use of first person (<emphasis>I will do this...</"
2023 "emphasis> or <emphasis>We recommend...</emphasis>).  The computer is not a "
2024 "person and the Debconf templates do not speak for the Debian developers.  "
2025 "You should use neutral construction.  Those of you who already wrote "
2026 "scientific publications, just write your templates like you would write a "
2027 "scientific paper.  However, try using active voice if still possible, like "
2028 "<emphasis>Enable this if ...</emphasis> instead of <emphasis>This can be "
2029 "enabled if...</emphasis>."
2030 msgstr ""
2031 "(<emphasis>I will do this...</emphasis> や <emphasis>We recommend...</"
2032 "emphasis> などの) 一人称の利用を避けましょう。コンピュータは人ではなく、"
2033 "debconf テンプレートは Debian 開発者を代弁するものではありません。中立的な解"
2034 "釈を行いましょう。あなたが科学論文を書いたことがあるならば、論文を書くのと同"
2035 "様にテンプレートを書きましょう。ですが、可能であれば <emphasis>This can be "
2036 "enabled if...</emphasis> ではなく <emphasis>Enable this if ...</emphasis> な"
2037 "どとして生の声を届けるようにしましょう。"
2038
2039 # type: Content of: <chapter><section><section><section><title>
2040 #. type: Content of: <chapter><section><section><section><title>
2041 #: best-pkging-practices.dbk:991
2042 msgid "Be gender neutral"
2043 msgstr "性差に対して中立であれ"
2044
2045 # type: Content of: <chapter><section><section><section><para>
2046 #. type: Content of: <chapter><section><section><section><para>
2047 #: best-pkging-practices.dbk:993
2048 msgid ""
2049 "The world is made of men and women.  Please use gender-neutral constructions "
2050 "in your writing."
2051 msgstr ""
2052 "世界は、男と女によって成り立っています。記述の際には、性差に対して中立な書き"
2053 "方を行ってください。"
2054
2055 # type: Content of: <chapter><section><section><title>
2056 #. type: Content of: <chapter><section><section><title>
2057 #: best-pkging-practices.dbk:1001
2058 msgid "Templates fields definition"
2059 msgstr "テンプレートのフィールド定義"
2060
2061 # type: Content of: <chapter><section><section><para>
2062 #. type: Content of: <chapter><section><section><para>
2063 #: best-pkging-practices.dbk:1003
2064 msgid ""
2065 "This part gives some information which is mostly taken from the "
2066 "<citerefentry> <refentrytitle>debconf-devel</refentrytitle> <manvolnum>7</"
2067 "manvolnum> </citerefentry> manual page."
2068 msgstr ""
2069 "この章の情報は、ほとんどを <citerefentry> <refentrytitle>debconf-devel</"
2070 "refentrytitle> <manvolnum>7</manvolnum> </citerefentry> マニュアルページから"
2071 "得ています。"
2072
2073 # type: Content of: <chapter><section><section><section><title>
2074 #. type: Content of: <chapter><section><section><section><title>
2075 #: best-pkging-practices.dbk:1008
2076 msgid "Type"
2077 msgstr "Type"
2078
2079 #. type: Content of: <chapter><section><section><section><section><title>
2080 #: best-pkging-practices.dbk:1010
2081 msgid "string"
2082 msgstr "string"
2083
2084 # type: Content of: <chapter><section><section><section><section><para>
2085 #. type: Content of: <chapter><section><section><section><section><para>
2086 #: best-pkging-practices.dbk:1012
2087 msgid ""
2088 "Results in a free-form input field that the user can type any string into."
2089 msgstr ""
2090 "ユーザがどのような文字列でも記述可能な自由記述形式の入力フィールドの結果。"
2091
2092 #. type: Content of: <chapter><section><section><section><section><title>
2093 #: best-pkging-practices.dbk:1017
2094 msgid "password"
2095 msgstr "password"
2096
2097 # type: Content of: <chapter><section><section><section><section><para>
2098 #. type: Content of: <chapter><section><section><section><section><para>
2099 #: best-pkging-practices.dbk:1019
2100 msgid ""
2101 "Prompts the user for a password.  Use this with caution; be aware that the "
2102 "password the user enters will be written to debconf's database.  You should "
2103 "probably clean that value out of the database as soon as is possible."
2104 msgstr ""
2105 "ユーザにパスワードの入力を求めます。これを使う場合は注意して使ってください: "
2106 "ユーザが入力したパスワードは debconf のデータベースに書き込まれることに注意し"
2107 "てください。おそらく、この値をデータベースから可能な限り早く消す必要がありま"
2108 "す。"
2109
2110 #. type: Content of: <chapter><section><section><section><section><title>
2111 #: best-pkging-practices.dbk:1026
2112 msgid "boolean"
2113 msgstr "boolean"
2114
2115 # type: Content of: <chapter><section><section><section><section><para>
2116 #. type: Content of: <chapter><section><section><section><section><para>
2117 #: best-pkging-practices.dbk:1028
2118 msgid ""
2119 "A true/false choice.  Remember: true/false, <emphasis role=\"strong\">not "
2120 "yes/no</emphasis>..."
2121 msgstr ""
2122 "true/false の選択です。注意点: true/false であって、<emphasis role=\"strong"
2123 "\">yes/no ではありません</emphasis>..."
2124
2125 #. type: Content of: <chapter><section><section><section><section><title>
2126 #: best-pkging-practices.dbk:1034
2127 msgid "select"
2128 msgstr "select"
2129
2130 #. type: Content of: <chapter><section><section><section><section><para>
2131 #: best-pkging-practices.dbk:1036
2132 msgid ""
2133 "A choice between one of a number of values.  The choices must be specified "
2134 "in a field named 'Choices'.  Separate the possible values with commas and "
2135 "spaces, like this: <literal>Choices: yes, no, maybe</literal>."
2136 msgstr ""
2137 "複数の値から一つを選びます。選択するものは 'Choices' というフィールド名で指定"
2138 "されている必要があります。利用可能な値をコンマとスペースで区切ってください。"
2139 "以下のようになります: <literal>Choices: yes, no, maybe</literal>"
2140
2141 #. type: Content of: <chapter><section><section><section><section><para>
2142 #: best-pkging-practices.dbk:1041
2143 msgid ""
2144 "If choices are translatable strings, the 'Choices' field may be marked as "
2145 "translatable by using <literal>__Choices</literal>. The double underscore "
2146 "will split out each choice in a separate string."
2147 msgstr ""
2148 "選択肢が翻訳可能な文字列である場合、'Choices' フィールドは "
2149 "<literal>__Choices</literal> を使って翻訳可能であることを示しておくと良いで"
2150 "しょう。2つのアンダースコアは、各選択肢を分かれた文字列に分割してくれます。"
2151
2152 #. type: Content of: <chapter><section><section><section><section><para>
2153 #: best-pkging-practices.dbk:1046
2154 msgid ""
2155 "The <command>po-debconf</command> system also offers interesting "
2156 "possibilities to only mark <emphasis role=\"strong\">some</emphasis> choices "
2157 "as translatable.  Example:"
2158 msgstr ""
2159 "<command>po-debconf</command> システムは、翻訳可能な<emphasis role=\"strong\">"
2160 "いくつかの</emphasis>選択肢のみをマークする面白い機能を提供してくれます。例:"
2161
2162 #. type: Content of: <chapter><section><section><section><section><programlisting>
2163 #: best-pkging-practices.dbk:1051
2164 #, no-wrap
2165 msgid ""
2166 "Template: foo/bar\n"
2167 "Type: Select\n"
2168 "#flag:translate:3\n"
2169 "__Choices: PAL, SECAM, Other\n"
2170 "_Description: TV standard:\n"
2171 " Please choose the TV standard used in your country.\n"
2172 msgstr ""
2173 "Template: foo/bar\n"
2174 "Type: Select\n"
2175 "#flag:translate:3\n"
2176 "__Choices: PAL, SECAM, Other\n"
2177 "_Description: TV standard:\n"
2178 " Please choose the TV standard used in your country.\n"
2179
2180 #. type: Content of: <chapter><section><section><section><section><para>
2181 #: best-pkging-practices.dbk:1059
2182 msgid ""
2183 "In that example, only the 'Other' string is translatable while others are "
2184 "acronyms that should not be translated. The above allows only 'Other' to be "
2185 "included in PO and POT files."
2186 msgstr ""
2187 "この例では、他は頭文字から構成されていて翻訳できませんが、'Other' 文字列だけ"
2188 "は翻訳可能です。上記では 'Other' だけが PO および POT ファイルに含めることが"
2189 "できます。"
2190
2191 #. type: Content of: <chapter><section><section><section><section><para>
2192 #: best-pkging-practices.dbk:1064
2193 msgid ""
2194 "The debconf templates flag system offers many such possibilities. The "
2195 "<citerefentry> <refentrytitle>po-debconf</refentrytitle> <manvolnum>7</"
2196 "manvolnum> </citerefentry> manual page lists all these possibilities."
2197 msgstr ""
2198 "debconf テンプレートのフラグシステムは、この様な機能をたくさん提供します。"
2199 "<citerefentry> <refentrytitle>po-debconf</refentrytitle> <manvolnum>7</"
2200 "manvolnum> </citerefentry> マニュアルページでは、これらの利用可能な機能をすべ"
2201 "て列挙しています。"
2202
2203 #. type: Content of: <chapter><section><section><section><section><title>
2204 #: best-pkging-practices.dbk:1072
2205 msgid "multiselect"
2206 msgstr "multiselect"
2207
2208 # type: Content of: <chapter><section><section><section><section><para>
2209 #. type: Content of: <chapter><section><section><section><section><para>
2210 #: best-pkging-practices.dbk:1074
2211 msgid ""
2212 "Like the select data type, except the user can choose any number of items "
2213 "from the choices list (or chose none of them)."
2214 msgstr ""
2215 "select データ型とそっくりですが、ユーザが選択肢一覧からいくつでも項目を選べ"
2216 "る (あるいはどれも選ばないこともできる) 点だけが違います。"
2217
2218 #. type: Content of: <chapter><section><section><section><section><title>
2219 #: best-pkging-practices.dbk:1080
2220 msgid "note"
2221 msgstr "note"
2222
2223 # type: Content of: <chapter><section><section><section><section><para>
2224 #. type: Content of: <chapter><section><section><section><section><para>
2225 #: best-pkging-practices.dbk:1082
2226 msgid ""
2227 "Rather than being a question per se, this datatype indicates a note that can "
2228 "be displayed to the user.  It should be used only for important notes that "
2229 "the user really should see, since debconf will go to great pains to make "
2230 "sure the user sees it; halting the install for them to press a key, and even "
2231 "mailing the note to them in some cases."
2232 msgstr ""
2233 "本来質問ではありませんが、このデータ型が示すのはユーザに表示することができる"
2234 "覚え書きです。debconf はユーザが必ず参照するようにするため、多大な苦痛を与"
2235 "えることになる (キーを押すためにインストールを休止したり、ある場合にはメモを"
2236 "メールさえする) ので、ユーザが知っておく必要がある重要な記述にのみ使うべきで"
2237 "す。"
2238
2239 #. type: Content of: <chapter><section><section><section><section><title>
2240 #: best-pkging-practices.dbk:1091
2241 msgid "text"
2242 msgstr "text"
2243
2244 # type: Content of: <chapter><section><section><section><section><para>
2245 #. type: Content of: <chapter><section><section><section><section><para>
2246 #: best-pkging-practices.dbk:1093
2247 msgid "This type is now considered obsolete: don't use it."
2248 msgstr ""
2249 "この type は現状では古すぎるものと考えられています: 使わないでください。"
2250
2251 #. type: Content of: <chapter><section><section><section><section><title>
2252 #: best-pkging-practices.dbk:1098
2253 msgid "error"
2254 msgstr "error"
2255
2256 # type: Content of: <chapter><section><section><section><section><para>
2257 #. type: Content of: <chapter><section><section><section><section><para>
2258 #: best-pkging-practices.dbk:1100
2259 msgid ""
2260 "This type is designed to handle error messages.  It is mostly similar to the "
2261 "note type.  Frontends may present it differently (for instance, the dialog "
2262 "frontend of cdebconf draws a red screen instead of the usual blue one)."
2263 msgstr ""
2264 "この type はエラーメッセージを取り扱うためにデザインされています。ほとんど "
2265 "note 型と似通っています。違いはフロントエンドが存在しているであろうことです "
2266 "(例えば、cdebconf の dialog フロントエンドは通常の青い画面ではなく、赤い画面"
2267 "を描画します)。"
2268
2269 # type: Content of: <chapter><section><section><section><section><para>
2270 #. type: Content of: <chapter><section><section><section><section><para>
2271 #: best-pkging-practices.dbk:1105
2272 msgid ""
2273 "It is recommended to use this type for any message that needs user attention "
2274 "for a correction of any kind."
2275 msgstr ""
2276 "何かを補正するためにユーザの注意を引く必要があるメッセージに対し、この type を使う"
2277 "のがお勧めです。"
2278
2279 # type: Content of: <chapter><section><section><section><title>
2280 #. type: Content of: <chapter><section><section><section><title>
2281 #: best-pkging-practices.dbk:1113
2282 msgid "Description: short and extended description"
2283 msgstr "Description: short および extended 説明文"
2284
2285 # type: Content of: <chapter><section><section><section><para>
2286 #. type: Content of: <chapter><section><section><section><para>
2287 #: best-pkging-practices.dbk:1115
2288 msgid ""
2289 "Template descriptions have two parts: short and extended.  The short "
2290 "description is in the Description: line of the template."
2291 msgstr ""
2292 "テンプレート説明文は 2 つのパートに分かれます: short と extended です。短い説"
2293 "明文 (short description) はテンプレートの Description: 行にあります。"
2294
2295 # type: Content of: <chapter><section><section><section><para>
2296 #. type: Content of: <chapter><section><section><section><para>
2297 #: best-pkging-practices.dbk:1119
2298 msgid ""
2299 "The short description should be kept short (50 characters or so) so that it "
2300 "may be accommodated by most debconf interfaces.  Keeping it short also helps "
2301 "translators, as usually translations tend to end up being longer than the "
2302 "original."
2303 msgstr ""
2304 "短い説明文は、ほとんどの debconf インターフェイスに適用するように、短く (50 "
2305 "文字程度に) しておく必要があります。通常、翻訳はオリジナルよりも長くなる傾向"
2306 "にあるので、短くすることは翻訳作業者を助けます。"
2307
2308 # type: Content of: <chapter><section><section><section><para>
2309 #. type: Content of: <chapter><section><section><section><para>
2310 #: best-pkging-practices.dbk:1125
2311 msgid ""
2312 "The short description should be able to stand on its own.  Some interfaces "
2313 "do not show the long description by default, or only if the user explicitely "
2314 "asks for it or even do not show it at all.  Avoid things like What do you "
2315 "want to do?"
2316 msgstr ""
2317 "短い説明文はそれ単体で成り立つようにしておく必要があります。いくつかのイン"
2318 "ターフェイスは、デフォルトでは長い説明文を表示せず、ユーザが明示的に尋ねたと"
2319 "きに表示するか、あるいは全く表示しません。「What do you want to do?」のような"
2320 "表現を避けてください。"
2321
2322 # type: Content of: <chapter><section><section><section><para>
2323 #. type: Content of: <chapter><section><section><section><para>
2324 #: best-pkging-practices.dbk:1131
2325 msgid ""
2326 "The short description does not necessarily have to be a full sentence.  This "
2327 "is part of the keep it short and efficient recommendation."
2328 msgstr ""
2329 "短い説明文は完全な文章である必要はありません。これは文章を短くしておき、効率"
2330 "的に推奨を行うためです。"
2331
2332 # type: Content of: <chapter><section><section><section><para>
2333 #. type: Content of: <chapter><section><section><section><para>
2334 #: best-pkging-practices.dbk:1135
2335 msgid ""
2336 "The extended description should not repeat the short description word for "
2337 "word.  If you can't think up a long description, then first, think some "
2338 "more.  Post to debian-devel.  Ask for help.  Take a writing class! That "
2339 "extended description is important.  If after all that you still can't come "
2340 "up with anything, leave it blank."
2341 msgstr ""
2342 "拡張された説明文 (extended description) は、短い説明文を一語一句繰り返しをし"
2343 "てはなりません。長い説明文章を思いつかなければ、まず、もっと考えてください。"
2344 "debian-devel に投稿しましょう。助けを求めましょう。文章の書き方講座を受講しま"
2345 "しょう! この拡張された説明文は重要です。もし、まったく何も思いつかなければ、"
2346 "空のままにしておきましょう。"
2347
2348 # type: Content of: <chapter><section><section><section><para>
2349 #. type: Content of: <chapter><section><section><section><para>
2350 #: best-pkging-practices.dbk:1142
2351 msgid ""
2352 "The extended description should use complete sentences.  Paragraphs should "
2353 "be kept short for improved readability.  Do not mix two ideas in the same "
2354 "paragraph but rather use another paragraph."
2355 msgstr ""
2356 "拡張された説明文は完全な文章である必要があります。段落を短くしておくのは可読"
2357 "性を高めます。同じ段落で 2 つの考えを混ぜてはいけません。代わりに別の段落を書"
2358 "きます。"
2359
2360 # type: Content of: <chapter><section><section><section><para>
2361 #. type: Content of: <chapter><section><section><section><para>
2362 #: best-pkging-practices.dbk:1147
2363 msgid ""
2364 "Don't be too verbose.  User tend to ignore too long screens.  20 lines are "
2365 "by experience a border you shouldn't cross, because that means that in the "
2366 "classical dialog interface, people will need to scroll, and lot of people "
2367 "just don't do that."
2368 msgstr ""
2369 "あまり冗長にしないようにしてください。ユーザは長すぎる画面を無視しようとしま"
2370 "す。経験からすると、20 行が越えてはならない境界です。何故ならば、クラシックな"
2371 "ダイアログインターフェイスでは、スクロールする必要がでてくることになり、そし"
2372 "て多くの人がスクロールなどしないからです。"
2373
2374 # type: Content of: <chapter><section><section><section><para>
2375 #. type: Content of: <chapter><section><section><section><para>
2376 #: best-pkging-practices.dbk:1153
2377 msgid ""
2378 "The extended description should <emphasis role=\"strong\">never</emphasis> "
2379 "include a question."
2380 msgstr ""
2381 "拡張された説明文では、質問を含めては<emphasis role=\"strong\">決していけませ"
2382 "ん</emphasis>。"
2383
2384 # type: Content of: <chapter><section><section><section><para>
2385 #. type: Content of: <chapter><section><section><section><para>
2386 #: best-pkging-practices.dbk:1157
2387 msgid ""
2388 "For specific rules depending on templates type (string, boolean, etc.), "
2389 "please read below."
2390 msgstr ""
2391 "テンプレートの type (string、boolean など) に応じた特別なルールについては、以"
2392 "下を読んでください。"
2393
2394 # type: Content of: <chapter><section><section><section><title>
2395 #. type: Content of: <chapter><section><section><section><title>
2396 #: best-pkging-practices.dbk:1163
2397 msgid "Choices"
2398 msgstr "Choices"
2399
2400 #. type: Content of: <chapter><section><section><section><para>
2401 #: best-pkging-practices.dbk:1165
2402 msgid ""
2403 "This field should be used for select and multiselect types.  It contains the "
2404 "possible choices which will be presented to users.  These choices should be "
2405 "separated by commas."
2406 msgstr ""
2407 "このフィールドは select あるいは multiselect 型に使ってください。これには、"
2408 "ユーザに表示される可能な選択肢が含まれます。これらの選択肢はコンマで区切る必"
2409 "要があります。"
2410
2411 # type: Content of: <chapter><section><section><section><title>
2412 #. type: Content of: <chapter><section><section><section><title>
2413 #: best-pkging-practices.dbk:1172
2414 msgid "Default"
2415 msgstr "Default"
2416
2417 # type: Content of: <chapter><section><section><section><para>
2418 #. type: Content of: <chapter><section><section><section><para>
2419 #: best-pkging-practices.dbk:1174
2420 msgid ""
2421 "This field is optional.  It contains the default answer for string, select "
2422 "and multiselect templates.  For multiselect templates, it may contain a "
2423 "comma-separated list of choices."
2424 msgstr ""
2425 "このフィールドはオプションです。これには、string、select あるいは "
2426 "multiselect のデフォルトでの答えが含まれます。multiselect テンプレートの場"
2427 "合、コンマで区切られた選択肢一覧が含まれます。"
2428
2429 # type: Content of: <chapter><section><section><title>
2430 #. type: Content of: <chapter><section><section><title>
2431 #: best-pkging-practices.dbk:1183
2432 msgid "Templates fields specific style guide"
2433 msgstr "テンプレートのフィールド固有スタイルガイド"
2434
2435 # type: Content of: <chapter><section><section><section><title>
2436 #. type: Content of: <chapter><section><section><section><title>
2437 #: best-pkging-practices.dbk:1185
2438 msgid "Type field"
2439 msgstr "Type フィールド"
2440
2441 # type: Content of: <chapter><section><section><section><para>
2442 #. type: Content of: <chapter><section><section><section><para>
2443 #: best-pkging-practices.dbk:1187
2444 msgid ""
2445 "No specific indication except: use the appropriate type by referring to the "
2446 "previous section."
2447 msgstr ""
2448 "特別な指定はありません。一点だけ、その前のセクションを参照して適切な type を使っ"
2449 "てください。"
2450
2451 # type: Content of: <chapter><section><section><section><title>
2452 #. type: Content of: <chapter><section><section><section><title>
2453 #: best-pkging-practices.dbk:1193
2454 msgid "Description field"
2455 msgstr "Description フィールド"
2456
2457 # type: Content of: <chapter><section><section><section><para>
2458 #. type: Content of: <chapter><section><section><section><para>
2459 #: best-pkging-practices.dbk:1195
2460 msgid ""
2461 "Below are specific instructions for properly writing the Description (short "
2462 "and extended) depending on the template type."
2463 msgstr ""
2464 "以下は、テンプレートの型に応じて適切な Description (short および extended) を"
2465 "書くための特別な指示です。"
2466
2467 # type: Content of: <chapter><section><section><section><section><title>
2468 #. type: Content of: <chapter><section><section><section><section><title>
2469 #: best-pkging-practices.dbk:1199
2470 msgid "String/password templates"
2471 msgstr "String/password テンプレート"
2472
2473 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2474 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2475 #: best-pkging-practices.dbk:1203
2476 #, fuzzy
2477 msgid ""
2478 "The short description is a prompt and <emphasis role=\"strong\">not</"
2479 "emphasis> a title.  Avoid question style prompts (IP Address?) in favour of "
2480 "opened prompts (IP address:).  The use of colons is recommended."
2481 msgstr ""
2482 "短い説明文は、プロンプトであってタイトルでは<emphasis role=\"strong\">ありません</"
2483 "emphasis>。質問形式のプロンプト (IP アドレスは?) を避け、代わりに開いた形のプロ"
2484 "ンプト (IP アドレス:) を使ってください。コロン (:) の使用をお勧めします。"
2485
2486 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2487 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2488 #: best-pkging-practices.dbk:1210
2489 msgid ""
2490 "The extended description is a complement to the short description.  In the "
2491 "extended part, explain what is being asked, rather than ask the same "
2492 "question again using longer words.  Use complete sentences.  Terse writing "
2493 "style is strongly discouraged."
2494 msgstr ""
2495 "拡張された説明文は、短い説明文を補足します。拡張の部分では、長い文章"
2496 "を使って同じ質問を繰り返すのではなく、何を質問されているのかを説明します。完"
2497 "全な文章を書いてください。簡潔な書き方は強く忌避されます。"
2498
2499 # type: Content of: <chapter><section><section><section><section><title>
2500 #. type: Content of: <chapter><section><section><section><section><title>
2501 #: best-pkging-practices.dbk:1220
2502 msgid "Boolean templates"
2503 msgstr "Boolean テンプレート"
2504
2505 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2506 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2507 #: best-pkging-practices.dbk:1224
2508 msgid ""
2509 "The short description should be phrased in the form of a question which "
2510 "should be kept short and should generally end with a question mark.  Terse "
2511 "writing style is permitted and even encouraged if the question is rather "
2512 "long (remember that translations are often longer than original versions)."
2513 msgstr ""
2514 "短い説明文は、短いままで大抵の場合は ? で終わる質問の体裁の言い回しをせねば"
2515 "なりません。簡潔な書き方は許されており、質問が若干長い場合は推奨されすらしています "
2516 "(翻訳文は、大抵の場合原文よりも長くなるのを覚えておきましょう)。"
2517
2518 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2519 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2520 #: best-pkging-practices.dbk:1232
2521 msgid ""
2522 "Again, please avoid referring to specific interface widgets.  A common "
2523 "mistake for such templates is if you answer Yes-type constructions."
2524 msgstr ""
2525 "繰り返しますが、特定のインターフェイスのウィジェットを参照するのを避けてくだ"
2526 "さい。このようなテンプレートで良くある間違いは、「はい」と答える形かどうかで"
2527 "す。"
2528
2529 # type: Content of: <chapter><section><section><section><section><title>
2530 #. type: Content of: <chapter><section><section><section><section><title>
2531 #: best-pkging-practices.dbk:1240
2532 msgid "Select/Multiselect"
2533 msgstr "Select/Multiselect"
2534
2535 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2536 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2537 #: best-pkging-practices.dbk:1244
2538 msgid ""
2539 "The short description is a prompt and <emphasis role=\"strong\">not</"
2540 "emphasis> a title.  Do <emphasis role=\"strong\">not</emphasis> use useless "
2541 "Please choose...  constructions.  Users are clever enough to figure out they "
2542 "have to choose something...:)"
2543 msgstr ""
2544 "短い説明文は、プロンプトであってタイトルでは<emphasis role=\"strong\">ありませ"
2545 "ん</emphasis>。「Please choose...」のような意味の無い文章を文章を<emphasis "
2546 "role=\"strong\">使わないで</emphasis>ください。ユーザは何かを選ぶ必要があるく"
2547 "らいには十分賢いです... :)"
2548
2549 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2550 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2551 #: best-pkging-practices.dbk:1252
2552 msgid ""
2553 "The extended description will complete the short description.  It may refer "
2554 "to the available choices.  It may also mention that the user may choose more "
2555 "than one of the available choices, if the template is a multiselect one "
2556 "(although the interface often makes this clear)."
2557 msgstr ""
2558 "拡張された説明文は、短い説明文を完備します。これでは、利用可能な選択肢に言及する"
2559 "ことがあります。テンプレートが multiselect なものの場合、ユーザが選べる選択肢が 1 つ"
2560 "ではないことについても言及するかもしれません (インターフェイスが大抵これを明確"
2561 "にはしてくれますが)。"
2562
2563 # type: Content of: <chapter><section><section><section><section><title>
2564 #. type: Content of: <chapter><section><section><section><section><title>
2565 #: best-pkging-practices.dbk:1262
2566 msgid "Notes"
2567 msgstr "Note"
2568
2569 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2570 #: best-pkging-practices.dbk:1266
2571 msgid ""
2572 "The short description should be considered to be a <emphasis role=\"strong"
2573 "\">title</emphasis>."
2574 msgstr ""
2575 "短い説明文は<emphasis role=\"strong\">タイトル</emphasis>として扱われます。"
2576
2577 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2578 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2579 #: best-pkging-practices.dbk:1271
2580 msgid ""
2581 "The extended description is what will be displayed as a more detailed "
2582 "explanation of the note.  Phrases, no terse writing style."
2583 msgstr ""
2584 "拡張された説明文では、note のより詳細な説明を表示します。フレーズで、簡潔過ぎ"
2585 "ない書き方です。"
2586
2587 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2588 #: best-pkging-practices.dbk:1277
2589 msgid ""
2590 "<emphasis role=\"strong\">Do not abuse debconf.</emphasis> Notes are the "
2591 "most common way to abuse debconf.  As written in debconf-devel manual page: "
2592 "it's best to use them only for warning about very serious problems.  The "
2593 "<filename>NEWS.Debian</filename> or <filename>README.Debian</filename> files "
2594 "are the appropriate location for a lot of notes.  If, by reading this, you "
2595 "consider converting your Note type templates to entries in <filename>NEWS."
2596 "Debian</filename> or <filename>README.Debian</filename>, plus consider "
2597 "keeping existing translations for the future."
2598 msgstr ""
2599 "<emphasis role=\"strong\">debconf を乱用しないでください。</emphasis> note "
2600 "は、debconf の乱用で最も良く使われます。debconf-devel マニュアルペー"
2601 "ジに書かれています: とても深刻な問題について警告する場合のみに使うのがベスト"
2602 "です。多くの覚え書きについては、<filename>NEWS.Debian</filename> ファイルや "
2603 "<filename>README.Debian</filename> ファイルが適切な場所です。もし、これを読ん"
2604 "で、Note 型のテンプレートを <filename>NEWS.Debian</filename> あるいは "
2605 "<filename>README.Debian</filename> 中のエントリに変換することを考えた場合、既"
2606 "存の翻訳を捨てないことを検討してください。"
2607
2608 # type: Content of: <chapter><section><section><section><title>
2609 #. type: Content of: <chapter><section><section><section><title>
2610 #: best-pkging-practices.dbk:1292
2611 msgid "Choices field"
2612 msgstr "Choices フィールド"
2613
2614 # type: Content of: <chapter><section><section><section><para>
2615 #. type: Content of: <chapter><section><section><section><para>
2616 #: best-pkging-practices.dbk:1294
2617 msgid ""
2618 "If the Choices are likely to change often, please consider using the "
2619 "__Choices trick.  This will split each individual choice into a single "
2620 "string, which will considerably help translators for doing their work."
2621 msgstr ""
2622 "もし Choise が頻繁に変わるようであれば、__Choices という使い方をするのを検討"
2623 "してください。これは個々の選択項目を単一の文字列に分割するので、翻訳作業者が"
2624 "作業を行うのを助けてくれると考えられています。"
2625
2626 # type: Content of: <chapter><section><section><section><title>
2627 #. type: Content of: <chapter><section><section><section><title>
2628 #: best-pkging-practices.dbk:1301 best-pkging-practices.dbk:1339
2629 msgid "Default field"
2630 msgstr "Default フィールド"
2631
2632 #. type: Content of: <chapter><section><section><section><para>
2633 #: best-pkging-practices.dbk:1303
2634 msgid ""
2635 "If the default value, for a select template, is likely to vary depending on "
2636 "the user language (for instance, if the choice is a language choice), please "
2637 "use the _Default trick."
2638 msgstr ""
2639 "select のテンプレートで、デフォルト値がユーザの言語に応じて変化するようであれ"
2640 "ば、_Default という使い方をしてください (例えば、選択肢が言語の選択の場合"
2641 "等) 。"
2642
2643 #. type: Content of: <chapter><section><section><section><para>
2644 #: best-pkging-practices.dbk:1308
2645 msgid ""
2646 "This special field allow translators to put the most appropriate choice "
2647 "according to their own language.  It will become the default choice when "
2648 "their language is used while your own mentioned Default Choice will be used "
2649 "when using English."
2650 msgstr ""
2651 "この特別なフィールドによって、翻訳作業者は言語に応じたもっとも適切な選択肢を"
2652 "挿入することができるようになります。彼らの言語が選択された場合にデフォルトの"
2653 "選択になりますが、英語を使うときには最初に提示された Default Choice が使われ"
2654 "ます。"
2655
2656 # type: Content of: <chapter><section><section><section><para>
2657 #. type: Content of: <chapter><section><section><section><para>
2658 #: best-pkging-practices.dbk:1314
2659 msgid "Example, taken from the geneweb package templates:"
2660 msgstr "geneweb パッケージのテンプレートを例にとってみましょう:"
2661
2662 # 日本語が無かったので、適当に追加しました…
2663 #. type: Content of: <chapter><section><section><section><screen>
2664 #: best-pkging-practices.dbk:1317
2665 #, no-wrap
2666 msgid ""
2667 "Template: geneweb/lang\n"
2668 "Type: select\n"
2669 "__Choices: Afrikaans (af), Bulgarian (bg), Catalan (ca), Chinese (zh), Czech (cs), Danish (da), Dutch (nl), English (en), Esperanto (eo), Estonian (et), Finnish (fi), French (fr), German (de), Hebrew (he), Icelandic (is), Italian (it), Latvian (lv), Norwegian (no), Polish (pl), Portuguese (pt), Romanian (ro), Russian (ru), Spanish (es), Swedish (sv)\n"
2670 "# This is the default choice. Translators may put their own language here\n"
2671 "# instead of the default.\n"
2672 "# WARNING : you MUST use the ENGLISH NAME of your language\n"
2673 "# For instance, the french translator will need to put French (fr) here.\n"
2674 "_Default: English[ translators, please see comment in PO files]\n"
2675 "_Description: Geneweb default language:\n"
2676 msgstr ""
2677 "Template: geneweb/lang\n"
2678 "Type: select\n"
2679 "__Choices: Afrikaans (af), Bulgarian (bg), Catalan (ca), Chinese (zh), Czech (cs), Danish (da), Dutch (nl), English (en), Esperanto (eo), Estonian (et), Finnish (fi), French (fr), German (de), Hebrew (he), Icelandic (is), Italian (it), Japanese (ja), Latvian (lv), Norwegian (no), Polish (pl), Portuguese (pt), Romanian (ro), Russian (ru), Spanish (es), Swedish (sv)\n"
2680 "# This is the default choice. Translators may put their own language here\n"
2681 "# instead of the default.\n"
2682 "# WARNING : you MUST use the ENGLISH NAME of your language\n"
2683 "# For instance, the french translator will need to put French (fr) here.\n"
2684 "_Default: English[ translators, please see comment in PO files]\n"
2685 "_Description: Geneweb default language:\n"
2686
2687 # type: Content of: <chapter><section><section><section><para>
2688 #. type: Content of: <chapter><section><section><section><para>
2689 #: best-pkging-practices.dbk:1328
2690 msgid ""
2691 "Note the use of brackets which allow internal comments in debconf fields.  "
2692 "Also note the use of comments which will show up in files the translators "
2693 "will work with."
2694 msgstr ""
2695 "ブラケットを使うと、debconf のフィールド中に内部コメントができることに注意して"
2696 "ください。コメントの利用は、翻訳作業者が作業するファイルに表示されるのにも注"
2697 "意ください。"
2698
2699 #. type: Content of: <chapter><section><section><section><para>
2700 #: best-pkging-practices.dbk:1333
2701 msgid ""
2702 "The comments are needed as the _Default trick is a bit confusing: the "
2703 "translators may put their own choice"
2704 msgstr ""
2705 "_Default を使うやり方は、若干混乱するのでコメントが必要です: 翻訳者は自身の選"
2706 "択肢を書きます。"
2707
2708 # type: Content of: <chapter><section><section><section><para>
2709 #. type: Content of: <chapter><section><section><section><para>
2710 #: best-pkging-practices.dbk:1341
2711 msgid ""
2712 "Do NOT use empty default field.  If you don't want to use default values, do "
2713 "not use Default at all."
2714 msgstr ""
2715 "空のデフォルトフィールドを使っては「いけません」。デフォルト値を設定したくな"
2716 "いのであれば、Default は使うべきではありません。"
2717
2718 #. type: Content of: <chapter><section><section><section><para>
2719 #: best-pkging-practices.dbk:1345
2720 msgid ""
2721 "If you use po-debconf (and you <emphasis role=\"strong\">should</emphasis>, "
2722 "see <xref linkend=\"s6.5.2.2\"/>), consider making this field translatable, "
2723 "if you think it may be translated."
2724 msgstr ""
2725 "po-debconf を使うのであれば (そして <emphasis role=\"strong\">使うべき</"
2726 "emphasis> です、<xref linkend=\"s6.5.2.2\"/> 参照)、このフィールドが翻訳でき"
2727 "るのであれば、翻訳可能な状態にするのを検討しましょう。"
2728
2729 #. type: Content of: <chapter><section><section><section><para>
2730 #: best-pkging-practices.dbk:1350
2731 msgid ""
2732 "If the default value may vary depending on language/country (for instance "
2733 "the default value for a language choice), consider using the special "
2734 "_Default type documented in <citerefentry> <refentrytitle>po-debconf</"
2735 "refentrytitle> <manvolnum>7</manvolnum> </citerefentry>."
2736 msgstr ""
2737 "(例えば言語選択のデフォルト値など) デフォルト値が言語/地域に応じて変化するよ"
2738 "うであれば 、<citerefentry> <refentrytitle>po-debconf</refentrytitle> "
2739 "<manvolnum>7</manvolnum> </citerefentry> に記載されている特別な _Default 型を"
2740 "使うことを考えましょう。"
2741
2742 # type: Content of: <chapter><section><title>
2743 #. type: Content of: <chapter><section><title>
2744 #: best-pkging-practices.dbk:1362
2745 msgid "Internationalization"
2746 msgstr "国際化"
2747
2748 #. type: Content of: <chapter><section><para>
2749 #: best-pkging-practices.dbk:1364
2750 msgid ""
2751 "This section contains global information for developers to make translators' "
2752 "life easier.  More information for translators and developers interested in "
2753 "internationalization are available in the <ulink url=\"&url-i18n-l10n;"
2754 "\">Internationalisation and localisation in Debian</ulink> documentation."
2755 msgstr ""
2756 "この章では、開発者に対して、翻訳作業者の作業がより楽になるようにするための大"
2757 "まかな情報を含めています。国際化について興味を持っている翻訳作業者と開発者へ"
2758 "の詳細な情報は、<ulink url=\"&url-i18n-l10n;\">Internationalisation and "
2759 "localisation in Debian</ulink> で入手できます。"
2760
2761 # type: Content of: <chapter><section><section><title>
2762 #. type: Content of: <chapter><section><section><title>
2763 #: best-pkging-practices.dbk:1371
2764 msgid "Handling debconf translations"
2765 msgstr "debconf の翻訳を取り扱う"
2766
2767 # type: Content of: <chapter><section><section><para>
2768 #. type: Content of: <chapter><section><section><para>
2769 #: best-pkging-practices.dbk:1373
2770 msgid ""
2771 "Like porters, translators have a difficult task.  They work on many packages "
2772 "and must collaborate with many different maintainers.  Moreover, most of the "
2773 "time, they are not native English speakers, so you may need to be "
2774 "particularly patient with them."
2775 msgstr ""
2776 "移植作業者同様に、翻訳作業者は難しい課題を抱えています。多くのパッケージにつ"
2777 "いて作業を行い、多くの異なったメンテナと共同作業をする必要があります。さらに"
2778 "は、ほとんどの場合、彼らはネイティブな英語話者ではないので、あなたは特に忍耐"
2779 "強くあらねばいけないでしょう。"
2780
2781 # type: Content of: <chapter><section><section><para>
2782 #. type: Content of: <chapter><section><section><para>
2783 #: best-pkging-practices.dbk:1379
2784 msgid ""
2785 "The goal of <systemitem role=\"package\">debconf</systemitem> was to make "
2786 "packages configuration easier for maintainers and for users.  Originally, "
2787 "translation of debconf templates was handled with <command>debconf-"
2788 "mergetemplate</command>.  However, that technique is now deprecated; the "
2789 "best way to accomplish <systemitem role=\"package\">debconf</systemitem> "
2790 "internationalization is by using the <systemitem role=\"package\">po-"
2791 "debconf</systemitem> package.  This method is easier both for maintainer and "
2792 "translators; transition scripts are provided."
2793 msgstr ""
2794 "<systemitem role=\"package\">debconf</systemitem> のゴールはメンテナとユーザ"
2795 "にとってパッケージ設定を簡単にすることでした。元々、debconf テンプレートの翻"
2796 "訳は<command>debconf-mergetemplate</command> で行われていました。しかし、この"
2797 "やり方は現在は非推奨 (deprecated) です; <systemitem role=\"package"
2798 "\">debconf</systemitem> の国際化を成し遂げる最も良いやり方は、"
2799 "<systemitem role=\"package\">po-debconf</systemitem> パッケージを使うことで"
2800 "す。このやり方はメンテナと翻訳者の双方にとって、より楽なやり方です; 移行スク"
2801 "リプトが提供されています。"
2802
2803 #. type: Content of: <chapter><section><section><para>
2804 #: best-pkging-practices.dbk:1389
2805 msgid ""
2806 "Using <systemitem role=\"package\">po-debconf</systemitem>, the translation "
2807 "is stored in <filename>.po</filename> files (drawing from <command>gettext</"
2808 "command> translation techniques).  Special template files contain the "
2809 "original messages and mark which fields are translatable.  When you change "
2810 "the value of a translatable field, by calling <command>debconf-updatepo</"
2811 "command>, the translation is marked as needing attention from the "
2812 "translators.  Then, at build time, the <command>dh_installdebconf</command> "
2813 "program takes care of all the needed magic to add the template along with "
2814 "the up-to-date translations into the binary packages.  Refer to the "
2815 "<citerefentry> <refentrytitle>po-debconf</refentrytitle> <manvolnum>7</"
2816 "manvolnum> </citerefentry> manual page for details."
2817 msgstr ""
2818 "<systemitem role=\"package\">po-debconf</systemitem> を使うと、翻訳は "
2819 "<filename>.po</filename> ファイルに収められます (<command>gettext</command> "
2820 "による翻訳技術からの引き出しです)。特別なテンプレートファイルには、元の文章と、"
2821 "どのフィールドが翻訳可能かがマークされています。翻訳可能なフィールドの値を"
2822 "変更すると、<command>debconf-updatepo</command> を呼び出すことで、翻訳作業者"
2823 "の注意が必要なように翻訳にマークがされます。そして、生成時には <command>"
2824 "dh_installdebconf</command> プログラムが、テンプレートに加え、最新の翻訳を"
2825 "バイナリパッケージに追加するのに必要となる魔法について、すべての面倒を見ます。"
2826 "詳細は <citerefentry> <refentrytitle>po-debconf</refentrytitle> <manvolnum>"
2827 "7</manvolnum> </citerefentry> マニュアルページを参照してください。"
2828
2829 # type: Content of: <chapter><section><section><title>
2830 #. type: Content of: <chapter><section><section><title>
2831 #: best-pkging-practices.dbk:1405
2832 msgid "Internationalized documentation"
2833 msgstr "ドキュメントの国際化"
2834
2835 # type: Content of: <chapter><section><section><para>
2836 #. type: Content of: <chapter><section><section><para>
2837 #: best-pkging-practices.dbk:1407
2838 msgid ""
2839 "Internationalizing documentation is crucial for users, but a lot of labor.  "
2840 "There's no way to eliminate all that work, but you can make things easier "
2841 "for translators."
2842 msgstr ""
2843 "ドキュメントの国際化はユーザにとって極めて重要ですが、多くの労力がかかります。"
2844 "この作業をすべて除去する方法はありませんが、翻訳作業者を気楽にはできます。"
2845
2846 # FIXME: source control sysytem -> source control management system (SCM)?
2847 #. type: Content of: <chapter><section><section><para>
2848 #: best-pkging-practices.dbk:1412
2849 msgid ""
2850 "If you maintain documentation of any size, it is easier for translators if "
2851 "they have access to a source control system.  That lets translators see the "
2852 "differences between two versions of the documentation, so, for instance, "
2853 "they can see what needs to be retranslated.  It is recommended that the "
2854 "translated documentation maintain a note about what source control revision "
2855 "the translation is based on.  An interesting system is provided by <ulink "
2856 "url=\"&url-i18n-doc-check;\">doc-check</ulink> in the <systemitem role="
2857 "\"package\">debian-installer</systemitem> package, which shows an overview "
2858 "of the translation status for any given language, using structured comments "
2859 "for the current revision of the file to be translated and, for a translated "
2860 "file, the revision of the original file the translation is based on.  You "
2861 "might wish to adapt and provide that in your VCS area."
2862 msgstr ""
2863 "どのようなサイズであれドキュメントをメンテナンスしている場合、翻訳作業者が"
2864 "ソースコントロールシステムにアクセスできるのであれば、彼らの作業が楽になるで"
2865 "しょう。翻訳作業者が、ドキュメントの 2 つのバージョン間の違いを見ることができ"
2866 "るので、例えば、何を再翻訳すればいいのかがわかるようになります。翻訳されたド"
2867 "キュメントは、翻訳作業がどのソースコントロールリビジョンをベースにしているの"
2868 "かという記録を保持しておくことをお勧めします。<systemitem role=\"package"
2869 "\">debian-installer</systemitem> パッケージ中の <ulink url=\"&url-i18n-doc-"
2870 "check;\">doc-check</ulink> では興味深いシステムが提供されています。これは、"
2871 "翻訳すべき現在のリビジョンのファイルに対する構造化されているコメントを使って、"
2872 "指定されたあらゆる言語の翻訳状況の概要を表示し、翻訳されたファイルについては、"
2873 "翻訳がベースにしているオリジナルのファイルのリビジョンを表示します。自分の "
2874 "VCS 領域でこれを導入して利用した方が良いでしょう。"
2875
2876 # type: Content of: <chapter><section><section><para>
2877 #. type: Content of: <chapter><section><section><para>
2878 #: best-pkging-practices.dbk:1426
2879 msgid ""
2880 "If you maintain XML or SGML documentation, we suggest that you isolate any "
2881 "language-independent information and define those as entities in a separate "
2882 "file which is included by all the different translations.  This makes it "
2883 "much easier, for instance, to keep URLs up to date across multiple files."
2884 msgstr ""
2885 "XML あるいは SGML のドキュメントをメンテナンスしているのであれば、言語非依存"
2886 "の情報を分離し、それらをすべての異なった翻訳に含まれる分割されたファイル"
2887 "にエンティティとして定義した方が良いでしょう。これは、URL を複数のファイル間"
2888 "で最新に保つなど、作業をより楽にしてくれます。"
2889
2890 #. type: Content of: <chapter><section><section><para>
2891 #: best-pkging-practices.dbk:1432
2892 msgid ""
2893 "Some tools (e.g. <systemitem role=\"package\">po4a</systemitem>, <systemitem "
2894 "role=\"package\">poxml</systemitem>, or the <systemitem role=\"package"
2895 "\">translate-toolkit</systemitem>) are specialized in extracting the "
2896 "translatable material from different formats.  They produce PO files, a "
2897 "format quite common to translators, which permits to see what needs to be "
2898 "retranslated when the translated document is updated."
2899 msgstr ""
2900 "いくつかのツール (例: <systemitem role=\"package\">po4a</systemitem>、"
2901 "<systemitem role=\"package\">poxml</systemitem>、<systemitem role=\"package"
2902 "\">translate-toolkit</systemitem>) は異なった形式から翻訳可能な素材を展開する"
2903 "のに特化しています。これらは、翻訳作業者には極めて馴染み深い形式である PO "
2904 "ファイルを生成します。これによって、翻訳したドキュメントが更新された際に何を"
2905 "再翻訳すればよいのかを見ることを可能にしてくれます。"
2906
2907 # type: Content of: <chapter><section><title>
2908 #. type: Content of: <chapter><section><title>
2909 #: best-pkging-practices.dbk:1444
2910 msgid "Common packaging situations"
2911 msgstr "パッケージ化に於ける一般的なシチュエーション"
2912
2913 # type: Content of: <chapter><section><section><title>
2914 #. type: Content of: <chapter><section><section><title>
2915 #: best-pkging-practices.dbk:1455
2916 msgid "Packages using <command>autoconf</command>/<command>automake</command>"
2917 msgstr ""
2918 "<command>autoconf</command>/<command>automake</command> を使っているパッケー"
2919 "ジ"
2920
2921 # type: Content of: <chapter><section><section><para>
2922 #. type: Content of: <chapter><section><section><para>
2923 #: best-pkging-practices.dbk:1457
2924 msgid ""
2925 "Keeping <command>autoconf</command>'s <filename>config.sub</filename> and "
2926 "<filename>config.guess</filename> files up to date is critical for porters, "
2927 "especially on more volatile architectures.  Some very good packaging "
2928 "practices for any package using <command>autoconf</command> and/or "
2929 "<command>automake</command> have been synthesized in &file-bpp-autotools; "
2930 "from the <systemitem role=\"package\">autotools-dev</systemitem> package.  "
2931 "You're strongly encouraged to read this file and to follow the given "
2932 "recommendations."
2933 msgstr ""
2934 "<command>autoconf</command> の <filename>config.sub</filename> および "
2935 "<filename>config.guess</filename> を最新に保ちつづけるのは、移植作業者、特に"
2936 "より移行中の状況であるアーキテクチャの移植作業者にとって非常に重要です。"
2937 "<command>autoconf</command> や <command>automake</command> を使うあらゆるパッ"
2938 "ケージについてのとても素晴らしいパッケージ化における教訓が <systemitem role="
2939 "\"package\">autotools-dev</systemitem> パッケージの &file-bpp-autotools; にま"
2940 "とめられています。このファイルを読んで書かれている推奨に従うことを強くお勧め"
2941 "します。"
2942
2943 # type: Content of: <chapter><section><section><title>
2944 #. type: Content of: <chapter><section><section><title>
2945 #: best-pkging-practices.dbk:1469
2946 msgid "Libraries"
2947 msgstr "ライブラリ"
2948
2949 # type: Content of: <chapter><section><section><para>
2950 #. type: Content of: <chapter><section><section><para>
2951 #: best-pkging-practices.dbk:1471
2952 msgid ""
2953 "Libraries are always difficult to package for various reasons.  The policy "
2954 "imposes many constraints to ease their maintenance and to make sure upgrades "
2955 "are as simple as possible when a new upstream version comes out.  Breakage "
2956 "in a library can result in dozens of dependent packages breaking."
2957 msgstr ""
2958 "ライブラリは様々な理由から常にパッケージにするのが難しいです。ポリシーは、メ"
2959 "ンテナンスに楽にし、新しいバージョンが開発元から出た際にアップグレードを可能"
2960 "な限りシンプルであることを確保するため、多くの制約を課しています。ライブラリ"
2961 "での破損は、依存している何十ものパッケージの破損を招き得ます。"
2962
2963 # type: Content of: <chapter><section><section><para>
2964 #. type: Content of: <chapter><section><section><para>
2965 #: best-pkging-practices.dbk:1477
2966 msgid ""
2967 "Good practices for library packaging have been grouped in <ulink url=\"&url-"
2968 "libpkg-guide;\">the library packaging guide</ulink>."
2969 msgstr ""
2970 "ライブラリのパッケージ化の良い作法が <ulink url=\"&url-libpkg-guide;\">the "
2971 "library packaging guide</ulink> にまとめられています。"
2972
2973 # type: Content of: <chapter><section><section><title>
2974 #. type: Content of: <chapter><section><section><title>
2975 #: best-pkging-practices.dbk:1484
2976 msgid "Documentation"
2977 msgstr "ドキュメント化"
2978
2979 # type: Content of: <chapter><section><section><para>
2980 #. type: Content of: <chapter><section><section><para>
2981 #: best-pkging-practices.dbk:1486
2982 msgid ""
2983 "Be sure to follow the <ulink url=\"&url-debian-policy;ch-docs.html\">Policy "
2984 "on documentation</ulink>."
2985 msgstr ""
2986 "<ulink url=\"&url-debian-policy;ch-docs.html\">ドキュメント化のポリシー</"
2987 "ulink>に忘れず従ってください。"
2988
2989 # ship は「出荷」の意味だが、Debian の場合は製品ではないので「リリース」とした
2990 # type: Content of: <chapter><section><section><para>
2991 #. type: Content of: <chapter><section><section><para>
2992 #: best-pkging-practices.dbk:1491
2993 msgid ""
2994 "If your package contains documentation built from XML or SGML, we recommend "
2995 "you not ship the XML or SGML source in the binary package(s).  If users want "
2996 "the source of the documentation, they should retrieve the source package."
2997 msgstr ""
2998 "あなたのパッケージが XML や SGML から生成されるドキュメントを含んでいる場合、"
2999 "XML や SGML のソースをバイナリパッケージに含めてリリースしないことをお勧めし"
3000 "ます。ユーザがドキュメントのソースを欲しい場合には、ソースパッケージを引っ"
3001 "張ってくれば良いのです。"
3002
3003 # type: Content of: <chapter><section><section><para>
3004 #. type: Content of: <chapter><section><section><para>
3005 #: best-pkging-practices.dbk:1496
3006 msgid ""
3007 "Policy specifies that documentation should be shipped in HTML format.  We "
3008 "also recommend shipping documentation in PDF and plain text format if "
3009 "convenient and if output of reasonable quality is possible.  However, it is "
3010 "generally not appropriate to ship plain text versions of documentation whose "
3011 "source format is HTML."
3012 msgstr ""
3013 "ポリシーではドキュメントは HTML 形式でリリースされるべきであると定めていま"
3014 "す。我々は、もし手がかからないで問題ない品質の出力が可能であれば、ドキュメン"
3015 "トを PDF 形式とテキスト形式でもリリースすることをお勧めしています。ですが、"
3016 "ソースの形式が HTML のドキュメントを普通のテキスト版でリリースするのは、大抵"
3017 "の場合は適切ではありません。"
3018
3019 # type: Content of: <chapter><section><section><para>
3020 #. type: Content of: <chapter><section><section><para>
3021 #: best-pkging-practices.dbk:1503
3022 msgid ""
3023 "Major shipped manuals should register themselves with <systemitem role="
3024 "\"package\">doc-base</systemitem> on installation.  See the <systemitem role="
3025 "\"package\">doc-base</systemitem> package documentation for more information."
3026 msgstr ""
3027 "リリースされたメジャーなマニュアルは、インストール時に<systemitem role="
3028 "\"package\">doc-base</systemitem>で登録されるべきです。詳細については、"
3029 "<systemitem role=\"package\">doc-base</systemitem> パッケージのドキュメントを"
3030 "参照してください。"
3031
3032 #. type: Content of: <chapter><section><section><para>
3033 #: best-pkging-practices.dbk:1509
3034 msgid ""
3035 "Debian policy (section 12.1) directs that manual pages should accompany "
3036 "every program, utility, and function, and suggests them for other objects "
3037 "like configuration files. If the work you are packaging does not have such "
3038 "manual pages, consider writing them for inclusion in your package, and "
3039 "submitting them upstream."
3040 msgstr ""
3041 "Debian ポリシー (12.1 章) では、マニュアルページはすべてのプログラム・ユー"
3042 "ティリティ・関数に対して付属すべきであり、設定ファイルのようなその他のものに"
3043 "ついては付属を提案を示しています。もし、あなたがパッケージングをしているもの"
3044 "がそのようなマニュアルページを持っていない場合は、パッケージに含めるために記"
3045 "述を行い、開発元 (upstream) へ送付することを検討してください。"
3046
3047 # FIXME-Trans: to a lesser extent の訳。
3048 #. type: Content of: <chapter><section><section><para>
3049 #: best-pkging-practices.dbk:1516
3050 msgid ""
3051 "The manpages do not need to be written directly in the troff format.  "
3052 "Popular source formats are Docbook, POD and reST, which can be converted "
3053 "using <command>xsltproc</command>, <command>pod2man</command> and "
3054 "<command>rst2man</command> respectively. To a lesser extent, the "
3055 "<command>help2man</command> program can also be used to write a stub."
3056 msgstr ""
3057 "manpage は直接 troff 形式で書く必要はありません。よく使われるソース形式は、"
3058 "Docbook、POD、reST で、それぞれ <command>xsltproc</command>、"
3059 "<command>pod2man</command>、<command>rst2man</command> を使うことで変換できま"
3060 "す。少なくとも、スタブを書くために <command>help2man</command> プログラムを使"
3061 "うことは可能です。"
3062
3063 # type: Content of: <chapter><section><section><title>
3064 #. type: Content of: <chapter><section><section><title>
3065 #: best-pkging-practices.dbk:1525
3066 msgid "Specific types of packages"
3067 msgstr "特定の種類のパッケージ"
3068
3069 # type: Content of: <chapter><section><section><para>
3070 #. type: Content of: <chapter><section><section><para>
3071 #: best-pkging-practices.dbk:1527
3072 msgid ""
3073 "Several specific types of packages have special sub-policies and "
3074 "corresponding packaging rules and practices:"
3075 msgstr ""
3076 "いくつかの特定の種類のパッケージは、特別なサブポリシーと対応するパッケージ化"
3077 "ルールおよびプラクティスを持っています:"
3078
3079 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3080 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3081 #: best-pkging-practices.dbk:1533
3082 msgid ""
3083 "Perl related packages have a <ulink url=\"&url-perl-policy;\">Perl policy</"
3084 "ulink>, some examples of packages following that policy are <systemitem role="
3085 "\"package\">libdbd-pg-perl</systemitem> (binary perl module) or <systemitem "
3086 "role=\"package\">libmldbm-perl</systemitem> (arch independent perl module)."
3087 msgstr ""
3088 "Perl 関連パッケージは、<ulink url=\"&url-perl-policy;\">Perl ポリシー</"
3089 "ulink> があり、このポリシーに従っているパッケージの例が <systemitem role="
3090 "\"package\">libdbd-pg-perl</systemitem> (バイナリ perl モジュール) または "
3091 "<systemitem role=\"package\">libmldbm-perl</systemitem> (アーキテクチャ非依"
3092 "存 perl モジュール) です。"
3093
3094 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3095 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3096 #: best-pkging-practices.dbk:1542
3097 msgid ""
3098 "Python related packages have their python policy; see &file-python-policy; "
3099 "in the <systemitem role=\"package\">python</systemitem> package."
3100 msgstr ""
3101 "Python 関連パッケージは、python ポリシーを持っています; <systemitem role="
3102 "\"package\">python</systemitem> パッケージ中の &file-python-policy; を参照し"
3103 "てください。"
3104
3105 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3106 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3107 #: best-pkging-practices.dbk:1549
3108 msgid ""
3109 "Emacs related packages have the <ulink url=\"&url-emacs-policy;\">emacs "
3110 "policy</ulink>."
3111 msgstr ""
3112 "Emacs 関連パッケージには、<ulink url=\"&url-emacs-policy;\">emacs ポリシー</"
3113 "ulink>があります。"
3114
3115 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3116 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3117 #: best-pkging-practices.dbk:1556
3118 msgid ""
3119 "Java related packages have their <ulink url=\"&url-java-policy;\">java "
3120 "policy</ulink>."
3121 msgstr ""
3122 "Java 関連パッケージには、<ulink url=\"&url-java-policy;\">java ポリシー</"
3123 "ulink>があります。"
3124
3125 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3126 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3127 #: best-pkging-practices.dbk:1563
3128 msgid ""
3129 "Ocaml related packages have their own policy, found in &file-ocaml-policy; "
3130 "from the <systemitem role=\"package\">ocaml</systemitem> package.  A good "
3131 "example is the <systemitem role=\"package\">camlzip</systemitem> source "
3132 "package."
3133 msgstr ""
3134 "Ocaml 関連パッケージは、固有のポリシーを持っており、<systemitem role="
3135 "\"package\">ocaml</systemitem> パッケージの &file-ocaml-policy; でみることが"
3136 "できます。良い例は <systemitem role=\"package\">camlzip</systemitem> ソース"
3137 "パッケージです。"
3138
3139 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3140 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3141 #: best-pkging-practices.dbk:1571
3142 msgid ""
3143 "Packages providing XML or SGML DTDs should conform to the recommendations "
3144 "found in the <systemitem role=\"package\">sgml-base-doc</systemitem> package."
3145 msgstr ""
3146 "XML や SGML DTD を提供しているパッケージは、<systemitem role=\"package"
3147 "\">sgml-base-doc</systemitem> パッケージ中の推奨に従わねばなりません。"
3148
3149 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3150 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
3151 #: best-pkging-practices.dbk:1577
3152 msgid ""
3153 "Lisp packages should register themselves with <systemitem role=\"package"
3154 "\">common-lisp-controller</systemitem>, about which see &file-lisp-"
3155 "controller;."
3156 msgstr ""
3157 "lisp パッケージは、パッケージ自身を <systemitem role=\"package\">common-lisp-"
3158 "controller</systemitem> に登録する必要があります。これについては、&file-lisp-"
3159 "controller; を参照してください。"
3160
3161 # type: Content of: <chapter><section><section><title>
3162 #. type: Content of: <chapter><section><section><title>
3163 #: best-pkging-practices.dbk:1607
3164 msgid "Architecture-independent data"
3165 msgstr "アーキテクチャ非依存のデータ"
3166
3167 # type: Content of: <chapter><section><section><para>
3168 #. type: Content of: <chapter><section><section><para>
3169 #: best-pkging-practices.dbk:1609
3170 msgid ""
3171 "It is not uncommon to have a large amount of architecture-independent data "
3172 "packaged with a program.  For example, audio files, a collection of icons, "
3173 "wallpaper patterns, or other graphic files.  If the size of this data is "
3174 "negligible compared to the size of the rest of the package, it's probably "
3175 "best to keep it all in a single package."
3176 msgstr ""
3177 "大量のアーキテクチャ非依存データがプログラムと共にパッケージ化されるのは、良"
3178 "くあることではありません。例えば、音声ファイル、アイコン集、様々な模様の壁"
3179 "紙、その他一般的な画像ファイルです。このデータのサイズがパッケージの残りのサ"
3180 "イズと比較して取るに足らないのであれば、おそらくは単一パッケージでひとまとめ"
3181 "にしておくのがベストでしょう。"
3182
3183 #. type: Content of: <chapter><section><section><para>
3184 #: best-pkging-practices.dbk:1616
3185 msgid ""
3186 "However, if the size of the data is considerable, consider splitting it out "
3187 "into a separate, architecture-independent package (<filename>_all.deb</"
3188 "filename>).  By doing this, you avoid needless duplication of the same data "
3189 "into eleven or more .debs, one per each architecture.  While this adds some "
3190 "extra overhead into the <filename>Packages</filename> files, it saves a lot "
3191 "of disk space on Debian mirrors.  Separating out architecture-independent "
3192 "data also reduces processing time of <command>lintian</command> (see <xref "
3193 "linkend=\"tools-lint\"/>) when run over the entire Debian archive."
3194 msgstr ""
3195 "しかし、データのサイズが考えた方が良い程であれば、分かれたアーキテクチャ非依"
3196 "存パッケージ (<filename>_all.deb</filename>) に分割するのを考えてください。こ"
3197 "れによって、11 あるいはそれ以上の .deb ファイルについて、1アーキテクチャごと"
3198 "に同じデータの不必要な重複を避けられます。これは <filename>Packages</"
3199 "filename> ファイルに更なるオーバーヘッドを追加しますが、Debian ミラーサーバ上"
3200 "で多くのディスク容量を節約します。アーキテクチャ非依存のデータを分割すること"
3201 "は、Debian アーカイブ全体に対して実行される <command>lintian</command> の処理"
3202 "時間の削減にもつながります (<xref linkend=\"tools-lint\"/> 参照)。"
3203
3204 # type: Content of: <chapter><section><section><title>
3205 #. type: Content of: <chapter><section><section><title>
3206 #: best-pkging-practices.dbk:1628
3207 msgid "Needing a certain locale during build"
3208 msgstr "ビルド中に特定のロケールが必要"
3209
3210 # type: Content of: <chapter><section><section><para>
3211 #. type: Content of: <chapter><section><section><para>
3212 #: best-pkging-practices.dbk:1630
3213 msgid ""
3214 "If you need a certain locale during build, you can create a temporary file "
3215 "via this trick:"
3216 msgstr ""
3217 "ビルド中に特定のロケールを必要とする場合、こんな技を使えば一時ファイルを作成"
3218 "できます:"
3219
3220 # type: Content of: <chapter><section><section><para>
3221 #. type: Content of: <chapter><section><section><para>
3222 #: best-pkging-practices.dbk:1634
3223 msgid ""
3224 "If you set <varname>LOCPATH</varname> to the equivalent of <filename>/usr/"
3225 "lib/locale</filename>, and <varname>LC_ALL</varname> to the name of the "
3226 "locale you generate, you should get what you want without being root.  "
3227 "Something like this:"
3228 msgstr ""
3229 "<varname>LOCPATH</varname> を <filename>/usr/lib/locale</filename> と同等のも"
3230 "のに、そして <varname>LC_ALL</varname> を生成したロケールの名前に設定すれば、"
3231 "root にならなくても欲しいものが手に入ります。こんな感じです:"
3232
3233 # type: Content of: <chapter><section><section><screen>
3234 #. type: Content of: <chapter><section><section><screen>
3235 #: best-pkging-practices.dbk:1639
3236 #, no-wrap
3237 msgid ""
3238 "LOCALE_PATH=debian/tmpdir/usr/lib/locale\n"
3239 "LOCALE_NAME=en_IN\n"
3240 "LOCALE_CHARSET=UTF-8\n"
3241 "\n"
3242 "mkdir -p $LOCALE_PATH\n"
3243 "localedef -i $LOCALE_NAME.$LOCALE_CHARSET -f $LOCALE_CHARSET $LOCALE_PATH/$LOCALE_NAME.$LOCALE_CHARSET\n"
3244 "\n"
3245 "# Using the locale\n"
3246 "LOCPATH=$LOCALE_PATH LC_ALL=$LOCALE_NAME.$LOCALE_CHARSET date\n"
3247 msgstr ""
3248 "LOCALE_PATH=debian/tmpdir/usr/lib/locale\n"
3249 "LOCALE_NAME=en_IN\n"
3250 "LOCALE_CHARSET=UTF-8\n"
3251 "\n"
3252 "mkdir -p $LOCALE_PATH\n"
3253 "localedef -i $LOCALE_NAME.$LOCALE_CHARSET -f $LOCALE_CHARSET $LOCALE_PATH/$LOCALE_NAME.$LOCALE_CHARSET\n"
3254 "\n"
3255 "# ロケールを使う\n"
3256 "LOCPATH=$LOCALE_PATH LC_ALL=$LOCALE_NAME.$LOCALE_CHARSET date\n"
3257
3258 # type: Content of: <chapter><section><section><title>
3259 #. type: Content of: <chapter><section><section><title>
3260 #: best-pkging-practices.dbk:1652
3261 msgid "Make transition packages deborphan compliant"
3262 msgstr "移行パッケージを deboprhan に適合するようにする"
3263
3264 # type: Content of: <chapter><section><section><para>
3265 #. type: Content of: <chapter><section><section><para>
3266 #: best-pkging-practices.dbk:1654
3267 msgid ""
3268 "Deborphan is a program for helping users to detect which packages can safely "
3269 "be removed from the system, i.e.  the ones that have no packages depending "
3270 "on them.  The default operation is to search only within the libs and "
3271 "oldlibs sections, to hunt down unused libraries.  But when passed the right "
3272 "argument, it tries to catch other useless packages."
3273 msgstr ""
3274 "deborphan は、どのパッケージがシステムから安全に削除できるか、ユーザが検出す"
3275 "るのを助けてくれるプログラムです; すなわち、どのパッケージも依存していないもので"
3276 "す。デフォルトの動作は、使われていないライブラリを見つけ出すために libs と "
3277 "oldlibs セクションからのみ検索を行います。ですが、正しい引数を渡せば、他の使"
3278 "われていないパッケージを捕らえようとします。"
3279
3280 # type: Content of: <chapter><section><section><para>
3281 #. type: Content of: <chapter><section><section><para>
3282 #: best-pkging-practices.dbk:1661
3283 msgid ""
3284 "For example, with <literal>--guess-dummy</literal>, <command>deborphan</"
3285 "command> tries to search all transitional packages which were needed for "
3286 "upgrade but which can now safely be removed.  For that, it looks for the "
3287 "string dummy or transitional in their short description."
3288 msgstr ""
3289 "例えば、<literal>--guess-dummy</literal> つきだと、<command>deborphan</"
3290 "command> はアップグレードに必要ではあったが、現在は問題なく削除できるすべての"
3291 "移行パッケージを探そうとします。これには、それぞれの短い説明文中に dummy ある"
3292 "いは transitional の文字列を探します。"
3293
3294 # type: Content of: <chapter><section><section><para>
3295 #. type: Content of: <chapter><section><section><para>
3296 #: best-pkging-practices.dbk:1668
3297 msgid ""
3298 "So, when you are creating such a package, please make sure to add this text "
3299 "to your short description.  If you are looking for examples, just run: "
3300 "<command>apt-cache search .|grep dummy</command> or <command>apt-cache "
3301 "search .|grep transitional</command>."
3302 msgstr ""
3303 "ですので、あなたがそのようなパッケージを作る際には、この文章を短い説明文に必"
3304 "ず追加してください。例を探す場合は、以下を実行してください: <command>apt-"
3305 "cache search .|grep dummy</command> または <command>apt-cache search .|grep "
3306 "transitional</command>"
3307
3308 #. type: Content of: <chapter><section><section><para>
3309 #: best-pkging-practices.dbk:1674
3310 msgid ""
3311 "Also, it is recommended to adjust its section to <literal>oldlibs</literal> "
3312 "and its priority to <literal>extra</literal> in order to ease "
3313 "<command>deborphan</command>'s job."
3314 msgstr ""
3315 "それから、<command>deborphan</command> の作業を楽にするため、section を "
3316 "<literal>oldlibs</literal>、priority を <literal>extra</literal> にするのもお"
3317 "勧めです。"
3318
3319 # type: Content of: <chapter><section><title>
3320 #. type: Content of: <chapter><section><section><title>
3321 #: best-pkging-practices.dbk:1683
3322 msgid "Best practices for <filename>.orig.tar.{gz,bz2,xz}</filename> files"
3323 msgstr ""
3324 "<filename>.orig.tar.{gz,bz2,xz}</filename> についてのベストプラクティス"
3325
3326 # type: Content of: <chapter><section><section><para>
3327 #. type: Content of: <chapter><section><section><para>
3328 #: best-pkging-practices.dbk:1685
3329 msgid ""
3330 "There are two kinds of original source tarballs: Pristine source and "
3331 "repackaged upstream source."
3332 msgstr ""
3333 "オリジナルのソース tarball には 2 種類あります: 手が入れられていない素のソース (Pristine source) "
3334 "と再パッケージした開発元のソース (repackaged upstream source) です。"
3335
3336 # type: Content of: <chapter><section><section><section><title>
3337 #. type: Content of: <chapter><section><section><section><title>
3338 #: best-pkging-practices.dbk:1689
3339 msgid "Pristine source"
3340 msgstr "手が入れられていないソース (Pristine source)"
3341
3342 #. type: Content of: <chapter><section><section><section><para><footnote><para>
3343 #: best-pkging-practices.dbk:1693
3344 msgid ""
3345 "We cannot prevent upstream authors from changing the tarball they distribute "
3346 "without also incrementing the version number, so there can be no guarantee "
3347 "that a pristine tarball is identical to what upstream <emphasis>currently</"
3348 "emphasis> distributing at any point in time.  All that can be expected is "
3349 "that it is identical to something that upstream once <emphasis>did</"
3350 "emphasis> distribute.  If a difference arises later (say, if upstream "
3351 "notices that he wasn't using maximal compression in his original "
3352 "distribution and then re-<command>gzip</command>s it), that's just too bad.  "
3353 "Since there is no good way to upload a new <filename>.orig.tar.{gz,bz2,xz}</"
3354 "filename> for the same version, there is not even any point in treating this "
3355 "situation as a bug."
3356 msgstr ""
3357 "我々は、配布されている tarball がバージョン番号をインクリメントすることなく、"
3358 "開発元の作者によって変更されるのを防ぐことはできません。ですので、手が入れられ"
3359 "ていない素の tarball が、どの時点でも開発元が<emphasis>現在</emphasis>配布して"
3360 "いると等しいものである保証はありません。期待できることは、一度は配布<emphasis>"
3361 "された</emphasis>ものと等しいものであるということだけです。後から違いが発生した"
3362 "場合 (そう、例えば upstream が元々の配布物が最大の圧縮率を使っていなかったことに気づい"
3363 "て、再度 <command>gzip</command> しなおした場合など)、それはとても残念なことです。"
3364 "同じバージョンに対して新しい <filename>.orig.tar.{gz,bz2,xz}</filename> をアップ"
3365 "ロードするのには良い方法がないので、この状況をバグと考える意味はありません。"
3366
3367 #. type: Content of: <chapter><section><section><section><para>
3368 #: best-pkging-practices.dbk:1691
3369 msgid ""
3370 "The defining characteristic of a pristine source tarball is that the "
3371 "<filename>.orig.tar.{gz,bz2,xz}</filename> file is byte-for-byte identical "
3372 "to a tarball officially distributed by the upstream author.<placeholder type="
3373 "\"footnote\" id=\"0\"/> This makes it possible to use checksums to easily "
3374 "verify that all changes between Debian's version and upstream's are "
3375 "contained in the Debian diff.  Also, if the original source is huge, "
3376 "upstream authors and others who already have the upstream tarball can save "
3377 "download time if they want to inspect your packaging in detail."
3378 msgstr ""
3379 "素のソース tarball (pristine source tarball) の特徴の定義は、<filename>.orig.tar."
3380 "{gz,bz2,xz}</filename> は、開発元の作者によって公式に配布された tarball と 1 バイト"
3381 "たりとも違わない、というものです。<placeholder type=\"footnote\" id=\"0\"/> "
3382 "これは、Debian diff 内に含まれているDebian バージョンと開発元のバージョン間の"
3383 "すべての違いを簡単に比較するのにチェックサムを使えるようになります。また、オリジナル"
3384 "のソースが巨大な場合、既に upstream の tarball を持っている upstream の作者と他の者は、"
3385 "あなたのパッケージを詳細に調査したい場合、ダウンロード時間を節約できます。"
3386
3387 # type: Content of: <chapter><section><section><section><para>
3388 #. type: Content of: <chapter><section><section><section><para>
3389 #: best-pkging-practices.dbk:1711
3390 msgid ""
3391 "There is no universally accepted guidelines that upstream authors follow "
3392 "regarding to the directory structure inside their tarball, but <command>dpkg-"
3393 "source</command> is nevertheless able to deal with most upstream tarballs as "
3394 "pristine source.  Its strategy is equivalent to the following:"
3395 msgstr ""
3396 "tarball 中のディレクトリ構成に関して開発元の作者が従う、万人に受け入れられて"
3397 "いるガイドラインというものはありませんが、それにも関わらず <command>dpkg-source"
3398 "</command> は ほとんどの upstream の tarball を素のソース (pristine source) "
3399 "として対処できます。そのやり方は以下の通りです:"
3400
3401 # type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3402 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3403 #: best-pkging-practices.dbk:1719
3404 msgid "It unpacks the tarball in an empty temporary directory by doing"
3405 msgstr "以下のようにして空の一時ディレクトリに tarball を展開します"
3406
3407 # type: Content of: <chapter><section><section><section><orderedlist><listitem><screen>
3408 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><screen>
3409 #: best-pkging-practices.dbk:1722
3410 #, no-wrap
3411 msgid "zcat path/to/<replaceable>packagename</replaceable>_<replaceable>upstream-version</replaceable>.orig.tar.gz | tar xf -\n"
3412 msgstr "zcat path/to/<replaceable>パッケージ名</replaceable>_<replaceable>開発元のバージョン</replaceable>.orig.tar.gz | tar xf -\n"
3413
3414 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3415 #: best-pkging-practices.dbk:1727
3416 msgid ""
3417 "If, after this, the temporary directory contains nothing but one directory "
3418 "and no other files, <command>dpkg-source</command> renames that directory to "
3419 "<filename><replaceable>packagename</replaceable>-<replaceable>upstream-"
3420 "version</replaceable>(.orig)</filename>.  The name of the top-level "
3421 "directory in the tarball does not matter, and is forgotten."
3422 msgstr ""
3423 "もし、この後で、一時ディレクトリが 1 つのディレクトリ以外含まず他にどのファイ"
3424 "ルも無い場合、<command>dpkg-source</command> はそのディレクトリを "
3425 "<filename><replaceable>パッケージ名</replaceable>-<replaceable>開発元のバー"
3426 "ジョン</replaceable>(.orig)</filename> にリネームします。tarball 中の最上位の"
3427 "ディレクトリ名は問題にはされず、忘れられます。"
3428
3429 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3430 #: best-pkging-practices.dbk:1736
3431 msgid ""
3432 "Otherwise, the upstream tarball must have been packaged without a common top-"
3433 "level directory (shame on the upstream author!).  In this case, "
3434 "<command>dpkg-source</command> renames the temporary directory "
3435 "<emphasis>itself</emphasis> to <filename><replaceable>packagename</"
3436 "replaceable>-<replaceable>upstream-version</replaceable>(.orig)</filename>."
3437 msgstr ""
3438 "それ以外の場合、upstream の tarball は共通の最上位ディレクトリ無しでパッケージさ"
3439 "れなくては いけません (upstream の作者よ、恥を知りなさい!)。この場合、"
3440 "<command>dpkg-source</command> は一時ディレクトリ<emphasis>そのもの</"
3441 "emphasis>を <filename><replaceable>パッケージ名</replaceable>-<replaceable>開"
3442 "発元のバージョン</replaceable>(.orig)</filename> へリネームします。"
3443
3444 # type: Content of: <chapter><section><section><section><title>
3445 #. type: Content of: <chapter><section><section><section><title>
3446 #: best-pkging-practices.dbk:1747
3447 msgid "Repackaged upstream source"
3448 msgstr "upstream のソースをパッケージしなおす"
3449
3450 # type: Content of: <chapter><section><section><section><para>
3451 #. type: Content of: <chapter><section><section><section><para>
3452 #: best-pkging-practices.dbk:1749
3453 msgid ""
3454 "You <emphasis role=\"strong\">should</emphasis> upload packages with a "
3455 "pristine source tarball if possible, but there are various reasons why it "
3456 "might not be possible.  This is the case if upstream does not distribute the "
3457 "source as gzipped tar at all, or if upstream's tarball contains non-DFSG-"
3458 "free material that you must remove before uploading."
3459 msgstr ""
3460 "パッケージは手が入っていない素のソース tarball と共にアップロード<emphasis role=\"strong\">す"
3461 "べき</emphasis>ですが、それが可能ではない場合が色々とあります。upstream がソース"
3462 "を gzip 圧縮した tarball を全く配布していない場合や、upstream の tarball が "
3463 "DFSG-free ではない、あなたがアップロード前に削除しなければならない素材を含ん"
3464 "でいる場合がこれにあたります。"
3465
3466 #. type: Content of: <chapter><section><section><section><para>
3467 #: best-pkging-practices.dbk:1756
3468 msgid ""
3469 "In these cases the developer must construct a suitable <filename>.orig.tar."
3470 "{gz,bz2,xz}</filename> file himself.  We refer to such a tarball as a "
3471 "repackaged upstream source.  Note that a repackaged upstream source is "
3472 "different from a Debian-native package.  A repackaged source still comes "
3473 "with Debian-specific changes in a separate <filename>.diff.gz</filename> or "
3474 "<filename>.debian.tar.{gz,bz2,xz}</filename> and still has a version number "
3475 "composed of <replaceable>upstream-version</replaceable> and "
3476 "<replaceable>debian-version</replaceable>."
3477 msgstr ""
3478 "この様な場合、開発者は適切な <filename>.orig.tar.{gz,bz2,xz}</filename> ファ"
3479 "イルを自身で準備する必要があります。この様な tarball を、再パッケージした開発"
3480 "元のソース (repackaged upstream source) と呼びます。再パッケージした開発元の"
3481 "ソースでは Debian ネイティブパッケージとは違うことに注意してください。再パッ"
3482 "ケージしたソースは、Debian 固有の変更点は分割された <filename>.diff.gz</"
3483 "filename> または <filename>.debian.tar.{gz,bz2,xz}</filename> のままであり、"
3484 "バージョン番号は <replaceable>開発元のバージョン</replaceable> と "
3485 "<replaceable>debian リビジョン</replaceable> から構成されたままです。"
3486
3487 #FIXME-trans: defend your desicion ... 以下。
3488 #. type: Content of: <chapter><section><section><section><para>
3489 #: best-pkging-practices.dbk:1765
3490 msgid ""
3491 "There may be cases where it is desirable to repackage the source even though "
3492 "upstream distributes a <filename>.tar.{gz,bz2,xz}</filename> that could in "
3493 "principle be used in its pristine form.  The most obvious is if "
3494 "<emphasis>significant</emphasis> space savings can be achieved by "
3495 "recompressing the tar archive or by removing genuinely useless cruft from "
3496 "the upstream archive.  Use your own discretion here, but be prepared to "
3497 "defend your decision if you repackage source that could have been pristine."
3498 msgstr ""
3499 "開発元が、原則的にはそのままの形で使える <filename>.tar.{gz,bz2,xz}</filename> "
3500 "を配布していたとしても再パッケージをしたくなるという場合がありえます。最も明解なのは、"
3501 "tar アーカイブを再圧縮することや upstream のアーカイブから純粋に使われていないゴミ"
3502 "を削除することで、<emphasis>非常に</emphasis>容量を節約できる時です。"
3503 "ここで慎重になって頂きたいのですが、ソースを再パッケージする場合は、決定を貫く用意を"
3504 "してください。"
3505
3506 # type: Content of: <chapter><section><title>
3507 #. type: Content of: <chapter><section><section><section><para>
3508 #: best-pkging-practices.dbk:1774
3509 msgid "A repackaged <filename>.orig.tar.{gz,bz2,xz}</filename>"
3510 msgstr ""
3511 "<filename>.orig.tar.{gz,bz2,xz}</filename> についてのベストプラクティス"
3512
3513 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3514 #: best-pkging-practices.dbk:1779
3515 msgid ""
3516 "<emphasis role=\"strong\">should</emphasis> be documented in the resulting "
3517 "source package.  Detailed information on how the repackaged source was "
3518 "obtained, and on how this can be reproduced should be provided in "
3519 "<filename>debian/copyright</filename>.  It is also a good idea to provide a "
3520 "<literal>get-orig-source</literal> target in your <filename>debian/rules</"
3521 "filename> file that repeats the process, as described in the Policy Manual, "
3522 "<ulink url=\"&url-debian-policy;ch-source.html#s-debianrules\">Main building "
3523 "script: <filename>debian/rules</filename></ulink>."
3524 msgstr ""
3525 "ソースパッケージの由来を<emphasis role=\"strong\">ドキュメントにすべき</"
3526 "emphasis>です。どうやってソースを得たのかという詳細情報が得たのか、どの様にす"
3527 "れば再生成できるのかを <filename>debian/copyright</filename> で提供しましょ"
3528 "う。ポリシーマニュアルで、<ulink url=\"&url-debian-policy;ch-source.html#s-"
3529 "debianrules\">メイン構築スクリプト: <filename>debian/rules</filename></"
3530 "ulink> に記述しているように、<filename>debian/rules</filename> に作業を繰り返"
3531 "してくれる <literal>get-orig-source</literal> ターゲットを追加するのも良い考"
3532 "えです。"
3533
3534 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para><footnote><para>
3535 #: best-pkging-practices.dbk:1794
3536 msgid ""
3537 "As a special exception, if the omission of non-free files would lead to the "
3538 "source failing to build without assistance from the Debian diff, it might be "
3539 "appropriate to instead edit the files, omitting only the non-free parts of "
3540 "them, and/or explain the situation in a <filename>README.source</filename> "
3541 "file in the root of the source tree.  But in that case please also urge the "
3542 "upstream author to make the non-free components easier separable from the "
3543 "rest of the source."
3544 msgstr ""
3545 "特別な例外として、non-free なファイルが Debian diff からの助けが無いとソース"
3546 "からのビルド失敗を引き起こす場合、適切な処置はファイルを編集するのではなく、"
3547 "non-free な部分を削除して、ソースツリーのルートに <filename>README.source</"
3548 "filename> ファイルとして状況を説明することです。ですがその場合、開発元の作者"
3549 "に non-free なコンポーネントを残りのソースから分離しやすくするように促して"
3550 "ください。"
3551
3552 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3553 #: best-pkging-practices.dbk:1792
3554 msgid ""
3555 "<emphasis role=\"strong\">should not</emphasis> contain any file that does "
3556 "not come from the upstream author(s), or whose contents has been changed by "
3557 "you.<placeholder type=\"footnote\" id=\"0\"/>"
3558 msgstr ""
3559 "開発元の作者由来ではないファイルや、あなたが内容を変更したファイルを含める"
3560 "<emphasis role=\"strong\">べきではありません</emphasis>。<placeholder type="
3561 "\"footnote\" id=\"0\"/>"
3562
3563 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3564 #: best-pkging-practices.dbk:1805
3565 msgid ""
3566 "<emphasis role=\"strong\">should</emphasis>, except where impossible for "
3567 "legal reasons, preserve the entire building and portablility infrastructure "
3568 "provided by the upstream author.  For example, it is not a sufficient reason "
3569 "for omitting a file that it is used only when building on MS-DOS.  "
3570 "Similarly, a <filename>Makefile</filename> provided by upstream should not "
3571 "be omitted even if the first thing your <filename>debian/rules</filename> "
3572 "does is to overwrite it by running a configure script."
3573 msgstr ""
3574 "法的理由から不可能であるものを除いて、開発元の作者が提供しているビルドおよび"
3575 "移植作業環境を完全に<emphasis role=\"strong\">保全すべき</emphasis>です。例え"
3576 "ば、ファイルを省略する理由として MS-DOS でのビルドにしか使われないから、とい"
3577 "うのは十分な理由にはなりません。同様に、開発元から提供されている "
3578 "<filename>Makefile</filename> を省略すべきではありません。たとえ "
3579 "<filename>debian/rules</filename> が最初にすることが configure スクリプトを実"
3580 "行してそれを上書きすることであったとしても、です。"
3581
3582 # type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3583 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3584 #: best-pkging-practices.dbk:1814
3585 msgid ""
3586 "(<emphasis>Rationale:</emphasis> It is common for Debian users who need to "
3587 "build software for non-Debian platforms to fetch the source from a Debian "
3588 "mirror rather than trying to locate a canonical upstream distribution point)."
3589 msgstr ""
3590 "(<emphasis>理由:</emphasis> Debian 以外のプラットフォームのためにソフト"
3591 "ウェアをビルドする必要がある Debian ユーザが、開発元の一次配布先を探そうとせ"
3592 "ずに Debian ミラーからソースを取得する、というのは普通です)。"
3593
3594 # FIXME-trans: pristine の訳
3595 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3596 #: best-pkging-practices.dbk:1821
3597 msgid ""
3598 "<emphasis role=\"strong\">should</emphasis> use "
3599 "<filename><replaceable>packagename</replaceable>-<replaceable>upstream-"
3600 "version</replaceable>.orig</filename> as the name of the top-level directory "
3601 "in its tarball.  This makes it possible to distinguish pristine tarballs "
3602 "from repackaged ones."
3603 msgstr ""
3604 "tarball の最上位ディレクトリの名前として <filename><replaceable>パッケージ名"
3605 "</replaceable>-<replaceable>開発元のバージョン</replaceable>.orig</filename> "
3606 "を<emphasis role=\"strong\">使うべき</emphasis>です。これは、大元の使用されていない tarball "
3607 "と再パッケージしたものを判別できるようにしてくれます。"
3608
3609 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3610 #: best-pkging-practices.dbk:1829
3611 msgid ""
3612 "<emphasis role=\"strong\">should</emphasis> be gzipped or bzipped with "
3613 "maximal compression."
3614 msgstr ""
3615 "gzip あるいは bzip で最大限<emphasis role=\"strong\">圧縮されるべき</"
3616 "emphasis>です。"
3617
3618 #. type: Content of: <chapter><section><section><section><title>
3619 #: best-pkging-practices.dbk:1836
3620 msgid "Changing binary files"
3621 msgstr "バイナリファイルの変更"
3622
3623 #. type: Content of: <chapter><section><section><section><para>
3624 #: best-pkging-practices.dbk:1838
3625 msgid ""
3626 "Sometimes it is necessary to change binary files contained in the original "
3627 "tarball, or to add binary files that are not in it. This is fully supported "
3628 "when using source packages in “3.0 (quilt)” format, see the "
3629 "<citerefentry><refentrytitle>dpkg-source</refentrytitle><manvolnum>1</"
3630 "manvolnum></citerefentry> manual page for details. When using the older "
3631 "format “1.0”, binary files can't be stored in the <filename>.diff.gz</"
3632 "filename> so you must store an <command>uuencode</command>d (or similar) "
3633 "version of the file(s)  and decode it at build time in <filename>debian/"
3634 "rules</filename> (and move it in its official location)."
3635 msgstr ""
3636 "オリジナルの tarball に含まれているバイナリファイルを変更する、あるいは存在し"
3637 "ていなかったバイナリファイルを追加する必要がある場合がしばしばあります。これ"
3638 "は、ソースパッケージが“3.0 (quilt)”形式を使っている場合は完全にサポートされて"
3639 "います。詳細は <citerefentry><refentrytitle>dpkg-source</"
3640 "refentrytitle><manvolnum>1</manvolnum></citerefentry> マニュアルのページを参"
3641 "照してください。古い“1.0”形式を使っている場合、バイナリファイルを <filename>."
3642 "diff.gz</filename> 中に保存できないので、<command>uuencode</command> (か類似"
3643 "のもの) を使ったファイルを保存し、<filename>debian/rules</filename> 中でビル"
3644 "ド時にデコードします (そしてファイルを正しい位置へ移動する)。"
3645
3646 # type: Content of: <chapter><section><section><title>
3647 #. type: Content of: <chapter><section><section><title>
3648 #: best-pkging-practices.dbk:1853
3649 msgid "Best practices for debug packages"
3650 msgstr "デバッグパッケージのベストプラクティス"
3651
3652 # FIXME-trans: otherwise?
3653 #. type: Content of: <chapter><section><section><para>
3654 #: best-pkging-practices.dbk:1855
3655 msgid ""
3656 "A debug package is a package with a name ending in -dbg, that contains "
3657 "additional information that <command>gdb</command> can use.  Since Debian "
3658 "binaries are stripped by default, debugging information, including function "
3659 "names and line numbers, is otherwise not available when running "
3660 "<command>gdb</command> on Debian binaries.  Debug packages allow users who "
3661 "need this additional debugging information to install it, without bloating a "
3662 "regular system with the information."
3663 msgstr ""
3664 "デバッグパッケージは名前が -dbg で終わっているもので、<command>gdb</command> "
3665 "が利用可能な追加情報を含んでいます。Debian のバイナリはデフォルトで strip さ"
3666 "れているので、関数名や行番号を含むデバッグ情報は、Debian のバイナリに "
3667 "<command>gdb</command> を走らせたときに利用できません。デバッグパッケージは、"
3668 "この追加デバッグ情報を必要とするユーザが、通常のシステムを巨大化させること無"
3669 "く使えるようにしてくれます。"
3670
3671 # type: Content of: <chapter><section><section><para>
3672 #. type: Content of: <chapter><section><section><para>
3673 #: best-pkging-practices.dbk:1863
3674 msgid ""
3675 "It is up to a package's maintainer whether to create a debug package or "
3676 "not.  Maintainers are encouraged to create debug packages for library "
3677 "packages, since this can aid in debugging many programs linked to a "
3678 "library.  In general, debug packages do not need to be added for all "
3679 "programs; doing so would bloat the archive.  But if a maintainer finds that "
3680 "users often need a debugging version of a program, it can be worthwhile to "
3681 "make a debug package for it.  Programs that are core infrastructure, such as "
3682 "apache and the X server are also good candidates for debug packages."
3683 msgstr ""
3684 "デバッグパッケージを作るか否かは、パッケージのメンテナ次第です。メンテナは、"
3685 "ライブラリパッケージについてデバッグパッケージを作成するのが推奨されていま"
3686 "す。これは、ライブラリにリンクしている沢山のプログラムをデバッグする助けにな"
3687 "るからです。一般的に言って、デバッグパッケージはすべてのプログラムに追加する"
3688 "必要はありません; これを行うとアーカイブが巨大なものになるでしょう。しかし、"
3689 "メンテナは、ユーザがデバッグ版のプログラムを頻繁に必要とするのに気づいた場"
3690 "合、デバッグパッケージを作るのに値するでしょう。インフラストラクチャの核と"
3691 "なっている、apache や X サーバのようプログラムも、デバッグパッケージの良い作"
3692 "成候補です。"
3693
3694 #. type: Content of: <chapter><section><section><para>
3695 #: best-pkging-practices.dbk:1873
3696 msgid ""
3697 "Some debug packages may contain an entire special debugging build of a "
3698 "library or other binary, but most of them can save space and build time by "
3699 "instead containing separated debugging symbols that <command>gdb</command> "
3700 "can find and load on the fly when debugging a program or library.  The "
3701 "convention in Debian is to keep these symbols in <filename>/usr/lib/debug/"
3702 "<replaceable>path</replaceable></filename>, where <replaceable>path</"
3703 "replaceable> is the path to the executable or library.  For example, "
3704 "debugging symbols for <filename>/usr/bin/foo</filename> go in <filename>/usr/"
3705 "lib/debug/usr/bin/foo</filename>, and debugging symbols for <filename>/usr/"
3706 "lib/libfoo.so.1</filename> go in <filename>/usr/lib/debug/usr/lib/libfoo."
3707 "so.1</filename>."
3708 msgstr ""
3709 "デバッグパッケージのうちいくつかは、ライブラリあるいは他のバイナリの完全に特別な"
3710 "デバッグビルドを含むでしょうが、それらの大半は容量やビルドする時間を節約できます。"
3711 "<filename>/usr/lib/debug/<replaceable>path</replaceable></filename> "
3712 "の場合、<replaceable>path</replaceable> は実行ファイルかライブラリへのパスになり"
3713 "ます。例えば、<filename>/usr/bin/foo</filename> のデバッグシンボルは "
3714 "<filename>/usr/lib/debug/usr/bin/foo</filename> に行き、<filename>/usr/lib/"
3715 "libfoo.so.1</filename> のデバッグシンボルは <filename>/usr/lib/debug/usr/lib/"
3716 "libfoo.so.1</filename> になります。"
3717
3718 #. type: Content of: <chapter><section><section><para>
3719 #: best-pkging-practices.dbk:1885
3720 msgid ""
3721 "The debugging symbols can be extracted from an object file using "
3722 "<command>objcopy --only-keep-debug</command>.  Then the object file can be "
3723 "stripped, and <command>objcopy --add-gnu-debuglink</command> used to specify "
3724 "the path to the debugging symbol file.  <citerefentry> "
3725 "<refentrytitle>objcopy</refentrytitle> <manvolnum>1</manvolnum> </"
3726 "citerefentry> explains in detail how this works."
3727 msgstr ""
3728 "デバッグシンボルは <command>objcopy --only-keep-debug</command> を使ってオブ"
3729 "ジェクトファイルから展開できます。そうすればオブジェクトファイルを strip するこ"
3730 "とができ、<command>objcopy --add-gnu-debuglink</command> がデバッグシンボル"
3731 "ファイルへのパスを指定するのに使われます。<citerefentry> "
3732 "<refentrytitle>objcopy</refentrytitle> <manvolnum>1</manvolnum> </"
3733 "citerefentry> で、これがどの様に動作するのかを詳細に説明しています。"
3734
3735 #. type: Content of: <chapter><section><section><para>
3736 #: best-pkging-practices.dbk:1893
3737 msgid ""
3738 "The <command>dh_strip</command> command in <systemitem role=\"package"
3739 "\">debhelper</systemitem> supports creating debug packages, and can take "
3740 "care of using <command>objcopy</command> to separate out the debugging "
3741 "symbols for you.  If your package uses <systemitem role=\"package"
3742 "\">debhelper</systemitem>, all you need to do is call <command>dh_strip --"
3743 "dbg-package=libfoo-dbg</command>, and add an entry to <filename>debian/"
3744 "control</filename> for the debug package."
3745 msgstr ""
3746 "<systemitem role=\"package\">debhelper</systemitem> 中の <command>dh_strip</"
3747 "command> コマンドは、デバッグパッケージの作成をサポートし、デバッグシンボル"
3748 "を分離するのに <command>objcopy</command> の利用の面倒を見てくれます。あなたの"
3749 "パッケージが <systemitem role=\"package\">debhelper</systemitem> を使っている"
3750 "場合、あなたがする必要があるのは <command>dh_strip --dbg-package=libfoo-dbg</"
3751 "command> を呼び出し、<filename>debian/control</filename> にデバッグパッケージ"
3752 "のエントリを追加することだけです。"
3753
3754 #. type: Content of: <chapter><section><section><para>
3755 #: best-pkging-practices.dbk:1900
3756 msgid ""
3757 "Note that the debug package should depend on the package that it provides "
3758 "debugging symbols for, and this dependency should be versioned.  For example:"
3759 msgstr ""
3760 "デバッグパッケージは、そのパッケージがデバッグシンボルを提供するパッケージに"
3761 "依存する必要があり、この依存関係はバージョン指定が必要であるということに注意"
3762 "してください。以下のような例になります:"
3763
3764 # type: Content of: <chapter><section><section><screen>
3765 #. type: Content of: <chapter><section><section><screen>
3766 #: best-pkging-practices.dbk:1904
3767 #, no-wrap
3768 msgid "Depends: libfoo (= ${binary:Version})\n"
3769 msgstr "Depends: libfoo (= ${binary:Version})\n"
3770
3771 # type: Content of: <chapter><section><title>
3772 #. type: Content of: <chapter><section><section><title>
3773 #: best-pkging-practices.dbk:1908
3774 msgid "Best practices for meta-packages"
3775 msgstr "メタパッケージのベストプラクティス"
3776
3777 #FIXME-trans: evolve over time
3778 #. type: Content of: <chapter><section><section><para>
3779 #: best-pkging-practices.dbk:1910
3780 msgid ""
3781 "A meta-package is a mostly empty package that makes it easy to install a "
3782 "coherent set of packages that can evolve over time. It achieves this by "
3783 "depending on all the packages of the set. Thanks to the power of APT, the "
3784 "meta-package maintainer can adjust the dependencies and the user's system "
3785 "will automatically get the supplementary packages. The dropped packages that "
3786 "were automatically installed will be also be marked as removal candidates "
3787 "(and are even automatically removed by <command>aptitude</command>).  "
3788 "<systemitem role=\"package\">gnome</systemitem> and <systemitem role="
3789 "\"package\">linux-image-amd64</systemitem> are two examples of meta-packages "
3790 "(built by the source packages <systemitem role=\"package\">meta-gnome2</"
3791 "systemitem> and <systemitem role=\"package\">linux-latest</systemitem>)."
3792 msgstr ""
3793 "メタパッケージは、時間がかかる一貫したセットのパッケージをインストールするのを楽にして"
3794 "くれる、ほぼ空のパッケージです。そのセットの全パッケージに依存することで、これを実現しています。"
3795 "APT の力のおかげで、メタパッケージのメンテナは依存関係を調整すればユーザのシステムが自動的"
3796 "に追加パッケージを得ることができます。自動的にインストールされていてメタパッケージから"
3797 "落とされたパッケージは、削除候補としてマークされます (そして <command>aptitude</command> "
3798 "によって自動的に削除もされます)。<systemitem role=\"package\">gnome</systemitem> "
3799 "と <systemitem role=\"package\">linux-image-amd64</systemitem> は、メタパッ"
3800 "ケージの 2 つの例です (ソースパッケージ <systemitem role=\"package\">meta-"
3801 "gnome2</systemitem> and <systemitem role=\"package\">linux-latest</"
3802 "systemitem> から生成されています)。"
3803
3804 #. type: Content of: <chapter><section><section><para>
3805 #: best-pkging-practices.dbk:1924
3806 msgid ""
3807 "The long description of the meta-package must clearly document its purpose "
3808 "so that the user knows what he will lose if he removes the package. Being "
3809 "explicit about the consequences is recommended. This is particularly "
3810 "important for meta-packages which are installed during initial installation "
3811 "and that have not been explicitly installed by the user.  Those tend to be "
3812 "important to ensure smooth system upgrades and the user should be "
3813 "discouraged from uninstalling them to avoid potential breakages."
3814 msgstr ""
3815 "メタパッケージの長い説明文は、目的を明確に記述している必要があります。これに"
3816 "よって、ユーザはもしそのパッケージを削除した場合に何を失うことになるのかを知"
3817 "ることができます。のちの影響について明示的にするのもお勧めです。これは、初回"
3818 "のインストール時にインストールされており、ユーザが明示的にインストールしたわ"
3819 "けではないメタパッケージにとって、特に重要です。システムのアップグレードをス"
3820 "ムースに保証するのに重要になり、潜在的な破損をさけるためにユーザに対してアン"
3821 "インストールする気をなくさせることでしょう。"