summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/printerdrake.pm
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2003-03-11 15:50:36 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2003-03-11 15:50:36 +0000
commit1f256dcf1775e1ee958a108b9f43e00251b3bbfd (patch)
tree9bfb504acc55a1ec628752edc949b4039df15cc0 /perl-install/printer/printerdrake.pm
parent40691a6bac8382e825fcb6549cae4d7704ca5c15 (diff)
downloaddrakx-backup-do-not-use-1f256dcf1775e1ee958a108b9f43e00251b3bbfd.tar
drakx-backup-do-not-use-1f256dcf1775e1ee958a108b9f43e00251b3bbfd.tar.gz
drakx-backup-do-not-use-1f256dcf1775e1ee958a108b9f43e00251b3bbfd.tar.bz2
drakx-backup-do-not-use-1f256dcf1775e1ee958a108b9f43e00251b3bbfd.tar.xz
drakx-backup-do-not-use-1f256dcf1775e1ee958a108b9f43e00251b3bbfd.zip
Added button to switch to japanese text file printing.
Diffstat (limited to 'perl-install/printer/printerdrake.pm')
-rw-r--r--perl-install/printer/printerdrake.pm13
1 files changed, 10 insertions, 3 deletions
diff --git a/perl-install/printer/printerdrake.pm b/perl-install/printer/printerdrake.pm
index 6e5755de2..25aff729f 100644
--- a/perl-install/printer/printerdrake.pm
+++ b/perl-install/printer/printerdrake.pm
@@ -65,6 +65,8 @@ sub config_cups {
@{$printer->{cupsconfig}{cupsd_conf}} =
printer::main::read_cupsd_conf();
printer::main::read_cups_config($printer);
+ # Read state of japanese text printing mode
+ my $jap_textmode = printer::main::get_jap_textmode();
# Read state for auto-correction of cupsd.conf
$printer->{cupsconfig}{autocorrection} =
printer::main::get_cups_autoconf();
@@ -80,7 +82,7 @@ sub config_cups {
if ($in->ask_from_
(
{
- title => N("CUPS printer sharing configuration"),
+ title => N("CUPS printer configuration"),
messages => N("Here you can choose whether the printers connected to this machine should be accessable by remote machines and by which remote machines.") .
N("You can also decide here whether printers on remote machines should be automatically made available on this machine."),
},
@@ -118,6 +120,10 @@ sub config_cups {
$buttonclicked = "browsepoll";
1;
} },
+ { text => N("Japanese text printing mode"),
+ help => N("Turning on this allows to print plain text files in japanese language. Only use this function if you really want to print text in japanese, if it is activated you cannot print accentuated characters in latin fonts any more and you will not be able to adjust the margins, the character size, etc. This setting only affects printers defined on this machine. If you want to print japanese text on a printer set up on a remote machine, you have to activate this function on that remote machine."),
+ type => 'bool',
+ val => \$jap_textmode },
if_($::expert,
{ text => N("Automatic correction of CUPS configuration"),
type => 'bool',
@@ -487,6 +493,8 @@ N("Examples for correct IPs:\n") .
printer::main::set_cups_autoconf
($printer->{cupsconfig}{autocorrection});
}
+ # Write state of japanese text printing mode
+ printer::main::set_jap_textmode($jap_textmode);
# Write cupsd.conf
printer::main::write_cups_config($printer);
my $w =
@@ -3699,8 +3707,7 @@ sub main {
$menuchoice = "\@cupsconfig";
1;
},
- val => ($::expert ? N("CUPS configuration") :
- N("Printer sharing")) }) : ()),
+ val => N("CUPS configuration") }) : ()),
($::expert &&
(files_exist(qw(/usr/bin/pdq)) ||
files_exist(qw(/usr/lib/filters/lpf