add some clarification for translators
git-svn-id: http://emdebian.org/svn/current@7793 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
parent
0a43d71e60
commit
06f5ddfb00
1 changed files with 15 additions and 4 deletions
19
multistrap
19
multistrap
|
@ -78,10 +78,13 @@ die ($msg)
|
||||||
if (not defined $file);
|
if (not defined $file);
|
||||||
undef ($msg);
|
undef ($msg);
|
||||||
|
|
||||||
my $realpath = `which realpath`;
|
# cope with people getting things wrong from local SVN (not a translated string).
|
||||||
chomp ($realpath);
|
if (dirname($0) ne "/usr/sbin/") {
|
||||||
die (_g("ERR: Unable to find realpath - missing dependency.\n")) if (not -x ($realpath));
|
print "checking realpath\n";
|
||||||
|
my $realpath = `which realpath`;
|
||||||
|
chomp ($realpath);
|
||||||
|
die ("ERR: Please install realpath.\n") if (not -x ($realpath));
|
||||||
|
}
|
||||||
$cachedir = "var/cache/apt/"; # archives
|
$cachedir = "var/cache/apt/"; # archives
|
||||||
$libdir = "var/lib/apt/"; # lists
|
$libdir = "var/lib/apt/"; # lists
|
||||||
$etcdir = "etc/apt/"; # sources
|
$etcdir = "etc/apt/"; # sources
|
||||||
|
@ -604,9 +607,11 @@ sub force_unpack {
|
||||||
sub run_download_hooks {
|
sub run_download_hooks {
|
||||||
my (@hooks) = @_;
|
my (@hooks) = @_;
|
||||||
return if (scalar @hooks == 0);
|
return if (scalar @hooks == 0);
|
||||||
|
# Translators: the plural is followed by a single repeat for each
|
||||||
printf(ngettext("I: Running %d post-download hook\n",
|
printf(ngettext("I: Running %d post-download hook\n",
|
||||||
"I: Running %d post-download hooks\n", scalar @hooks), scalar @hooks);
|
"I: Running %d post-download hooks\n", scalar @hooks), scalar @hooks);
|
||||||
foreach my $hookscript (@hooks) {
|
foreach my $hookscript (@hooks) {
|
||||||
|
# Translators: this is a single instance, naming the hook
|
||||||
printf (_g("I: Running post-download hook: '%s'\n"), basename($hookscript));
|
printf (_g("I: Running post-download hook: '%s'\n"), basename($hookscript));
|
||||||
my $hookret = system ("$hookscript $dir");
|
my $hookret = system ("$hookscript $dir");
|
||||||
if ($hookret != 0) {
|
if ($hookret != 0) {
|
||||||
|
@ -619,9 +624,11 @@ sub run_download_hooks {
|
||||||
sub run_native_hooks_start {
|
sub run_native_hooks_start {
|
||||||
my (@hooks) = @_;
|
my (@hooks) = @_;
|
||||||
return if (scalar @hooks == 0);
|
return if (scalar @hooks == 0);
|
||||||
|
# Translators: the plural is followed by a single repeat for each
|
||||||
printf(ngettext("I: Starting %d native hook\n",
|
printf(ngettext("I: Starting %d native hook\n",
|
||||||
"I: Starting %d native hooks\n", scalar @hooks), scalar @hooks);
|
"I: Starting %d native hooks\n", scalar @hooks), scalar @hooks);
|
||||||
foreach my $hookscript (@hooks) {
|
foreach my $hookscript (@hooks) {
|
||||||
|
# Translators: this is a single instance, naming the hook
|
||||||
printf (_g("I: Starting native hook: '%s'\n"), basename($hookscript));
|
printf (_g("I: Starting native hook: '%s'\n"), basename($hookscript));
|
||||||
my $hookret = system ("$hookscript $dir start");
|
my $hookret = system ("$hookscript $dir start");
|
||||||
if ($hookret != 0) {
|
if ($hookret != 0) {
|
||||||
|
@ -633,9 +640,11 @@ sub run_native_hooks_start {
|
||||||
sub run_native_hooks_end {
|
sub run_native_hooks_end {
|
||||||
my (@hooks) = @_;
|
my (@hooks) = @_;
|
||||||
return if (scalar @hooks == 0);
|
return if (scalar @hooks == 0);
|
||||||
|
# Translators: the plural is followed by a single repeat for each
|
||||||
printf(ngettext("I: Stopping %d native hook\n",
|
printf(ngettext("I: Stopping %d native hook\n",
|
||||||
"I: Stopping %d native hooks\n", scalar @hooks), scalar @hooks);
|
"I: Stopping %d native hooks\n", scalar @hooks), scalar @hooks);
|
||||||
foreach my $hookscript (@hooks) {
|
foreach my $hookscript (@hooks) {
|
||||||
|
# Translators: this is a single instance, naming the hook
|
||||||
printf (_g("I: Stopping native hook: '%s'\n"), basename($hookscript));
|
printf (_g("I: Stopping native hook: '%s'\n"), basename($hookscript));
|
||||||
my $hookret = system ("$hookscript $dir end");
|
my $hookret = system ("$hookscript $dir end");
|
||||||
if ($hookret != 0) {
|
if ($hookret != 0) {
|
||||||
|
@ -647,9 +656,11 @@ sub run_native_hooks_end {
|
||||||
sub run_completion_hooks {
|
sub run_completion_hooks {
|
||||||
my (@hooks) = @_;
|
my (@hooks) = @_;
|
||||||
return if (scalar @hooks == 0);
|
return if (scalar @hooks == 0);
|
||||||
|
# Translators: the plural is followed by a single repeat for each
|
||||||
printf(ngettext("I: Running %d post-configuration hook\n",
|
printf(ngettext("I: Running %d post-configuration hook\n",
|
||||||
"I: Running %d post-configuration hooks\n", scalar @hooks), scalar @hooks);
|
"I: Running %d post-configuration hooks\n", scalar @hooks), scalar @hooks);
|
||||||
foreach my $hookscript (@hooks) {
|
foreach my $hookscript (@hooks) {
|
||||||
|
# Translators: this is a single instance, naming the hook
|
||||||
printf (_g("I: Running post-configuration hook: '%s'\n"), basename($hookscript));
|
printf (_g("I: Running post-configuration hook: '%s'\n"), basename($hookscript));
|
||||||
my $hookret = system ("$hookscript $dir");
|
my $hookret = system ("$hookscript $dir");
|
||||||
if ($hookret != 0) {
|
if ($hookret != 0) {
|
||||||
|
|
Loading…
Reference in a new issue