diff options
author | Masafumi Max NAKANE <max@FreeBSD.org> | 1997-12-07 15:44:08 +0000 |
---|---|---|
committer | Masafumi Max NAKANE <max@FreeBSD.org> | 1997-12-07 15:44:08 +0000 |
commit | e7eeb9a03d155880b8f6aa3d0a78f80e39b4070e (patch) | |
tree | aca461fac97bb50341e42013dd478959d291f5a7 /ja/ports/portindex | |
parent | 6ee2aa008c799703239d445f7a810608c00d0e5b (diff) | |
download | doc-e7eeb9a03d155880b8f6aa3d0a78f80e39b4070e.tar.gz doc-e7eeb9a03d155880b8f6aa3d0a78f80e39b4070e.zip |
Add Japanese description of each ports category.
Submitted by: kuriyama@opt.phys.waseda.ac.jp (Jun Kuriyama),
Motoyuki Konno <motoyuki@snipe.rim.or.jp>
Notes
Notes:
svn path=/www/; revision=2240
Diffstat (limited to 'ja/ports/portindex')
-rwxr-xr-x | ja/ports/portindex | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ja/ports/portindex b/ja/ports/portindex index 7fe4761e89..e987e2fcd5 100755 --- a/ja/ports/portindex +++ b/ja/ports/portindex @@ -4,7 +4,7 @@ # # by John Fieber <jfieber@freebsd.org> # Mon May 13 10:31:58 EST 1996 -# $Id: portindex,v 1.1.1.1 1997-11-23 22:23:06 max Exp $ +# $Id: portindex,v 1.2 1997-12-07 15:44:08 max Exp $ # The FreeBSD Japanese Documentation Project # Original revision: 1.11 @@ -52,6 +52,15 @@ sub main { $sep = "<B>:</B>"; + # 'category' translation database + if (open(CATF, "categories.ja_JP.EUC")) { + while (<CATF>) { + ($a, $b) = split('\|'); + chop($b); + $catsLANG{$a} = $b; + } + } + while (<>) { chop; s/&/&/g; @@ -136,9 +145,13 @@ sub main { @foos = sort(keys %stats); foreach $key (@foos) { + # For translation + $subkey = ""; + $subkey = " ($catsLANG{$key})" + if ($catsLANG{$key} ne ''); # For the master file... print MOUTF - "<LI><A HREF=\"$key.html\">\u$key</A> <em>($stats{$key})</em></LI>"; + "<LI><A HREF=\"$key.html\">\u$key$subkey</A> <em>($stats{$key})</em></LI>"; # Create the category file open(OUTF, ">$key.sgml"); |