diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-15 14:24:41 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-15 15:30:23 +0100 |
commit | b3595c5553035798b7b33d05c9326f7e8dd55e69 (patch) | |
tree | 3edb92d0cba4de6af1c4c630f998880059b21e2c /v2v/virt-v2v.pl | |
parent | 9449b0fce4145a56df9d43169d61e8b2c4e41b09 (diff) | |
download | libguestfs-b3595c5553035798b7b33d05c9326f7e8dd55e69.tar.gz libguestfs-b3595c5553035798b7b33d05c9326f7e8dd55e69.tar.xz libguestfs-b3595c5553035798b7b33d05c9326f7e8dd55e69.zip |
Make Perl strings translatable using perl-libintl.
All Perl strings are now marked as translatable using __"string"
or __x("string {placeholder}", placeholder => $_). Perl strings
now get copied to the PO files.
The po/POTFILES.in file is now updated automagically whenever we
add new *.c, *.pl or *.pm files into the repository.
Diffstat (limited to 'v2v/virt-v2v.pl')
-rwxr-xr-x | v2v/virt-v2v.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/v2v/virt-v2v.pl b/v2v/virt-v2v.pl index d3fa647d..fb1f2204 100755 --- a/v2v/virt-v2v.pl +++ b/v2v/virt-v2v.pl @@ -28,6 +28,7 @@ use Getopt::Long; use Data::Dumper; use File::Temp qw/tempdir/; use XML::Writer; +use Locale::TextDomain 'libguestfs'; =encoding utf8 @@ -170,7 +171,7 @@ if ($version) { print "$h{major}.$h{minor}.$h{release}$h{extra}\n"; exit } -pod2usage ("$0: no image or VM names given") if @ARGV == 0; +pod2usage (__"virt-v2v: no image or VM names given") if @ARGV == 0; # XXX This should be an option. Disable for now until we get # downloads working reliably. @@ -204,8 +205,8 @@ my $oses = inspect_operating_systems ($g, \%fses); # Only work on single-root operating systems. my $root_dev; my @roots = keys %$oses; -die "no root device found in this operating system image" if @roots == 0; -die "multiboot operating systems are not supported by v2v" if @roots > 1; +die __"no root device found in this operating system image" if @roots == 0; +die __"multiboot operating systems are not supported by v2v" if @roots > 1; $root_dev = $roots[0]; # Mount up the disks and check for applications. |