diff options
-rwxr-xr-x | samba_wizard/Sambashare.pm | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/samba_wizard/Sambashare.pm b/samba_wizard/Sambashare.pm index a8c923c1..d6ed14ab 100755 --- a/samba_wizard/Sambashare.pm +++ b/samba_wizard/Sambashare.pm @@ -105,10 +105,10 @@ my $wiz_samba_etc = "/etc/sysconfig/wizard_samba"; $o->{pages} = { welcome => { - name => N("What do you want todo?") . "\n\n" . N("Manage, create special share, create public/user share"), + name => N("What do you want to do?") . "\n\n" . N("Manage, create special share, create public/user share"), pre => sub { if (! -f $wiz_samba_etc) { - $::in->ask_warn(N("Information"), N("It seems that you don\'t setup a Samba server. Please setup a Samba server with Samba wizard before manage your share.")); + $::in->ask_warn(N("Information"), N("It seems It seems that you hadn't setup a Samba server. Please setup a Samba server with Samba wizard before manage your share.")); exit(1); } $o->{var}{wiz_share} = 0; @@ -267,13 +267,13 @@ $o->{pages} = { exists $samba->{$share}{'admin users'} and $o->{var}{wiz_share_admin_users} = $samba->{$share}{'admin users'}; }, data => [ - { label => N("Read list:"), val => \$o->{var}{wiz_share_readlist}, help => N("Specifies a list of user that have read-only access to a writable share. ie: anne") }, + { label => N("Read list:"), val => \$o->{var}{wiz_share_readlist}, help => N("Specifies a list of users that have read-only access to a writable share. ie: anne") }, { label => N("Write list:"), val => \$o->{var}{wiz_share_writelist}, help => N("Specifies a user that have read-write access to a share. ie: fred") }, { label => N("User own directory:"), type => 'bool', val => \$o->{var}{wiz_owner} }, - { label => N("valid user"), val => \$o->{var}{wiz_share_valid_users}, help => N("To restrict the share to a particular user. If this is empty (the default) then any user can login. ie: guibo") }, + { label => N("valid users"), val => \$o->{var}{wiz_share_valid_users}, help => N("To restrict the share to a particular user. If this is empty (the default) then any user can login. ie: guibo") }, { label => N("admin users"), val => \$o->{var}{wiz_share_admin_users}, help => N("This is a list of users who will be granted administrative privileges on the share. This means that they will do all file operations as the super-user (root). You should use this option very carefully, as any user in this list will be able to do anything they like on the share, irrespective of file permissions.") }, { label => N("Hide files:"), val => \$o->{var}{wiz_share_hidefiles}, help => N("The hide files option provides one or more directory or filename patterns to Samba. Any file matching this pattern will be treated as a hidden file from the perspective of the client. ie: /.icewm/") }, - { label => N("Show dot files:"), val => \$o->{var}{wiz_share_dotfiles}, fixed_list => \@yesorno, help => N("The hide dot files option hides any files on the server that begin with a dot (.)") }, + { label => N("Hide dot files:"), val => \$o->{var}{wiz_share_dotfiles}, fixed_list => \@yesorno, help => N("The hide dot files option hides any files on the server that begin with a dot (.)") }, ], complete => sub { map { my @users = split(" ", $_); @@ -304,7 +304,7 @@ $o->{pages} = { data => [ # { label => N("create mask"), val => \$o->{var}{wiz_share_create_mask}, help => N("When a file is created, the necessary permissions are calculated according to the mapping from DOS modes to UNIX permissions, and the resulting UNIX mode is then bit-wise \'AND\'ed with this parameter. This parameter may be thought of as a bit-wise MASK for the UNIX modes of a file. Any bit not set here will be removed from the modes set on a file when it is created.") }, { label => N("force create mode"), val => \$o->{var}{wiz_share_force_create_mode}, help => N("This parameter specifies a set of UNIX mode bit permissions that will always be set on a file created by Samba. This is done by bitwise \'OR\'ing these bits onto the mode bits of a file that is being created or having its permissions changed. The default for this parameter is (in octal) 000. ie: force create mode = 0700 ") }, - { label => N("force directory mode"), val => \$o->{var}{wiz_share_force_directory_mode}, help => N("This parameter specifies a set of UNIX mode bit permissions that will always be set on a directory created by Samba. This is done by bitwise \'OR\'ing these bits onto the mode bits of a directory that is being created. The default for this parameter is (in octal) 0000 which will not add any extra permission bits to a created directory. Default: ie: force directory mode = 0755") }, + { label => N("force directory mode"), val => \$o->{var}{wiz_share_force_directory_mode}, help => N("This parameter specifies a set of UNIX mode bit permissions that will always be set on a directory created by Samba. This is done by bitwise \'OR\'ing these bits onto the mode bits of a directory that is being created. The default for this parameter is (in octal) 0000 which will not add any extra permission bits to a created directory. ie: force directory mode = 0755") }, { label => N("force group"), val => \$o->{var}{wiz_share_force_group}, help => N("This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service. This is useful for sharing files by ensuring that all access to files on service will use the named group for their permissions checking. ie: force group = agroup") }, { label => N("default case"), val => \$o->{var}{wiz_share_default_case}, fixed_list => \@scase, help => N("lower or upper") }, { label => N("preserve case"), val => \$o->{var}{wiz_share_preserve_case}, fixed_list => \@yesorno, help => N("This controls if new filenames are created with the case that the client passes, or if they are forced to be the default case") }, @@ -449,20 +449,20 @@ $o->{pages} = { $::in->ask_okcancel(N("WARNING"), N("Be carrefull, you define your public share writable. This wizard will change permission to nobody.users, so do not use this feature on an home directory !")) or return 1; } if (!$o->{var}{wiz_add_public_share_path}) { - $::in->ask_warn(N("Error"), N("Can\'t create the directory, please enter a correct path.")) and return 1; + $::in->ask_warn(N("Error"), N("Can't create the directory, please enter a correct path.")) and return 1; } if (!$o->{var}{wiz_add_public_share_comment}) { $::in->ask_warn(N("Error"), N("Please enter a Comment for this share.")) and return 1; } if (! -d $o->{var}{wiz_add_public_share_path}) { - mkdir_p($o->{var}{wiz_add_public_share_path}) or $::in->ask_warn(N("Error"), N("Can\'t create the directory, please enter a correct path.")); + mkdir_p($o->{var}{wiz_add_public_share_path}) or $::in->ask_warn(N("Error"), N("Can't create the directory, please enter a correct path.")); return 1; } else { return 0 } }, next => 'summary_add_public_share', }, add_share_options => { - name => N("Add a share") . "\n" . N("If you don\'t want to use one of this options, leave it blanck."), + name => N("Add a share") . "\n" . N("If you don't want to use one of this options, leave it blank."), pre => sub { $o->{var}{wiz_addshare_createmode} = "0700"; $o->{var}{wiz_owner} = "0"; @@ -475,7 +475,7 @@ $o->{pages} = { { label => N("Read list:"), val => \$o->{var}{wiz_addshare_readlist}, help => N("Specifies a list \of users that have read-only access to a writable share. ie: aginies") }, { label => N("Write list:"), val => \$o->{var}{wiz_addshare_writelist}, help => N("Specifie a user that have read-write access to a share. ie: guibo") }, { label => N("User own directory:"), type => 'bool', val => \$o->{var}{wiz_owner} }, - { label => N("Show dot files:"), val => \$o->{var}{wiz_addshare_dotfiles}, fixed_list => \@yesorno, help => N("The hide dot files option hides any files on the server that begin with a dot (.)") }, + { label => N("Hide dot files:"), val => \$o->{var}{wiz_addshare_dotfiles}, fixed_list => \@yesorno, help => N("The hide dot files option hides any files on the server that begin with a dot (.)") }, { label => N("Hide files:"), val => \$o->{var}{wiz_addshare_hidefiles}, help => N("The hide files option provides one or more directory or filename patterns to Samba. Any file matching this pattern will be treated as a hidden file from the perspective of the client. ie: /.icewm/") }, ], complete => sub { @@ -541,7 +541,7 @@ $o->{pages} = { post => \&do_it_add_profiles, }, summary_homeshare => { - name => N("Summary add home share") . "\n\n" . N("If you really want to add this this share, click the Next button or use the Back button."), + name => N("Summary add home share") . "\n\n" . N("If you really want to add this share, click the Next button or use the Back button."), post => \&do_it_add_homeshare, data => [ { label => N("Comment:"), fixed_val => \$o->{var}{wiz_home_comment} }, @@ -588,7 +588,7 @@ $o->{pages} = { { label => N("Public:"), fixed_val => \$o->{var}{wiz_addshare_public} }, { label => N("Read list:"), fixed_val => \$o->{var}{wiz_addshare_readlist} }, { label => N("Write list:"), fixed_val => \$o->{var}{wiz_addshare_writelist} }, - { label => N("Show dot files:"), fixed_val => \$o->{var}{wiz_addshare_dotfiles} }, + { label => N("Hide dot files:"), fixed_val => \$o->{var}{wiz_addshare_dotfiles} }, ], next => 'end_add_share', }, @@ -643,7 +643,7 @@ $o->{pages} = { next => 'end_add_public_share', }, end => { - name => N("Congratulations") . "\n\n" . N("The wizard successfully configured your Samba samba."), + name => N("Congratulations") . "\n\n" . N("The wizard successfully configured your Samba."), post => sub { store_samba_type($o->{var}{wiz_type}); }, |