summaryrefslogtreecommitdiffstats
path: root/proxy_wizard
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-14 12:43:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-14 12:43:41 +0000
commit761507b9f2ff395afb98bbcd71d747d90abbe21b (patch)
treea77103af72e22c7eff8b873c635add52d1eb1872 /proxy_wizard
parent385ff8e97c7d11d8fe71c9ca9de0ded1dfd25f40 (diff)
downloaddrakwizard-761507b9f2ff395afb98bbcd71d747d90abbe21b.tar
drakwizard-761507b9f2ff395afb98bbcd71d747d90abbe21b.tar.gz
drakwizard-761507b9f2ff395afb98bbcd71d747d90abbe21b.tar.bz2
drakwizard-761507b9f2ff395afb98bbcd71d747d90abbe21b.tar.xz
drakwizard-761507b9f2ff395afb98bbcd71d747d90abbe21b.zip
fix N() encapsuled strings not seen as "to be extracted" strings when
generating the pot
Diffstat (limited to 'proxy_wizard')
-rwxr-xr-xproxy_wizard/Squid.pm62
1 files changed, 31 insertions, 31 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm
index f7287e49..4f544bfd 100755
--- a/proxy_wizard/Squid.pm
+++ b/proxy_wizard/Squid.pm
@@ -34,13 +34,13 @@ my ($free_disk) = $df =~ m/\d+\s+\d+\s+\d+\s+(\d+)/;
my $mem = `/usr/bin/free -m`;
($mem) = $mem =~ /Mem:\s+(\d+)/;
my %level = (
- 1 => N('All - No access restriction'),
- 2 => N('Local Network - access for local network (recommended)'),
- 3 => N('Localhost - access restricted to this server only')
+ 1 => N("All - No access restriction"),
+ 2 => N("Local Network - access for local network (recommended)"),
+ 3 => N("Localhost - access restricted to this server only")
);
my %upper = (
- 1 => N('No upper level proxy (recommended)'),
- 2 => N('Define an upper level proxy')
+ 1 => N("No upper level proxy (recommended)"),
+ 2 => N("Define an upper level proxy")
);
my $o = {
@@ -62,46 +62,46 @@ my $o = {
$o->{pages} = {
welcome => {
- name => N('Proxy Configuration Wizard') . "\n\n" . N('Squid is a web caching proxy server, it allows faster web access for your local network.') . "\n\n" . N('This wizard will help you in configuring your proxy server.'),
+ name => N("Proxy Configuration Wizard") . "\n\n" . N("Squid is a web caching proxy server, it allows faster web access for your local network.") . "\n\n" . N("This wizard will help you in configuring your proxy server."),
no_back => 1,
next => 'port'
},
port => {
- name => N('Proxy Port') . "\n\n" . N('Proxy port value sets what port the proxy server will listen on for http requests. Default is 3128, other common value can be 8080, the port value needs to be greater than 1024.') . "\n\n" . N(''),
+ name => N("Proxy Port") . "\n\n" . N("Proxy port value sets what port the proxy server will listen on for http requests. Default is 3128, other common value can be 8080, the port value needs to be greater than 1024.") . "\n\n" . N(''),
pre => sub {
$o->{var}{wiz_squid_port} ||= 3128;
},
post => \&testport,
data => [
- { label => N('Proxy port:'), val => \$o->{var}{wiz_squid_port} },
+ { label => N("Proxy port:"), val => \$o->{var}{wiz_squid_port} },
],
next => 'memory'
},
warning_port => {
- name => N('Warning.') . "\n\n" . N('You have entered a port that may be useful for this service:') . "\n\n" . N('Press Next if you want to keep this value, or Back to correct your choice.'),
+ name => N("Warning.") . "\n\n" . N("You have entered a port that may be useful for this service:") . "\n\n" . N("Press Next if you want to keep this value, or Back to correct your choice."),
data => [
{ label => '/etc/services:', fixed_val => \$o->{var}{used_by} },
],
next => 'memory'
},
error_low => {
- name => N('Warning.') . "\n\n" . N('You must choose a port greater than 1024 and lower than 65535') . "\n\n" . N('Press back to change the value.'),
+ name => N("Warning.") . "\n\n" . N("You must choose a port greater than 1024 and lower than 65535") . "\n\n" . N("Press back to change the value."),
next => 'memory'
},
memory => {
- name => N('Proxy Cache Size') . "\n\n" . N('Memory Cache is the amount of RAM dedicated to cache memory operations (note that actual memory usage of the whole squid process is bigger).') . "\n\n" . N('Disk Cache is the amount of disk space that can be used for caching on disk.') . "\n\n" . N('For your information, here is /var/spool/squid space on disk:') . "\n\n" . $df,
+ name => N("Proxy Cache Size") . "\n\n" . N("Memory Cache is the amount of RAM dedicated to cache memory operations (note that actual memory usage of the whole squid process is bigger).") . "\n\n" . N("Disk Cache is the amount of disk space that can be used for caching on disk.") . "\n\n" . N("For your information, here is /var/spool/squid space on disk:") . "\n\n" . $df,
pre => sub {
$o->{var}{wiz_squid_mem} ||= int ($mem / 4);
$o->{var}{wiz_squid_disk} ||= int ($free_disk/2);
},
data => [
- { label => N('Memory cache (MB):'), val => \$o->{var}{wiz_squid_mem} },
- { label => N('Disk space (MB):'), val => \$o->{var}{wiz_squid_disk} },
+ { label => N("Memory cache (MB):"), val => \$o->{var}{wiz_squid_mem} },
+ { label => N("Disk space (MB):"), val => \$o->{var}{wiz_squid_disk} },
],
next => 'level'
},
level => {
- name => N('Access Control') . "\n\n" . N('The proxy can be configured to use different access control levels') . "\n\n" . N('Choose the level that suits your needs. If you don\'t know, the Local Network level is usually the most appropriate. Beware that the All level may be not secure.'),
+ name => N("Access Control") . "\n\n" . N("The proxy can be configured to use different access control levels") . "\n\n" . N("Choose the level that suits your needs. If you don't know, the Local Network level is usually the most appropriate. Beware that the All level may be not secure."),
pre => sub {
$o->{var}{wiz_squid_level} ||= 2;
},
@@ -114,17 +114,17 @@ $o->{pages} = {
next => 'cachepeer'
},
shownet => {
- name => N('Grant access on local network') . "\n\n" . N('Access will be allowed for hosts on the network. Here is the information found about your current local network, you can modify it if needed.') . "\n\n" . N('You can use either a numeric format like "192.168.1.0/255.255.255.0" or a text format like ".domain.net"'),
+ name => N("Grant access on local network") . "\n\n" . N("Access will be allowed for hosts on the network. Here is the information found about your current local network, you can modify it if needed.") . "\n\n" . N("You can use either a numeric format like \"192.168.1.0/255.255.255.0\" or a text format like \".domain.net\""),
pre => sub {
$o->{var}{wiz_squid_mynetw} ||= network_mask()
},
data => [
- { label => 'Authorized network:', val => \$o->{var}{wiz_squid_mynetw}, help => N('Use numeric format like "192.168.1.0/255.255.255.0" or a text format like ".domain.net"') },
+ { label => 'Authorized network:', val => \$o->{var}{wiz_squid_mynetw}, help => N("Use numeric format like \"192.168.1.0/255.255.255.0\" or a text format like \".domain.net\"") },
],
next => 'cachepeer'
},
cachepeer => {
- name => N('Cache hierarchy') . "\n\n" . N('As an option, Squid can be configured in proxy cascading. You can add a new upper level proxy by specifying its hostname and port.') . "\n\n" . N('You can safely select "No upper level proxy" if you don\'t need this feature.'),
+ name => N("Cache hierarchy") . "\n\n" . N("As an option, Squid can be configured in proxy cascading. You can add a new upper level proxy by specifying its hostname and port.") . "\n\n" . N("You can safely select \"No upper level proxy\" if you don't need this feature."),
pre => sub {
$o->{var}{wiz_squid_menupeer} ||= 1
},
@@ -137,7 +137,7 @@ $o->{pages} = {
next => 'summary_2'
},
valcachepeer => {
- name => N('Cache hierarchy') . "\n\n" . N('Enter the qualified hostname (like "cache.domain.net") and the port of the proxy to use.'),
+ name => N("Cache hierarchy") . "\n\n" . N("Enter the qualified hostname (like "cache.domain.net") and the port of the proxy to use."),
data => [
{ label => 'Upper level proxy hostname:', val => \$o->{var}{wiz_squid_cachepeer} },
{ label => 'Upper level proxy port:', val => \$o->{var}{wiz_squid_peerport} },
@@ -145,31 +145,31 @@ $o->{pages} = {
next => 'summary'
},
summary => {
- name => N('Configuring the Proxy') . "\n\n" . N('The wizard collected the following parameters needed to configure your proxy:') . "\n\n" . N('To accept these values, and configure your server, click the Next button or use the Back button to correct them.'),
+ name => N("Configuring the Proxy") . "\n\n" . N("The wizard collected the following parameters needed to configure your proxy:") . "\n\n" . N("To accept these values, and configure your server, click the Next button or use the Back button to correct them."),
data => [
- { label => N('Port:'), type => 'field', val => \$o->{var}{wiz_squid_port} },
- { label => N('Memory cache (MB):'), type => 'field', val => \$o->{var}{wiz_squid_mem} },
- { label => N('Disk space (MB):'), type => 'field', val => \$o->{var}{wiz_squid_disk} },
- { label => N('Access Control:'), type => 'field', val => \$o->{var}{wiz_squid_mynetw} },
- { label => N('Upper level proxy hostname:'), type => 'field', val => \$o->{var}{wiz_squid_cachepeer} },
- { label => N('Upper level proxy port:'), type => 'field', val => \$o->{var}{wiz_squid_peerport} },
+ { label => N("Port:"), type => 'field', val => \$o->{var}{wiz_squid_port} },
+ { label => N("Memory cache (MB):"), type => 'field', val => \$o->{var}{wiz_squid_mem} },
+ { label => N("Disk space (MB):"), type => 'field', val => \$o->{var}{wiz_squid_disk} },
+ { label => N("Access Control:"), type => 'field', val => \$o->{var}{wiz_squid_mynetw} },
+ { label => N("Upper level proxy hostname:"), type => 'field', val => \$o->{var}{wiz_squid_cachepeer} },
+ { label => N("Upper level proxy port:"), type => 'field', val => \$o->{var}{wiz_squid_peerport} },
],
post => \&do_it,
next => 'end'
},
summary_2 => {
- name => N('Configuring the Proxy') . "\n\n" . N('The wizard collected the following parameters needed to configure your proxy:') . "\n\n" . N('To accept these values, and configure your server, click the Next button or use the Back button to correct them.'),
+ name => N("Configuring the Proxy") . "\n\n" . N("The wizard collected the following parameters needed to configure your proxy:") . "\n\n" . N("To accept these values, and configure your server, click the Next button or use the Back button to correct them."),
data => [
- { label => N('Port:'), type => 'field', val => \$o->{var}{wiz_squid_port} },
- { label => N('Memory cache (MB):'), type => 'field', val => \$o->{var}{wiz_squid_mem} },
- { label => N('Disk space (MB):'), type => 'field', val => \$o->{var}{wiz_squid_disk} },
- { label => N('Access Control:'), type => 'field', val => \$o->{var}{wiz_squid_mynetw} },
+ { label => N("Port:"), type => 'field', val => \$o->{var}{wiz_squid_port} },
+ { label => N("Memory cache (MB):"), type => 'field', val => \$o->{var}{wiz_squid_mem} },
+ { label => N("Disk space (MB):"), type => 'field', val => \$o->{var}{wiz_squid_disk} },
+ { label => N("Access Control:"), type => 'field', val => \$o->{var}{wiz_squid_mynetw} },
],
post => \&do_it,
next => 'end'
},
end => {
- name => N('Congratulations') . N('The wizard successfully configured your proxy server.'),
+ name => N("Congratulations") . N("The wizard successfully configured your proxy server."),
end => 1,
next => 0
},