Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mquinson/po4a
Browse files Browse the repository at this point in the history
  • Loading branch information
mquinson committed Oct 16, 2024
2 parents 10e3593 + b07cb3b commit 63522db
Show file tree
Hide file tree
Showing 26 changed files with 103 additions and 111 deletions.
7 changes: 4 additions & 3 deletions Po4aBuilder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ package Po4aBuilder;

use 5.16.0;
use strict;
use Module::Build;
use warnings;

use parent qw(Module::Build);

use File::Basename;
use File::Path qw(mkpath rmtree);
use File::Spec;
use File::Copy qw(copy);
use File::stat;

our @ISA = qw(Module::Build);

sub ACTION_build {
my $self = shift;
$self->depends_on('code');
Expand Down
6 changes: 3 additions & 3 deletions lib/Locale/Po4a/AsciiDoc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TransTractor);

require Exporter;
use vars qw(@ISA @EXPORT);
@ISA = qw(Locale::Po4a::TransTractor);
use vars qw(@EXPORT);
@EXPORT = qw();

use Locale::Po4a::TransTractor;
use Locale::Po4a::Common;
use YAML::Tiny;

Expand Down
6 changes: 3 additions & 3 deletions lib/Locale/Po4a/BibTeX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TransTractor);

require Exporter;
use vars qw(@ISA @EXPORT);
@ISA = qw(Locale::Po4a::TransTractor);
use vars qw(@EXPORT);
@EXPORT = qw();

use Locale::Po4a::TransTractor;
use Locale::Po4a::Common;

sub initialize { }
Expand Down
10 changes: 5 additions & 5 deletions lib/Locale/Po4a/Common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ Locale::Po4a::Common, the first time this module is loaded determines whether Te

package Locale::Po4a::Common;

require Exporter;
use vars qw(@ISA @EXPORT);
@ISA = qw(Exporter);
@EXPORT = qw(wrap_msg wrap_mod wrap_ref_mod textdomain gettext dgettext);

use 5.16.0;
use strict;
use warnings;

use parent qw(Exporter);

use vars qw(@EXPORT);
@EXPORT = qw(wrap_msg wrap_mod wrap_ref_mod textdomain gettext dgettext);

sub import {
my $class = shift;

Expand Down
8 changes: 4 additions & 4 deletions lib/Locale/Po4a/Dia.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ use 5.16.0;
use strict;
use warnings;

use Locale::Po4a::Common;
use Locale::Po4a::Xml;
use parent qw(Locale::Po4a::Xml);

use vars qw(@ISA);
@ISA = qw(Locale::Po4a::Xml);
use Locale::Po4a::Common;

sub initialize {
my $self = shift;
Expand All @@ -112,3 +110,5 @@ sub found_string {

return $text;
}

1;
8 changes: 4 additions & 4 deletions lib/Locale/Po4a/Docbook.pm
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ use 5.16.0;
use strict;
use warnings;

use Locale::Po4a::Common;
use Locale::Po4a::Xml;
use parent qw(Locale::Po4a::Xml);

use vars qw(@ISA);
@ISA = qw(Locale::Po4a::Xml);
use Locale::Po4a::Common;

sub initialize {
my $self = shift;
Expand Down Expand Up @@ -2058,3 +2056,5 @@ sub initialize {
if $self->{options}{'debug'};
$self->treat_options;
}

1;
10 changes: 5 additions & 5 deletions lib/Locale/Po4a/Gemtext.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
#
########################################################################

require Exporter;

package Locale::Po4a::Gemtext;

use 5.006;
use strict;
use warnings;

use vars qw(@ISA @EXPORT @AUTOLOAD);
@ISA = qw(Locale::Po4a::TransTractor);
use parent qw(Locale::Po4a::TransTractor);

require Exporter;

use vars qw(@EXPORT @AUTOLOAD);
@EXPORT = qw();

use Locale::Po4a::TransTractor qw(process new);
use Locale::Po4a::Common;

=encoding UTF-8
Expand Down
8 changes: 4 additions & 4 deletions lib/Locale/Po4a/Guide.pm
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ use 5.16.0;
use strict;
use warnings;

use Locale::Po4a::Common;
use Locale::Po4a::Xml;
use parent qw(Locale::Po4a::Xml);

use vars qw(@ISA);
@ISA = qw(Locale::Po4a::Xml);
use Locale::Po4a::Common;

sub initialize {
my $self = shift;
Expand Down Expand Up @@ -151,3 +149,5 @@ sub initialize {
print "Call treat_options\n" if $self->{options}{'debug'};
$self->treat_options;
}

1;
6 changes: 3 additions & 3 deletions lib/Locale/Po4a/Halibut.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TeX);

require Exporter;
use vars qw($VERSION @ISA @EXPORT);
use vars qw($VERSION @EXPORT);
$VERSION = $Locale::Po4a::TeX::VERSION;
@ISA = qw(Locale::Po4a::TeX);
@EXPORT = qw();

use Locale::Po4a::Common;
use Locale::Po4a::TeX;
use subs qw(&parse_definition_file
&register_generic_command &is_closed &translate_buffer
&register_verbatim_environment
Expand Down
6 changes: 3 additions & 3 deletions lib/Locale/Po4a/InProgress/Debconf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TransTractor);

require Exporter;
use vars qw(@ISA @EXPORT);
@ISA = qw(Locale::Po4a::TransTractor);
use vars qw(@EXPORT);
@EXPORT = qw();

use Locale::Po4a::TransTractor;
use Locale::Po4a::Common;

sub initialize { }
Expand Down
6 changes: 3 additions & 3 deletions lib/Locale/Po4a/InProgress/NewsDebian.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TransTractor);

require Exporter;
use vars qw(@ISA @EXPORT);
@ISA = qw(Locale::Po4a::TransTractor);
use vars qw(@EXPORT);
@EXPORT = qw();

use Locale::Po4a::TransTractor;
use Locale::Po4a::Common;

sub initialize { }
Expand Down
10 changes: 5 additions & 5 deletions lib/Locale/Po4a/Ini.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
# Modules and declarations
############################################################################

use Locale::Po4a::TransTractor qw(process new);
use Locale::Po4a::Common;

package Locale::Po4a::Ini;

use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TransTractor);

use Locale::Po4a::Common;

require Exporter;

use vars qw(@ISA @EXPORT $AUTOLOAD);
@ISA = qw(Locale::Po4a::TransTractor);
use vars qw(@EXPORT $AUTOLOAD);
@EXPORT = qw();

my $debug = 0;
Expand Down
16 changes: 8 additions & 8 deletions lib/Locale/Po4a/KernelHelp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
# Modules and declarations
############################################################################

use Pod::Parser;
use Locale::Po4a::TransTractor qw(process new);
use Locale::Po4a::Common;

package Locale::Po4a::KernelHelp;

use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TransTractor);

