From 99c0204af21423904449378e900ba7c629287126 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 18 Jul 2005 03:28:01 +0000 Subject: advanced help: - ensure labels are named the same way on buttons and in help (and thus that help is consistent with the GUI, which wasn't), and speak about labels not actual option names in config file, - split in small paragraphs in order to ease translators' job - fix text phrasing - improve layout --- perl-install/standalone/draknfs | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/draknfs b/perl-install/standalone/draknfs index 56bae1435..e5144a4c4 100644 --- a/perl-install/standalone/draknfs +++ b/perl-install/standalone/draknfs @@ -165,17 +165,16 @@ my $help_userid = N("User ID options anonuid and anongid: explicitly set the uid and gid of the anonymous account. "); -my $help_global = N("Advanced Options - - -secure: this option requires that requests originate on an internet port less than IPPORT_RESERVED (1024). This option is on by default. To turn it off, specify insecure. - - -rw: allow both read and write requests on this NFS volume. The default is to disallow any request which changes the filesystem. This can also be made explicit by using the ro option. - - -async: allows the NFS server to violate the NFS protocol and reply to requests before any changes made by that request have been committed to stable storage (e.g. disc drive). -"); +my %adv_options = ( + sync => N("Synchronous access:"), + secured => N("Secured Connection:"), + ro => N("Read-Only share:"), +); +my $help_global = join("\n\n\n", N("Advanced Options"), +N("%s: this option requires that requests originate on an internet port less than IPPORT_RESERVED (1024). This option is on by default.", $adv_options{secured}), +N("%s: allow either only read or both read and write requests on this NFS volume. The default is to disallow any request which changes the filesystem. This can also be made explicit by using this option.", $adv_options{ro}), +N("%s: disallows the NFS server to violate the NFS protocol and to reply to requests before any changes made by these requests have been committed to stable storage (e.g. disc drive).", $adv_options{sync}), +); sub create_pango_help_box { # perl code from draksec @@ -385,9 +384,9 @@ sub add_modify_entry { my $expender = Gtk2::Expander->new('Advanced options'); $expender->add(gtkpack_(Gtk2::VBox->new, - 0, $label_and_widgets->(N("Synchronous access:"), $lsync, help_b(N_("Help Adcanced options"), $help_global)), - 0, $label_and_widgets->(N("Secured Connection:"), $lsecure, ""), - 0, $label_and_widgets->(N("Read-Only share:"), $lr, ""), + 0, $label_and_widgets->($adv_options{sync}, $lsync, help_b(N_("Help Adcanced options"), $help_global)), + 0, $label_and_widgets->($adv_options{secure}, $lsecure, ""), + 0, $label_and_widgets->($adv_options{ro}, $lr, ""), ), ); $expender->signal_connect(activate => sub { @@ -418,9 +417,9 @@ sub add_modify_entry { gtkpack_(gtkset_border_width(Gtk2::VBox->new, 5), # 0, $advanced, 0, $expender, -# 0, $label_and_widgets->(N("Synchronous access:"), $lsync, help_b(N_("Help Adcanced options"), $help_global)), -# 0, $label_and_widgets->(N("Secured Connection:"), $lsecure, ""), -# 0, $label_and_widgets->(N("Read-Only share:"), $lr, ""), +# 0, $label_and_widgets->($adv_options{sync}, $lsync, help_b(N_("Help Adcanced options"), $help_global)), +# 0, $label_and_widgets->($adv_options{secured}, $lsecure, ""), +# 0, $label_and_widgets->($adv_options{ro}, $lr, ""), # 0, $label_and_widgets->(N("Custom options:"), $options, ""), ), ), -- cgit v1.2.1