]> git.pld-linux.org Git - packages/docbook2X.git/commitdiff
d2dc6f94e617294b28e01349101fb800 docbook2X-nls.patch
authorklakier <klakier@pld-linux.org>
Sun, 25 Jun 2000 10:16:42 +0000 (10:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    docbook2X-nls.patch -> 1.1

docbook2X-nls.patch [new file with mode: 0644]

diff --git a/docbook2X-nls.patch b/docbook2X-nls.patch
new file mode 100644 (file)
index 0000000..4dd536b
--- /dev/null
@@ -0,0 +1,49 @@
+diff -Nur docbook2X/docbook2man-spec.pl docbook2X.new/docbook2man-spec.pl
+--- docbook2X/docbook2man-spec.pl      Sat Oct  2 16:35:18 1999
++++ docbook2X.new/docbook2man-spec.pl  Fri Jun 23 15:14:07 2000
+@@ -328,6 +328,14 @@
+       @manpage_names = ();
+       
+       $manpage_misc = '';
++
++      # check refentry's language
++      if(defined($_[0]->attribute('LANG')->value)) {
++        $manpage_lang = $_[0]->attribute('LANG')->value;
++      }
++      else {
++        $manpage_lang = '';
++      }
+ });
+ sgml('</REFENTRY>', sub {
+       if(!$newline_last) {
+@@ -434,7 +442,13 @@
+ # NAME section
+-man_sgml('<REFNAMEDIV>', "\n.SH NAME\n");
++#man_sgml('<REFNAMEDIV>', "\n.SH NAME\n");
++man_sgml('<REFNAMEDIV>', sub {
++         if ($manpage_lang eq "pl") { man_output "\n.SH NAZWA\n"; }
++         # waits for another languages
++         #elsif ($manpage_lang eq "xx") { man_output "\n.SH xxxxxxx\n"; } 
++         else { man_output "\n.SH NAME\n"; }
++});
+ sgml('<REFNAME>', \&save_cdata);
+ sgml('</REFNAME>', sub { 
+@@ -475,7 +489,14 @@
+ #
+ ########################################################################
+-man_sgml('<REFSYNOPSISDIV>', "\n.SH SYNOPSIS\n");
++#man_sgml('<REFSYNOPSISDIV>', "\n.SH SYNOPSIS\n");
++man_sgml('<REFSYNOPSISDIV>', sub {
++         if ($manpage_lang eq "pl") { man_output "\n.SH SKĀ£ADNIA\n"; }
++         # waits for another languages
++         #elsif ($manpage_lang eq "xx") { man_output "\n.SH xxxxxxx\n"; } 
++         else { man_output "\n.SH SYNOPSIS\n"; }
++});   
++
+ man_sgml('</REFSYNOPSISDIV>', "\n");
+ ## FIXME! Must be made into block elements!!
This page took 0.107545 seconds and 4 git commands to generate.