diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-03 12:42:45 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-03 12:42:45 +0000 |
commit | fbf5e27a8756fa6d4c8c3e03a36df69cc2b09857 (patch) | |
tree | 4ba7207bc5a5e3cb21d7a74c24dd5cf315bf971c /perl-install/Xconfig/test.pm | |
parent | cc60d7cf0df7d732a6433a0ed6ce2e7f5484187e (diff) | |
download | drakx-backup-do-not-use-fbf5e27a8756fa6d4c8c3e03a36df69cc2b09857.tar drakx-backup-do-not-use-fbf5e27a8756fa6d4c8c3e03a36df69cc2b09857.tar.gz drakx-backup-do-not-use-fbf5e27a8756fa6d4c8c3e03a36df69cc2b09857.tar.bz2 drakx-backup-do-not-use-fbf5e27a8756fa6d4c8c3e03a36df69cc2b09857.tar.xz drakx-backup-do-not-use-fbf5e27a8756fa6d4c8c3e03a36df69cc2b09857.zip |
ensure the X test strings are translated
Diffstat (limited to 'perl-install/Xconfig/test.pm')
-rw-r--r-- | perl-install/Xconfig/test.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/perl-install/Xconfig/test.pm b/perl-install/Xconfig/test.pm index de68620fb..5e66b9b93 100644 --- a/perl-install/Xconfig/test.pm +++ b/perl-install/Xconfig/test.pm @@ -103,8 +103,9 @@ sub test { $::noShadow = 1; open(my $F, "|perl 2>/dev/null"); - print $F "use lib qw(", join(' ', @INC), ");\n"; - print $F q( + print $F + printf $F q( + use lib qw(%s); BEGIN { $::no_ugtk_init = 1 } require lang; require ugtk2; #- help perl_checker @@ -113,7 +114,7 @@ sub test { use run_program; use common; - $::prefix = ") . $::prefix . q("; + $::prefix = "%s"; $::isStandalone = 1; lang::bindtextdomain(); @@ -128,7 +129,7 @@ sub test { my $text = Gtk2::Label->new; my $time = 12; Gtk2->timeout_add(1000, sub { - $text->set(N("Leaving in %d seconds", $time)); + $text->set(sprintf(translate("%s"), $time)); $time-- or Gtk2->main_quit; 1; }); @@ -146,8 +147,8 @@ sub test { }; my $in = interactive::gtk->new; - $in->exit($in->ask_yesorno('', [ N("Is this the correct setting?"), $text ], 0) ? 0 : 222); - ); + $in->exit($in->ask_yesorno('', [ translate("%s"), $text ], 0) ? 0 : 222); + ), join(' ', @INC), $::prefix, N_("Leaving in %d seconds"), N_("Is this the correct setting?"); my $rc = close $F; my $err = $?; |