]> git.pld-linux.org Git - packages/docbook2X.git/blame - docbook2X-nls.patch
- cosmetics.
[packages/docbook2X.git] / docbook2X-nls.patch
CommitLineData
e116d281 1diff -Nur docbook2X/docbook2man-spec.pl docbook2X.new/docbook2man-spec.pl
2--- docbook2X/docbook2man-spec.pl Sat Oct 2 16:35:18 1999
3+++ docbook2X.new/docbook2man-spec.pl Fri Jun 23 15:14:07 2000
4@@ -328,6 +328,14 @@
5 @manpage_names = ();
6
7 $manpage_misc = '';
8+
9+ # check refentry's language
10+ if(defined($_[0]->attribute('LANG')->value)) {
11+ $manpage_lang = $_[0]->attribute('LANG')->value;
12+ }
13+ else {
14+ $manpage_lang = '';
15+ }
16 });
17 sgml('</REFENTRY>', sub {
18 if(!$newline_last) {
19@@ -434,7 +442,13 @@
20
21
22 # NAME section
23-man_sgml('<REFNAMEDIV>', "\n.SH NAME\n");
24+#man_sgml('<REFNAMEDIV>', "\n.SH NAME\n");
25+man_sgml('<REFNAMEDIV>', sub {
26+ if ($manpage_lang eq "pl") { man_output "\n.SH NAZWA\n"; }
27+ # waits for another languages
28+ #elsif ($manpage_lang eq "xx") { man_output "\n.SH xxxxxxx\n"; }
29+ else { man_output "\n.SH NAME\n"; }
30+});
31
32 sgml('<REFNAME>', \&save_cdata);
33 sgml('</REFNAME>', sub {
34@@ -475,7 +489,14 @@
35 #
36 ########################################################################
37
38-man_sgml('<REFSYNOPSISDIV>', "\n.SH SYNOPSIS\n");
39+#man_sgml('<REFSYNOPSISDIV>', "\n.SH SYNOPSIS\n");
40+man_sgml('<REFSYNOPSISDIV>', sub {
41