blob: 99bba388a0fd5347e5b78d90f3d33b8dc0ff58a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/usr/bin/perl -w
# Copied from /usr/share/perl5/Debconf/Gettext.pm
package Dpkg::Gettext;
use strict;
use warnings;
BEGIN {
eval 'use Locale::gettext';
if ($@) {
eval q{
sub _g {
return shift;
}
sub textdomain {
}
sub ngettext {
if ($_[2] == 1) {
return $_[0];
} else {
return $_[1];
}
}
};
} else {
eval q{
sub _g {
return gettext(shift);
}
};
}
}
use base qw(Exporter);
our @EXPORT=qw(_g textdomain ngettext);
1;
|