[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:00458] Re: dpkg-1.4.0.6(JP)



 吉山@神戸大です。

# 昨日は学校に来れませんでした。

I received from yochi@xxxxxxxxxxx on 01 21 , 1997. 

+ yosshy>  日本語版 dpkg の 1.4.0.6 を作りましたので ftp.linux.or.jp に
+ yosshy> put しました(gettext 化は難航しています)。
+ gettext化は難しいですか?

 gettext 化の手順は分かるのですが、dpkg のソースの書き方が gettext 化に
向いていない部分があるのです。(TT
 具体的には、
---
static void usage(void) {
  if (!fputs("\
Usage: " BACKEND " -b|--build <directory> [<deb>]    Build an archive.\n\
       " BACKEND " -c|--contents <deb>               List contents.\n\
       " BACKEND " -I|--info <deb> [<cfile>...]      Show info to stdout.\n\
       " BACKEND " -f|--field <deb> [<cfield>...]    Show field(s) to stdout.\n\
       " BACKEND " -e|--control <deb> [<directory>]  Extract control info.\n\
       " BACKEND " -x|--extract <deb> <directory>    Extract files.\n\
       " BACKEND " -X|--vextract <deb> <directory>   Extract & list files.\n\
       " BACKEND " --fsys-tarfile <deb>              Output filesystem tarfile.\
n\
       " BACKEND " -h|--help                         Display this message.\n\
       " BACKEND " --version | --licence             Show version/licence.\n\
<deb> is the filename of a Debian format archive.\n\
<cfile> is the name of an administrative file component.\n\
<cfield> is the name of a field in the main `control' file.\n\
Options:  -D for debugging output; --old or --new controls archive format;\n\
          --no-check to suppress control file check (build bad package).\n\
\n\
Use `" DPKG "' to install and remove packages from your system, or\n\
`" DSELECT "' for user-friendly package management.  Packages unpacked\n\
using `" BACKEND " --extract' will be incorrectly installed !\n",
             stdout)) werr("stdout");
}
---
という部分が(特にヘルプ部分に多く)あって、これが悪さしているのです。
 現在、プリプロセッサを通して上記の部分を先に1行にしてしまうような
処理を考えているのですが、道は遠いようです。

+ パッケージ名の事なのですが、オリジナルパッケージと同名になるのは
+ dselect の時に都合が悪いので、日本語パッケージということが
+ 分かるようにしませんか?
+ 
+ dpkg なら jdpkg とか、dpkg-jp とか。
+ 
+ いま、mh, man とかが該当すると上記の問題に該当するのですが、
+ jmh, jman にするか、mh-jp, man-jp にするかで悩んでいます。

 皆さんのルールに従います。

---

  name   : 吉山あきら (Akira Yoshiyama)
  e-mail : yosshy@xxxxxxxxxxxxxxxxxxxxx
  URL    : http://jedi.seg.kobe-u.ac.jp/~yosshy/linux.html

	『FAQ の部屋』公開中。