--- docbook2man-spec.pl.orig Mon Jul 8 16:00:49 2002 +++ docbook2man-spec.pl Tue Jul 16 00:25:42 2002 @@ -244,6 +244,14 @@ $manpage_misc = ''; $list_nestlevel = 0; # Indent certain nested content. + + # check refentry's language + if(defined($_[0]->attribute('LANG')->value)) { + $manpage_lang = $_[0]->attribute('LANG')->value; + } + else { + $manpage_lang = ''; + } }); sgml('', sub { if(!$newline_last) { @@ -256,7 +264,11 @@ }); sgml('', sub { - push_output('file', "$manpage_title.$manpage_sect"); + if ($manpage_lang) { + push_output('file', "$manpage_title.$manpage_lang.$manpage_sect"); + } else { + push_output('file', "$manpage_title.$manpage_sect"); + } output <<_END_BANNER; .\\" This manpage has been automatically generated by docbook2man