use Pod::Parser;
use Locale::Po4a::Common;

require Exporter;

use vars qw(@ISA @EXPORT $AUTOLOAD);
@ISA = qw(Locale::Po4a::TransTractor);
@EXPORT = qw(); # new process write read writepo readpo);
use vars qw(@EXPORT $AUTOLOAD);
@EXPORT = qw(); # new process write read writepo readpo);

my $debug = 0;

Expand Down Expand Up @@ -119,13 +119,13 @@ sub docheader {
#
EOT
}
1;

##############################################################################
# Module return value and documentation
##############################################################################

1;

__END__
=encoding UTF-8
Expand Down
6 changes: 3 additions & 3 deletions lib/Locale/Po4a/LaTeX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TeX);

require Exporter;
use vars qw($VERSION @ISA @EXPORT);
use vars qw($VERSION @EXPORT);
$VERSION = $Locale::Po4a::TeX::VERSION;
@ISA = qw(Locale::Po4a::TeX);
@EXPORT = qw();

use Locale::Po4a::TeX;
use subs qw(&generic_command
&parse_definition_file
&register_generic_command
Expand Down
8 changes: 4 additions & 4 deletions lib/Locale/Po4a/Man.pm
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,12 @@ use 5.16.0;
use strict;
use warnings;

use parent qw(Locale::Po4a::TransTractor);

require Exporter;
use vars qw(@ISA @EXPORT);
@ISA = qw(Locale::Po4a::TransTractor);
@EXPORT = qw(); # new initialize);
use vars qw(@EXPORT);
@EXPORT = qw(); # new initialize);

use Locale::Po4a::TransTractor;
use Locale::Po4a::Common;

use File::Spec;
Expand Down
17 changes: 8 additions & 9 deletions lib/Locale/Po4a/Po.pm
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,25 @@ Set the package version for the POT header. The default is "VERSION".
=cut

use IO::File;
package Locale::Po4a::Po;

require Exporter;
use 5.16.0;
use strict;
use warnings;

package Locale::Po4a::Po;
use parent qw(Exporter);

use IO::File;

use Locale::Po4a::Common qw(wrap_msg wrap_mod wrap_ref_mod dgettext);

use subs qw(makespace);
use vars qw(@ISA @EXPORT_OK);
@ISA = qw(Exporter);
use vars qw(@EXPORT @EXPORT_OK);
@EXPORT = qw(%debug);
@EXPORT_OK = qw(&move_po_if_needed);

use Locale::Po4a::TransTractor;

use 5.16.0;
use strict;
use warnings;

use Carp qw(croak);
use File::Basename;
use File::Path; # mkdir before write
Expand Down
10 changes: 3 additions & 7 deletions lib/Locale/Po4a/Pod.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@
# Modules and declarations
############################################################################

use Pod::Parser;
use Locale::Po4a::TransTractor qw(process new get_in_charset get_out_charset);

package Locale::Po4a::Pod;

use 5.16.0;
use strict;
use warnings;

require Exporter;
use parent qw(Locale::Po4a::TransTractor Pod::Parser);

use vars qw(@ISA);
@ISA = qw(Locale::Po4a::TransTractor Pod::Parser);
require Exporter;

use Carp qw(croak confess);

Expand Down Expand Up @@ -203,13 +199,13 @@ If the PO get lost, keeping this translation up-to-date will be harder.
$encoding
EOT
}
1;

##############################################################################
# Module return value and documentation
##############################################################################

1;

__END__
=encoding UTF-8
Expand Down
Loading

0 comments on commit 63522db

Please sign in to comment.