diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-02-26 11:53:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-02-26 11:53:12 +0000 |
commit | 18d391650704782ddfc4661ad1022e2b60765d50 (patch) | |
tree | 3eed6df3aab55340c07de54be27927f4d7c0f9af /perl-install/install_steps_interactive.pm | |
parent | 051abb1be1085fd3be4ffd9c63385b7723cefafa (diff) | |
download | drakx-18d391650704782ddfc4661ad1022e2b60765d50.tar drakx-18d391650704782ddfc4661ad1022e2b60765d50.tar.gz drakx-18d391650704782ddfc4661ad1022e2b60765d50.tar.bz2 drakx-18d391650704782ddfc4661ad1022e2b60765d50.tar.xz drakx-18d391650704782ddfc4661ad1022e2b60765d50.zip |
(summary): translate mouse description
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r-- | perl-install/install_steps_interactive.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 469c46219..2bab43533 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -718,12 +718,14 @@ sub summary { $o->configurePrinter(0) if !$::expert; install_any::preConfigureTimezone($o); } - my $mouse_name = "$o->{mouse}{type} $o->{mouse}{name}"; + my $mouse_name; + my $format_mouse = sub { $mouse_name = translate($o->{mouse}{type}) . ' ' . translate($o->{mouse}{name}) }; + &$format_mouse; $o->ask_from_entries_refH('', _("Summary"), [ -{ label => _("Mouse"), val => \$mouse_name, clicked => sub { $o->selectMouse(1); $mouse_name = "$o->{mouse}{type} $o->{mouse}{name}" } }, -{ label => _("Keyboard"), val => \$o->{keyboard}, clicked => sub { $o->selectKeyboard(1) }, format => sub { translate(keyboard::keyboard2text($_[0])) } }, +{ label => _("Mouse"), val => \$mouse_name, clicked => sub { $o->selectMouse(1); &$format_mouse }, +{ label => _("Keyboard"), val => \$o->{keyboard}, clicked => sub { $o->selectKeyboard(1) }, format => sub { translate(keyboard::keyboard2text($_[0])) } } }, { label => _("Timezone"), val => \$o->{timezone}{timezone}, clicked => sub { $o->configureTimezone(1) } }, { label => _("Printer"), val => \$o->{printer}{mode}, clicked => sub { $o->configurePrinter(1) }, format => sub { $_[0] || _("No printer") } }, ]); |