chiark / gitweb /
update Japanese translation
[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-10-12 09:49+0300\n"
8 "PO-Revision-Date: 2011-10-16 19:27+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 "の部分についての一般的なガイドラインが記述されています。それによると、<xref "
374 "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 # type: Content of: <chapter><section><section><para>
414 #. type: Content of: <chapter><section><section><para>
415 #: best-pkging-practices.dbk:194
416 msgid ""
417 "How do you write for non-technical users? Avoid jargon.  Avoid referring to "
418 "other applications or frameworks that the user might not be familiar with — "
419 "GNOME or KDE is fine, since users are probably familiar with these terms, "
420 "but GTK+ is probably not.  Try not to assume any knowledge at all.  If you "
421 "must use technical terms, introduce them."
422 msgstr ""
423 "どうやって技術に詳しくはないユーザに対して書けばいいのでしょう? ジャーゴンを避けましょう。"
424 "ユーザが詳しくないであろう他のアプリケーションやフレームワークへの参照を避けましょうー "
425 "GNOME や KDE については、おそらくユーザはその言葉について知っているでしょうから構いません"
426 "が、GTK+ はおそらくダメです。まったく知識がないと仮定してみましょう。技術用語を使わねば"
427 "ならない場合は、説明しましょう。"
428
429 # type: Content of: <chapter><section><section><para>
430 #. type: Content of: <chapter><section><section><para>
431 #: best-pkging-practices.dbk:201
432 msgid ""
433 "Be objective.  Package descriptions are not the place for advocating your "
434 "package, no matter how much you love it.  Remember that the reader may not "
435 "care about the same things you care about."
436 msgstr ""
437 "客観的になりましょう。パッケージ説明文はあなたのパッケージの宣伝場所ではありません。"
438 "あなたがそのパッケージをどんなに愛しているかは関係ありません。その説明文を読む人は、"
439 "あなたが気にすることと同じことを気にはしないであろうことを覚えておいてください。"
440
441 # type: Content of: <chapter><section><section><para>
442 #. type: Content of: <chapter><section><section><para>
443 #: best-pkging-practices.dbk:206
444 msgid ""
445 "References to the names of any other software packages, protocol names, "
446 "standards, or specifications should use their canonical forms, if one "
447 "exists.  For example, use X Window System, X11, or X; not X Windows, X-"
448 "Windows, or X Window.  Use GTK+, not GTK or gtk.  Use GNOME, not Gnome.  Use "
449 "PostScript, not Postscript or postscript."
450 msgstr ""
451 "他のソフトウェアパッケージ、プロトコル名、標準規格、仕様の名前を参照する場合"
452 "には、もしあれば正規名称を使いましょう。X Windows や X-Windows や X Window "
453 "ではなく、X Window System あるいは X11 または X を使いましょう。GTK や gtk "
454 "ではなく GTK+ を使いましょう。Gnome ではなく GNOME を使いましょう。"
455 "Postscript や postscript ではなく PostScript を使いましょう。"
456
457 # type: Content of: <chapter><section><section><para>
458 #. type: Content of: <chapter><section><section><para>
459 #: best-pkging-practices.dbk:213
460 msgid ""
461 "If you are having problems writing your description, you may wish to send it "
462 "along to &email-debian-l10n-english; and request feedback."
463 msgstr ""
464 "説明文を書くことに問題があれば、&email-debian-l10n-english; へそれを送って"
465 "フィードバックを求めるとよいでしょう。"
466
467 # type: Content of: <chapter><section><section><title>
468 #. type: Content of: <chapter><section><section><title>
469 #: best-pkging-practices.dbk:219
470 msgid "The package synopsis, or short description"
471 msgstr "パッケージの概要、あるいは短い説明文"
472
473 #. type: Content of: <chapter><section><section><para>
474 #: best-pkging-practices.dbk:221
475 msgid ""
476 "Policy says the synopsis line (the short description) must be concise, not "
477 "repeating the package name, but also informative."
478 msgstr ""
479 "ポリシーでは、概要行 (短い説明文) はパッケージ名を繰り返すのではなく、簡潔"
480 "かつ有益なものである必要がある、となっています。"
481
482 #. type: Content of: <chapter><section><section><para>
483 #: best-pkging-practices.dbk:225
484 #, fuzzy
485 msgid ""
486 "The synopsis functions as a phrase describing the package, not a complete "
487 "sentence, so sentential punctuation is inappropriate: it does not need extra "
488 "capital letters or a final period (full stop). It should also omit any "
489 "initial indefinite or definite article — \"a\", \"an\", or \"the\". Thus for "
490 "instance:"
491 msgstr ""
492 "概要は、完全な文章ではなくパッケージを記述するフレーズとして機能します。"
493 "最後のピリオド"
494 "\"a\", \"an\", or \"the\". "
495 "つまり、例えば以下のようになります:"
496
497 #. type: Content of: <chapter><section><section><screen>
498 #: best-pkging-practices.dbk:231
499 #, no-wrap
500 msgid ""
501 "Package: libeg0\n"
502 "Description: exemplification support library\n"
503 msgstr ""
504 "Package: libeg0\n"
505 "Description: exemplification support library\n"
506
507 #. type: Content of: <chapter><section><section><para>
508 #: best-pkging-practices.dbk:235
509 #, fuzzy
510 msgid ""
511 "Technically this is a noun phrase minus articles, as opposed to a verb "
512 "phrase.  A good heuristic is that it should be possible to substitute the "
513 "package <replaceable>name</replaceable> and <replaceable>synopsis</"
514 "replaceable> into this formula:"
515 msgstr ""
516 "技術的に言えば、これは名詞のフレーズから文章を差し引いた、動詞のフレーズを"
517
518 #. type: Content of: <chapter><section><section><para>
519 #: best-pkging-practices.dbk:240
520 msgid ""
521 "The package <replaceable>name</replaceable> provides {a,an,the,some} "
522 "<replaceable>synopsis</replaceable>."
523 msgstr ""
524 "パッケージの<replaceable>名前</replaceable>は<replaceable>概要</replaceable>"
525 "を提供します。"
526
527 #. type: Content of: <chapter><section><section><para>
528 #: best-pkging-practices.dbk:244
529 msgid ""
530 "Sets of related packages may use an alternative scheme that divides the "
531 "synopsis into two parts, the first a description of the whole suite and the "
532 "second a summary of the package's role within it:"
533 msgstr ""
534
535 #. type: Content of: <chapter><section><section><screen>
536 #: best-pkging-practices.dbk:249
537 #, no-wrap
538 msgid ""
539 "Package: eg-tools\n"
540 "Description: simple exemplification system (utilities)\n"
541 "\t\t\t              \n"
542 "Package: eg-doc\n"
543 "Description: simple exemplification system - documentation\n"
544 msgstr ""
545 "Package: eg-tools\n"
546 "Description: simple exemplification system (utilities)\n"
547 "\t\t\t              \n"
548 "Package: eg-doc\n"
549 "Description: simple exemplification system - documentation\n"
550
551 #. type: Content of: <chapter><section><section><para>
552 #: best-pkging-practices.dbk:256
553 msgid ""
554 "These synopses follow a modified formula. Where a package "
555 "\"<replaceable>name</replaceable>\" has a synopsis \"<replaceable>suite</"
556 "replaceable> (<replaceable>role</replaceable>)\" or \"<replaceable>suite</"
557 "replaceable> - <replaceable>role</replaceable>\", the elements should be "
558 "phrased so that they fit into the formula:"
559 msgstr ""
560
561 #. type: Content of: <chapter><section><section><para>
562 #: best-pkging-practices.dbk:263
563 #, fuzzy
564 msgid ""
565 "The package <replaceable>name</replaceable> provides {a,an,the} "
566 "<replaceable>role</replaceable> for the <replaceable>suite</replaceable>."
567 msgstr ""
568 "パッケージ<replaceable>名</replaceable>は、<replaceable>スイート</replaceable>"
569 "用の<replaceable>役割</replaceable>を提供します。"
570
571 # type: Content of: <chapter><section><section><title>
572 #. type: Content of: <chapter><section><section><title>
573 #: best-pkging-practices.dbk:269
574 msgid "The long description"
575 msgstr "長い説明文 (long description)"
576
577 # type: Content of: <chapter><section><section><para>
578 #. type: Content of: <chapter><section><section><para>
579 #: best-pkging-practices.dbk:271
580 msgid ""
581 "The long description is the primary information available to the user about "
582 "a package before they install it.  It should provide all the information "
583 "needed to let the user decide whether to install the package.  Assume that "
584 "the user has already read the package synopsis."
585 msgstr ""
586
587 # type: Content of: <chapter><section><section><para>
588 #. type: Content of: <chapter><section><section><para>
589 #: best-pkging-practices.dbk:277
590 msgid "The long description should consist of full and complete sentences."
591 msgstr "長い説明文は、完全な文章から成る必要があります。"
592
593 # type: Content of: <chapter><section><section><para>
594 #. type: Content of: <chapter><section><section><para>
595 #: best-pkging-practices.dbk:280
596 msgid ""
597 "The first paragraph of the long description should answer the following "
598 "questions: what does the package do? what task does it help the user "
599 "accomplish? It is important to describe this in a non-technical way, unless "
600 "of course the audience for the package is necessarily technical."
601 msgstr ""
602
603 # type: Content of: <chapter><section><section><para>
604 #. type: Content of: <chapter><section><section><para>
605 #: best-pkging-practices.dbk:286
606 msgid ""
607 "The following paragraphs should answer the following questions: Why do I as "
608 "a user need this package? What other features does the package have? What "
609 "outstanding features and deficiencies are there compared to other packages "
610 "(e.g., if you need X, use Y instead)? Is this package related to other "
611 "packages in some way that is not handled by the package manager (e.g., this "
612 "is the client for the foo server)?"
613 msgstr ""
614
615 # type: Content of: <chapter><section><section><para>
616 #. type: Content of: <chapter><section><section><para>
617 #: best-pkging-practices.dbk:294
618 msgid ""
619 "Be careful to avoid spelling and grammar mistakes.  Ensure that you spell-"
620 "check it.  Both <command>ispell</command> and <command>aspell</command> have "
621 "special modes for checking <filename>debian/control</filename> files:"
622 msgstr ""
623 "スペルミスや文法の間違いを避けるよう、注意してください。スペルチェックを"
624 "確実に行ってください。<command>ispell</command> と <command>aspell</command> "
625 "の双方に、<filename>debian/control</filename> ファイルをチェックするための"
626 "特別なモードがあります:"
627
628 #. type: Content of: <chapter><section><section><screen>
629 #: best-pkging-practices.dbk:299
630 #, no-wrap
631 msgid "ispell -d american -g debian/control\n"
632 msgstr "ispell -d american -g debian/control\n"
633
634 #. type: Content of: <chapter><section><section><screen>
635 #: best-pkging-practices.dbk:302
636 #, no-wrap
637 msgid "aspell -d en -D -c debian/control\n"
638 msgstr "aspell -d en -D -c debian/control\n"
639
640 # type: Content of: <chapter><section><section><para>
641 #. type: Content of: <chapter><section><section><para>
642 #: best-pkging-practices.dbk:305
643 msgid ""
644 "Users usually expect these questions to be answered in the package "
645 "description:"
646 msgstr ""
647 "通常、ユーザは以下のような疑問がパッケージ説明文で答えられることを期待"
648 "しています:"
649
650 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
651 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
652 #: best-pkging-practices.dbk:310
653 msgid ""
654 "What does the package do? If it is an add-on to another package, then the "
655 "short description of the package we are an add-on to should be put in here."
656 msgstr ""
657 "パッケージは何をするの? 他のパッケージのアドオンだった場合、パッケージが"
658 "アドオンであるということを概要文に書く必要があります。"
659
660 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
661 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
662 #: best-pkging-practices.dbk:316
663 msgid ""
664 "Why should I want this package? This is related to the above, but not the "
665 "same (this is a mail user agent; this is cool, fast, interfaces with PGP and "
666 "LDAP and IMAP, has features X, Y, and Z)."
667 msgstr ""
668 "なぜこのパッケージを使うべきなの? これは上記に関連しますが、同じではありません "
669 "(これはメールユーザーエージェントです; クールで速く、PGP や LDAP や IMAP の"
670 "インターフェイスがあり、X や Y や Z の機能があります)。"
671
672 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
673 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
674 #: best-pkging-practices.dbk:323
675 msgid ""
676 "If this package should not be installed directly, but is pulled in by "
677 "another package, this should be mentioned."
678 msgstr ""
679 "パッケージが直接インストールされるべきではないが、他のパッケージから引き摺られる時には、"
680 "付記しておく必要があります。"
681
682 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
683 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
684 #: best-pkging-practices.dbk:329
685 msgid ""
686 "If the package is <literal>experimental</literal>, or there are other "
687 "reasons it should not be used, if there are other packages that should be "
688 "used instead, it should be here as well."
689 msgstr ""
690 "パッケージが<literal>実験的</literal>である、あるいは使われない方が良い他の理由がある"
691 "場合、同様にここに記載する必要があります。"
692
693 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
694 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
695 #: best-pkging-practices.dbk:336
696 msgid ""
697 "How is this package different from the competition? Is it a better "
698 "implementation? more features? different features? Why should I choose this "
699 "package."
700 msgstr ""
701 "パッケージは競合のものと比べてどうでしょうか? より良い実装なのでしょうか? 機能がより豊富"
702 "なのでしょうか? 違った機能があるのでしょうか? このパッケージを選ぶ理由は何でしょう。"
703
704 # type: Content of: <chapter><section><section><title>
705 #. type: Content of: <chapter><section><section><title>
706 #: best-pkging-practices.dbk:349
707 msgid "Upstream home page"
708 msgstr "開発元のホームページ"
709
710 # type: Content of: <chapter><section><section><para>
711 #. type: Content of: <chapter><section><section><para>
712 #: best-pkging-practices.dbk:351
713 msgid ""
714 "We recommend that you add the URL for the package's home page in the "
715 "<literal>Homepage</literal> field of the <literal>Source</literal> section "
716 "in <filename>debian/control</filename>.  Adding this information in the "
717 "package description itself is considered deprecated."
718 msgstr ""
719 "<filename>debian/control</filename> 中の <literal>Source</literal> "
720 "セクションの <literal>Homepage</literal> フィールドへ、パッケージのホームページの "
721 "URL を追加することをお勧めします。この情報をパッケージ説明文自身に追加するのは推奨されない "
722 "(deprecated) であると考えられています。"
723
724 # type: Content of: <chapter><section><section><title>
725 #. type: Content of: <chapter><section><section><title>
726 #: best-pkging-practices.dbk:359
727 msgid "Version Control System location"
728 msgstr "バージョン管理システムの場所"
729
730 # type: Content of: <chapter><section><section><para>
731 #. type: Content of: <chapter><section><section><para>
732 #: best-pkging-practices.dbk:361
733 msgid ""
734 "There are additional fields for the location of the Version Control System "
735 "in <filename>debian/control</filename>."
736 msgstr ""
737 "<filename>debian/control</filename> には、バージョン管理システムの場所についての"
738 "追加フィールドがあります。"
739
740 # type: Content of: <chapter><section><section><section><title>
741 #. type: Content of: <chapter><section><section><section><title>
742 #: best-pkging-practices.dbk:365
743 msgid "Vcs-Browser"
744 msgstr "Vcs-Browser"
745
746 # type: Content of: <chapter><section><section><section><para>
747 #. type: Content of: <chapter><section><section><section><para>
748 #: best-pkging-practices.dbk:367
749 msgid ""
750 "Value of this field should be a <literal>http://</literal> URL pointing to a "
751 "web-browsable copy of the Version Control System repository used to maintain "
752 "the given package, if available."
753 msgstr ""
754 "このフィールドの値は、指定したパッケージのメンテナンスに使われているバージョン管理システムの"
755 "リポジトリのコピーがもしあれば、それを指し示す <literal>http://</literal> URL である必要"
756 "があります。"
757
758 # type: Content of: <chapter><section><section><section><para>
759 #. type: Content of: <chapter><section><section><section><para>
760 #: best-pkging-practices.dbk:372
761 msgid ""
762 "The information is meant to be useful for the final user, willing to browse "
763 "the latest work done on the package (e.g.  when looking for the patch fixing "
764 "a bug tagged as <literal>pending</literal> in the bug tracking system)."
765 msgstr ""
766 "この情報は、パッケージに行われた最新の作業を閲覧したいエンドユーザにとって有用であるのが"
767 "目的です (例: バグ追跡システムで <literal>pending</literal> とタグがつけられているバグ"
768 "を修正するパッチを探している場合)。"
769
770 # type: Content of: <chapter><section><section><section><title>
771 #. type: Content of: <chapter><section><section><section><title>
772 #: best-pkging-practices.dbk:379
773 msgid "Vcs-*"
774 msgstr "Vcs-*"
775
776 # type: Content of: <chapter><section><section><section><para>
777 #. type: Content of: <chapter><section><section><section><para>
778 #: best-pkging-practices.dbk:381
779 msgid ""
780 "Value of this field should be a string identifying unequivocally the "
781 "location of the Version Control System repository used to maintain the given "
782 "package, if available.  <literal>*</literal> identify the Version Control "
783 "System; currently the following systems are supported by the package "
784 "tracking system: <literal>arch</literal>, <literal>bzr</literal> (Bazaar), "
785 "<literal>cvs</literal>, <literal>darcs</literal>, <literal>git</literal>, "
786 "<literal>hg</literal> (Mercurial), <literal>mtn</literal> (Monotone), "
787 "<literal>svn</literal> (Subversion).  It is allowed to specify different VCS "
788 "fields for the same package: they will all be shown in the PTS web interface."
789 msgstr ""
790 "このフィールドの値は、もし利用可能でなのであれば、指定されたパッケージをメンテナンスするのに"
791 "使われているバージョン管理システムの位置を明確に識別できる文字列である必要があります。"
792 "<literal>*</literal> はバージョン管理システムの識別に使われます; 現在では、以下のシステム"
793 "がパッケージ追跡システムによってサポートされています: <literal>arch</literal>、<literal>"
794 "bzr</literal> (Bazaar)、<literal>cvs</literal>、<literal>darcs</literal>、"
795 "<literal>git</literal>、<literal>hg</literal> (Mercurial)、<literal>mtn</literal> "
796 "(Monotone)、<literal>svn</literal> (Subversion)。同じパッケージについて異なった "
797 "VCS を指定することも可能です: これらはすべて PTS のウェブインターフェイスに表示されます。"
798
799 #FIXME-trans: 場所からロケーション、にする?
800 # type: Content of: <chapter><section><section><section><para>
801 #. type: Content of: <chapter><section><section><section><para>
802 #: best-pkging-practices.dbk:392
803 msgid ""
804 "The information is meant to be useful for a user knowledgeable in the given "
805 "Version Control System and willing to build the current version of a package "
806 "from the VCS sources.  Other uses of this information might include "
807 "automatic building of the latest VCS version of the given package.  To this "
808 "end the location pointed to by the field should better be version agnostic "
809 "and point to the main branch (for VCSs supporting such a concept).  Also, "
810 "the location pointed to should be accessible to the final user; fulfilling "
811 "this requirement might imply pointing to an anonymous access of the "
812 "repository instead of pointing to an SSH-accessible version of the same."
813 msgstr ""
814 "この情報は、そのバージョン管理システムについて知識があり、VCS ソースから現在のバージョン"
815 "パッケージを生成ユーザにとって有益であるよう意図されています。この情報の他の使い方としては、"
816 "指定されたパッケージの最新の VCS バージョンを自動ビルドするなどがあるかもしれません。"
817 "このため、フィールドによって指し示される場所は、バージョンに関係なく、(そのようなコンセプト"
818 "をサポートしている VCS であれば) メインブランチを指すのが良いでしょう。また、指し示される"
819 "場所は一般ユーザがアクセス可能である必要があります; この要求を満たすには SSH アクセス可能な"
820 "リポジトリを指すのではなく、匿名アクセスが可能なリポジトリを指すようにすることを意味します。"
821
822 # type: Content of: <chapter><section><section><section><para>
823 #. type: Content of: <chapter><section><section><section><para>
824 #: best-pkging-practices.dbk:403
825 msgid ""
826 "In the following example, an instance of the field for a Subversion "
827 "repository of the <systemitem role=\"package\">vim</systemitem> package is "
828 "shown.  Note how the URL is in the <literal>svn://</literal> scheme (instead "
829 "of <literal>svn+ssh://</literal>) and how it points to the <filename>trunk/</"
830 "filename> branch.  The use of the <literal>Vcs-Browser</literal> and "
831 "<literal>Homepage</literal> fields described above is also shown."
832 msgstr ""
833 "以下の例では、<systemitem role=\"package\">vim</systemitem> パッケージの Subversion "
834 "リポジトリに対するフィールドの例が挙げられています。(<literal>svn+ssh://</literal> "
835 "ではなく) <literal>svn://</literal> スキーム中で URL がどのようになっているか、"
836 "<filename>trunk/</filename> ブランチをどのように指し示しているかに注意してください。"
837 "上で挙げられた <literal>Vcs-Browser</literal> フィールドと <literal>Homepage</literal> "
838 "フィールドの使い方も出ています。"
839
840 # type: Content of: <chapter><section><section><section><screen>
841 #. type: Content of: <chapter><section><section><section><screen>
842 #: best-pkging-practices.dbk:412
843 #, no-wrap
844 msgid ""
845 "  Source: vim\n"
846 "  Section: editors\n"
847 "  Priority: optional\n"
848 "  &lt;snip&gt;\n"
849 "  Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim\n"
850 "  Vcs-Browser: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim\n"
851 "  Homepage: http://www.vim.org\n"
852 msgstr ""
853 "  Source: vim\n"
854 "  Section: editors\n"
855 "  Priority: optional\n"
856 "  &lt;snip&gt;\n"
857 "  Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim\n"
858 "  Vcs-Browser: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim\n"
859 "  Homepage: http://www.vim.org\n"
860
861 # type: Content of: <chapter><section><title>
862 #. type: Content of: <chapter><section><title>
863 #: best-pkging-practices.dbk:427
864 msgid "Best practices for <filename>debian/changelog</filename>"
865 msgstr "<filename>debian/changelog</filename> のベストプラクティス"
866
867 # type: Content of: <chapter><section><para>
868 #. type: Content of: <chapter><section><para>
869 #: best-pkging-practices.dbk:429
870 msgid ""
871 "The following practices supplement the <ulink url=\"&url-debian-policy;ch-"
872 "docs.html#s-changelogs\">Policy on changelog files</ulink>."
873 msgstr ""
874 "以下のプラクティスは <ulink url=\"&url-debian-policy;ch-docs.html"
875 "#s-changelogs\">changelog ファイルに対するポリシー</ulink>を補完します。"
876
877 # type: Content of: <chapter><section><section><title>
878 #. type: Content of: <chapter><section><section><title>
879 #: best-pkging-practices.dbk:434
880 msgid "Writing useful changelog entries"
881 msgstr "役立つ changelog のエントリを書く"
882
883 # type: Content of: <chapter><section><section><para>
884 #. type: Content of: <chapter><section><section><para>
885 #: best-pkging-practices.dbk:436
886 msgid ""
887 "The changelog entry for a package revision documents changes in that "
888 "revision, and only them.  Concentrate on describing significant and user-"
889 "visible changes that were made since the last version."
890 msgstr ""
891 "パッケージリビジョンに対する changelog エントリは、そのリビジョンでの変更それだけを"
892 "記載します。最後のバージョンから行われた、重要な、そしてユーザに見える形の変更を記述する"
893 "ことに集中しましょう。"
894
895 # type: Content of: <chapter><section><section><para>
896 #. type: Content of: <chapter><section><section><para>
897 #: best-pkging-practices.dbk:441
898 msgid ""
899 "Focus on <emphasis>what</emphasis> was changed — who, how and when are "
900 "usually less important.  Having said that, remember to politely attribute "
901 "people who have provided notable help in making the package (e.g., those who "
902 "have sent in patches)."
903 msgstr ""
904 "<emphasis>何が</emphasis>変更されたかについて集中しましょう — 誰が、どうやって、いつ"
905 "は通常あまり重要ではありません。そうは言っても、パッケージ作成について明記すべき手助け"
906 "をしてくれた人々 (例えば、パッチを送ってくれた人) を丁寧に明記するのを忘れないように"
907 "しましょう。"
908
909 # type: Content of: <chapter><section><section><para>
910 #. type: Content of: <chapter><section><section><para>
911 #: best-pkging-practices.dbk:447
912 msgid ""
913 "There's no need to elaborate the trivial and obvious changes.  You can also "
914 "aggregate several changes in one entry.  On the other hand, don't be overly "
915 "terse if you have undertaken a major change.  Be especially clear if there "
916 "are changes that affect the behaviour of the program.  For further "
917 "explanations, use the <filename>README.Debian</filename> file."
918 msgstr ""
919 "些細で明白な変更を詳細に書く必要はありません。複数の変更点を一つのエントリにまとめることも"
920 "できます。逆に言えば、大きな変更をした場合には、あまりに簡潔にしないようにしましょう。プロ"
921 "グラムの動作に影響を与える変更がある場合には、特に確認しておきましょう。詳細な説明について"
922 "は、<filename>README.Debian</filename> ファイルを使ってください。"
923
924 # type: Content of: <chapter><section><section><para>
925 #. type: Content of: <chapter><section><section><para>
926 #: best-pkging-practices.dbk:454
927 msgid ""
928 "Use common English so that the majority of readers can comprehend it.  Avoid "
929 "abbreviations, tech-speak and jargon when explaining changes that close "
930 "bugs, especially for bugs filed by users that did not strike you as "
931 "particularly technically savvy.  Be polite, don't swear."
932 msgstr ""
933 "平易な英語を使いましょう。そうすれば読者の大半が理解できます。バグをクローズする変更を説明"
934 "する際には略語や、テクニカルな言い方やジャーゴンを避けましょう。特に、技術的に精通していない"
935 "と思われるユーザによって登録されたバグをクローズする際には気をつけましょう。礼儀正しく、断言"
936 "しないように。"
937
938 # type: Content of: <chapter><section><section><para>
939 #. type: Content of: <chapter><section><section><para>
940 #: best-pkging-practices.dbk:460
941 msgid ""
942 "It is sometimes desirable to prefix changelog entries with the names of the "
943 "files that were changed.  However, there's no need to explicitly list each "
944 "and every last one of the changed files, especially if the change was small "
945 "or repetitive.  You may use wildcards."
946 msgstr ""
947
948 # type: Content of: <chapter><section><section><para>
949 #. type: Content of: <chapter><section><section><para>
950 #: best-pkging-practices.dbk:466
951 #, fuzzy
952 msgid ""
953 "When referring to bugs, don't assume anything.  Say what the problem was, "
954 "how it was fixed, and append the closes: #nnnnn string.  See <xref linkend="
955 "\"upload-bugfix\"/> for more information."
956 msgstr ""
957 "バグについての仲裁を行う際には、何も仮定しないようにしましょう。何が問題だったのか、どうやって"
958 "それが直されたのかについて言い、closes: #nnnnn の文字列を追加しましょう。詳細については "
959 "<xref linkend=\"upload-bugfix\"/> を参照してください。"
960
961 # type: Content of: <chapter><section><section><title>
962 #. type: Content of: <chapter><section><section><title>
963 #: best-pkging-practices.dbk:473
964 msgid "Common misconceptions about changelog entries"
965 msgstr "changelog のエントリに関するよくある誤解"
966
967 # type: Content of: <chapter><section><section><para>
968 #. type: Content of: <chapter><section><section><para>
969 #: best-pkging-practices.dbk:475
970 msgid ""
971 "The changelog entries should <emphasis role=\"strong\">not</emphasis> "
972 "document generic packaging issues (Hey, if you're looking for foo.conf, it's "
973 "in /etc/blah/.), since administrators and users are supposed to be at least "
974 "remotely acquainted with how such things are generally arranged on Debian "
975 "systems.  Do, however, mention if you change the location of a configuration "
976 "file."
977 msgstr ""
978
979 #. type: Content of: <chapter><section><section><para>
980 #: best-pkging-practices.dbk:483
981 msgid ""
982 "The only bugs closed with a changelog entry should be those that are "
983 "actually fixed in the same package revision.  Closing unrelated bugs in the "
984 "changelog is bad practice.  See <xref linkend=\"upload-bugfix\"/>."
985 msgstr ""
986
987 # type: Content of: <chapter><section><section><para>
988 #. type: Content of: <chapter><section><section><para>
989 #: best-pkging-practices.dbk:488
990 msgid ""
991 "The changelog entries should <emphasis role=\"strong\">not</emphasis> be "
992 "used for random discussion with bug reporters (I don't see segfaults when "
993 "starting foo with option bar; send in more info), general statements on "
994 "life, the universe and everything (sorry this upload took me so long, but I "
995 "caught the flu), or pleas for help (the bug list on this package is huge, "
996 "please lend me a hand).  Such things usually won't be noticed by their "
997 "target audience, but may annoy people who wish to read information about "
998 "actual changes in the package.  See <xref linkend=\"bug-answering\"/> for "
999 "more information on how to use the bug tracking system."
1000 msgstr ""
1001
1002 # type: Content of: <chapter><section><section><para>
1003 #. type: Content of: <chapter><section><section><para>
1004 #: best-pkging-practices.dbk:499
1005 msgid ""
1006 "It is an old tradition to acknowledge bugs fixed in non-maintainer uploads "
1007 "in the first changelog entry of the proper maintainer upload.  As we have "
1008 "version tracking now, it is enough to keep the NMUed changelog entries and "
1009 "just mention this fact in your own changelog entry."
1010 msgstr ""
1011
1012 # type: Content of: <chapter><section><section><title>
1013 #. type: Content of: <chapter><section><section><title>
1014 #: best-pkging-practices.dbk:507
1015 msgid "Common errors in changelog entries"
1016 msgstr "changelog のエントリ中のよくある間違い"
1017
1018 # type: Content of: <chapter><section><section><para>
1019 #. type: Content of: <chapter><section><section><para>
1020 #: best-pkging-practices.dbk:509
1021 msgid ""
1022 "The following examples demonstrate some common errors or examples of bad "
1023 "style in changelog entries."
1024 msgstr ""
1025 "以下の例で、changelog エントリ中のよくある間違いや間違ったスタイルの例を挙げ"
1026 "ます。"
1027
1028 # type: Content of: <chapter><section><section><screen>
1029 #. type: Content of: <chapter><section><section><screen>
1030 #: best-pkging-practices.dbk:513
1031 #, no-wrap
1032 msgid "  * Fixed all outstanding bugs.\n"
1033 msgstr "  * Fixed all outstanding bugs.\n"
1034
1035 # type: Content of: <chapter><section><section><para>
1036 #. type: Content of: <chapter><section><section><para>
1037 #: best-pkging-practices.dbk:516
1038 msgid "This doesn't tell readers anything too useful, obviously."
1039 msgstr "これは、全く読み手に何も有用なことを教えてくれません。"
1040
1041 # type: Content of: <chapter><section><section><screen>
1042 #. type: Content of: <chapter><section><section><screen>
1043 #: best-pkging-practices.dbk:519
1044 #, no-wrap
1045 msgid "  * Applied patch from Jane Random.\n"
1046 msgstr "  * Applied patch from Jane Random.\n"
1047
1048 # type: Content of: <chapter><section><section><para>
1049 #. type: Content of: <chapter><section><section><para>
1050 #: best-pkging-practices.dbk:522
1051 msgid "What was the patch about?"
1052 msgstr "何についてのパッチですか?"
1053
1054 # type: Content of: <chapter><section><section><screen>
1055 #. type: Content of: <chapter><section><section><screen>
1056 #: best-pkging-practices.dbk:525
1057 #, no-wrap
1058 msgid "  * Late night install target overhaul.\n"
1059 msgstr "  * Late night install target overhaul.\n"
1060
1061 # type: Content of: <chapter><section><section><para>
1062 #. type: Content of: <chapter><section><section><para>
1063 #: best-pkging-practices.dbk:528
1064 msgid ""
1065 "Overhaul which accomplished what? Is the mention of late night supposed to "
1066 "remind us that we shouldn't trust that code?"
1067 msgstr ""
1068
1069 # type: Content of: <chapter><section><section><screen>
1070 #. type: Content of: <chapter><section><section><screen>
1071 #: best-pkging-practices.dbk:532
1072 #, no-wrap
1073 msgid "  * Fix vsync FU w/ ancient CRTs.\n"
1074 msgstr "  * Fix vsync FU w/ ancient CRTs.\n"
1075
1076 # type: Content of: <chapter><section><section><para>
1077 #. type: Content of: <chapter><section><section><para>
1078 #: best-pkging-practices.dbk:535
1079 #, fuzzy
1080 msgid ""
1081 "Too many acronyms, and it's not overly clear what the, uh, fsckup (oops, a "
1082 "curse word!) was actually about, or how it was fixed."
1083 msgstr "略称が多すぎ、どうやって修正したのか"
1084
1085 # type: Content of: <chapter><section><section><screen>
1086 #. type: Content of: <chapter><section><section><screen>
1087 #: best-pkging-practices.dbk:539
1088 #, no-wrap
1089 msgid "  * This is not a bug, closes: #nnnnnn.\n"
1090 msgstr "  * This is not a bug, closes: #nnnnnn.\n"
1091
1092 # type: Content of: <chapter><section><section><para>
1093 #. type: Content of: <chapter><section><section><para>
1094 #: best-pkging-practices.dbk:542
1095 msgid ""
1096 "First of all, there's absolutely no need to upload the package to convey "
1097 "this information; instead, use the bug tracking system.  Secondly, there's "
1098 "no explanation as to why the report is not a bug."
1099 msgstr ""
1100
1101 # type: Content of: <chapter><section><section><screen>
1102 #. type: Content of: <chapter><section><section><screen>
1103 #: best-pkging-practices.dbk:547
1104 #, no-wrap
1105 msgid "  * Has been fixed for ages, but I forgot to close; closes: #54321.\n"
1106 msgstr "  * Has been fixed for ages, but I forgot to close; closes: #54321.\n"
1107
1108 # type: Content of: <chapter><section><section><para>
1109 #. type: Content of: <chapter><section><section><para>
1110 #: best-pkging-practices.dbk:550
1111 msgid ""
1112 "If for some reason you didn't mention the bug number in a previous changelog "
1113 "entry, there's no problem, just close the bug normally in the BTS.  There's "
1114 "no need to touch the changelog file, presuming the description of the fix is "
1115 "already in (this applies to the fixes by the upstream authors/maintainers as "
1116 "well, you don't have to track bugs that they fixed ages ago in your "
1117 "changelog)."
1118 msgstr ""
1119
1120 # type: Content of: <chapter><section><section><screen>
1121 #. type: Content of: <chapter><section><section><screen>
1122 #: best-pkging-practices.dbk:557
1123 #, no-wrap
1124 msgid "  * Closes: #12345, #12346, #15432\n"
1125 msgstr "  * Closes: #12345, #12346, #15432\n"
1126
1127 # type: Content of: <chapter><section><section><para>
1128 #. type: Content of: <chapter><section><section><para>
1129 #: best-pkging-practices.dbk:560
1130 msgid ""
1131 "Where's the description? If you can't think of a descriptive message, start "
1132 "by inserting the title of each different bug."
1133 msgstr ""
1134 "説明はどこ? 説明文を考えられないのなら、それぞれのバグのタイトルを入れるとこ"
1135 "ろから始めてください。"
1136
1137 #. type: Content of: <chapter><section><section><title>
1138 #: best-pkging-practices.dbk:566
1139 #, fuzzy
1140 msgid "Supplementing changelogs with <filename>NEWS.Debian</filename> files"
1141 msgstr "<filename>NEWS.Debian</filename> ファイルで changelog を"
1142
1143 #. type: Content of: <chapter><section><section><para>
1144 #: best-pkging-practices.dbk:568
1145 msgid ""
1146 "Important news about changes in a package can also be put in <filename>NEWS."
1147 "Debian</filename> files.  The news will be displayed by tools like "
1148 "<systemitem role=\"package\">apt-listchanges</systemitem>, before all the "
1149 "rest of the changelogs.  This is the preferred means to let the user know "
1150 "about significant changes in a package.  It is better than using <systemitem "
1151 "role=\"package\">debconf</systemitem> notes since it is less annoying and "
1152 "the user can go back and refer to the <filename>NEWS.Debian</filename> file "
1153 "after the install.  And it's better than listing major changes in "
1154 "<filename>README.Debian</filename>, since the user can easily miss such "
1155 "notes."
1156 msgstr ""
1157
1158 #. type: Content of: <chapter><section><section><para>
1159 #: best-pkging-practices.dbk:579
1160 msgid ""
1161 "The file format is the same as a debian changelog file, but leave off the "
1162 "asterisks and describe each news item with a full paragraph when necessary "
1163 "rather than the more concise summaries that would go in a changelog.  It's a "
1164 "good idea to run your file through <literal>dpkg-parsechangelog</literal> to "
1165 "check its formatting as it will not be automatically checked during build as "
1166 "the changelog is.  Here is an example of a real <filename>NEWS.Debian</"
1167 "filename> file:"
1168 msgstr ""
1169
1170 # type: Content of: <chapter><section><section><screen>
1171 #. type: Content of: <chapter><section><section><screen>
1172 #: best-pkging-practices.dbk:588
1173 #, no-wrap
1174 msgid ""
1175 "cron (3.0pl1-74) unstable; urgency=low\n"
1176 "\n"
1177 "    The checksecurity script is no longer included with the cron package:\n"
1178 "    it now has its own package, checksecurity. If you liked the\n"
1179 "    functionality provided with that script, please install the new\n"
1180 "    package.\n"
1181 "\n"
1182 " -- Steve Greenland &lt;stevegr@debian.org&gt;  Sat,  6 Sep 2003 17:15:03 -0500\n"
1183 msgstr ""
1184 "cron (3.0pl1-74) unstable; urgency=low\n"
1185 "\n"
1186 "    The checksecurity script is no longer included with the cron package:\n"
1187 "    it now has its own package, checksecurity. If you liked the\n"
1188 "    functionality provided with that script, please install the new\n"
1189 "    package.\n"
1190 "\n"
1191 " -- Steve Greenland &lt;stevegr@debian.org&gt;  Sat,  6 Sep 2003 17:15:03 -0500\n"
1192
1193 #. type: Content of: <chapter><section><section><para>
1194 #: best-pkging-practices.dbk:598
1195 msgid ""
1196 "The <filename>NEWS.Debian</filename> file is installed as <filename>/usr/"
1197 "share/doc/<replaceable>package</replaceable>/NEWS.Debian.gz</filename>.  It "
1198 "is compressed, and always has that name even in Debian native packages.  If "
1199 "you use <literal>debhelper</literal>, <literal>dh_installchangelogs</"
1200 "literal> will install <filename>debian/NEWS</filename> files for you."
1201 msgstr ""
1202
1203 # type: Content of: <chapter><section><section><para>
1204 #. type: Content of: <chapter><section><section><para>
1205 #: best-pkging-practices.dbk:605
1206 msgid ""
1207 "Unlike changelog files, you need not update <filename>NEWS.Debian</filename> "
1208 "files with every release.  Only update them if you have something "
1209 "particularly newsworthy that user should know about.  If you have no news at "
1210 "all, there's no need to ship a <filename>NEWS.Debian</filename> file in your "
1211 "package.  No news is good news!"
1212 msgstr ""
1213
1214 # type: Content of: <chapter><section><title>
1215 #. type: Content of: <chapter><section><title>
1216 #: best-pkging-practices.dbk:627
1217 msgid "Best practices for maintainer scripts"
1218 msgstr "メンテナスクリプトのベストプラクティス"
1219
1220 # type: Content of: <chapter><section><para>
1221 #. type: Content of: <chapter><section><para>
1222 #: best-pkging-practices.dbk:629
1223 msgid ""
1224 "Maintainer scripts include the files <filename>debian/postinst</filename>, "
1225 "<filename>debian/preinst</filename>, <filename>debian/prerm</filename> and "
1226 "<filename>debian/postrm</filename>.  These scripts take care of any package "
1227 "installation or deinstallation setup which isn't handled merely by the "
1228 "creation or removal of files and directories.  The following instructions "
1229 "supplement the <ulink url=\"&url-debian-policy;\">Debian Policy</ulink>."
1230 msgstr ""
1231 "メンテナスクリプトには <filename>debian/postinst</filename>、<filename>"
1232 "debian/preinst</filename>、<filename>debian/prerm</filename>、<filename>"
1233 "debian/postrm</filename> ファイルが含まれます。これらのスクリプトは、単なる"
1234 "ファイルやディレクトリの作成や削除では扱われない、パッケージのインストール"
1235 "と削除のセットアップの面倒をみます。以下の説明は、<ulink url=\"&url-debian-"
1236 "policy;\">Debian ポリシー</ulink>を補完します。"
1237
1238 # type: Content of: <chapter><section><para>
1239 #. type: Content of: <chapter><section><para>
1240 #: best-pkging-practices.dbk:637
1241 msgid ""
1242 "Maintainer scripts must be idempotent.  That means that you need to make "
1243 "sure nothing bad will happen if the script is called twice where it would "
1244 "usually be called once."
1245 msgstr ""
1246 "メンテナスクリプトは冪等でなければなりません。これは、通常は 1 回呼ばれる"
1247 "スクリプトが 2 回呼ばれた場合、何も悪いことが起きないのを保証する必要が"
1248 "あるという意味です。"
1249
1250 # type: Content of: <chapter><section><para>
1251 #. type: Content of: <chapter><section><para>
1252 #: best-pkging-practices.dbk:642
1253 msgid ""
1254 "Standard input and output may be redirected (e.g.  into pipes) for logging "
1255 "purposes, so don't rely on them being a tty."
1256 msgstr ""
1257 "標準入出力はログの取得のためにリダイレクトされることがあります (例: パイプへ"
1258 "向けられる)。ですので、これらが tty であることに依存してはいけません。"
1259
1260 # type: Content of: <chapter><section><para>
1261 #. type: Content of: <chapter><section><para>
1262 #: best-pkging-practices.dbk:646
1263 msgid ""
1264 "All prompting or interactive configuration should be kept to a minimum.  "
1265 "When it is necessary, you should use the <systemitem role=\"package"
1266 "\">debconf</systemitem> package for the interface.  Remember that prompting "
1267 "in any case can only be in the <literal>configure</literal> stage of the "
1268 "<filename>postinst</filename> script."
1269 msgstr ""
1270 "質問や対話的な設定はすべて最小限に止めておく必要があります。必要になった時は、"
1271 "インターフェイスに <systemitem role=\"package\">debconf</systemitem> パッケージ"
1272 "を使いましょう。どのような場合でも、質問は <filename>postinst</filename> "
1273 "スクリプトの <literal>configure</literal> 段階にのみ、配置することができます。"
1274
1275 #FIXME-trans: enable? bits?
1276 # type: Content of: <chapter><section><para>
1277 #. type: Content of: <chapter><section><para>
1278 #: best-pkging-practices.dbk:653
1279 #, fuzzy
1280 msgid ""
1281 "Keep the maintainer scripts as simple as possible.  We suggest you use pure "
1282 "POSIX shell scripts.  Remember, if you do need any bash features, the "
1283 "maintainer script must have a bash shebang line.  POSIX shell or Bash are "
1284 "preferred to Perl, since they enable <systemitem role=\"package\">debhelper</"
1285 "systemitem> to easily add bits to the scripts."
1286 msgstr ""
1287 "メンテナスクリプトは、できる限りシンプルなものにしておきましょう。あなたが、"
1288 "純粋な POSIX シェルスクリプトを使っているものだとします。覚えておいてください。"
1289 "何かしら bash の機能が必要になったら、メンテナスクリプトは bash のシェバン行"
1290 "にしておく必要があります。スクリプトへ簡単に変更を追加するのに <systemitem "
1291 "role=\"package\">debhelper</systemitem> を使えるので、Perl より POSIX シェル"
1292 "あるいは Bash の方が好まれます。"
1293
1294 # type: Content of: <chapter><section><para>
1295 #. type: Content of: <chapter><section><para>
1296 #: best-pkging-practices.dbk:660
1297 msgid ""
1298 "If you change your maintainer scripts, be sure to test package removal, "
1299 "double installation, and purging.  Be sure that a purged package is "
1300 "completely gone, that is, it must remove any files created, directly or "
1301 "indirectly, in any maintainer script."
1302 msgstr ""
1303 "メンテナスクリプトを変更したら、パッケージの削除や二重インストール、purge "
1304 "のテストを確認してください。purge されたパッケージが完全に削除されたことを"
1305 "確認してください。つまり、メンテナスクリプト中で直接/間接を問わず作成された"
1306 "ファイルを削除する必要があるということです。"
1307
1308 # type: Content of: <chapter><section><para>
1309 #. type: Content of: <chapter><section><para>
1310 #: best-pkging-practices.dbk:666
1311 msgid ""
1312 "If you need to check for the existence of a command, you should use "
1313 "something like"
1314 msgstr ""
1315 "コマンドの存在をチェックする必要がある場合は、このような感じで行います"
1316
1317 # type: Content of: <chapter><section><programlisting>
1318 #. type: Content of: <chapter><section><programlisting>
1319 #: best-pkging-practices.dbk:669
1320 #, no-wrap
1321 msgid "if [ -x /usr/sbin/install-docs ]; then ..."
1322 msgstr "if [ -x /usr/sbin/install-docs ]; then ..."
1323
1324 # type: Content of: <chapter><section><para>
1325 #. type: Content of: <chapter><section><para>
1326 #: best-pkging-practices.dbk:671
1327 msgid ""
1328 "If you don't wish to hard-code the path of a command in your maintainer "
1329 "script, the following POSIX-compliant shell function may help:"
1330 msgstr ""
1331 "メンテナスクリプト中でコマンドの path をハードコードしたくない場合には、"
1332 "以下の POSIX 互換シェル機能が役立つでしょう:"
1333
1334 #. type: Content of: <chapter><section><para>
1335 #: best-pkging-practices.dbk:676
1336 msgid ""
1337 "You can use this function to search <varname>$PATH</varname> for a command "
1338 "name, passed as an argument.  It returns true (zero) if the command was "
1339 "found, and false if not.  This is really the most portable way, since "
1340 "<literal>command -v</literal>, <command>type</command>, and <command>which</"
1341 "command> are not POSIX."
1342 msgstr ""
1343 "コマンド名を引数として渡すことで、<varname>$PATH</varname> の検索するのに"
1344 "この関数を使うことができます。コマンドが見つかった場合は true (ゼロ) を返し、"
1345 "そうでない場合は false を返します。<literal>command -v</literal>、<command>"
1346 "type</command>、<command>which</command> は POSIX に無いので、これがもっとも"
1347 "汎用性の高いやり方です。"
1348
1349 # type: Content of: <chapter><section><para>
1350 #. type: Content of: <chapter><section><para>
1351 #: best-pkging-practices.dbk:683
1352 msgid ""
1353 "While <command>which</command> is an acceptable alternative, since it is "
1354 "from the required <systemitem role=\"package\">debianutils</systemitem> "
1355 "package, it's not on the root partition.  That is, it's in <filename>/usr/"
1356 "bin</filename> rather than <filename>/bin</filename>, so one can't use it in "
1357 "scripts which are run before the <filename>/usr</filename> partition is "
1358 "mounted.  Most scripts won't have this problem, though."
1359 msgstr ""
1360 "<command>which</command> は、Required となっている <systemitem role"
1361 "=\"package\">debianutils</systemitem> パッケージにあるので、別解として利用"
1362 "可能ですが、ルートパーティションにありません。つまり、<filename>/usr/bin"
1363 "</filename> にあって <filename>/bin</filename> ではないので、<filename>/usr"
1364 "</filename> パーティションがマウントする前に走るスクリプトの中では使えない"
1365 "ということです。ほとんどのスクリプトは、この問題を持つようなことはありませんが。"
1366
1367 # type: Content of: <chapter><section><title>
1368 #. type: Content of: <chapter><section><title>
1369 #: best-pkging-practices.dbk:693
1370 msgid ""
1371 "Configuration management with <systemitem role=\"package\">debconf</"
1372 "systemitem>"
1373 msgstr ""
1374 "<systemitem role=\"package\">debconf</systemitem> による設定管理"
1375
1376 # type: Content of: <chapter><section><para>
1377 #. type: Content of: <chapter><section><para>
1378 #: best-pkging-practices.dbk:695
1379 msgid ""
1380 "<systemitem role=\"package\">Debconf</systemitem> is a configuration "
1381 "management system which can be used by all the various packaging scripts "
1382 "(<filename>postinst</filename> mainly) to request feedback from the user "
1383 "concerning how to configure the package.  Direct user interactions must now "
1384 "be avoided in favor of <systemitem role=\"package\">debconf</systemitem> "
1385 "interaction.  This will enable non-interactive installations in the future."
1386 msgstr ""
1387
1388 # type: Content of: <chapter><section><para>
1389 #. type: Content of: <chapter><section><para>
1390 #: best-pkging-practices.dbk:703
1391 msgid ""
1392 "Debconf is a great tool but it is often poorly used.  Many common mistakes "
1393 "are listed in the <citerefentry> <refentrytitle>debconf-devel</"
1394 "refentrytitle> <manvolnum>7</manvolnum> </citerefentry> man page.  It is "
1395 "something that you must read if you decide to use debconf.  Also, we "
1396 "document some best practices here."
1397 msgstr ""
1398
1399 # type: Content of: <chapter><section><para>
1400 #. type: Content of: <chapter><section><para>
1401 #: best-pkging-practices.dbk:710
1402 msgid ""
1403 "These guidelines include some writing style and typography recommendations, "
1404 "general considerations about debconf usage as well as more specific "
1405 "recommendations for some parts of the distribution (the installation system "
1406 "for instance)."
1407 msgstr ""
1408
1409 # type: Content of: <chapter><section><section><title>
1410 #. type: Content of: <chapter><section><section><title>
1411 #: best-pkging-practices.dbk:716
1412 msgid "Do not abuse debconf"
1413 msgstr "debconf を乱用しない"
1414
1415 # type: Content of: <chapter><section><section><para>
1416 #. type: Content of: <chapter><section><section><para>
1417 #: best-pkging-practices.dbk:718
1418 msgid ""
1419 "Since debconf appeared in Debian, it has been widely abused and several "
1420 "criticisms received by the Debian distribution come from debconf abuse with "
1421 "the need of answering a wide bunch of questions before getting any little "
1422 "thing installed."
1423 msgstr ""
1424
1425 #. type: Content of: <chapter><section><section><para>
1426 #: best-pkging-practices.dbk:724
1427 msgid ""
1428 "Keep usage notes to what they belong: the <filename>NEWS.Debian</filename>, "
1429 "or <filename>README.Debian</filename> file.  Only use notes for important "
1430 "notes which may directly affect the package usability.  Remember that notes "
1431 "will always block the install until confirmed or bother the user by email."
1432 msgstr ""
1433
1434 # type: Content of: <chapter><section><section><para>
1435 #. type: Content of: <chapter><section><section><para>
1436 #: best-pkging-practices.dbk:730
1437 msgid ""
1438 "Carefully choose the questions priorities in maintainer scripts.  See "
1439 "<citerefentry> <refentrytitle>debconf-devel</refentrytitle> <manvolnum>7</"
1440 "manvolnum> </citerefentry> for details about priorities.  Most questions "
1441 "should use medium and low priorities."
1442 msgstr ""
1443
1444 # type: Content of: <chapter><section><section><title>
1445 #. type: Content of: <chapter><section><section><title>
1446 #: best-pkging-practices.dbk:738
1447 msgid "General recommendations for authors and translators"
1448 msgstr ""
1449
1450 # type: Content of: <chapter><section><section><section><title>
1451 #. type: Content of: <chapter><section><section><section><title>
1452 #: best-pkging-practices.dbk:740
1453 msgid "Write correct English"
1454 msgstr "正しい英語を書く"
1455
1456 # type: Content of: <chapter><section><section><section><para>
1457 #. type: Content of: <chapter><section><section><section><para>
1458 #: best-pkging-practices.dbk:742
1459 msgid ""
1460 "Most Debian package maintainers are not native English speakers.  So, "
1461 "writing properly phrased templates may not be easy for them."
1462 msgstr ""
1463
1464 # type: Content of: <chapter><section><section><section><para>
1465 #. type: Content of: <chapter><section><section><section><para>
1466 #: best-pkging-practices.dbk:746
1467 msgid ""
1468 "Please use (and abuse) &email-debian-l10n-english; mailing list.  Have your "
1469 "templates proofread."
1470 msgstr ""
1471
1472 #. type: Content of: <chapter><section><section><section><para>
1473 #: best-pkging-practices.dbk:750
1474 msgid ""
1475 "Badly written templates give a poor image of your package, of your work... "
1476 "or even of Debian itself."
1477 msgstr ""
1478
1479 # type: Content of: <chapter><section><section><section><para>
1480 #. type: Content of: <chapter><section><section><section><para>
1481 #: best-pkging-practices.dbk:754
1482 msgid ""
1483 "Avoid technical jargon as much as possible.  If some terms sound common to "
1484 "you, they may be impossible to understand for others.  If you cannot avoid "
1485 "them, try to explain them (use the extended description).  When doing so, "
1486 "try to balance between verbosity and simplicity."
1487 msgstr ""
1488
1489 # type: Content of: <chapter><section><section><section><title>
1490 #. type: Content of: <chapter><section><section><section><title>
1491 #: best-pkging-practices.dbk:762
1492 msgid "Be kind to translators"
1493 msgstr "翻訳者へ丁寧に接する"
1494
1495 # type: Content of: <chapter><section><section><section><para>
1496 #. type: Content of: <chapter><section><section><section><para>
1497 #: best-pkging-practices.dbk:764
1498 msgid ""
1499 "Debconf templates may be translated.  Debconf, along with its sister package "
1500 "<command>po-debconf</command> offers a simple framework for getting "
1501 "templates translated by translation teams or even individuals."
1502 msgstr ""
1503
1504 #. type: Content of: <chapter><section><section><section><para>
1505 #: best-pkging-practices.dbk:769
1506 msgid ""
1507 "Please use gettext-based templates.  Install <systemitem role=\"package\">po-"
1508 "debconf</systemitem> on your development system and read its documentation "
1509 "(<command>man po-debconf</command> is a good start)."
1510 msgstr ""
1511
1512 #. type: Content of: <chapter><section><section><section><para>
1513 #: best-pkging-practices.dbk:774
1514 msgid ""
1515 "Avoid changing templates too often.  Changing templates text induces more "
1516 "work to translators which will get their translation fuzzied.  A fuzzy "
1517 "translation is a string for which the original changed since it was "
1518 "translated, therefore requiring some update by a translator to be usable.  "
1519 "When changes are small enough, the original translation is kept in PO files "
1520 "but marked as <literal>fuzzy</literal>."
1521 msgstr ""
1522
1523 #. type: Content of: <chapter><section><section><section><para>
1524 #: best-pkging-practices.dbk:782
1525 msgid ""
1526 "If you plan to do changes to your original templates, please use the "
1527 "notification system provided with the <systemitem role=\"package\">po-"
1528 "debconf</systemitem> package, namely the <command>podebconf-report-po</"
1529 "command>, to contact translators.  Most active translators are very "
1530 "responsive and getting their work included along with your modified "
1531 "templates will save you additional uploads.  If you use gettext-based "
1532 "templates, the translator's name and e-mail addresses are mentioned in the "
1533 "PO files headers and will be used by <command>podebconf-report-po</command>."
1534 msgstr ""
1535
1536 #. type: Content of: <chapter><section><section><section><para>
1537 #: best-pkging-practices.dbk:794
1538 msgid "A recommended use of that utility is:"
1539 msgstr ""
1540
1541 #. type: Content of: <chapter><section><section><section><programlisting>
1542 #: best-pkging-practices.dbk:796
1543 #, no-wrap
1544 msgid "cd debian/po &amp;&amp; podebconf-report-po --call --languageteam --withtranslators --deadline=\"+10 days\""
1545 msgstr ""
1546
1547 #. type: Content of: <chapter><section><section><section><para>
1548 #: best-pkging-practices.dbk:798
1549 msgid ""
1550 "This command will first synchronize the PO and POT files in <filename>debian/"
1551 "po</filename> with the templates files listed in <filename>debian/po/"
1552 "POTFILES.in</filename>.  Then, it will send a call for new translations, in "
1553 "the &email-debian-i18n; mailing list. Finally, it will also send a call for "
1554 "translation updates to the language team (mentioned in the <literal>Language-"
1555 "Team</literal> field of each PO file)  as well as the last translator "
1556 "(mentioned in <literal>Last-translator</literal>)."
1557 msgstr ""
1558
1559 #. type: Content of: <chapter><section><section><section><para>
1560 #: best-pkging-practices.dbk:807
1561 msgid ""
1562 "Giving a deadline to translators is always appreciated, so that they can "
1563 "organize their work. Please remember that some translation teams have a "
1564 "formalized translate/review process and a delay lower than 10 days is "
1565 "considered as unreasonable. A shorter delay puts too much pressure on "
1566 "translation teams and should be kept for very minor changes."
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:814
1572 msgid ""
1573 "If in doubt, you may also contact the translation team for a given language "
1574 "(debian-l10n-xxxxx@&lists-host;), or the &email-debian-i18n; mailing list."
1575 msgstr ""
1576 "迷った場合は、該当の言語の翻訳チーム (debian-l10n-xxxxx@&lists-host;) か "
1577 "&email-debian-i18n; にも問い合わせましょう。"
1578
1579 # type: Content of: <chapter><section><section><section><title>
1580 #. type: Content of: <chapter><section><section><section><title>
1581 #: best-pkging-practices.dbk:821
1582 #, fuzzy
1583 msgid "Unfuzzy complete translations when correcting typos and spelling"
1584 msgstr "誤字やミススペルを修正する際に fuzzy を無くす"
1585
1586 #. type: Content of: <chapter><section><section><section><para>
1587 #: best-pkging-practices.dbk:823
1588 msgid ""
1589 "When the text of a debconf template is corrected and you are <emphasis role="
1590 "\"strong\">sure</emphasis> that the change does <emphasis role=\"strong"
1591 "\">not</emphasis> affect translations, please be kind to translators and "
1592 "<emphasis>unfuzzy</emphasis> their translations."
1593 msgstr ""
1594 "debconf テンプレートの文章が修正されて、その変更が翻訳に<emphasis role="
1595 "\"strong\">影響しない</emphasis>と<emphasis role=\"strong\">確信している"
1596 "</emphasis>場合には、翻訳作業者を労って翻訳文を <emphasis>unfuzzy</emphasis> "
1597 "してください。"
1598
1599 # type: Content of: <chapter><section><section><section><para>
1600 #. type: Content of: <chapter><section><section><section><para>
1601 #: best-pkging-practices.dbk:829
1602 msgid ""
1603 "If you don't do so, the whole template will not be translated as long as a "
1604 "translator will send you an update."
1605 msgstr ""
1606 "そうしないと、翻訳作業者が更新をあなたに送るまでテンプレート全体は翻訳され"
1607 "ていない状態になります。"
1608
1609 #. type: Content of: <chapter><section><section><section><para>
1610 #: best-pkging-practices.dbk:833
1611 msgid ""
1612 "To <emphasis>unfuzzy</emphasis> translations, you can use two methods. The "
1613 "first method does <emphasis>preventive</emphasis> search and replace actions "
1614 "in the PO files. The latter uses <command>gettext</command> utilities to "
1615 "<emphasis>unfuzzy</emphasis> strings."
1616 msgstr ""
1617
1618 #. type: Content of: <chapter><section><section><section><para>
1619 #: best-pkging-practices.dbk:839
1620 msgid "<emphasis>Preventive unfuzzy</emphasis> method:"
1621 msgstr "<emphasis>unfuzzy の予防</emphasis> 方法:"
1622
1623 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1624 #: best-pkging-practices.dbk:844
1625 msgid ""
1626 "Try finding a complete translation file <emphasis role=\"strong\">before</"
1627 "emphasis> the change:"
1628 msgstr ""
1629 "変更<emphasis role=\"strong\">前</emphasis>に完全な翻訳ファイルを見つけるようにしてください:"
1630
1631 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1632 #: best-pkging-practices.dbk:847 best-pkging-practices.dbk:918
1633 #, no-wrap
1634 msgid "for i in debian/po/*po; do echo -n $i: ; msgfmt -o /dev/null --statistics $i; done"
1635 msgstr "for i in debian/po/*po; do echo -n $i: ; msgfmt -o /dev/null --statistics $i; done"
1636
1637 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1638 #: best-pkging-practices.dbk:849
1639 msgid ""
1640 "The file only showing <emphasis>translated</emphasis> items will be used as "
1641 "the reference file. If there is none (which should not happen if you take "
1642 "care to properly interact with translators), you should use the file with "
1643 "the most translated strings."
1644 msgstr ""
1645
1646 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1647 #: best-pkging-practices.dbk:857
1648 msgid ""
1649 "Identify the needed change. In this example, let's assume the change is "
1650 "about fixing a typo in the word <literal>typo</literal> which was "
1651 "inadvertently written as <literal>tpyo</literal>. Therefore, the change is "
1652 "<command>s/tpyo/typo</command>."
1653 msgstr ""
1654
1655 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1656 #: best-pkging-practices.dbk:865
1657 msgid ""
1658 "Check that this change is only applied to the place where you really intend "
1659 "to make it and <emphasis role=\"strong\">not</emphasis> in any other place "
1660 "where the original string is appropriate. This specifically applies to "
1661 "change in punctuation, for instance."
1662 msgstr ""
1663
1664 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1665 #: best-pkging-practices.dbk:873
1666 msgid ""
1667 "Modify all PO files by using <command>sed</command>. The use of that command "
1668 "is recommended over any text editor to guarantee that the files encoding "
1669 "will not be broken by the edit action:"
1670 msgstr ""
1671 "すべての PO ファイルを <command>sed</command> を使って変更してください。編集作業によって"
1672 "ファイルのエンコーディングがこわされないことを保証するため、どのテキストエディタよりも"
1673 "このコマンドの利用を推奨します。"
1674
1675 # type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1676 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1677 #: best-pkging-practices.dbk:878
1678 #, no-wrap
1679 msgid ""
1680 "cd debian/po\n"
1681 "for i in *.po; do sed -i 's/tpyo/typo/g' $i; done\n"
1682 msgstr ""
1683 "cd debian/po\n"
1684 "for i in *.po; do sed -i 's/tpyo/typo/g' $i; done\n"
1685
1686 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1687 #: best-pkging-practices.dbk:884
1688 msgid "Change the debconf template file to fix the typo."
1689 msgstr "debconf テンプレートファイルを誤字修正のために変更する。"
1690
1691 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1692 #: best-pkging-practices.dbk:889
1693 msgid "Run <command>debconf-updatepo</command>."
1694 msgstr "<command>debconf-updatepo</command> を実行する。"
1695
1696 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1697 #: best-pkging-practices.dbk:894
1698 msgid ""
1699 "Check the <filename>foo.po</filename> reference file. Its statistics should "
1700 "not be changed:"
1701 msgstr ""
1702 "<filename>foo.po</filename> 参照ファイルをチェックする。統計は変化がないはずです:"
1703
1704 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1705 #: best-pkging-practices.dbk:898
1706 #, no-wrap
1707 msgid "msgfmt -o /dev/null --statistics debian/po/foo.po\n"
1708 msgstr "msgfmt -o /dev/null --statistics debian/po/foo.po\n"
1709
1710 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1711 #: best-pkging-practices.dbk:903
1712 msgid ""
1713 "If the file's statistics changed, you did something wrong. Try again or ask "
1714 "for help on the &email-debian-i18n; mailing list."
1715 msgstr ""
1716 "ファイルの統計が変化していた場合、何かしら変なことをやっています。再度やってみるか、"
1717 "&email-debian-i18n; メーリングリストで助けを求めましょう。"
1718
1719 #. type: Content of: <chapter><section><section><section><para>
1720 #: best-pkging-practices.dbk:909
1721 msgid "Gettext utilities method:"
1722 msgstr "gettext ユーティリティを使う方法:"
1723
1724 # type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1725 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1726 #: best-pkging-practices.dbk:914
1727 msgid ""
1728 "Put all incomplete PO files out of the way.  You can check the completeness "
1729 "by using (needs the <systemitem role=\"package\">gettext</systemitem> "
1730 "package installed):"
1731 msgstr ""
1732 "不完全な PO ファイルすべてをどけておきましょう。以下の様にすれば達成度をチェック"
1733 "できます (<systemitem role=\"package\">gettext</systemitem> パッケージがインストール"
1734 "されている必要があります):"
1735
1736 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1737 #: best-pkging-practices.dbk:922
1738 msgid ""
1739 "Move all files which report either fuzzy strings to a temporary place.  "
1740 "Files which report no fuzzy strings (only translated and untranslated) will "
1741 "be kept in place."
1742 msgstr ""
1743 "fuzzy 文字列を報告してきたすべてのファイルを一時的な場所へ移動しましょう。"
1744 "何も fuzzy 文字列を報告しないファイル (翻訳済と未訳のみ) はその場所に置いておきます。"
1745
1746 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1747 #: best-pkging-practices.dbk:929
1748 msgid ""
1749 "Now <emphasis role=\"strong\">and now only</emphasis>, modify the template "
1750 "for the typos and check again that translation are not impacted (typos, "
1751 "spelling errors, sometimes typographical corrections are usually OK)."
1752 msgstr ""
1753
1754 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1755 #: best-pkging-practices.dbk:936
1756 #, fuzzy
1757 msgid ""
1758 "Run <command>debconf-updatepo</command>.  This will fuzzy all strings you "
1759 "modified in translations.  You can see this by running the above again."
1760 msgstr ""
1761 "<command>debconf-updatepo</command> を実行します。これは、翻訳中であなたが"
1762 "変更したすべての文字列を fuzzy にします。"
1763
1764 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1765 #: best-pkging-practices.dbk:942
1766 msgid "Use the following command:"
1767 msgstr "以下のコマンドを利用してください:"
1768
1769 # type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1770 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><programlisting>
1771 #: best-pkging-practices.dbk:944
1772 #, no-wrap
1773 msgid "for i in debian/po/*po; do msgattrib --output-file=$i --clear-fuzzy $i; done"
1774 msgstr "for i in debian/po/*po; do msgattrib --output-file=$i --clear-fuzzy $i; done"
1775
1776 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1777 #: best-pkging-practices.dbk:948
1778 msgid ""
1779 "Move back to <filename>debian/po</filename> the files which showed fuzzy "
1780 "strings in the first step."
1781 msgstr ""
1782 "最初の手順で fuzzy 文字列を表示していた <filename>debian/po</filename> のファイルに"
1783 "戻ってください。"
1784
1785 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
1786 #: best-pkging-practices.dbk:953
1787 msgid "Run <command>debconf-updatepo</command> again."
1788 msgstr "再度 <command>debconf-updatepo</command> を実行してください。"
1789
1790 # type: Content of: <chapter><section><section><section><title>
1791 #. type: Content of: <chapter><section><section><section><title>
1792 #: best-pkging-practices.dbk:960
1793 msgid "Do not make assumptions about interfaces"
1794 msgstr "インターフェイスについて仮定をしない"
1795
1796 #. type: Content of: <chapter><section><section><section><para>
1797 #: best-pkging-practices.dbk:962
1798 msgid ""
1799 "Templates text should not make reference to widgets belonging to some "
1800 "debconf interfaces.  Sentences like <emphasis>If you answer Yes...</"
1801 "emphasis> have no meaning for users of graphical interfaces which use "
1802 "checkboxes for boolean questions."
1803 msgstr ""
1804
1805 # type: Content of: <chapter><section><section><section><para>
1806 #. type: Content of: <chapter><section><section><section><para>
1807 #: best-pkging-practices.dbk:967
1808 msgid ""
1809 "String templates should also avoid mentioning the default values in their "
1810 "description.  First, because this is redundant with the values seen by the "
1811 "users.  Also, because these default values may be different from the "
1812 "maintainer choices (for instance, when the debconf database was preseeded)."
1813 msgstr ""
1814
1815 # type: Content of: <chapter><section><section><section><para>
1816 #. type: Content of: <chapter><section><section><section><para>
1817 #: best-pkging-practices.dbk:973
1818 msgid ""
1819 "More generally speaking, try to avoid referring to user actions.  Just give "
1820 "facts."
1821 msgstr ""
1822
1823 # type: Content of: <chapter><section><section><section><title>
1824 #. type: Content of: <chapter><section><section><section><title>
1825 #: best-pkging-practices.dbk:979
1826 msgid "Do not use first person"
1827 msgstr "一人称を使わない"
1828
1829 #. type: Content of: <chapter><section><section><section><para>
1830 #: best-pkging-practices.dbk:981
1831 msgid ""
1832 "You should avoid the use of first person (<emphasis>I will do this...</"
1833 "emphasis> or <emphasis>We recommend...</emphasis>).  The computer is not a "
1834 "person and the Debconf templates do not speak for the Debian developers.  "
1835 "You should use neutral construction.  Those of you who already wrote "
1836 "scientific publications, just write your templates like you would write a "
1837 "scientific paper.  However, try using active voice if still possible, like "
1838 "<emphasis>Enable this if ...</emphasis> instead of <emphasis>This can be "
1839 "enabled if...</emphasis>."
1840 msgstr ""
1841
1842 # type: Content of: <chapter><section><section><section><title>
1843 #. type: Content of: <chapter><section><section><section><title>
1844 #: best-pkging-practices.dbk:991
1845 msgid "Be gender neutral"
1846 msgstr "性差に対して中立であれ"
1847
1848 # type: Content of: <chapter><section><section><section><para>
1849 #. type: Content of: <chapter><section><section><section><para>
1850 #: best-pkging-practices.dbk:993
1851 msgid ""
1852 "The world is made of men and women.  Please use gender-neutral constructions "
1853 "in your writing."
1854 msgstr ""
1855 "世界は、男と女によって成り立っています。記述の際には、性差に対して中立な書き方を行ってください。"
1856
1857 # type: Content of: <chapter><section><section><title>
1858 #. type: Content of: <chapter><section><section><title>
1859 #: best-pkging-practices.dbk:1001
1860 msgid "Templates fields definition"
1861 msgstr "テンプレートのフィールド定義"
1862
1863 # type: Content of: <chapter><section><section><para>
1864 #. type: Content of: <chapter><section><section><para>
1865 #: best-pkging-practices.dbk:1003
1866 msgid ""
1867 "This part gives some information which is mostly taken from the "
1868 "<citerefentry> <refentrytitle>debconf-devel</refentrytitle> <manvolnum>7</"
1869 "manvolnum> </citerefentry> manual page."
1870 msgstr ""
1871 "この章の情報は、ほとんどを <citerefentry> <refentrytitle>debconf-devel</refentrytitle> "
1872 "<manvolnum>7</manvolnum> </citerefentry> マニュアルページから得ています。"
1873
1874 # type: Content of: <chapter><section><section><section><title>
1875 #. type: Content of: <chapter><section><section><section><title>
1876 #: best-pkging-practices.dbk:1008
1877 msgid "Type"
1878 msgstr "Type"
1879
1880 #. type: Content of: <chapter><section><section><section><section><title>
1881 #: best-pkging-practices.dbk:1010
1882 msgid "string"
1883 msgstr "string"
1884
1885 # type: Content of: <chapter><section><section><section><section><para>
1886 #. type: Content of: <chapter><section><section><section><section><para>
1887 #: best-pkging-practices.dbk:1012
1888 msgid ""
1889 "Results in a free-form input field that the user can type any string into."
1890 msgstr ""
1891
1892 #. type: Content of: <chapter><section><section><section><section><title>
1893 #: best-pkging-practices.dbk:1017
1894 msgid "password"
1895 msgstr "password"
1896
1897 # type: Content of: <chapter><section><section><section><section><para>
1898 #. type: Content of: <chapter><section><section><section><section><para>
1899 #: best-pkging-practices.dbk:1019
1900 msgid ""
1901 "Prompts the user for a password.  Use this with caution; be aware that the "
1902 "password the user enters will be written to debconf's database.  You should "
1903 "probably clean that value out of the database as soon as is possible."
1904 msgstr ""
1905
1906 #. type: Content of: <chapter><section><section><section><section><title>
1907 #: best-pkging-practices.dbk:1026
1908 msgid "boolean"
1909 msgstr "boolean"
1910
1911 # type: Content of: <chapter><section><section><section><section><para>
1912 #. type: Content of: <chapter><section><section><section><section><para>
1913 #: best-pkging-practices.dbk:1028
1914 msgid ""
1915 "A true/false choice.  Remember: true/false, <emphasis role=\"strong\">not "
1916 "yes/no</emphasis>..."
1917 msgstr ""
1918 "true/false の選択です。注意点: true/false であって、<emphasis role=\"strong\">"
1919 "yes/no ではありません</emphasis>..."
1920
1921 #. type: Content of: <chapter><section><section><section><section><title>
1922 #: best-pkging-practices.dbk:1034
1923 msgid "select"
1924 msgstr "select"
1925
1926 #. type: Content of: <chapter><section><section><section><section><para>
1927 #: best-pkging-practices.dbk:1036
1928 msgid ""
1929 "A choice between one of a number of values.  The choices must be specified "
1930 "in a field named 'Choices'.  Separate the possible values with commas and "
1931 "spaces, like this: <literal>Choices: yes, no, maybe</literal>."
1932 msgstr ""
1933
1934 #. type: Content of: <chapter><section><section><section><section><para>
1935 #: best-pkging-practices.dbk:1041
1936 msgid ""
1937 "If choices are translatable strings, the 'Choices' field may be marked as "
1938 "translatable by using <literal>__Choices</literal>. The double underscore "
1939 "will split out each choice in a separate string."
1940 msgstr ""
1941
1942 #. type: Content of: <chapter><section><section><section><section><para>
1943 #: best-pkging-practices.dbk:1046
1944 msgid ""
1945 "The <command>po-debconf</command> system also offers interesting "
1946 "possibilities to only mark <emphasis role=\"strong\">some</emphasis> choices "
1947 "as translatable.  Example:"
1948 msgstr ""
1949
1950 #. type: Content of: <chapter><section><section><section><section><programlisting>
1951 #: best-pkging-practices.dbk:1051
1952 #, no-wrap
1953 msgid ""
1954 "Template: foo/bar\n"
1955 "Type: Select\n"
1956 "#flag:translate:3\n"
1957 "__Choices: PAL, SECAM, Other\n"
1958 "_Description: TV standard:\n"
1959 " Please choose the TV standard used in your country.\n"
1960 msgstr ""
1961 "Template: foo/bar\n"
1962 "Type: Select\n"
1963 "#flag:translate:3\n"
1964 "__Choices: PAL, SECAM, Other\n"
1965 "_Description: TV standard:\n"
1966 " Please choose the TV standard used in your country.\n"
1967
1968 #. type: Content of: <chapter><section><section><section><section><para>
1969 #: best-pkging-practices.dbk:1059
1970 msgid ""
1971 "In that example, only the 'Other' string is translatable while others are "
1972 "acronyms that should not be translated. The above allows only 'Other' to be "
1973 "included in PO and POT files."
1974 msgstr ""
1975
1976 #. type: Content of: <chapter><section><section><section><section><para>
1977 #: best-pkging-practices.dbk:1064
1978 msgid ""
1979 "The debconf templates flag system offers many such possibilities. The "
1980 "<citerefentry> <refentrytitle>po-debconf</refentrytitle> <manvolnum>7</"
1981 "manvolnum> </citerefentry> manual page lists all these possibilities."
1982 msgstr ""
1983
1984 #. type: Content of: <chapter><section><section><section><section><title>
1985 #: best-pkging-practices.dbk:1072
1986 msgid "multiselect"
1987 msgstr "multiselect"
1988
1989 # type: Content of: <chapter><section><section><section><section><para>
1990 #. type: Content of: <chapter><section><section><section><section><para>
1991 #: best-pkging-practices.dbk:1074
1992 msgid ""
1993 "Like the select data type, except the user can choose any number of items "
1994 "from the choices list (or chose none of them)."
1995 msgstr ""
1996
1997 #. type: Content of: <chapter><section><section><section><section><title>
1998 #: best-pkging-practices.dbk:1080
1999 msgid "note"
2000 msgstr ""
2001
2002 # type: Content of: <chapter><section><section><section><section><para>
2003 #. type: Content of: <chapter><section><section><section><section><para>
2004 #: best-pkging-practices.dbk:1082
2005 msgid ""
2006 "Rather than being a question per se, this datatype indicates a note that can "
2007 "be displayed to the user.  It should be used only for important notes that "
2008 "the user really should see, since debconf will go to great pains to make "
2009 "sure the user sees it; halting the install for them to press a key, and even "
2010 "mailing the note to them in some cases."
2011 msgstr ""
2012
2013 #. type: Content of: <chapter><section><section><section><section><title>
2014 #: best-pkging-practices.dbk:1091
2015 msgid "text"
2016 msgstr "text"
2017
2018 # type: Content of: <chapter><section><section><section><section><para>
2019 #. type: Content of: <chapter><section><section><section><section><para>
2020 #: best-pkging-practices.dbk:1093
2021 msgid "This type is now considered obsolete: don't use it."
2022 msgstr "この種類は現状では古すぎるものと考えられています: 使わないでください。"
2023
2024 #. type: Content of: <chapter><section><section><section><section><title>
2025 #: best-pkging-practices.dbk:1098
2026 msgid "error"
2027 msgstr "error"
2028
2029 # type: Content of: <chapter><section><section><section><section><para>
2030 #. type: Content of: <chapter><section><section><section><section><para>
2031 #: best-pkging-practices.dbk:1100
2032 msgid ""
2033 "This type is designed to handle error messages.  It is mostly similar to the "
2034 "note type.  Frontends may present it differently (for instance, the dialog "
2035 "frontend of cdebconf draws a red screen instead of the usual blue one)."
2036 msgstr ""
2037
2038 # type: Content of: <chapter><section><section><section><section><para>
2039 #. type: Content of: <chapter><section><section><section><section><para>
2040 #: best-pkging-practices.dbk:1105
2041 msgid ""
2042 "It is recommended to use this type for any message that needs user attention "
2043 "for a correction of any kind."
2044 msgstr ""
2045
2046 # type: Content of: <chapter><section><section><section><title>
2047 #. type: Content of: <chapter><section><section><section><title>
2048 #: best-pkging-practices.dbk:1113
2049 msgid "Description: short and extended description"
2050 msgstr ""
2051
2052 # type: Content of: <chapter><section><section><section><para>
2053 #. type: Content of: <chapter><section><section><section><para>
2054 #: best-pkging-practices.dbk:1115
2055 msgid ""
2056 "Template descriptions have two parts: short and extended.  The short "
2057 "description is in the Description: line of the template."
2058 msgstr ""
2059
2060 # type: Content of: <chapter><section><section><section><para>
2061 #. type: Content of: <chapter><section><section><section><para>
2062 #: best-pkging-practices.dbk:1119
2063 msgid ""
2064 "The short description should be kept short (50 characters or so) so that it "
2065 "may be accommodated by most debconf interfaces.  Keeping it short also helps "
2066 "translators, as usually translations tend to end up being longer than the "
2067 "original."
2068 msgstr ""
2069
2070 # type: Content of: <chapter><section><section><section><para>
2071 #. type: Content of: <chapter><section><section><section><para>
2072 #: best-pkging-practices.dbk:1125
2073 msgid ""
2074 "The short description should be able to stand on its own.  Some interfaces "
2075 "do not show the long description by default, or only if the user explicitely "
2076 "asks for it or even do not show it at all.  Avoid things like What do you "
2077 "want to do?"
2078 msgstr ""
2079
2080 # type: Content of: <chapter><section><section><section><para>
2081 #. type: Content of: <chapter><section><section><section><para>
2082 #: best-pkging-practices.dbk:1131
2083 msgid ""
2084 "The short description does not necessarily have to be a full sentence.  This "
2085 "is part of the keep it short and efficient recommendation."
2086 msgstr ""
2087
2088 # type: Content of: <chapter><section><section><section><para>
2089 #. type: Content of: <chapter><section><section><section><para>
2090 #: best-pkging-practices.dbk:1135
2091 msgid ""
2092 "The extended description should not repeat the short description word for "
2093 "word.  If you can't think up a long description, then first, think some "
2094 "more.  Post to debian-devel.  Ask for help.  Take a writing class! That "
2095 "extended description is important.  If after all that you still can't come "
2096 "up with anything, leave it blank."
2097 msgstr ""
2098
2099 # type: Content of: <chapter><section><section><section><para>
2100 #. type: Content of: <chapter><section><section><section><para>
2101 #: best-pkging-practices.dbk:1142
2102 msgid ""
2103 "The extended description should use complete sentences.  Paragraphs should "
2104 "be kept short for improved readability.  Do not mix two ideas in the same "
2105 "paragraph but rather use another paragraph."
2106 msgstr ""
2107
2108 # type: Content of: <chapter><section><section><section><para>
2109 #. type: Content of: <chapter><section><section><section><para>
2110 #: best-pkging-practices.dbk:1147
2111 msgid ""
2112 "Don't be too verbose.  User tend to ignore too long screens.  20 lines are "
2113 "by experience a border you shouldn't cross, because that means that in the "
2114 "classical dialog interface, people will need to scroll, and lot of people "
2115 "just don't do that."
2116 msgstr ""
2117
2118 # type: Content of: <chapter><section><section><section><para>
2119 #. type: Content of: <chapter><section><section><section><para>
2120 #: best-pkging-practices.dbk:1153
2121 msgid ""
2122 "The extended description should <emphasis role=\"strong\">never</emphasis> "
2123 "include a question."
2124 msgstr ""
2125
2126 # type: Content of: <chapter><section><section><section><para>
2127 #. type: Content of: <chapter><section><section><section><para>
2128 #: best-pkging-practices.dbk:1157
2129 msgid ""
2130 "For specific rules depending on templates type (string, boolean, etc.), "
2131 "please read below."
2132 msgstr ""
2133
2134 # type: Content of: <chapter><section><section><section><title>
2135 #. type: Content of: <chapter><section><section><section><title>
2136 #: best-pkging-practices.dbk:1163
2137 msgid "Choices"
2138 msgstr "Choices"
2139
2140 #. type: Content of: <chapter><section><section><section><para>
2141 #: best-pkging-practices.dbk:1165
2142 msgid ""
2143 "This field should be used for select and multiselect types.  It contains the "
2144 "possible choices which will be presented to users.  These choices should be "
2145 "separated by commas."
2146 msgstr ""
2147
2148 # type: Content of: <chapter><section><section><section><title>
2149 #. type: Content of: <chapter><section><section><section><title>
2150 #: best-pkging-practices.dbk:1172
2151 msgid "Default"
2152 msgstr "Default"
2153
2154 # type: Content of: <chapter><section><section><section><para>
2155 #. type: Content of: <chapter><section><section><section><para>
2156 #: best-pkging-practices.dbk:1174
2157 msgid ""
2158 "This field is optional.  It contains the default answer for string, select "
2159 "and multiselect templates.  For multiselect templates, it may contain a "
2160 "comma-separated list of choices."
2161 msgstr ""
2162
2163 # type: Content of: <chapter><section><section><title>
2164 #. type: Content of: <chapter><section><section><title>
2165 #: best-pkging-practices.dbk:1183
2166 msgid "Templates fields specific style guide"
2167 msgstr ""
2168
2169 # type: Content of: <chapter><section><section><section><title>
2170 #. type: Content of: <chapter><section><section><section><title>
2171 #: best-pkging-practices.dbk:1185
2172 msgid "Type field"
2173 msgstr ""
2174
2175 # type: Content of: <chapter><section><section><section><para>
2176 #. type: Content of: <chapter><section><section><section><para>
2177 #: best-pkging-practices.dbk:1187
2178 msgid ""
2179 "No specific indication except: use the appropriate type by referring to the "
2180 "previous section."
2181 msgstr ""
2182
2183 # type: Content of: <chapter><section><section><section><title>
2184 #. type: Content of: <chapter><section><section><section><title>
2185 #: best-pkging-practices.dbk:1193
2186 msgid "Description field"
2187 msgstr ""
2188
2189 # type: Content of: <chapter><section><section><section><para>
2190 #. type: Content of: <chapter><section><section><section><para>
2191 #: best-pkging-practices.dbk:1195
2192 msgid ""
2193 "Below are specific instructions for properly writing the Description (short "
2194 "and extended) depending on the template type."
2195 msgstr ""
2196
2197 # type: Content of: <chapter><section><section><section><section><title>
2198 #. type: Content of: <chapter><section><section><section><section><title>
2199 #: best-pkging-practices.dbk:1199
2200 msgid "String/password templates"
2201 msgstr "String/password テンプレート"
2202
2203 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2204 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2205 #: best-pkging-practices.dbk:1203
2206 msgid ""
2207 "The short description is a prompt and <emphasis role=\"strong\">not</"
2208 "emphasis> a title.  Avoid question style prompts (IP Address?) in favour of "
2209 "opened prompts (IP address:).  The use of colons is recommended."
2210 msgstr ""
2211
2212 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2213 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2214 #: best-pkging-practices.dbk:1210
2215 msgid ""
2216 "The extended description is a complement to the short description.  In the "
2217 "extended part, explain what is being asked, rather than ask the same "
2218 "question again using longer words.  Use complete sentences.  Terse writing "
2219 "style is strongly discouraged."
2220 msgstr ""
2221
2222 # type: Content of: <chapter><section><section><section><section><title>
2223 #. type: Content of: <chapter><section><section><section><section><title>
2224 #: best-pkging-practices.dbk:1220
2225 msgid "Boolean templates"
2226 msgstr "Boolean テンプレート"
2227
2228 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2229 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2230 #: best-pkging-practices.dbk:1224
2231 msgid ""
2232 "The short description should be phrased in the form of a question which "
2233 "should be kept short and should generally end with a question mark.  Terse "
2234 "writing style is permitted and even encouraged if the question is rather "
2235 "long (remember that translations are often longer than original versions)."
2236 msgstr ""
2237
2238 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2239 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2240 #: best-pkging-practices.dbk:1232
2241 msgid ""
2242 "Again, please avoid referring to specific interface widgets.  A common "
2243 "mistake for such templates is if you answer Yes-type constructions."
2244 msgstr ""
2245
2246 # type: Content of: <chapter><section><section><section><section><title>
2247 #. type: Content of: <chapter><section><section><section><section><title>
2248 #: best-pkging-practices.dbk:1240
2249 msgid "Select/Multiselect"
2250 msgstr "Select/Multiselect"
2251
2252 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2253 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2254 #: best-pkging-practices.dbk:1244
2255 msgid ""
2256 "The short description is a prompt and <emphasis role=\"strong\">not</"
2257 "emphasis> a title.  Do <emphasis role=\"strong\">not</emphasis> use useless "
2258 "Please choose...  constructions.  Users are clever enough to figure out they "
2259 "have to choose something...:)"
2260 msgstr ""
2261
2262 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2263 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2264 #: best-pkging-practices.dbk:1252
2265 msgid ""
2266 "The extended description will complete the short description.  It may refer "
2267 "to the available choices.  It may also mention that the user may choose more "
2268 "than one of the available choices, if the template is a multiselect one "
2269 "(although the interface often makes this clear)."
2270 msgstr ""
2271
2272 # type: Content of: <chapter><section><section><section><section><title>
2273 #. type: Content of: <chapter><section><section><section><section><title>
2274 #: best-pkging-practices.dbk:1262
2275 msgid "Notes"
2276 msgstr ""
2277
2278 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2279 #: best-pkging-practices.dbk:1266
2280 msgid ""
2281 "The short description should be considered to be a <emphasis role=\"strong"
2282 "\">title</emphasis>."
2283 msgstr ""
2284
2285 # type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2286 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2287 #: best-pkging-practices.dbk:1271
2288 msgid ""
2289 "The extended description is what will be displayed as a more detailed "
2290 "explanation of the note.  Phrases, no terse writing style."
2291 msgstr ""
2292
2293 #. type: Content of: <chapter><section><section><section><section><itemizedlist><listitem><para>
2294 #: best-pkging-practices.dbk:1277
2295 msgid ""
2296 "<emphasis role=\"strong\">Do not abuse debconf.</emphasis> Notes are the "
2297 "most common way to abuse debconf.  As written in debconf-devel manual page: "
2298 "it's best to use them only for warning about very serious problems.  The "
2299 "<filename>NEWS.Debian</filename> or <filename>README.Debian</filename> files "
2300 "are the appropriate location for a lot of notes.  If, by reading this, you "
2301 "consider converting your Note type templates to entries in <filename>NEWS."
2302 "Debian</filename> or <filename>README.Debian</filename>, plus consider "
2303 "keeping existing translations for the future."
2304 msgstr ""
2305
2306 # type: Content of: <chapter><section><section><section><title>
2307 #. type: Content of: <chapter><section><section><section><title>
2308 #: best-pkging-practices.dbk:1292
2309 msgid "Choices field"
2310 msgstr ""
2311
2312 # type: Content of: <chapter><section><section><section><para>
2313 #. type: Content of: <chapter><section><section><section><para>
2314 #: best-pkging-practices.dbk:1294
2315 msgid ""
2316 "If the Choices are likely to change often, please consider using the "
2317 "__Choices trick.  This will split each individual choice into a single "
2318 "string, which will considerably help translators for doing their work."
2319 msgstr ""
2320
2321 # type: Content of: <chapter><section><section><section><title>
2322 #. type: Content of: <chapter><section><section><section><title>
2323 #: best-pkging-practices.dbk:1301 best-pkging-practices.dbk:1339
2324 msgid "Default field"
2325 msgstr ""
2326
2327 #. type: Content of: <chapter><section><section><section><para>
2328 #: best-pkging-practices.dbk:1303
2329 msgid ""
2330 "If the default value, for a select template, is likely to vary depending on "
2331 "the user language (for instance, if the choice is a language choice), please "
2332 "use the _Default trick."
2333 msgstr ""
2334
2335 #. type: Content of: <chapter><section><section><section><para>
2336 #: best-pkging-practices.dbk:1308
2337 msgid ""
2338 "This special field allow translators to put the most appropriate choice "
2339 "according to their own language.  It will become the default choice when "
2340 "their language is used while your own mentioned Default Choice will be used "
2341 "when using English."
2342 msgstr ""
2343
2344 # type: Content of: <chapter><section><section><section><para>
2345 #. type: Content of: <chapter><section><section><section><para>
2346 #: best-pkging-practices.dbk:1314
2347 msgid "Example, taken from the geneweb package templates:"
2348 msgstr "geneweb パッケージのテンプレートを例にとってみましょう:"
2349
2350 #. type: Content of: <chapter><section><section><section><screen>
2351 #: best-pkging-practices.dbk:1317
2352 #, no-wrap
2353 msgid ""
2354 "Template: geneweb/lang\n"
2355 "Type: select\n"
2356 "__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"
2357 "# This is the default choice. Translators may put their own language here\n"
2358 "# instead of the default.\n"
2359 "# WARNING : you MUST use the ENGLISH NAME of your language\n"
2360 "# For instance, the french translator will need to put French (fr) here.\n"
2361 "_Default: English[ translators, please see comment in PO files]\n"
2362 "_Description: Geneweb default language:\n"
2363 msgstr ""
2364 "Template: geneweb/lang\n"
2365 "Type: select\n"
2366 "__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"
2367 "# This is the default choice. Translators may put their own language here\n"
2368 "# instead of the default.\n"
2369 "# WARNING : you MUST use the ENGLISH NAME of your language\n"
2370 "# For instance, the french translator will need to put French (fr) here.\n"
2371 "_Default: English[ translators, please see comment in PO files]\n"
2372 "_Description: Geneweb default language:\n"
2373
2374 # type: Content of: <chapter><section><section><section><para>
2375 #. type: Content of: <chapter><section><section><section><para>
2376 #: best-pkging-practices.dbk:1328
2377 msgid ""
2378 "Note the use of brackets which allow internal comments in debconf fields.  "
2379 "Also note the use of comments which will show up in files the translators "
2380 "will work with."
2381 msgstr ""
2382
2383 #. type: Content of: <chapter><section><section><section><para>
2384 #: best-pkging-practices.dbk:1333
2385 msgid ""
2386 "The comments are needed as the _Default trick is a bit confusing: the "
2387 "translators may put their own choice"
2388 msgstr ""
2389
2390 # type: Content of: <chapter><section><section><section><para>
2391 #. type: Content of: <chapter><section><section><section><para>
2392 #: best-pkging-practices.dbk:1341
2393 msgid ""
2394 "Do NOT use empty default field.  If you don't want to use default values, do "
2395 "not use Default at all."
2396 msgstr ""
2397
2398 #. type: Content of: <chapter><section><section><section><para>
2399 #: best-pkging-practices.dbk:1345
2400 msgid ""
2401 "If you use po-debconf (and you <emphasis role=\"strong\">should</emphasis>, "
2402 "see <xref linkend=\"s6.5.2.2\"/>), consider making this field translatable, "
2403 "if you think it may be translated."
2404 msgstr ""
2405
2406 #. type: Content of: <chapter><section><section><section><para>
2407 #: best-pkging-practices.dbk:1350
2408 msgid ""
2409 "If the default value may vary depending on language/country (for instance "
2410 "the default value for a language choice), consider using the special "
2411 "_Default type documented in <citerefentry> <refentrytitle>po-debconf</"
2412 "refentrytitle> <manvolnum>7</manvolnum> </citerefentry>."
2413 msgstr ""
2414
2415 # type: Content of: <chapter><section><title>
2416 #. type: Content of: <chapter><section><title>
2417 #: best-pkging-practices.dbk:1362
2418 msgid "Internationalization"
2419 msgstr "国際化"
2420
2421 #. type: Content of: <chapter><section><para>
2422 #: best-pkging-practices.dbk:1364
2423 msgid ""
2424 "This section contains global information for developers to make translators' "
2425 "life easier.  More information for translators and developers interrested in "
2426 "internationalization are available in the <ulink url=\"&url-i18n-l10n;"
2427 "\">Internationalisation and localisation in Debian</ulink> documentation."
2428 msgstr ""
2429
2430 # type: Content of: <chapter><section><section><title>
2431 #. type: Content of: <chapter><section><section><title>
2432 #: best-pkging-practices.dbk:1371
2433 msgid "Handling debconf translations"
2434 msgstr "debconf の翻訳を取り扱う"
2435
2436 # type: Content of: <chapter><section><section><para>
2437 #. type: Content of: <chapter><section><section><para>
2438 #: best-pkging-practices.dbk:1373
2439 msgid ""
2440 "Like porters, translators have a difficult task.  They work on many packages "
2441 "and must collaborate with many different maintainers.  Moreover, most of the "
2442 "time, they are not native English speakers, so you may need to be "
2443 "particularly patient with them."
2444 msgstr ""
2445
2446 # type: Content of: <chapter><section><section><para>
2447 #. type: Content of: <chapter><section><section><para>
2448 #: best-pkging-practices.dbk:1379
2449 msgid ""
2450 "The goal of <systemitem role=\"package\">debconf</systemitem> was to make "
2451 "packages configuration easier for maintainers and for users.  Originally, "
2452 "translation of debconf templates was handled with <command>debconf-"
2453 "mergetemplate</command>.  However, that technique is now deprecated; the "
2454 "best way to accomplish <systemitem role=\"package\">debconf</systemitem> "
2455 "internationalization is by using the <systemitem role=\"package\">po-"
2456 "debconf</systemitem> package.  This method is easier both for maintainer and "
2457 "translators; transition scripts are provided."
2458 msgstr ""
2459
2460 #. type: Content of: <chapter><section><section><para>
2461 #: best-pkging-practices.dbk:1389
2462 msgid ""
2463 "Using <systemitem role=\"package\">po-debconf</systemitem>, the translation "
2464 "is stored in <filename>.po</filename> files (drawing from <command>gettext</"
2465 "command> translation techniques).  Special template files contain the "
2466 "original messages and mark which fields are translatable.  When you change "
2467 "the value of a translatable field, by calling <command>debconf-updatepo</"
2468 "command>, the translation is marked as needing attention from the "
2469 "translators.  Then, at build time, the <command>dh_installdebconf</command> "
2470 "program takes care of all the needed magic to add the template along with "
2471 "the up-to-date translations into the binary packages.  Refer to the "
2472 "<citerefentry> <refentrytitle>po-debconf</refentrytitle> <manvolnum>7</"
2473 "manvolnum> </citerefentry> manual page for details."
2474 msgstr ""
2475
2476 # type: Content of: <chapter><section><section><title>
2477 #. type: Content of: <chapter><section><section><title>
2478 #: best-pkging-practices.dbk:1405
2479 msgid "Internationalized documentation"
2480 msgstr "ドキュメントの国際化"
2481
2482 # type: Content of: <chapter><section><section><para>
2483 #. type: Content of: <chapter><section><section><para>
2484 #: best-pkging-practices.dbk:1407
2485 msgid ""
2486 "Internationalizing documentation is crucial for users, but a lot of labor.  "
2487 "There's no way to eliminate all that work, but you can make things easier "
2488 "for translators."
2489 msgstr ""
2490
2491 #. type: Content of: <chapter><section><section><para>
2492 #: best-pkging-practices.dbk:1412
2493 msgid ""
2494 "If you maintain documentation of any size, it is easier for translators if "
2495 "they have access to a source control system.  That lets translators see the "
2496 "differences between two versions of the documentation, so, for instance, "
2497 "they can see what needs to be retranslated.  It is recommended that the "
2498 "translated documentation maintain a note about what source control revision "
2499 "the translation is based on.  An interesting system is provided by <ulink "
2500 "url=\"&url-i18n-doc-check;\">doc-check</ulink> in the <systemitem role="
2501 "\"package\">debian-installer</systemitem> package, which shows an overview "
2502 "of the translation status for any given language, using structured comments "
2503 "for the current revision of the file to be translated and, for a translated "
2504 "file, the revision of the original file the translation is based on.  You "
2505 "might wish to adapt and provide that in your VCS area."
2506 msgstr ""
2507
2508 # type: Content of: <chapter><section><section><para>
2509 #. type: Content of: <chapter><section><section><para>
2510 #: best-pkging-practices.dbk:1426
2511 msgid ""
2512 "If you maintain XML or SGML documentation, we suggest that you isolate any "
2513 "language-independent information and define those as entities in a separate "
2514 "file which is included by all the different translations.  This makes it "
2515 "much easier, for instance, to keep URLs up to date across multiple files."
2516 msgstr ""
2517
2518 #. type: Content of: <chapter><section><section><para>
2519 #: best-pkging-practices.dbk:1432
2520 msgid ""
2521 "Some tools (e.g. <systemitem role=\"package\">po4a</systemitem>, <systemitem "
2522 "role=\"package\">poxml</systemitem>, or the <systemitem role=\"package"
2523 "\">translate-toolkit</systemitem>) are specialized in extracting the "
2524 "translatable material from different formats.  They produce PO files, a "
2525 "format quite common to translators, which permits to see what needs to be "
2526 "retranslated when the translated document is updated."
2527 msgstr ""
2528
2529 # type: Content of: <chapter><section><title>
2530 #. type: Content of: <chapter><section><title>
2531 #: best-pkging-practices.dbk:1444
2532 msgid "Common packaging situations"
2533 msgstr ""
2534
2535 # type: Content of: <chapter><section><section><title>
2536 #. type: Content of: <chapter><section><section><title>
2537 #: best-pkging-practices.dbk:1455
2538 msgid "Packages using <command>autoconf</command>/<command>automake</command>"
2539 msgstr ""
2540 "<command>autoconf</command>/<command>automake</command> を使っているパッケー"
2541 "ジ"
2542
2543 # type: Content of: <chapter><section><section><para>
2544 #. type: Content of: <chapter><section><section><para>
2545 #: best-pkging-practices.dbk:1457
2546 msgid ""
2547 "Keeping <command>autoconf</command>'s <filename>config.sub</filename> and "
2548 "<filename>config.guess</filename> files up to date is critical for porters, "
2549 "especially on more volatile architectures.  Some very good packaging "
2550 "practices for any package using <command>autoconf</command> and/or "
2551 "<command>automake</command> have been synthesized in &file-bpp-autotools; "
2552 "from the <systemitem role=\"package\">autotools-dev</systemitem> package.  "
2553 "You're strongly encouraged to read this file and to follow the given "
2554 "recommendations."
2555 msgstr ""
2556
2557 # type: Content of: <chapter><section><section><title>
2558 #. type: Content of: <chapter><section><section><title>
2559 #: best-pkging-practices.dbk:1469
2560 msgid "Libraries"
2561 msgstr "ライブラリ"
2562
2563 # type: Content of: <chapter><section><section><para>
2564 #. type: Content of: <chapter><section><section><para>
2565 #: best-pkging-practices.dbk:1471
2566 msgid ""
2567 "Libraries are always difficult to package for various reasons.  The policy "
2568 "imposes many constraints to ease their maintenance and to make sure upgrades "
2569 "are as simple as possible when a new upstream version comes out.  Breakage "
2570 "in a library can result in dozens of dependent packages breaking."
2571 msgstr ""
2572
2573 # type: Content of: <chapter><section><section><para>
2574 #. type: Content of: <chapter><section><section><para>
2575 #: best-pkging-practices.dbk:1477
2576 msgid ""
2577 "Good practices for library packaging have been grouped in <ulink url=\"&url-"
2578 "libpkg-guide;\">the library packaging guide</ulink>."
2579 msgstr ""
2580
2581 # type: Content of: <chapter><section><section><title>
2582 #. type: Content of: <chapter><section><section><title>
2583 #: best-pkging-practices.dbk:1484
2584 msgid "Documentation"
2585 msgstr "ドキュメント化"
2586
2587 # type: Content of: <chapter><section><section><para>
2588 #. type: Content of: <chapter><section><section><para>
2589 #: best-pkging-practices.dbk:1486
2590 msgid ""
2591 "Be sure to follow the <ulink url=\"&url-debian-policy;ch-docs.html\">Policy "
2592 "on documentation</ulink>."
2593 msgstr ""
2594 "<ulink url=\"&url-debian-policy;ch-docs.html\">ドキュメント化のポリシー"
2595 "</ulink>に忘れず従ってください。"
2596
2597 # ship は「出荷」の意味だが、Debian の場合は製品ではないので「リリース」とした
2598 # type: Content of: <chapter><section><section><para>
2599 #. type: Content of: <chapter><section><section><para>
2600 #: best-pkging-practices.dbk:1491
2601 msgid ""
2602 "If your package contains documentation built from XML or SGML, we recommend "
2603 "you not ship the XML or SGML source in the binary package(s).  If users want "
2604 "the source of the documentation, they should retrieve the source package."
2605 msgstr ""
2606 "あなたのパッケージが XML や SGML から生成されるドキュメントを含んでいる場合、"
2607 "XML や SGML のソースをバイナリパッケージに含めてリリースしないことをお勧めします。"
2608 "ユーザがドキュメントのソースを欲しい場合には、ソースパッケージを引っ張ってくれば"
2609 "良いのです。"
2610
2611 # type: Content of: <chapter><section><section><para>
2612 #. type: Content of: <chapter><section><section><para>
2613 #: best-pkging-practices.dbk:1496
2614 msgid ""
2615 "Policy specifies that documentation should be shipped in HTML format.  We "
2616 "also recommend shipping documentation in PDF and plain text format if "
2617 "convenient and if output of reasonable quality is possible.  However, it is "
2618 "generally not appropriate to ship plain text versions of documentation whose "
2619 "source format is HTML."
2620 msgstr ""
2621 "ポリシーではドキュメントは HTML 形式でリリースされるべきであると定めています。"
2622 "我々は、もし手がかからないで問題ない品質の出力が可能であれば、ドキュメントを "
2623 "PDF 形式とテキスト形式でもリリースすることをお勧めしています。ですが、ソースの"
2624 "形式が HTML のドキュメントを普通のテキスト版でリリースするのは、大抵の場合は適切"
2625 "ではありません。"
2626
2627 # type: Content of: <chapter><section><section><para>
2628 #. type: Content of: <chapter><section><section><para>
2629 #: best-pkging-practices.dbk:1503
2630 msgid ""
2631 "Major shipped manuals should register themselves with <systemitem role="
2632 "\"package\">doc-base</systemitem> on installation.  See the <systemitem role="
2633 "\"package\">doc-base</systemitem> package documentation for more information."
2634 msgstr ""
2635 "リリースされたメジャーなマニュアルは、インストール時に<systemitem role="
2636 "\"package\">doc-base</systemitem>で登録されるべきです。詳細については、"
2637 "<systemitem role=\"package\">doc-base</systemitem> パッケージのドキュメントを"
2638 "参照してください。"
2639
2640 #. type: Content of: <chapter><section><section><para>
2641 #: best-pkging-practices.dbk:1509
2642 msgid ""
2643 "Debian policy (section 12.1) directs that manual pages should accompany "
2644 "every program, utility, and function, and suggests them for other objects "
2645 "like configuration files. If the work you are packaging does not have such "
2646 "manual pages, consider writing them for inclusion in your package, and "
2647 "submitting them upstream."
2648 msgstr ""
2649 "Debian ポリシー (12.1 章) では、マニュアルページはすべてのプログラム・"
2650 "ユーティリティ・関数に対して付属すべきであり、設定ファイルのようなその他の"
2651 "ものについては付属を提案を示しています。もし、あなたがパッケージングを"
2652 "しているものがそのようなマニュアルページを持っていない場合は、パッケージ"
2653 "に含めるために記述を行い、開発元 (upstream) へ送付することを検討してください。"
2654
2655 #FIXME-Trans: to a lesser extent の訳。
2656 #. type: Content of: <chapter><section><section><para>
2657 #: best-pkging-practices.dbk:1516
2658 msgid ""
2659 "The manpages do not need to be written directly in the troff format.  "
2660 "Popular source formats are Docbook, POD and reST, which can be converted "
2661 "using <command>xsltproc</command>, <command>pod2man</command> and "
2662 "<command>rst2man</command> respectively. To a lesser extent, the "
2663 "<command>help2man</command> program can also be used to write a stub."
2664 msgstr ""
2665 "manpage は直接 troff 形式で書く必要はありません。よく使われるソース形式は、"
2666 "Docbook、POD、reST で、それぞれ <command>xsltproc</command>、<command>pod2man"
2667 "</command>、<command>rst2man</command> を使うことで変換できます。少なくとも、"
2668 "スタブを書くために <command>help2man</command> プログラムを使うことは可能です。"
2669
2670 # type: Content of: <chapter><section><section><title>
2671 #. type: Content of: <chapter><section><section><title>
2672 #: best-pkging-practices.dbk:1525
2673 msgid "Specific types of packages"
2674 msgstr "特定の種類のパッケージ"
2675
2676 # type: Content of: <chapter><section><section><para>
2677 #. type: Content of: <chapter><section><section><para>
2678 #: best-pkging-practices.dbk:1527
2679 msgid ""
2680 "Several specific types of packages have special sub-policies and "
2681 "corresponding packaging rules and practices:"
2682 msgstr ""
2683 "いくつかの特定の種類のパッケージは、特別なサブポリシーと対応する"
2684 "パッケージ化ルールおよびプラクティスを持っています:"
2685
2686 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2687 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2688 #: best-pkging-practices.dbk:1533
2689 msgid ""
2690 "Perl related packages have a <ulink url=\"&url-perl-policy;\">Perl policy</"
2691 "ulink>, some examples of packages following that policy are <systemitem role="
2692 "\"package\">libdbd-pg-perl</systemitem> (binary perl module) or <systemitem "
2693 "role=\"package\">libmldbm-perl</systemitem> (arch independent perl module)."
2694 msgstr ""
2695 "Perl 関連パッケージは、<ulink url=\"&url-perl-policy;\">Perl ポリシー</"
2696 "ulink> があり、このポリシーに従っているパッケージの例が <systemitem role="
2697 "\"package\">libdbd-pg-perl</systemitem> (バイナリ perl モジュール) または "
2698 "<systemitem role=\"package\">libmldbm-perl</systemitem> (アーキテクチャ非依存 "
2699 "perl モジュール) です。"
2700
2701 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2702 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2703 #: best-pkging-practices.dbk:1542
2704 msgid ""
2705 "Python related packages have their python policy; see &file-python-policy; "
2706 "in the <systemitem role=\"package\">python</systemitem> package."
2707 msgstr ""
2708 "Python 関連パッケージは、python ポリシーを持っています; <systemitem "
2709 "role=\"package\">python</systemitem> パッケージ中の &file-python-policy; "
2710 "を参照してください。"
2711
2712 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2713 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2714 #: best-pkging-practices.dbk:1549
2715 msgid ""
2716 "Emacs related packages have the <ulink url=\"&url-emacs-policy;\">emacs "
2717 "policy</ulink>."
2718 msgstr ""
2719 "Emacs 関連パッケージには、<ulink url=\"&url-emacs-policy;\">emacs ポリシー</ulink>"
2720 "があります。"
2721
2722 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2723 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2724 #: best-pkging-practices.dbk:1556
2725 msgid ""
2726 "Java related packages have their <ulink url=\"&url-java-policy;\">java "
2727 "policy</ulink>."
2728 msgstr ""
2729 "Java 関連パッケージには、<ulink url=\"&url-java-policy;\">java ポリシー</ulink>"
2730 "があります。"
2731
2732 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2733 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2734 #: best-pkging-practices.dbk:1563
2735 msgid ""
2736 "Ocaml related packages have their own policy, found in &file-ocaml-policy; "
2737 "from the <systemitem role=\"package\">ocaml</systemitem> package.  A good "
2738 "example is the <systemitem role=\"package\">camlzip</systemitem> source "
2739 "package."
2740 msgstr ""
2741 "Ocaml 関連パッケージは、固有のポリシーを持っており、<systemitem role="
2742 "\"package\">ocaml</systemitem> パッケージの &file-ocaml-policy; でみることが"
2743 "できます。良い例は <systemitem role=\"package\">camlzip</systemitem> ソース"
2744 "パッケージです。"
2745
2746 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2747 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2748 #: best-pkging-practices.dbk:1571
2749 msgid ""
2750 "Packages providing XML or SGML DTDs should conform to the recommendations "
2751 "found in the <systemitem role=\"package\">sgml-base-doc</systemitem> package."
2752 msgstr ""
2753
2754 # type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2755 #. type: Content of: <chapter><section><section><itemizedlist><listitem><para>
2756 #: best-pkging-practices.dbk:1577
2757 msgid ""
2758 "Lisp packages should register themselves with <systemitem role=\"package"
2759 "\">common-lisp-controller</systemitem>, about which see &file-lisp-"
2760 "controller;."
2761 msgstr ""
2762
2763 # type: Content of: <chapter><section><section><title>
2764 #. type: Content of: <chapter><section><section><title>
2765 #: best-pkging-practices.dbk:1607
2766 msgid "Architecture-independent data"
2767 msgstr "アーキテクチャ非依存のデータ"
2768
2769 # type: Content of: <chapter><section><section><para>
2770 #. type: Content of: <chapter><section><section><para>
2771 #: best-pkging-practices.dbk:1609
2772 msgid ""
2773 "It is not uncommon to have a large amount of architecture-independent data "
2774 "packaged with a program.  For example, audio files, a collection of icons, "
2775 "wallpaper patterns, or other graphic files.  If the size of this data is "
2776 "negligible compared to the size of the rest of the package, it's probably "
2777 "best to keep it all in a single package."
2778 msgstr ""
2779
2780 #. type: Content of: <chapter><section><section><para>
2781 #: best-pkging-practices.dbk:1616
2782 msgid ""
2783 "However, if the size of the data is considerable, consider splitting it out "
2784 "into a separate, architecture-independent package (<filename>_all.deb</"
2785 "filename>).  By doing this, you avoid needless duplication of the same data "
2786 "into eleven or more .debs, one per each architecture.  While this adds some "
2787 "extra overhead into the <filename>Packages</filename> files, it saves a lot "
2788 "of disk space on Debian mirrors.  Separating out architecture-independent "
2789 "data also reduces processing time of <command>lintian</command> (see <xref "
2790 "linkend=\"tools-lint\"/>) when run over the entire Debian archive."
2791 msgstr ""
2792
2793 # type: Content of: <chapter><section><section><title>
2794 #. type: Content of: <chapter><section><section><title>
2795 #: best-pkging-practices.dbk:1628
2796 msgid "Needing a certain locale during build"
2797 msgstr ""
2798
2799 # type: Content of: <chapter><section><section><para>
2800 #. type: Content of: <chapter><section><section><para>
2801 #: best-pkging-practices.dbk:1630
2802 msgid ""
2803 "If you need a certain locale during build, you can create a temporary file "
2804 "via this trick:"
2805 msgstr ""
2806
2807 # type: Content of: <chapter><section><section><para>
2808 #. type: Content of: <chapter><section><section><para>
2809 #: best-pkging-practices.dbk:1634
2810 msgid ""
2811 "If you set <varname>LOCPATH</varname> to the equivalent of <filename>/usr/"
2812 "lib/locale</filename>, and <varname>LC_ALL</varname> to the name of the "
2813 "locale you generate, you should get what you want without being root.  "
2814 "Something like this:"
2815 msgstr ""
2816
2817 # type: Content of: <chapter><section><section><screen>
2818 #. type: Content of: <chapter><section><section><screen>
2819 #: best-pkging-practices.dbk:1639
2820 #, no-wrap
2821 msgid ""
2822 "LOCALE_PATH=debian/tmpdir/usr/lib/locale\n"
2823 "LOCALE_NAME=en_IN\n"
2824 "LOCALE_CHARSET=UTF-8\n"
2825 "\n"
2826 "mkdir -p $LOCALE_PATH\n"
2827 "localedef -i $LOCALE_NAME.$LOCALE_CHARSET -f $LOCALE_CHARSET $LOCALE_PATH/$LOCALE_NAME.$LOCALE_CHARSET\n"
2828 "\n"
2829 "# Using the locale\n"
2830 "LOCPATH=$LOCALE_PATH LC_ALL=$LOCALE_NAME.$LOCALE_CHARSET date\n"
2831 msgstr ""
2832 "LOCALE_PATH=debian/tmpdir/usr/lib/locale\n"
2833 "LOCALE_NAME=en_IN\n"
2834 "LOCALE_CHARSET=UTF-8\n"
2835 "\n"
2836 "mkdir -p $LOCALE_PATH\n"
2837 "localedef -i $LOCALE_NAME.$LOCALE_CHARSET -f $LOCALE_CHARSET $LOCALE_PATH/$LOCALE_NAME.$LOCALE_CHARSET\n"
2838 "\n"
2839 "# ロケールを使う\n"
2840 "LOCPATH=$LOCALE_PATH LC_ALL=$LOCALE_NAME.$LOCALE_CHARSET date\n"
2841
2842 # type: Content of: <chapter><section><section><title>
2843 #. type: Content of: <chapter><section><section><title>
2844 #: best-pkging-practices.dbk:1652
2845 msgid "Make transition packages deborphan compliant"
2846 msgstr ""
2847
2848 # type: Content of: <chapter><section><section><para>
2849 #. type: Content of: <chapter><section><section><para>
2850 #: best-pkging-practices.dbk:1654
2851 msgid ""
2852 "Deborphan is a program for helping users to detect which packages can safely "
2853 "be removed from the system, i.e.  the ones that have no packages depending "
2854 "on them.  The default operation is to search only within the libs and "
2855 "oldlibs sections, to hunt down unused libraries.  But when passed the right "
2856 "argument, it tries to catch other useless packages."
2857 msgstr ""
2858
2859 # type: Content of: <chapter><section><section><para>
2860 #. type: Content of: <chapter><section><section><para>
2861 #: best-pkging-practices.dbk:1661
2862 msgid ""
2863 "For example, with <literal>--guess-dummy</literal>, <command>deborphan</"
2864 "command> tries to search all transitional packages which were needed for "
2865 "upgrade but which can now safely be removed.  For that, it looks for the "
2866 "string dummy or transitional in their short description."
2867 msgstr ""
2868
2869 # type: Content of: <chapter><section><section><para>
2870 #. type: Content of: <chapter><section><section><para>
2871 #: best-pkging-practices.dbk:1668
2872 msgid ""
2873 "So, when you are creating such a package, please make sure to add this text "
2874 "to your short description.  If you are looking for examples, just run: "
2875 "<command>apt-cache search .|grep dummy</command> or <command>apt-cache "
2876 "search .|grep transitional</command>."
2877 msgstr ""
2878
2879 #. type: Content of: <chapter><section><section><para>
2880 #: best-pkging-practices.dbk:1674
2881 msgid ""
2882 "Also, it is recommended to adjust its section to <literal>oldlibs</literal> "
2883 "and its priority to <literal>extra</literal> in order to ease "
2884 "<command>deborphan</command>'s job."
2885 msgstr ""
2886
2887 # type: Content of: <chapter><section><title>
2888 #. type: Content of: <chapter><section><section><title>
2889 #: best-pkging-practices.dbk:1683
2890 msgid "Best practices for <filename>.orig.tar.{gz,bz2,xz}</filename> files"
2891 msgstr ""
2892 "<filename>.orig.tar.{gz,bz2,xz}</filename> についてのベストプラクティス"
2893
2894 # type: Content of: <chapter><section><section><para>
2895 #. type: Content of: <chapter><section><section><para>
2896 #: best-pkging-practices.dbk:1685
2897 msgid ""
2898 "There are two kinds of original source tarballs: Pristine source and "
2899 "repackaged upstream source."
2900 msgstr ""
2901
2902 # type: Content of: <chapter><section><section><section><title>
2903 #. type: Content of: <chapter><section><section><section><title>
2904 #: best-pkging-practices.dbk:1689
2905 msgid "Pristine source"
2906 msgstr ""
2907
2908 #. type: Content of: <chapter><section><section><section><para><footnote><para>
2909 #: best-pkging-practices.dbk:1693
2910 msgid ""
2911 "We cannot prevent upstream authors from changing the tarball they distribute "
2912 "without also incrementing the version number, so there can be no guarantee "
2913 "that a pristine tarball is identical to what upstream <emphasis>currently</"
2914 "emphasis> distributing at any point in time.  All that can be expected is "
2915 "that it is identical to something that upstream once <emphasis>did</"
2916 "emphasis> distribute.  If a difference arises later (say, if upstream "
2917 "notices that he wasn't using maximal compression in his original "
2918 "distribution and then re-<command>gzip</command>s it), that's just too bad.  "
2919 "Since there is no good way to upload a new <filename>.orig.tar.{gz,bz2,xz}</"
2920 "filename> for the same version, there is not even any point in treating this "
2921 "situation as a bug."
2922 msgstr ""
2923
2924 #. type: Content of: <chapter><section><section><section><para>
2925 #: best-pkging-practices.dbk:1691
2926 msgid ""
2927 "The defining characteristic of a pristine source tarball is that the "
2928 "<filename>.orig.tar.{gz,bz2,xz}</filename> file is byte-for-byte identical "
2929 "to a tarball officially distributed by the upstream author.<placeholder type="
2930 "\"footnote\" id=\"0\"/> This makes it possible to use checksums to easily "
2931 "verify that all changes between Debian's version and upstream's are "
2932 "contained in the Debian diff.  Also, if the original source is huge, "
2933 "upstream authors and others who already have the upstream tarball can save "
2934 "download time if they want to inspect your packaging in detail."
2935 msgstr ""
2936
2937 # type: Content of: <chapter><section><section><section><para>
2938 #. type: Content of: <chapter><section><section><section><para>
2939 #: best-pkging-practices.dbk:1711
2940 msgid ""
2941 "There is no universally accepted guidelines that upstream authors follow "
2942 "regarding to the directory structure inside their tarball, but <command>dpkg-"
2943 "source</command> is nevertheless able to deal with most upstream tarballs as "
2944 "pristine source.  Its strategy is equivalent to the following:"
2945 msgstr ""
2946
2947 # type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
2948 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
2949 #: best-pkging-practices.dbk:1719
2950 msgid "It unpacks the tarball in an empty temporary directory by doing"
2951 msgstr ""
2952
2953 # type: Content of: <chapter><section><section><section><orderedlist><listitem><screen>
2954 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><screen>
2955 #: best-pkging-practices.dbk:1722
2956 #, no-wrap
2957 msgid "zcat path/to/<replaceable>packagename</replaceable>_<replaceable>upstream-version</replaceable>.orig.tar.gz | tar xf -\n"
2958 msgstr "zcat path/to/<replaceable>パッケージ名</replaceable>_<replaceable>upstream-version</replaceable>.orig.tar.gz | tar xf -\n"
2959
2960 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
2961 #: best-pkging-practices.dbk:1727
2962 msgid ""
2963 "If, after this, the temporary directory contains nothing but one directory "
2964 "and no other files, <command>dpkg-source</command> renames that directory to "
2965 "<filename><replaceable>packagename</replaceable>-<replaceable>upstream-"
2966 "version</replaceable>(.orig)</filename>.  The name of the top-level "
2967 "directory in the tarball does not matter, and is forgotten."
2968 msgstr ""
2969
2970 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
2971 #: best-pkging-practices.dbk:1736
2972 msgid ""
2973 "Otherwise, the upstream tarball must have been packaged without a common top-"
2974 "level directory (shame on the upstream author!).  In this case, "
2975 "<command>dpkg-source</command> renames the temporary directory "
2976 "<emphasis>itself</emphasis> to <filename><replaceable>packagename</"
2977 "replaceable>-<replaceable>upstream-version</replaceable>(.orig)</filename>."
2978 msgstr ""
2979
2980 # type: Content of: <chapter><section><section><section><title>
2981 #. type: Content of: <chapter><section><section><section><title>
2982 #: best-pkging-practices.dbk:1747
2983 msgid "Repackaged upstream source"
2984 msgstr "upstream のソースをパッケージしなおす"
2985
2986 # type: Content of: <chapter><section><section><section><para>
2987 #. type: Content of: <chapter><section><section><section><para>
2988 #: best-pkging-practices.dbk:1749
2989 msgid ""
2990 "You <emphasis role=\"strong\">should</emphasis> upload packages with a "
2991 "pristine source tarball if possible, but there are various reasons why it "
2992 "might not be possible.  This is the case if upstream does not distribute the "
2993 "source as gzipped tar at all, or if upstream's tarball contains non-DFSG-"
2994 "free material that you must remove before uploading."
2995 msgstr ""
2996
2997 #. type: Content of: <chapter><section><section><section><para>
2998 #: best-pkging-practices.dbk:1756
2999 msgid ""
3000 "In these cases the developer must construct a suitable <filename>.orig.tar."
3001 "{gz,bz2,xz}</filename> file himself.  We refer to such a tarball as a "
3002 "repackaged upstream source.  Note that a repackaged upstream source is "
3003 "different from a Debian-native package.  A repackaged source still comes "
3004 "with Debian-specific changes in a separate <filename>.diff.gz</filename> or "
3005 "<filename>.debian.tar.{gz,bz2,xz}</filename> and still has a version number "
3006 "composed of <replaceable>upstream-version</replaceable> and "
3007 "<replaceable>debian-version</replaceable>."
3008 msgstr ""
3009
3010 #. type: Content of: <chapter><section><section><section><para>
3011 #: best-pkging-practices.dbk:1765
3012 msgid ""
3013 "There may be cases where it is desirable to repackage the source even though "
3014 "upstream distributes a <filename>.tar.{gz,bz2,xz}</filename> that could in "
3015 "principle be used in its pristine form.  The most obvious is if "
3016 "<emphasis>significant</emphasis> space savings can be achieved by "
3017 "recompressing the tar archive or by removing genuinely useless cruft from "
3018 "the upstream archive.  Use your own discretion here, but be prepared to "
3019 "defend your decision if you repackage source that could have been pristine."
3020 msgstr ""
3021
3022 # type: Content of: <chapter><section><title>
3023 #. type: Content of: <chapter><section><section><section><para>
3024 #: best-pkging-practices.dbk:1774
3025 msgid "A repackaged <filename>.orig.tar.{gz,bz2,xz}</filename>"
3026 msgstr ""
3027 "<filename>.orig.tar.{gz,bz2,xz}</filename> についてのベストプラクティス"
3028
3029 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3030 #: best-pkging-practices.dbk:1779
3031 msgid ""
3032 "<emphasis role=\"strong\">should</emphasis> be documented in the resulting "
3033 "source package.  Detailed information on how the repackaged source was "
3034 "obtained, and on how this can be reproduced should be provided in "
3035 "<filename>debian/copyright</filename>.  It is also a good idea to provide a "
3036 "<literal>get-orig-source</literal> target in your <filename>debian/rules</"
3037 "filename> file that repeats the process, as described in the Policy Manual, "
3038 "<ulink url=\"&url-debian-policy;ch-source.html#s-debianrules\">Main building "
3039 "script: <filename>debian/rules</filename></ulink>."
3040 msgstr ""
3041
3042 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para><footnote><para>
3043 #: best-pkging-practices.dbk:1794
3044 msgid ""
3045 "As a special exception, if the omission of non-free files would lead to the "
3046 "source failing to build without assistance from the Debian diff, it might be "
3047 "appropriate to instead edit the files, omitting only the non-free parts of "
3048 "them, and/or explain the situation in a <filename>README.source</filename> "
3049 "file in the root of the source tree.  But in that case please also urge the "
3050 "upstream author to make the non-free components easier separable from the "
3051 "rest of the source."
3052 msgstr ""
3053
3054 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3055 #: best-pkging-practices.dbk:1792
3056 msgid ""
3057 "<emphasis role=\"strong\">should not</emphasis> contain any file that does "
3058 "not come from the upstream author(s), or whose contents has been changed by "
3059 "you.<placeholder type=\"footnote\" id=\"0\"/>"
3060 msgstr ""
3061
3062 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3063 #: best-pkging-practices.dbk:1805
3064 msgid ""
3065 "<emphasis role=\"strong\">should</emphasis>, except where impossible for "
3066 "legal reasons, preserve the entire building and portablility infrastructure "
3067 "provided by the upstream author.  For example, it is not a sufficient reason "
3068 "for omitting a file that it is used only when building on MS-DOS.  "
3069 "Similarly, a <filename>Makefile</filename> provided by upstream should not "
3070 "be omitted even if the first thing your <filename>debian/rules</filename> "
3071 "does is to overwrite it by running a configure script."
3072 msgstr ""
3073
3074 # type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3075 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3076 #: best-pkging-practices.dbk:1814
3077 msgid ""
3078 "(<emphasis>Rationale:</emphasis> It is common for Debian users who need to "
3079 "build software for non-Debian platforms to fetch the source from a Debian "
3080 "mirror rather than trying to locate a canonical upstream distribution point)."
3081 msgstr ""
3082
3083 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3084 #: best-pkging-practices.dbk:1821
3085 msgid ""
3086 "<emphasis role=\"strong\">should</emphasis> use "
3087 "<filename><replaceable>packagename</replaceable>-<replaceable>upstream-"
3088 "version</replaceable>.orig</filename> as the name of the top-level directory "
3089 "in its tarball.  This makes it possible to distinguish pristine tarballs "
3090 "from repackaged ones."
3091 msgstr ""
3092
3093 #. type: Content of: <chapter><section><section><section><orderedlist><listitem><para>
3094 #: best-pkging-practices.dbk:1829
3095 msgid ""
3096 "<emphasis role=\"strong\">should</emphasis> be gzipped or bzipped with "
3097 "maximal compression."
3098 msgstr ""
3099
3100 #. type: Content of: <chapter><section><section><section><title>
3101 #: best-pkging-practices.dbk:1836
3102 msgid "Changing binary files"
3103 msgstr "バイナリファイルの変更"
3104
3105 #. type: Content of: <chapter><section><section><section><para>
3106 #: best-pkging-practices.dbk:1838
3107 msgid ""
3108 "Sometimes it is necessary to change binary files contained in the original "
3109 "tarball, or to add binary files that are not in it. This is fully supported "
3110 "when using source packages in “3.0 (quilt)” format, see the "
3111 "<citerefentry><refentrytitle>dpkg-source</refentrytitle><manvolnum>1</"
3112 "manvolnum></citerefentry> manual page for details. When using the older "
3113 "format “1.0”, binary files can't be stored in the <filename>.diff.gz</"
3114 "filename> so you must store an <command>uuencode</command>d (or similar) "
3115 "version of the file(s)  and decode it at build time in <filename>debian/"
3116 "rules</filename> (and move it in its official location)."
3117 msgstr ""
3118 "オリジナルの tarball に含まれているバイナリファイルを変更する、あるいは存在"
3119 "していなかったバイナリファイルを追加する必要がある場合がしばしばあります。"
3120 "これは、ソースパッケージが“3.0 (quilt)”形式を使っている場合は完全にサポート"
3121 "されています。詳細は <citerefentry><refentrytitle>dpkg-source</refentrytitle>"
3122 "<manvolnum>1</manvolnum></citerefentry> マニュアルのページを参照してください。"
3123 "古い“1.0”形式を使っている場合、バイナリファイルを <filename>.diff.gz</"
3124 "filename> 中に保存できないので、<command>uuencode</command> (か類似のもの) を"
3125 "使ったファイルを保存し、<filename>debian/rules</filename> 中でビルド時に"
3126 "デコードします (そしてファイルを正しい位置へ移動する)。"
3127
3128 # type: Content of: <chapter><section><section><title>
3129 #. type: Content of: <chapter><section><section><title>
3130 #: best-pkging-practices.dbk:1853
3131 msgid "Best practices for debug packages"
3132 msgstr "デバッグパッケージのベストプラクティス"
3133
3134 #FIXME-trans: otherwise?
3135 #. type: Content of: <chapter><section><section><para>
3136 #: best-pkging-practices.dbk:1855
3137 msgid ""
3138 "A debug package is a package with a name ending in -dbg, that contains "
3139 "additional information that <command>gdb</command> can use.  Since Debian "
3140 "binaries are stripped by default, debugging information, including function "
3141 "names and line numbers, is otherwise not available when running "
3142 "<command>gdb</command> on Debian binaries.  Debug packages allow users who "
3143 "need this additional debugging information to install it, without bloating a "
3144 "regular system with the information."
3145 msgstr ""
3146 "デバッグパッケージは名前が -dbg で終わっているもので、<command>gdb</command> "
3147 "が利用可能な追加情報を含んでいます。Debian のバイナリはデフォルトで strip されて"
3148 "いるので、関数名や行番号を含むデバッグ情報は、Debian のバイナリに <command>gdb"
3149 "</command> を走らせたときに利用できません。デバッグパッケージは、この追加デバッグ"
3150 "情報を必要とするユーザが、通常のシステムを巨大化させること無く使えるように"
3151 "してくれます。"
3152
3153 # type: Content of: <chapter><section><section><para>
3154 #. type: Content of: <chapter><section><section><para>
3155 #: best-pkging-practices.dbk:1863
3156 msgid ""
3157 "It is up to a package's maintainer whether to create a debug package or "
3158 "not.  Maintainers are encouraged to create debug packages for library "
3159 "packages, since this can aid in debugging many programs linked to a "
3160 "library.  In general, debug packages do not need to be added for all "
3161 "programs; doing so would bloat the archive.  But if a maintainer finds that "
3162 "users often need a debugging version of a program, it can be worthwhile to "
3163 "make a debug package for it.  Programs that are core infrastructure, such as "
3164 "apache and the X server are also good candidates for debug packages."
3165 msgstr ""
3166 "デバッグパッケージを作るか否かは、パッケージのメンテナ次第です。メンテナは、"
3167 "ライブラリパッケージについてデバッグパッケージを作成するのが推奨されています。"
3168 "これは、ライブラリにリンクしている沢山のプログラムをデバッグする助けになる"
3169 "からです。一般的に言って、デバッグパッケージはすべてのプログラムに追加する"
3170 "必要はありません; これを行うとアーカイブが巨大なものになるでしょう。しかし、"
3171 "メンテナは、ユーザがデバッグ版のプログラムを頻繁に必要とするのに気づいた場合、"
3172 "デバッグパッケージを作るのに値するでしょう。インフラストラクチャの核となっている、"
3173 "apache や X サーバのようプログラムも、デバッグパッケージの良い作成候補です。"
3174
3175 #. type: Content of: <chapter><section><section><para>
3176 #: best-pkging-practices.dbk:1873
3177 #, fuzzy
3178 msgid ""
3179 "Some debug packages may contain an entire special debugging build of a "
3180 "library or other binary, but most of them can save space and build time by "
3181 "instead containing separated debugging symbols that <command>gdb</command> "
3182 "can find and load on the fly when debugging a program or library.  The "
3183 "convention in Debian is to keep these symbols in <filename>/usr/lib/debug/"
3184 "<replaceable>path</replaceable></filename>, where <replaceable>path</"
3185 "replaceable> is the path to the executable or library.  For example, "
3186 "debugging symbols for <filename>/usr/bin/foo</filename> go in <filename>/usr/"
3187 "lib/debug/usr/bin/foo</filename>, and debugging symbols for <filename>/usr/"
3188 "lib/libfoo.so.1</filename> go in <filename>/usr/lib/debug/usr/lib/libfoo."
3189 "so.1</filename>."
3190 msgstr ""
3191 "デバッグパッケージのうちいくつかは、ライブラリあるいは他のバイナリの完全に"
3192 "特別なデバッグビルドを含むでしょうが、それらの大半は容量やビルドする時間を節約でき、"
3193
3194 #. type: Content of: <chapter><section><section><para>
3195 #: best-pkging-practices.dbk:1885
3196 msgid ""
3197 "The debugging symbols can be extracted from an object file using "
3198 "<command>objcopy --only-keep-debug</command>.  Then the object file can be "
3199 "stripped, and <command>objcopy --add-gnu-debuglink</command> used to specify "
3200 "the path to the debugging symbol file.  <citerefentry> "
3201 "<refentrytitle>objcopy</refentrytitle> <manvolnum>1</manvolnum> </"
3202 "citerefentry> explains in detail how this works."
3203 msgstr ""
3204
3205 #. type: Content of: <chapter><section><section><para>
3206 #: best-pkging-practices.dbk:1893
3207 msgid ""
3208 "The <command>dh_strip</command> command in <systemitem role=\"package"
3209 "\">debhelper</systemitem> supports creating debug packages, and can take "
3210 "care of using <command>objcopy</command> to separate out the debugging "
3211 "symbols for you.  If your package uses <systemitem role=\"package"
3212 "\">debhelper</systemitem>, all you need to do is call <command>dh_strip --"
3213 "dbg-package=libfoo-dbg</command>, and add an entry to <filename>debian/"
3214 "control</filename> for the debug package."
3215 msgstr ""
3216
3217 #. type: Content of: <chapter><section><section><para>
3218 #: best-pkging-practices.dbk:1900
3219 msgid ""
3220 "Note that the debug package should depend on the package that it provides "
3221 "debugging symbols for, and this dependency should be versioned.  For example:"
3222 msgstr ""
3223
3224 # type: Content of: <chapter><section><section><screen>
3225 #. type: Content of: <chapter><section><section><screen>
3226 #: best-pkging-practices.dbk:1904
3227 #, no-wrap
3228 msgid "Depends: libfoo (= ${binary:Version})\n"
3229 msgstr "Depends: libfoo (= ${binary:Version})\n"
3230
3231 # type: Content of: <chapter><section><title>
3232 #. type: Content of: <chapter><section><section><title>
3233 #: best-pkging-practices.dbk:1908
3234 msgid "Best practices for meta-packages"
3235 msgstr "メタパッケージのベストプラクティス"
3236
3237 #. type: Content of: <chapter><section><section><para>
3238 #: best-pkging-practices.dbk:1910
3239 msgid ""
3240 "A meta-package is a mostly empty package that makes it easy to install a "
3241 "coherent set of packages that can evolve over time. It achieves this by "
3242 "depending on all the packages of the set. Thanks to the power of APT, the "
3243 "meta-package maintainer can adjust the dependencies and the user's system "
3244 "will automatically get the supplementary packages. The dropped packages that "
3245 "were automatically installed will be also be marked as removal candidates "
3246 "(and are even automatically removed by <command>aptitude</command>).  "
3247 "<systemitem role=\"package\">gnome</systemitem> and <systemitem role="
3248 "\"package\">linux-image-amd64</systemitem> are two examples of meta-packages "
3249 "(built by the source packages <systemitem role=\"package\">meta-gnome2</"
3250 "systemitem> and <systemitem role=\"package\">linux-latest</systemitem>)."
3251 msgstr ""
3252
3253 #. type: Content of: <chapter><section><section><para>
3254 #: best-pkging-practices.dbk:1924
3255 msgid ""
3256 "The long description of the meta-package must clearly document its purpose "
3257 "so that the user knows what he will lose if he removes the package. Being "
3258 "explicit about the consequences is recommended. This is particularly "
3259 "important for meta-packages which are installed during initial installation "
3260 "and that have not been explicitly installed by the user.  Those tend to be "
3261 "important to ensure smooth system upgrades and the user should be "
3262 "discouraged from uninstalling them to avoid potential breakages."
3263 msgstr ""