]> git.pld-linux.org Git - packages/docbook2X.git/blob - docbook2X-nls.patch
- cosmetics.
[packages/docbook2X.git] / docbook2X-nls.patch
1 diff -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 +          if ($manpage_lang eq "pl") { man_output "\n.SH SKĀ£ADNIA\n"; }
42 +          # waits for another languages
43 +          #elsif ($manpage_lang eq "xx") { man_output "\n.SH xxxxxxx\n"; } 
44 +          else { man_output "\n.SH SYNOPSIS\n"; }
45 +});   
46 +
47  man_sgml('</REFSYNOPSISDIV>', "\n");
48  
49  ## FIXME! Must be made into block elements!!
This page took 0.06004 seconds and 3 git commands to generate.