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