summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
blob: 0115cd016e78032db4c2d7a5be5796920bdd26e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
package install::pkgs; # $Id: pkgs.pm 267288 2010-04-02 14:49:40Z pterjan $

use strict;
use feature 'state';

BEGIN {
    # needed before "use URPM"
    mkdir '/etc/rpm';
    symlink "/tmp/stage2/etc/rpm/$_", "/etc/rpm/$_" foreach 'macros.d';
}

use URPM;
use URPM::Resolve;
use URPM::Signature;
use urpm;
use urpm::args;
use urpm::main_loop;
use urpm::select;
use common;
use install::any;
use install::media qw(getFile_ getAndSaveFile_ packageMedium);
use run_program;
use detect_devices;
use log;
use fs;
use fs::any;
use fs::loopback;
use c;

sub cleanHeaders() {
    rm_rf("$::prefix/tmp/headers") if -e "$::prefix/tmp/headers";
}

#- get all headers from an hdlist file.
sub extractHeaders {
    my ($pkgs, $media) = @_;
    cleanHeaders();

    foreach my $medium (@$media) {
        !$medium->{ignore} or next;

        my @l = grep { $_->id >= $medium->{start} && $_->id <= $medium->{end} } @$pkgs or next;
        eval {
            require packdrake;
            my $packer = new packdrake(install::media::hdlist_on_disk($medium), quiet => 1);
            $packer->extract_archive("$::prefix/tmp/headers", map { $_->header_filename } @l);
        };
        $@ and log::l("packdrake failed: $@");
    }

    foreach (@$pkgs) {
        my $f = "$::prefix/tmp/headers/" . $_->header_filename;
        $_->update_header($f) or log::l("unable to open header file $f"), next;
    }
}

#- lower bound on the left ( aka 90 means [90-100[ )
our %compssListDesc = (
   5 => N_("must have"),
   4 => N_("important"),
   3 => N_("very nice"),
   2 => N_("nice"),
   1 => N_("maybe"),
);

#- TODO BEFORE TODO
#- size and correction size functions for packages.
my $B = 1.20873;
my $C = 4.98663; #- does not take hdlist's into account as getAvailableSpace will do it.
sub correctSize { $B * $_[0] + $C }
sub invCorrectSize { ($_[0] - $C) / $B }

sub selectedSize {
    my ($packages) = @_;
    my $size = 0;
    my %skip;
    #- take care of packages selected...
    foreach (@{$packages->{depslist}}) {
	if ($_->flag_selected) {
	    $size += $_->size;
	    #- if a package is obsoleted with the same name it should
	    #- have been selected, so a selected new package obsoletes
	    #- all the old package.
	    exists $skip{$_->name} and next; $skip{$_->name} = undef;
	    $size -= $packages->{sizes}{$_->name};
	}
    }
    #- but remove size of package being obsoleted or removed.
    foreach (keys %{$packages->{state}{rejected}}) {
	my ($name) = /(.*)-[^\-]*-[^\-]*$/ or next;
	exists $skip{$name} and next; $skip{$name} = undef;
	$size -= $packages->{sizes}{$name};
    }
    $size;
}

sub size2time {
    my ($x, $max) = @_;
    my $A = 7e-07;
    my $limit = min($max * 3 / 4, 9e8);
    if ($x < $limit) {
	$A * $x;
    } else { 
	$x -= $limit;
	my $B = 6e-16;
	my $C = 15e-07;
	$B * $x ** 2 + $C * $x + $A * $limit;
    }
}

sub packagesProviding {
    my ($packages, $name) = @_;
    grep { $_->is_arch_compat } URPM::packages_providing($packages, $name);
}

#- search package with given name and compatible with current architecture.
#- take the best one found (most up-to-date).
sub packageByName {
    my ($packages, $name) = @_;

    my @l =  grep { $_->name eq $name } packagesProviding($packages, $name);

    my $best;
    foreach (@l) {
	if ($best && $best != $_) {
	    if ($best->fullname eq $_->fullname) {
		$best = $_ if $_->flag_installed;
	    } else {
	        $_->compare_pkg($best) > 0 and $best = $_;
            }
	} else {
	    $best = $_;
	}
    }
    $best or log::l("unknown package `$name'");
    $best;
}

sub _is_kernelServer_needed() {
    # forbid selecting kernel-server if not having PAE since PAE support is mandatory for kernel-server:
    return if !detect_devices::has_cpu_flag('pae');
    arch() =~ /i.86/ && detect_devices::dmi_detect_memory() > 3.8 * 1024 || detect_devices::isServer();
}

sub _bestKernel_extensions {
    my ($o_match_all_hardware) = @_;

    $::o->{kernel_extension} ? $::o->{kernel_extension} :
    $o_match_all_hardware ? (arch() =~ /i.86/ ? '-desktop586' : '-desktop') :
      detect_devices::is_xbox() ? '-xbox' :
      detect_devices::is_i586() ? '-desktop586' :
      _is_kernelServer_needed() ? '-server' :
      '-desktop';
}

sub bestKernelPackage {
    my ($packages, $o_match_all_hardware) = @_;

    my @preferred_exts = _bestKernel_extensions($o_match_all_hardware);
    my @kernels = grep { $_ } map { packageByName($packages, "kernel$_-latest") } @preferred_exts;

    if (!@kernels) {
        #- fallback on most generic kernel if the suitable one is not available
        #- (only kernel-desktop586-latest is available on Dual ISO for i586)
        my @fallback_exts = _bestKernel_extensions('force');
        @kernels = grep { $_ } map { packageByName($packages, "kernel$_-latest") } @fallback_exts;
    }

    log::l("bestKernelPackage (" . join(':', @preferred_exts) . "): " . join(' ', map { $_->name } @kernels) . (@kernels > 1 ? ' (choosing the first)' : ''));

    $kernels[0];
}

sub packagesToInstall {
    my ($packages) = @_;
    my @packages;
    foreach (@{$packages->{media}}) {
	!$_->{ignore} or next;
	log::l("examining packagesToInstall of medium $_->{name}");
	push @packages, grep { $_->flag_selected } install::media::packagesOfMedium($packages, $_);
    }
    log::l("found " . scalar(@packages) . " packages to install");
    @packages;
}

sub _packageRequest {
    my ($packages, $pkg) = @_;

    #- check if the same or better version is installed,
    #- do not select in such case.
    $pkg && ($pkg->flag_upgrade || !$pkg->flag_installed) or return;

    #- check for medium selection, if the medium has not been
    #- selected, the package cannot be selected.
    my $medium = packageMedium($packages, $pkg);
    $medium && !$medium->{ignore} or return;

    +{ $pkg->id => 1 };
}

sub packageCallbackChoices {
    my ($urpm, $_db, $_state, $choices, $virtual_pkg_name, $prefered) = @_;
  
    if ($prefered && @$prefered) {
	@$prefered;
    } elsif (my @l = _packageCallbackChoices_($urpm, $choices, $virtual_pkg_name)) {
	@l;
    } else {
	log::l("packageCallbackChoices: default choice ('" . $choices->[0]->name . "') from " . join(",", map { $_->name } @$choices) . " for $virtual_pkg_name");
	$choices->[0];
    }
}

sub _packageCallbackChoices_ {
    my ($urpm, $choices, $virtual_pkg_name) = @_;

    my ($prefer, $_other) = urpm::select::get_preferred($urpm, $choices, $::o->{preferred_packages});
    if (@$prefer) {
	@$prefer;
    } elsif ($virtual_pkg_name eq 'kernel') {
	my $re = join('|', map { "kernel\Q$_-2" } _bestKernel_extensions());
	my @l = grep { $_->name =~ $re } @$choices;
	log::l("packageCallbackChoices: kernel chosen ", join(",", map { $_->name } @l), " in ", join(",", map { $_->name } @$choices));
	@l;
    } elsif ($choices->[0]->name =~ /^kernel-(.*source-|.*-devel-)/) {
	my @l = grep {
	    if ($_->name =~ /^kernel-.*source-stripped-(.*)/) {
		my $version = quotemeta($1);
		find {
		    $_->name =~ /-$version$/ && ($_->flag_installed || $_->flag_selected);
		} $urpm->packages_providing('kernel');
	    } elsif ($_->name =~ /(kernel-.*)-devel-(.*)/) {
		my $kernel = "$1-$2";
		my $p = packageByName($urpm, $kernel);
		$p && ($p->flag_installed || $p->flag_selected);
	    } elsif ($_->name =~ /^kernel-.*source-/) {
		#- hopefully we don't have a media with kernel-source but not kernel-source-stripped nor kernel-.*-devel
		0;
	    } else {
		log::l("unknown kernel-source package " . $_->fullname);
		0;
	    }
	} @$choices;

	log::l("packageCallbackChoices: kernel source chosen ", join(",", map { $_->name } @l), " in ", join(",", map { $_->name } @$choices));

	@l;
    } else {
	();
    }
}

sub skip_packages {
    my ($packages, $skipped_packages) = @_;
    $packages->compute_flags($skipped_packages, skip => 1);
}

sub select_by_package_names {
    my ($packages, $names, $b_base) = @_;

    my @l;
    foreach (@$names) {
	my $p = packageByName($packages, $_) or next;
	push @l, selectPackage($packages, $p, $b_base);
    }
    @l;
}

sub select_by_package_names_or_die {
    my ($packages, $names, $b_base) = @_;

    foreach (@$names) {
	my $p = packageByName($packages, $_) or die "package $_ not found";
	!$p->flag_installed && !$p->flag_selected or next;
	my ($_pkgs, $error) = _selectPackage_with_error($packages, $p, $b_base);
	$error and die N("Some packages requested by %s cannot be installed:\n%s", $_, $error);
    }
}

my @suggested_package_ids;
sub _resolve_requested_and_check {
    my ($packages, $state, $requested) = @_;

    my @l = $packages->resolve_requested($packages->{rpmdb}, $state, $requested,
					 callback_choices => \&packageCallbackChoices, no_suggests => $::o->{no_suggests});

    #- keep track of suggested packages so that theys could be unselected if the "no suggests" option is choosen later:
    if (!is_empty_hash_ref($state->{selected})) {
        my @new_ids = map { $packages->{depslist}[$_]->id } grep { $state->{selected}{$_}{suggested} } keys $state->{selected};
        @suggested_package_ids = uniq(@suggested_package_ids, @new_ids);
    }

    my $error;
    if (find { !exists $state->{selected}{$_} } keys %$requested) {
	my @rejected = urpm::select::unselected_packages($state);
	$error = urpm::select::translate_why_unselected($packages, $state, @rejected);
	log::l("ERROR: selection failed: $error");
    }

    \@l, $error;
}

sub selectPackage {
    my ($packages, $pkg, $b_base) = @_;
    my ($pkgs, $_error) = _selectPackage_with_error($packages, $pkg, $b_base);
    @$pkgs;
}

sub _selectPackage_with_error {
    my ($packages, $pkg, $b_base) = @_;

    my $state = $packages->{state} ||= {};

    $packages->{rpmdb} ||= rpmDbOpen();

    my ($pkgs, $error) = _resolve_requested_and_check($packages, $state, _packageRequest($packages, $pkg) || {});

    if ($b_base) {
	$_->set_flag_base foreach @$pkgs;
    }
    ($pkgs, $error);
}

sub unselectPackage {
    my ($packages, $pkg) = @_;

    #- base packages are not unselectable,
    #- and already unselected package are no more unselectable.
    $pkg->flag_base and return;
    $pkg->flag_selected or return;

    my $state = $packages->{state} ||= {};
    log::l("removing selection on package " . $pkg->fullname);
    my @l = $packages->disable_selected($packages->{rpmdb}, $state, $pkg);
    log::l("   removed selection on package " . $pkg->fullname . "gives " . join(',', map { scalar $_->fullname } @l));
}

sub unselectAllPackages {
    my ($packages) = @_;
    my %keep_selected;
    log::l("unselecting all packages...");
    foreach (@{$packages->{depslist}}) {
	my $to_select = $_->flag_base || $_->flag_installed && $_->flag_selected;
	# unselect suggested packages if minimal install:
	if ($::o->{no_suggests} && member($_->id, @suggested_package_ids)) {
	    log::l("unselecting suggested package " . $_->name);
	    undef $to_select;
	}
	if ($to_select) {
	    #- keep track of packages that should be kept selected.
	    $keep_selected{$_->id} = $_;
	} else {
	    #- deselect all packages except base or packages that need to be upgraded.
	    $_->set_flag_required(0);
	    $_->set_flag_requested(0);
	}
    }
    #- clean state, in order to start with a brand new set...
    $packages->{state} = {};
    _resolve_requested_and_check($packages, $packages->{state}, \%keep_selected);
}

sub empty_packages {
    my ($o_keep_unrequested_dependencies) = @_;
    my $packages = urpm->new;
    urpm::get_global_options($packages);
    urpm::set_files($packages, '/mnt');

    #- add additional fields used by DrakX.
    @$packages{qw(count media)} = (0, []);

    urpm::args::set_debug($packages) if $::o->{debug_urpmi};
    $packages->{log} = \&log::l;
    $packages->{info} = \&log::l;
    $packages->{fatal} = sub {
        log::l("urpmi error: $_[1] ($_[0])\n" . common::backtrace());
        $::o->ask_warn(undef, N("A fatal error occurred: %s.", "$_[1] ($_[0])"));
    };
    $packages->{error} = sub {
        log::l("urpmi error: $_[0]");
        $::o->ask_warn(undef, N("An error occurred:") . "\n\n" . $_[0]);
    };
    $packages->{root} = $::prefix;
    $packages->{prefer_vendor_list} = '/etc/urpmi/prefer.vendor.list';
    $packages->{keep_unrequested_dependencies} =
      defined($o_keep_unrequested_dependencies) ? $o_keep_unrequested_dependencies : 1;
    $urpm::args::options{force_transactions} = 1;
    $urpm::args::options{justdb} = $::o->{justdb};
    urpm::set_tune_rpm($packages, $::o->{'tune-rpm'}) if $::o->{'tune-rpm'};
    $::force = 1;
    $packages->{options}{ignoresize} = 1;
    # prevent priority upgrade (redundant for now as $urpm->{root} implies disabling it:
    $packages->{options}{'priority-upgrade'} = undef;
    # log $trans->add() faillure; FIXME: should we override *urpm::msg::sys_log?
    $packages->{debug} = $packages->{debug_URPM} = \&log::l;
    $packages->{options}{'curl-options'} = $::o->{curl_options} if $::o->{curl_options};

    $packages;
}

sub readCompssUsers {
    my ($file) = @_;

    my $f = common::open_file($file) or log::l("cannot find $file: $!"), return;
    my ($compssUsers, $gtk_display_compssUsers) = eval join('', <$f>);
    if ($@) {
	log::l("ERROR: bad $file: $@");
    } else {
	log::l("compssUsers.pl got: ", join(', ', map { qq("$_->{path}|$_->{label}") } @$compssUsers));
    }
    ($compssUsers, $gtk_display_compssUsers);
}

sub saveCompssUsers {
    my ($packages, $compssUsers) = @_;
    my $flat;
    foreach (@$compssUsers) {
	my %fl = map { ("CAT_$_" => 1) } @{$_->{flags}};
	$flat .= "$_->{label} [icon=xxx] [path=$_->{path}]\n";
	foreach my $p (@{$packages->{depslist}}) {
	    my @flags = $p->rflags;
	    if ($p->rate && any { any { !/^!/ && $fl{$_} } split('\|\|') } @flags) {
		$flat .= sprintf "\t%d %s\n", $p->rate, $p->name;
	    }
	}
    }
    my $urpmidir = install::media::urpmidir();
    output "$urpmidir/compssUsers.flat", $flat;
}

sub setSelectedFromCompssList {
    my ($packages, $rpmsrate_flags_chosen, $min_level, $max_size) = @_;
    $rpmsrate_flags_chosen->{TRUE} = 1; #- ensure TRUE is set
    my $nb = selectedSize($packages);

    my %pkgs;
    foreach my $p (@{$packages->{depslist}}) {
	my @flags = $p->rflags;
	next if
	  !$p->rate || $p->rate < $min_level || 
	  any { !any { /^!(.*)/ ? !$rpmsrate_flags_chosen->{$1} : $rpmsrate_flags_chosen->{$_} } split('\|\|') } @flags;	
	$pkgs{$p->rate} ||= {};
	$pkgs{$p->rate}{$p->id} = 1 if _packageRequest($packages, $p);
    }
    my %pkgswanted;
    foreach my $level (sort { $b <=> $a } keys %pkgs) {
	#- determine the packages that will be selected
	#- the packages are not selected.
	my $state = $packages->{state} ||= {};
	foreach my $p (keys %{$pkgs{$level}}) {
	    $pkgswanted{$p} = 1;
	}
	my ($l, $_error) = _resolve_requested_and_check($packages, $state, \%pkgswanted);
    
	#- this enable an incremental total size.
	my $old_nb = $nb;
	foreach (@$l) {
	    $nb += $_->size;
	}
	if ($max_size && $nb > $max_size) {
	    log::l("disabling selected packages because too big for level $level: $nb > $max_size");
	    $nb = $old_nb;
	    $min_level = $level;
	    $packages->disable_selected($packages->{rpmdb}, $state, @$l);
	    last;
	}
    }
    my @flags = map_each { if_($::b, $::a) } %$rpmsrate_flags_chosen;
    log::l("setSelectedFromCompssList: reached size ", int($nb / 1024/1024), "MB, up to indice $min_level (less than ", formatXiB($max_size), ") for flags ", join(' ', sort @flags));
    log::l("setSelectedFromCompssList: ", join(" ", sort map { $_->name } grep { $_->flag_selected } @{$packages->{depslist}}));
    $min_level;
}

#- useful to know the size it would take for a given min_level/max_size
#- just save the selected packages, call setSelectedFromCompssList, and restore the selected packages
sub saveSelected {
    my ($packages) = @_;
    my $state = delete $packages->{state};
    my @l = @{$packages->{depslist}};
    my @flags = map { ($_->flag_requested && 1) + ($_->flag_required && 2) + ($_->flag_upgrade && 4) } @l;
    [ $packages, $state, \@l, \@flags ];
}
sub restoreSelected {
    my ($packages, $state, $l, $flags) = @{$_[0]};
    $packages->{state} = $state;
    mapn { my ($pkg, $flag) = @_;
	   $pkg->set_flag_requested($flag & 1);
	   $pkg->set_flag_required($flag & 2);
	   $pkg->set_flag_upgrade($flag & 4);
         } $l, $flags;
}

sub _inside {
    my ($l1, $l2) = @_;
    my $i = 0;
    return if @$l1 > @$l2;
    foreach (@$l1) {
        my $c;
        while ($c = $l2->[$i++] cmp $_) {
            return if $c == 1 || $i > @$l2;
        }
    }
    1;
}

sub _or_ify {
    my ($first, @other) = @_;
    my @l = split('\|\|', $first);
    foreach (@other) {
        @l = map {
            my $n = $_;
            map { "$_&&$n" } @l;
        } split('\|\|');
    }
    @l;
}
sub _or_clean {
    my ($flags) = @_;
    my @l = split("\t", $flags);
    @l = map { [ sort split('&&') ] } @l;
    my @r;
  B: while (@l) {
        my $e = shift @l;
        foreach (@r, @l) {
            _inside($_, $e) and next B;
        }
        push @r, $e;
    }
    join("\t", map { join('&&', @$_) } @r);
}


sub computeGroupSize {
    my ($packages, $min_level) = @_;
    my (%group, %memo);

    my %or_ify_cache;
    my $or_ify_cached = sub {
	$or_ify_cache{$_[0]} ||= join("\t", _or_ify(split("\t", $_[0])));
    };

    log::l("install::pkgs::computeGroupSize");
    my $time = time();

    my %pkgs_with_same_rflags;
    foreach (@{$packages->{depslist}}) {
	next if !$_->rate || $_->rate < $min_level || $_->flag_available;
	my $flags = join("\t", $_->rflags);
	next if $flags eq 'FALSE';
	push @{$pkgs_with_same_rflags{$flags}}, $_;
    }

    foreach my $raw_flags (keys %pkgs_with_same_rflags) {
	my $flags = $or_ify_cached->($raw_flags);
	my @pkgs = @{$pkgs_with_same_rflags{$raw_flags}};
  
	#- determine the packages that will be selected when selecting $p.
	#- make a fast selection (but potentially erroneous).
	#- installed and upgrade flags must have been computed (see compute_installed_flags).
	my %newSelection;
			 
	my @l2 = map { $_->id } @pkgs;
	my $id;

	    while (defined($id = shift @l2)) {
		exists $newSelection{$id} and next;
		$newSelection{$id} = undef;

		my $pkg = $packages->{depslist}[$id];
		my @deps = map { [ $_, keys %{$packages->{provides}{$_} || {}} ] } $pkg->requires_nosense, $pkg->suggests;
		foreach (sort { @$a <=> @$b } @deps) { #- sort on number of provides (it helps choosing "b" in: "a" requires both "b" and virtual={"b","c"})
		    my ($virtual, @choices) = @$_;
		    if (@choices <= 1) {
			#- only one choice :)
		    } elsif (find { exists $newSelection{$_} } @choices) {
			@choices = ();
		    } else {
			my @choices_pkgs = map { $packages->{depslist}[$_] } @choices;
			if (find { $_->flag_available } @choices_pkgs) {
			    @choices = (); #- one package is already selected (?)
			} else {
			    @choices = map { $_->id } packageCallbackChoices($packages, undef, undef, \@choices_pkgs, $virtual, undef);
			}
		    }
		    push @l2, @choices;
		}
	    }

	foreach (keys %newSelection) {
	    my $p = $packages->{depslist}[$_] or next;
	    next if $p->flag_selected; #- always installed (accounted in system_size)
	    my $s = $group{$p->name} || $or_ify_cached->(join("\t", $p->rflags));
	    my $m = "$flags\t$s";
	    $group{$p->name} = ($memo{$m} ||= _or_clean($m));
	}
    }
    my (%sizes, %pkgs);
    while (my ($k, $v) = each %group) {
	my $pkg = packageByName($packages, $k) or next;
	push @{$pkgs{$v}}, $k;
	$sizes{$v} += $pkg->size - $packages->{sizes}{$pkg->name};
    }
    log::l("install::pkgs::computeGroupSize took: ", formatTimeRaw(time() - $time));
    log::l(sprintf "%s %dMB %s", $_, $sizes{$_} / sqr(1024), join(',', @{$pkgs{$_}})) foreach keys %sizes;
    \%sizes, \%pkgs;
}


sub _openInstallLog() {
    my $f = "$::prefix/root/drakx/install.log";
    open(my $LOG, ">> $f") ? log::l("opened $f") : log::l("Failed to open $f. No install log will be kept."); #-#
    CORE::select((CORE::select($LOG), $| = 1)[0]);
    URPM::rpmErrorWriteTo(fileno $LOG);
    $LOG;
}

sub rpmDbOpen {
    my ($b_rebuild_if_needed) = @_;

    clean_rpmdb_shared_regions();

    my $need_rebuild = $b_rebuild_if_needed && !URPM::DB::verify($::prefix);

    if ($need_rebuild) {
	if (my $pid = fork()) {
	    waitpid $pid, 0;
	    $? & 0xff00 and die "rebuilding of rpm database failed";
	} else {
	    log::l("rebuilding rpm database");
	    my $rebuilddb_dir = "$::prefix/var/lib/rpmrebuilddb.$$";
	    if (-d $rebuilddb_dir) {
                log::l("removing stale directory $rebuilddb_dir");
                rm_rf($rebuilddb_dir);
            }

	    if (!URPM::DB::rebuild($::prefix)) {
                log::l("rebuilding of rpm database failed: " . URPM::rpmErrorString());
                c::_exit(2);
            }

	    c::_exit(0);
	}
    }

    my $db;
    if ($db = URPM::DB::open($::prefix)) {
	log::l("opened rpm database for examining existing packages");
    } else {
	log::l("unable to open rpm database, using empty rpm db emulation");
	$db = new URPM;
    }

    $db;
}

sub clean_rpmdb_shared_regions() {
    unlink glob("$::prefix/var/lib/rpm/__db.*");
}

sub open_rpm_db_rw() {
    clean_rpmdb_shared_regions();
    my $db = URPM::DB::open($::prefix, 1);
    $db and log::l("opened rpmdb for writing in $::prefix");
    $db;
}

sub cleanOldRpmDb() {
    my $failed;

    foreach (qw(Basenames Conflictname Group Name Packages Providename Requirename Triggername)) {
	-s "$::prefix/var/lib/rpm/$_" or $failed = 'failed';
    }
    #- rebuilding has been successfull, so remove old rpm database if any.
    #- once we have checked the rpm4 db file are present and not null, in case
    #- of doubt, avoid removing them...
    unless ($failed) {
	log::l("rebuilding rpm database completed successfully");
	foreach (qw(conflictsindex.rpm fileindex.rpm groupindex.rpm nameindex.rpm packages.rpm
                    providesindex.rpm requiredby.rpm triggerindex.rpm)) {
	    -e "$::prefix/var/lib/rpm/$_" or next;
	    log::l("removing old rpm file $_");
	    rm_rf("$::prefix/var/lib/rpm/$_");
	}
    }
}

sub selectPackagesAlreadyInstalled {
    my ($packages) = @_;

    log::l("computing installed flags and size of installed packages");

    $packages->compute_installed_flags($packages->{rpmdb});

    my %sizes;
    $packages->{rpmdb}->traverse(sub {
	my ($p) = @_;      
	$sizes{$p->name} += $p->size;
    });
    $packages->{sizes} = \%sizes;
}

sub selectPackagesToUpgrade {
    my ($packages, $o_medium) = @_;

    log::l("selecting packages to upgrade");

    my $state = $packages->{state} ||= {};
    $state->{selected} = {};

    my %selection;
    $packages->request_packages_to_upgrade($packages->{rpmdb}, $state, \%selection,
					   requested => undef,
					   $o_medium ? (start => $o_medium->{start}, end => $o_medium->{end}) : (),
					  );
    log::l("selected pkgs to upgrade: " . join(' ', map { $packages->{depslist}[$_]->name } keys %selection));

    log::l("resolving dependencies...");
    _resolve_requested_and_check($packages, $state, \%selection);
    log::l("...done");
    log::l("finally selected pkgs: ", join(" ", sort map { $_->name } grep { $_->flag_selected } @{$packages->{depslist}}));
}

sub _filter_packages {
    my ($retry, $packages, @packages) = @_;
    grep {
        if ($_->flag_installed || packageMedium($packages, $_)->{ignore}) {
            if ($_->name eq 'mga-rpm-summary' && $_->flag_installed) {
                install::pkgs::setup_rpm_summary_translations();
            }
            $_->free_header;
          0;
        } else {
            log::l("failed to install " . $_->fullname . " (will retry)") if !$retry;
            1;
        }
    } @packages;
}

sub install {
    my ($isUpgrade, $toInstall, $packages, $callback) = @_;
    my %packages;

    delete $packages->{rpmdb}; #- make sure rpmdb is closed before.
    #- avoid potential problems with rpm db personality change
    clean_rpmdb_shared_regions();

    return if !@$toInstall;

    #- for root loopback'ed /boot
    my $loop_boot = fs::loopback::prepare_boot();

    #- first stage to extract some important information
    #- about the selected packages.
    my ($total, $nb);
    foreach my $pkg (@$toInstall) {
	$packages{$pkg->id} = $pkg;
	$nb++;
	$total += to_int($pkg->size); #- do not correct for upgrade!
    }

    log::l("install::pkgs::install $::prefix");
    log::l("install::pkgs::install the following: ", join(" ", map { $_->name } values %packages));

    URPM::read_config_files();
    URPM::add_macro(join(' ', '__dbi_cdb', URPM::expand('%__dbi_cdb'), 'nofsync'));
    my $LOG = _openInstallLog();

    $packages->{log} = $packages->{info} = $packages->{print} = sub {
        print $LOG "$_[0]\n";
    };

    #- do not modify/translate the message used with installCallback since
    #- these are keys during progressing installation, or change in other
    #- place (install::steps_gtk.pm,...).
    $callback->($packages, user => undef, install => $nb, $total);

    my $exit_code = _install_raw($packages, $isUpgrade, $callback, $LOG, 0);

    log::l("closing install.log file");
    close $LOG;

    # prevent urpmi from trying to install them again (CHECKME: maybe uneeded):
    $packages->{state} = {};

    clean_rpmdb_shared_regions(); #- workaround librpm which is buggy when using librpm rooted and the just installed rooted library

    fs::loopback::save_boot($loop_boot);

    $exit_code;
}

sub _unselect_package {
    my ($packages, $pkg) = @_;
    #- update flag associated to package.
    $pkg->set_flag_installed(1);
    $pkg->set_flag_upgrade(0);
    #- update obsoleted entry.
    my $rejected = $packages->{state}{rejected};
    foreach (keys %$rejected) {
        if (delete $rejected->{$_}{closure}{$pkg->fullname}) {
            %{$rejected->{$_}{closure}} or delete $rejected->{$_};
        }
    }
}

sub is_package_installed {
    my ($db, $pkg) = @_;
    my $check_installed;
    $db->traverse_tag('name', [ $pkg->name ], sub {
                          my ($p) = @_;
                          $check_installed ||= $pkg->compare_pkg($p) == 0;
                      });
    return $check_installed;
}

sub _install_raw {
    my ($packages, $_isUpgrade, $callback, $LOG, $noscripts) = @_;

    # prevent warnings in install's logs:
    local $ENV{LC_ALL} = 'C';

    # let's be urpmi's compatible:
    local $packages->{options}{noscripts} = $noscripts;
    # leaks a fd per transaction (around ~100 for a typically gnome install, see #49097):
    # bug present in 2009.0, 2008.1, 2008.0, ... (probably since r11141 aka when switching to rpm-4.2 in URPM-0.83)
    local $packages->{options}{script_fd} = fileno $LOG;

    log::l("rpm transactions start");

    my $exit_code = urpm::main_loop::run($packages, $packages->{state}, undef, undef, {
        open_helper => $callback,
        close_helper => sub {
				my ($db, $packages, $_type, $id) = @_;
				&$callback;
				my $pkg = defined $id && $packages->{depslist}[$id] or return;
				print $LOG $pkg->fullname . "\n";
				my $check_installed = is_package_installed($db, $pkg);
                                if ($pkg->name eq 'mga-rpm-summary' && $check_installed) {
                                    install::pkgs::setup_rpm_summary_translations();
                                }

				if ($check_installed) {
                                    _unselect_package($packages, $pkg);
                                } else {
                                    log::l($pkg->name . " not installed, " . URPM::rpmErrorString());
                                }
        }, inst => $callback,
        trans => $callback,
        # FIXME: implement already_installed_or_not_installable
        bad_signature => sub {
            my ($msg, $msg2) = @_;
            $msg =~ s/:$/\n\n/m; # FIXME: to be fixed in urpmi after 2008.0 (sic!)
            log::l($msg);
            log::l($msg2);
            return 0 if $packages->{options}{auto};
            state $do_not_ask;
            state $answer;
            return $answer if $do_not_ask;
            $answer = $::o->ask_from_({ messages => "$msg\n\n$msg2" }, [ 
                { val => \$do_not_ask,
                  type => 'bool', text => N("Do not ask again"),
              },
            ]);
        },
        copy_removable => sub {
            my ($medium) = @_;
            $::o->ask_change_cd($medium);
        },
        is_canceled => sub {
            return $install::pkgs::cancel_install;
        },
        trans_error_summary => sub {
            my ($nok, $errors) = @_;
            log::l($nok . " installation transactions failed");
            log::l(join("\n", @$errors));
            if (!$packages->{options}{auto}) {
                $::o->ask_warn(N("Error"), N("%d installation transactions failed", $nok) . "\n\n" .
                                 N("Installation of packages failed:") . "\n\n" . join("\n", @$errors));
            }
        },
        message => sub {
            my ($title, $message) = @_;
            log::l($message);
            $::o->ask_warn($title, $message);
        },
        ask_yes_or_no => sub {
            my ($title, $msg) = @_;
            log::l($msg);
            $::o->ask_yesorno($title, $msg);
        },
        ask_for_bad_or_missing => sub {
            my ($_title, $msg) = @_;
            log::l($msg);
            state $do_not_ask;
            state $answer;
            return $answer if $do_not_ask;
            $answer = $::o->ask_from_({ messages => $msg }, [
                { val => \$do_not_ask, type => 'bool', text => N("Do not ask again"),
              },
            ]);
        },
        # Uneeded callbacks: success_summary
    });
          
    log::l("transactions done, now trying to close still opened fd; exit code=$exit_code");
 
    $exit_code;
}

sub upgrade_by_removing_pkgs {
    my ($packages, $callback, $extension, $upgrade_name) = @_;

    my $upgrade_data;
    if ($upgrade_name) {
	my @l = glob("$ENV{SHARE_PATH}/upgrade/$upgrade_name*");
	@l == 0 and log::l("upgrade_by_removing_pkgs: no special upgrade data");
	@l > 1 and log::l("upgrade_by_removing_pkgs: many special upgrade data (" . join(' ', @l) . ")");
	$upgrade_data = $l[0];
    }
    
    log::l("upgrade_by_removing_pkgs (extension=$extension, upgrade_data=$upgrade_data)");

    #- put the release file in /root/drakx so that we continue an upgrade even if the file has gone
    my $f = common::release_file($::prefix);
    if (dirname($f) eq '/etc') {
	output_p("$::prefix/root/drakx/" . basename($f) . '.upgrading', cat_("$::prefix$f"));
    }
    my $busy_var_tmp = "$::prefix/var/tmp/ensure-rpm-does-not-remove-this-dir";
    touch($busy_var_tmp);

    if ($upgrade_data) {
	foreach (glob("$upgrade_data/pre.*")) {
	    my $f = '/tmp/' . basename($_);
	    cp_af($_, "$::prefix$f");
	    run_program::rooted($::prefix, $f);
	    unlink "$::prefix$f";
	}
    }

    my @was_installed = _remove_pkgs_to_upgrade($packages, $callback, $extension);

    {
	my @restore_files = qw(/etc/passwd /etc/group /etc/ld.so.conf);
	foreach (@restore_files) {
	    rename "$::prefix$_.rpmsave", "$::prefix$_";
	}
	fs::any::create_minimal_files();
	unlink $busy_var_tmp;
    }

    my %map = map {
	chomp;
	my ($name, @new) = split;
	$name => \@new;
    } $upgrade_data ? cat_("$upgrade_data/map") : ();

    log::l("upgrade_by_removing_pkgs: map $upgrade_data/map gave " . (int keys %map) . " rules");

    my $log;
    my @to_install = uniq(map { 
	$log .= " $_=>" . join('+', @{$map{$_}}) if $map{$_};
	$map{$_} ? @{$map{$_}} : $_;
    } @was_installed);
    log::l("upgrade_by_removing_pkgs special maps:$log");
    log::l("upgrade_by_removing_pkgs: wanted packages: ", join(' ', sort @to_install));

    @to_install;
}

sub removed_pkgs_to_upgrade_file() { "$::prefix/root/drakx/removed_pkgs_to_upgrade" }

sub _remove_pkgs_to_upgrade {
    my ($packages, $callback, $extension) = @_;

    my @to_remove;
    my @was_installed;
    {
	$packages->{rpmdb} ||= rpmDbOpen();
	$packages->{rpmdb}->traverse(sub {
	    my ($pkg) = @_;
	    if ($pkg->release =~ /$extension$/) {
		push @was_installed, $pkg->name;
		push @to_remove, scalar $pkg->fullname;
	    }
	});
    }
    if (-e removed_pkgs_to_upgrade_file()) {
	log::l("removed_pkgs_to_upgrade: using saved installed packages list ", removed_pkgs_to_upgrade_file());
	@was_installed = chomp_(cat_(removed_pkgs_to_upgrade_file()));
    } else {
	log::l("removed_pkgs_to_upgrade: saving (old) installed packages in ", removed_pkgs_to_upgrade_file());
	output_p(removed_pkgs_to_upgrade_file(), map { "$_\n" } @was_installed);
    }

    delete $packages->{rpmdb}; #- make sure rpmdb is closed before.

    _remove(\@to_remove, $callback, noscripts => 1);

    @was_installed;
}

sub remove_marked_ask_remove {
    my ($packages, $callback) = @_;

    my @to_remove = keys %{$packages->{state}{ask_remove}} or return;
    
    delete $packages->{rpmdb}; #- make sure rpmdb is closed before.

    #- we are not checking depends since it should come when
    #- upgrading a system. although we may remove some functionalities ?

    _remove(\@to_remove, $callback, force => 1);

    delete $packages->{state}{ask_remove}{$_} foreach @to_remove;
}

sub _remove_raw {
    my ($to_remove, $callback, %run_transaction_options) = @_;

    log::l("removing: " . join(' ', @$to_remove));

    URPM::read_config_files();
    URPM::add_macro(URPM::expand('__dbi_cdb %__dbi_cdb nofsync'));

    my $db = open_rpm_db_rw() or die "error opening RPM database: ", URPM::rpmErrorString();
    my $trans = $db->create_transaction();

    #- stuff remove all packages that matches $p, not a problem since $p has name-version-release format.
    $trans->remove($_) foreach @$to_remove;

    $callback->($db, user => undef, remove => scalar @$to_remove);

    $trans->run(undef, %run_transaction_options, callback_uninst => $callback);
}
sub _remove {
    my ($_to_remove, $_callback, %run_transaction_options) = @_;

    my @pbs = &_remove_raw;
    if (@pbs && !$run_transaction_options{noscripts}) {
	$run_transaction_options{noscripts} = 1;
	@pbs = &_remove_raw;
    }
    if (@pbs) {
	die "removing of old rpms failed:\n  ", join("\n  ", @pbs);
    }
}

sub setup_rpm_summary_translations() {
    my @domains = qw(rpm-summary-contrib rpm-summary-devel rpm-summary-main);
    push @::textdomains, @domains;
    foreach (@domains) {
	Locale::gettext::bind_textdomain_codeset($_, 'UTF-8');
	Locale::gettext::bindtextdomain($_, "$::prefix/usr/share/locale");
    }
}

sub selected_leaves {
    my ($packages) = @_;
    my $provides = $packages->{provides};

    my @l = grep { $_->flag_requested || $_->flag_installed } @{$packages->{depslist}};

    my %required_ids;
    foreach my $pkg (@l) {
	foreach my $req ($pkg->requires_nosense) {
	    my $h = $provides->{$req} or next;
	    my @provides = my ($provide) = keys %$h;
	    @provides == 1 or next;
	    if ($provide != (exists $required_ids{$pkg->id} ? $required_ids{$pkg->id} : $pkg->id)) {
#		log::l($packages->{depslist}[$provide]->name . " is not a leaf because required by " . $pkg->name . " (through require $req)"); 
		#- $pkg requires $req, provided by $provide, so we can skip $provide
		$required_ids{$provide} = $pkg->id;
	    }
	}
    }
    [ map { $_->name } grep { ! exists $required_ids{$_->id} } @l ];    
}

1;
ass="hl kwa">msgstr "Detecció automàtica" #: drakups:99 harddrake2:378 #, c-format msgid "Detection in progress" msgstr "Detecció en procés" #: drakups:118 drakups:157 logdrake:457 logdrake:463 #, c-format msgid "Congratulations" msgstr "Felicitats" #: drakups:119 #, c-format msgid "The wizard successfully added the following UPS devices:" msgstr "L'auxiliar ha afegit els següents dispositius SAI amb èxit:" #: drakups:121 #, c-format msgid "No new UPS devices was found" msgstr "No s'ha trobat cap dispositiu SAI nou" #: drakups:126 drakups:138 #, c-format msgid "UPS driver configuration" msgstr "Configuració del controlador del SAI" #: drakups:126 #, c-format msgid "Please select your UPS model." msgstr "Trieu el model del vostre SAI." #: drakups:127 #, c-format msgid "Manufacturer / Model:" msgstr "Fabricant / Model:" #: drakups:138 #, c-format msgid "" "We are configuring the \"%s\" UPS from \"%s\".\n" "Please fill in its name, its driver and its port." msgstr "" "S'està configurant el SAI «%s» de «%s».\n" "Si us plau introdueix el nom, controlador i port." #: drakups:143 #, c-format msgid "Name:" msgstr "Nom:" #: drakups:143 #, c-format msgid "The name of your ups" msgstr "El nom del vostre SAI" #: drakups:144 #, c-format msgid "Driver:" msgstr "Controlador:" #: drakups:144 #, c-format msgid "The driver that manages your ups" msgstr "El controlador que gestiona el vostre SAI" #: drakups:145 #, c-format msgid "Port:" msgstr "Port:" #: drakups:147 #, c-format msgid "The port on which is connected your ups" msgstr "El port al qual està connectat el vostre SAI" #: drakups:157 #, c-format msgid "The wizard successfully configured the new \"%s\" UPS device." msgstr "L'auxiliar ha configurat el nou dispositiu SAI «%s» amb èxit." #: drakups:248 #, c-format msgid "UPS devices" msgstr "Dispositius SAI" #: drakups:249 drakups:268 drakups:284 harddrake2:89 harddrake2:116 #: harddrake2:123 #, c-format msgid "Name" msgstr "Nom" #: drakups:249 harddrake2:139 #, c-format msgid "Driver" msgstr "Controlador" #: drakups:249 harddrake2:56 #, c-format msgid "Port" msgstr "Port" #: drakups:267 #, c-format msgid "UPS users" msgstr "Usuaris SAI" #: drakups:283 #, c-format msgid "Access Control Lists" msgstr "Llistes de control d'accés" #: drakups:284 #, c-format msgid "IP address" msgstr "Adreça IP" #: drakups:284 #, c-format msgid "IP mask" msgstr "Màscara IP" #: drakups:296 #, c-format msgid "Rules" msgstr "Regles" #: drakups:297 #, c-format msgid "Action" msgstr "Acció" #: drakups:297 harddrake2:85 #, c-format msgid "Level" msgstr "Nivell" #: drakups:297 #, c-format msgid "ACL name" msgstr "Nom ACL" #: drakups:297 finish-install:199 #, c-format msgid "Password" msgstr "Contrasenya" #: drakups:329 #, c-format msgid "UPS Management" msgstr "Gestió del SAI" #: drakups:333 drakups:342 #, c-format msgid "DrakUPS" msgstr "DrakUPS" #: drakups:339 #, c-format msgid "Welcome to the UPS configuration tools" msgstr "Benvingut a les eines de configuració SAI" #: drakxtv:67 #, c-format msgid "No TV Card detected!" msgstr "No s'ha detectat cap targeta de TV!" #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: drakxtv:69 #, c-format msgid "" "No TV Card has been detected on your machine. Please verify that a Linux-" "supported Video/TV Card is correctly plugged in." msgstr "" "No s'ha detectat cap targeta de TV a l'ordinador. Verifiqueu que heu " "connectat correctament una targeta de TV/vídeo compatible amb Linux." #: finish-install:60 #, c-format msgid "Keyboard" msgstr "Teclat" #: finish-install:61 #, c-format msgid "Please choose your keyboard layout." msgstr "Seleccioneu la disposició del teclat." #: finish-install:109 #, c-format msgid "Testing your connection..." msgstr "S'està comprovant la connexió..." #: finish-install:197 finish-install:215 finish-install:228 #, c-format msgid "Encrypted home partition" msgstr "Partició d'usuari xifrada" #: finish-install:197 #, c-format msgid "Please enter a password for the %s user" msgstr "Introduïu una contrasenya per a l'usuari %s" #: finish-install:200 #, c-format msgid "Password (again)" msgstr "Contrasenya (un altre cop)" #: finish-install:215 #, c-format msgid "Creating encrypted home partition" msgstr "S'està creant una partició d'usuari xifrada" #: finish-install:228 #, c-format msgid "Formatting encrypted home partition" msgstr "S'està formatant una partició d'usuari xifrada" #: harddrake2:30 #, c-format msgid "Alternative drivers" msgstr "Controladors alternatius" #: harddrake2:31 #, c-format msgid "the list of alternative drivers for this sound card" msgstr "la llista de controladors alternatius per a aquesta targeta de so" #: harddrake2:33 harddrake2:125 #, c-format msgid "Bus" msgstr "Bus" #: harddrake2:34 #, c-format msgid "" "this is the physical bus on which the device is plugged (eg: PCI, USB, ...)" msgstr "" "aquest és el bus físic al qual el dispositiu està connectat (p.ex.: PCI, " "USB...)" #: harddrake2:36 harddrake2:151 #, c-format msgid "Bus identification" msgstr "Identificació del bus" #: harddrake2:37 #, c-format msgid "" "- PCI and USB devices: this lists the vendor, device, subvendor and " "subdevice PCI/USB ids" msgstr "" "- Dispositius PCI i USB: es llisten els identificadors PCI/USB del " "distribuïdor, del dispositiu, del subdistribuïdor i del subdispositiu" #: harddrake2:39 #, c-format msgid "Location on the bus" msgstr "Ubicació en el bus" #: harddrake2:40 #, c-format msgid "" "- pci devices: this gives the PCI slot, device and function of this card\n" "- eide devices: the device is either a slave or a master device\n" "- scsi devices: the scsi bus and the scsi device ids" msgstr "" "- dispositius PCI: retorna la ranura PCI, el dispositiu i la funció " "d'aquesta targeta\n" "- dispositius EIDE: diu si el dispositiu està configurat com a mestre o com " "a esclau\n" "- dispositius SCSI: dóna el bus SCSI i els identificadors SCSI del dispositiu" #: harddrake2:43 #, c-format msgid "Drive capacity" msgstr "Capacitat de la unitat" #: harddrake2:43 #, c-format msgid "special capacities of the driver (burning ability and or DVD support)" msgstr "" "funcions especials del programa de control (capacitat per enregistrar CD o " "preparat per a DVD)" #: harddrake2:44 #, c-format msgid "Description" msgstr "Descripció" #: harddrake2:44 #, c-format msgid "this field describes the device" msgstr "aquest camp descriu el dispositiu" #: harddrake2:45 #, c-format msgid "Old device file" msgstr "Fitxer de dispositiu antic" #: harddrake2:46 #, c-format msgid "old static device name used in dev package" msgstr "nom antic de dispositiu estàtic, usat en el paquet de desenvolupament" #. -PO: here "module" is the "jargon term" for a kernel driver #: harddrake2:49 #, c-format msgid "Module" msgstr "Mòdul" #: harddrake2:49 #, c-format msgid "the module of the GNU/Linux kernel that handles the device" msgstr "el mòdul del nucli GNU/Linux que gestiona aquest dispositiu" #: harddrake2:50 #, c-format msgid "Extended partitions" msgstr "Particions ampliades" #: harddrake2:50 #, c-format msgid "the number of extended partitions" msgstr "el nombre de particions ampliades" #: harddrake2:51 #, c-format msgid "Geometry" msgstr "Geometria" #: harddrake2:51 #, c-format msgid "Cylinder/head/sectors geometry of the disk" msgstr "Geometria cilindre/capçal/sectors del disc" #: harddrake2:52 #, c-format msgid "Disk controller" msgstr "Controlador de disc" #: harddrake2:52 #, c-format msgid "the disk controller on the host side" msgstr "" #: harddrake2:53 #, c-format msgid "Identifier" msgstr "Identificador" #: harddrake2:53 #, c-format msgid "usually the device serial number" msgstr "normalment el número de sèrie del dispositiu" #: harddrake2:54 #, c-format msgid "Media class" msgstr "Tipus de mitjà" #: harddrake2:54 #, c-format msgid "class of hardware device" msgstr "tipus de dispositiu de maquinari" #: harddrake2:55 harddrake2:86 #, c-format msgid "Model" msgstr "Model" #: harddrake2:55 #, c-format msgid "hard disk model" msgstr "model de disc dur" #: harddrake2:56 #, c-format msgid "network printer port" msgstr "port de la impressora de xarxa" #: harddrake2:57 #, c-format msgid "Primary partitions" msgstr "Particions primàries" #: harddrake2:57 #, c-format msgid "the number of the primary partitions" msgstr "el nombre de particions primàries" #: harddrake2:58 harddrake2:92 #, c-format msgid "Vendor" msgstr "Venedor" #: harddrake2:58 #, c-format msgid "the vendor name of the device" msgstr "el nom del venedor del dispositiu" #: harddrake2:59 #, c-format msgid "PCI domain" msgstr "Domini PCI" #: harddrake2:59 harddrake2:60 #, c-format msgid "the PCI domain of the device" msgstr "el domini PCI del dispositiu" #: harddrake2:60 #, c-format msgid "PCI revision" msgstr "Revisió PCI" #: harddrake2:61 #, c-format msgid "Bus PCI #" msgstr "# Bus PCI" #: harddrake2:61 #, c-format msgid "the PCI bus on which the device is plugged" msgstr "el bus PCI al qual el dispositiu està connectat" #: harddrake2:62 #, c-format msgid "PCI device #" msgstr "# dispositiu PCI" #: harddrake2:62 #, c-format msgid "PCI device number" msgstr "Número del dispositiu PCI" #: harddrake2:63 #, c-format msgid "PCI function #" msgstr "Funció PCI #" #: harddrake2:63 #, c-format msgid "PCI function number" msgstr "" #: harddrake2:64 #, c-format msgid "Vendor ID" msgstr "ID del venedor" #: harddrake2:64 #, c-format msgid "this is the standard numerical identifier of the vendor" msgstr "aquest és l'identificador numèric estàndard del proveïdor" #: harddrake2:65 #, c-format msgid "Device ID" msgstr "ID del dispositiu" #: harddrake2:65 #, c-format msgid "this is the numerical identifier of the device" msgstr "aquest és l'identificador numèric del dispositiu" #: harddrake2:66 #, c-format msgid "Sub vendor ID" msgstr "Sub ID del venedor" #: harddrake2:66 #, c-format msgid "this is the minor numerical identifier of the vendor" msgstr "aquest és l'identificador numèric menor del proveïdor" #: harddrake2:67 #, c-format msgid "Sub device ID" msgstr "Sub ID del dispositiu" #: harddrake2:67 #, c-format msgid "this is the minor numerical identifier of the device" msgstr "aquest és l'identificador numèric menor del dispositiu" #: harddrake2:68 #, c-format msgid "Device USB ID" msgstr "ID dispositiu USB" #: harddrake2:68 #, c-format msgid ".." msgstr ".." #: harddrake2:73 harddrake2:74 #, c-format msgid "Bogomips" msgstr "Bogomips" #: harddrake2:73 harddrake2:74 #, c-format msgid "" "the GNU/Linux kernel needs to run a calculation loop at boot time to " "initialize a timer counter. Its result is stored as bogomips as a way to " "\"benchmark\" the cpu." msgstr "" "el nucli GNU/Linux necessita executar un bucle de càlcul durant l'arrencada " "per iniciar un comptador de temps. El seu resultat s'emmagatzema com a " "bogomips com a manera d'«avaluar» la CPU." #: harddrake2:75 #, c-format msgid "Cache size" msgstr "Mida de la memòria cau" #: harddrake2:75 #, c-format msgid "size of the (second level) cpu cache" msgstr "mida de la memòria cau de la CPU (segon nivell)" #: harddrake2:76 #, c-format msgid "Cpuid family" msgstr "Família cpuid" #: harddrake2:76 #, c-format msgid "family of the cpu (eg: 6 for i686 class)" msgstr "família de la CPU (p.ex. 6 per a la classe i686)" #: harddrake2:77 #, c-format msgid "Cpuid level" msgstr "Nivell cpuid" #: harddrake2:77 #, c-format msgid "information level that can be obtained through the cpuid instruction" msgstr "nivell d'informació que es pot obtenir mitjançant la instrucció cpuid" #: harddrake2:78 #, c-format msgid "Frequency (MHz)" msgstr "Freqüència (MHz)" #: harddrake2:78 #, c-format msgid "" "the CPU frequency in MHz (Megahertz which in first approximation may be " "coarsely assimilated to number of instructions the cpu is able to execute " "per second)" msgstr "" "freqüència en MHz (megahertz) de la CPU (que, en una primera aproximació " "grollera, es pot considerar com el nombre d'instruccions per segon que la " "CPU pot executar)" #: harddrake2:79 #, c-format msgid "Flags" msgstr "Indicadors" #: harddrake2:79 #, c-format msgid "CPU flags reported by the kernel" msgstr "Indicadors de la CPU llistats pel nucli." #: harddrake2:80 harddrake2:144 #, c-format msgid "Cores" msgstr "Nuclis" #: harddrake2:80 #, c-format msgid "CPU cores" msgstr "Nuclis de la CPU" #: harddrake2:81 #, c-format msgid "Core ID" msgstr "ID del nucli" #: harddrake2:82 #, c-format msgid "Physical ID" msgstr "ID físic" #: harddrake2:83 #, c-format msgid "ACPI ID" msgstr "ID ACPI" #: harddrake2:84 #, c-format msgid "Siblings" msgstr "Germans" #: harddrake2:85 #, c-format msgid "sub generation of the cpu" msgstr "subgeneració de la CPU" #: harddrake2:86 #, c-format msgid "generation of the cpu (eg: 8 for Pentium III, ...)" msgstr "generació de la CPU (p.ex. 8 per al Pentium III, etc.)" #: harddrake2:87 harddrake2:88 #, c-format msgid "Model name" msgstr "Nom del model" #: harddrake2:87 harddrake2:88 #, c-format msgid "official vendor name of the cpu" msgstr "nom oficial del distribuïdor de la cpu" #: harddrake2:89 #, c-format msgid "the name of the CPU" msgstr "el nom de la CPU" #: harddrake2:90 #, c-format msgid "Processor ID" msgstr "ID del processador" #: harddrake2:90 #, c-format msgid "the number of the processor" msgstr "número del processador" #: harddrake2:91 #, c-format msgid "Model stepping" msgstr "Pas a pas del model" #: harddrake2:91 #, c-format msgid "stepping of the cpu (sub model (generation) number)" msgstr "stepping de la CPU (número de submodel (generació))" #: harddrake2:92 #, c-format msgid "the vendor name of the processor" msgstr "el nom del distribuïdor del processador" #: harddrake2:93 #, c-format msgid "Write protection" msgstr "Protecció contra escriptura" #: harddrake2:93 #, c-format msgid "" "the WP flag in the CR0 register of the cpu enforce write protection at the " "memory page level, thus enabling the processor to prevent unchecked kernel " "accesses to user memory (aka this is a bug guard)" msgstr "" "l'indicador WP del registre CR0 de la CPU reforça la protecció contra " "escriptura a nivell de la pàgina de memòria, permetent que el processador " "eviti accessos del nucli no comprovats a la memòria de l'usuari (és a dir, " "que és un control contra errors)" #: harddrake2:97 #, c-format msgid "Floppy format" msgstr "Format del disquet" #: harddrake2:97 #, c-format msgid "format of floppies supported by the drive" msgstr "format dels disquets que es poden utilitzar en la unitat" #: harddrake2:101 #, c-format msgid "EIDE/SCSI channel" msgstr "Canal EIDE/SCSI" #: harddrake2:102 #, c-format msgid "Disk identifier" msgstr "Identificador de disc" #: harddrake2:102 #, c-format msgid "usually the disk serial number" msgstr "normalment el número de sèrie del disc" #: harddrake2:103 #, c-format msgid "Target id number" msgstr "" #: harddrake2:103 #, c-format msgid "the SCSI target identifier" msgstr "" #: harddrake2:104 #, c-format msgid "Logical unit number" msgstr "Número d'unitat lògica" #: harddrake2:104 #, c-format msgid "" "the SCSI Logical Unit Number (LUN). SCSI devices connected to a host are " "uniquely identified by a\n" "channel number, a target id and a logical unit number" msgstr "" #. -PO: here, "size" is the size of the ram chip (eg: 128Mo, 256Mo, ...) #: harddrake2:111 #, c-format msgid "Installed size" msgstr "Mida Instal·lada" #: harddrake2:111 #, c-format msgid "Installed size of the memory bank" msgstr "Mida instal·lada del banc de memòria" #: harddrake2:112 #, c-format msgid "Enabled Size" msgstr "Mida habilitada" #: harddrake2:112 #, c-format msgid "Enabled size of the memory bank" msgstr "" #: harddrake2:113 harddrake2:122 #, c-format msgid "Type" msgstr "Tipus" #: harddrake2:113 #, c-format msgid "type of the memory device" msgstr "tipus del dispositiu de memòria" #: harddrake2:114 #, c-format msgid "Speed" msgstr "Velocitat" #: harddrake2:114 #, c-format msgid "Speed of the memory bank" msgstr "Velocitat del banc de memòria" #: harddrake2:115 #, c-format msgid "Bank connections" msgstr "" #: harddrake2:116 #, c-format msgid "Socket designation of the memory bank" msgstr "" #: harddrake2:120 #, c-format msgid "Device file" msgstr "Fitxer de dispositiu" #: harddrake2:120 #, c-format msgid "" "the device file used to communicate with the kernel driver for the mouse" msgstr "" #: harddrake2:121 #, c-format msgid "Emulated wheel" msgstr "Rodeta emulada" #: harddrake2:121 #, c-format msgid "whether the wheel is emulated or not" msgstr "si la rodeta s'emula o no" #: harddrake2:122 #, c-format msgid "the type of the mouse" msgstr "el tipus de ratolí" #: harddrake2:123 #, c-format msgid "the name of the mouse" msgstr "el nom del ratolí" #: harddrake2:124 #, c-format msgid "Number of buttons" msgstr "Nombre de botons" #: harddrake2:124 #, c-format msgid "the number of buttons the mouse has" msgstr "el nombre de botons que té el ratolí" #: harddrake2:125 #, c-format msgid "the type of bus on which the mouse is connected" msgstr "tipus de bus a què està connectat el ratolí." #: harddrake2:126 #, c-format msgid "Mouse protocol used by X11" msgstr "Protocol del ratolí usar per X11" #: harddrake2:126 #, c-format msgid "the protocol that the graphical desktop use with the mouse" msgstr "el protocol que usa l'entorn gràfic pel ratolí" #: harddrake2:130 #, c-format msgid "Identification" msgstr "Identificació" #: harddrake2:135 harddrake2:150 #, c-format msgid "Connection" msgstr "Connexió" #: harddrake2:145 #, c-format msgid "Performances" msgstr "Rendiments" #: harddrake2:152 #, c-format msgid "Device" msgstr "Dispositiu" #: harddrake2:153 #, c-format msgid "Partitions" msgstr "Particions" #: harddrake2:158 #, c-format msgid "Features" msgstr "Característiques" #. -PO: please keep all "/" characters !!! #: harddrake2:181 logdrake:78 #, c-format msgid "/_Options" msgstr "/_Opcions" #: harddrake2:182 harddrake2:208 logdrake:80 #, c-format msgid "/_Help" msgstr "/_Ajuda" #: harddrake2:186 #, c-format msgid "/Autodetect _modems" msgstr "/Detecta els _mòdems automàticament" #: harddrake2:187 #, c-format msgid "/Autodetect _jaz drives" msgstr "/Detecta les unitats _jaz automàticament" #: harddrake2:188 #, c-format msgid "/Autodetect parallel _zip drives" msgstr "/Detecta les unitats _zip paral·lel automàticament" #: harddrake2:192 #, c-format msgid "Hardware Configuration" msgstr "Configuració de maquinari" #: harddrake2:199 #, c-format msgid "/_Quit" msgstr "/_Surt" #: harddrake2:210 #, c-format msgid "/_Fields description" msgstr "/Descripció de _camps" #: harddrake2:212 #, c-format msgid "Harddrake help" msgstr "Ajuda del Harddrake" #: harddrake2:213 #, c-format msgid "" "Description of the fields:\n" "\n" msgstr "" "Descripció dels camps:\n" "\n" #: harddrake2:221 #, c-format msgid "Select a device!" msgstr "Seleccioneu un dispositiu!" #: harddrake2:221 #, c-format msgid "" "Once you've selected a device, you'll be able to see the device information " "in fields displayed on the right frame (\"Information\")" msgstr "" "Quan hagueu seleccionat un dispositiu podreu veure'n la informació en els " "camps del marc dret («Informació»)" #: harddrake2:227 #, c-format msgid "/_Report Bug" msgstr "/_Informeu d'un error" #: harddrake2:229 #, c-format msgid "/_About..." msgstr "/_Quant a..." #: harddrake2:232 #, c-format msgid "Harddrake" msgstr "Harddrake" #: harddrake2:236 #, c-format msgid "This is HardDrake, a %s hardware configuration tool." msgstr "Això és HardDrake, una eina de configuració de maquinari %s" #: harddrake2:268 #, c-format msgid "Detected hardware" msgstr "S'ha detectat el següent maquinari" #: harddrake2:271 scannerdrake:284 #, c-format msgid "Information" msgstr "Informació" #: harddrake2:273 #, c-format msgid "Set current driver options" msgstr "Estableix les opcions del controlador actual" #: harddrake2:280 #, c-format msgid "Run config tool" msgstr "Executa l'eina de configuració" #: harddrake2:300 #, c-format msgid "" "Click on a device in the tree on the left in order to display its " "information here." msgstr "" "Feu clic a un dispositiu de l'arbre de l'esquerra per veure'n aquí la " "informació." #: harddrake2:321 notify-x11-free-driver-switch:13 #, c-format msgid "unknown" msgstr "desconegut" #: harddrake2:322 #, c-format msgid "Unknown" msgstr "Desconegut" #: harddrake2:342 #, c-format msgid "Misc" msgstr "Varis" #: harddrake2:425 #, c-format msgid "secondary" msgstr "secundari" #: harddrake2:425 #, c-format msgid "primary" msgstr "primari" #: harddrake2:429 #, c-format msgid "burner" msgstr "gravador" #: harddrake2:429 #, c-format msgid "DVD" msgstr "DVD" #: harddrake2:533 #, c-format msgid "The following packages need to be installed:\n" msgstr "Cal instal·lar els paquets següents:\n" #: localedrake:38 #, c-format msgid "LocaleDrake" msgstr "LocaleDrake" #: localedrake:46 #, c-format msgid "You should install the following packages: %s" msgstr "Hauríeu d'instal·lar els següents paquets: %s" #. -PO: the following is used to combine packages names. eg: "initscripts, harddrake, yudit" #: localedrake:49 #, c-format msgid ", " msgstr ", " #: logdrake:51 #, c-format msgid "%s Tools Logs" msgstr "" #: logdrake:65 #, c-format msgid "Show only for the selected day" msgstr "Mostrar-ho només per al dia seleccionat" #: logdrake:72 #, c-format msgid "/File/_New" msgstr "/Fitxer/_Nou" #: logdrake:72 #, c-format msgid "<control>N" msgstr "<control>N" #: logdrake:73 #, c-format msgid "/File/_Open" msgstr "/Fitxer/_Obre" #: logdrake:73 #, c-format msgid "<control>O" msgstr "<control>O" #: logdrake:74 #, c-format msgid "/File/_Save" msgstr "/Fitxer/De_sa" #: logdrake:74 #, c-format msgid "<control>S" msgstr "<control>S" #: logdrake:75 #, c-format msgid "/File/Save _As" msgstr "/Fitxer/_Anomena i desa" #: logdrake:76 #, c-format msgid "/File/-" msgstr "/Fitxer/-" #: logdrake:79 #, c-format msgid "/Options/Test" msgstr "/Opcions/Prova" #: logdrake:81 #, c-format msgid "/Help/_About..." msgstr "/Ajuda/_Quant a.." #: logdrake:110 #, c-format msgid "" "_:this is the auth.log log file\n" "Authentication" msgstr "Autenticació" #: logdrake:111 #, c-format msgid "" "_:this is the user.log log file\n" "User" msgstr "Usuari" #: logdrake:112 #, c-format msgid "" "_:this is the /var/log/messages log file\n" "Messages" msgstr "Missatges" #: logdrake:113 #, c-format msgid "" "_:this is the /var/log/syslog log file\n" "Syslog" msgstr "" #: logdrake:117 #, c-format msgid "search" msgstr "cerca" #: logdrake:129 #, c-format msgid "A tool to monitor your logs" msgstr "Eina per veure els registres" #: logdrake:131 #, c-format msgid "Settings" msgstr "Paràmetres" #: logdrake:134 #, c-format msgid "Matching" msgstr "que coincideixin amb" #: logdrake:135 #, c-format msgid "but not matching" msgstr "però que no coincideixin amb" #: logdrake:138 #, c-format msgid "Choose file" msgstr "Trieu el fitxer" #: logdrake:150 #, c-format msgid "Calendar" msgstr "Calendari" #: logdrake:159 #, c-format msgid "Content of the file" msgstr "Contingut del fitxer" #: logdrake:163 logdrake:407 #, c-format msgid "Mail alert" msgstr "Alerta de correu" #: logdrake:170 #, c-format msgid "The alert wizard has failed unexpectedly:" msgstr "L'auxiliar d'alerta ha fallat inesperadament:" #: logdrake:174 #, c-format msgid "Save" msgstr "Desa" #: logdrake:222 #, c-format msgid "please wait, parsing file: %s" msgstr "espereu si us plau, s'està analitzant el fitxer: %s" #: logdrake:244 #, c-format msgid "Sorry, log file isn't available!" msgstr "El fitxer de registre no està disponible!" #: logdrake:292 #, c-format msgid "Error while opening \"%s\" log file: %s\n" msgstr "Error en l'obertura del fitxer de registre «%s»: %s\n" #: logdrake:385 #, c-format msgid "Apache World Wide Web Server" msgstr "Servidor World Wide Web Apache" #: logdrake:386 #, c-format msgid "Domain Name Resolver" msgstr "Sistema de resolució de nom de domini" #: logdrake:387 #, c-format msgid "Ftp Server" msgstr "Servidor FTP" #: logdrake:388 #, c-format msgid "Postfix Mail Server" msgstr "Servidor de correu Postfix" #: logdrake:389 #, c-format msgid "Samba Server" msgstr "Servidor Samba" #: logdrake:390 #, c-format msgid "SSH Server" msgstr "Servidor SSH" #: logdrake:391 #, c-format msgid "Webmin Service" msgstr "Servei Webmin" #: logdrake:392 #, c-format msgid "Xinetd Service" msgstr "Servei Xinetd" #: logdrake:401 #, c-format msgid "Configure the mail alert system" msgstr "Configura el sistema d'alerta per correu" #: logdrake:402 #, c-format msgid "Stop the mail alert system" msgstr "Atura el sistema d'alerta per correu" #: logdrake:410 #, c-format msgid "Mail alert configuration" msgstr "Configuració de l'alerta de correu" #: logdrake:411 #, c-format msgid "" "Welcome to the mail configuration utility.\n" "\n" "Here, you'll be able to set up the alert system.\n" msgstr "" "Benvingut a la utilitat de configuració del correu.\n" "\n" "Aquí podreu configurar el sistema d'alerta.\n" #: logdrake:414 #, c-format msgid "What do you want to do?" msgstr "Que voleu fer?" #: logdrake:421 #, c-format msgid "Services settings" msgstr "Paràmetre dels serveis" #: logdrake:422 #, c-format msgid "" "You will receive an alert if one of the selected services is no longer " "running" msgstr "Rebreu un avís si algun dels serveis seleccionats ja no funciona" #: logdrake:429 #, c-format msgid "Load setting" msgstr "Carrega la configuració" #: logdrake:430 #, c-format msgid "You will receive an alert if the load is higher than this value" msgstr "Rebreu un avís si la càrrega és més gran que aquest valor" #: logdrake:431 #, c-format msgid "" "_: load here is a noun, the load of the system\n" "Load" msgstr "Càrrega" #: logdrake:436 #, c-format msgid "Alert configuration" msgstr "Configuració de l'avís" #: logdrake:437 #, c-format msgid "Please enter your email address below " msgstr "Si us plau, entreu la vostra adreça electrònica" #: logdrake:438 #, c-format msgid "and enter the name (or the IP) of the SMTP server you wish to use" msgstr "i introduïu el nom (o l'adreça IP) del servidor SMTP que voleu usar" #: logdrake:440 #, fuzzy, c-format msgid "Email address" msgstr "Adreça IP" #: logdrake:441 #, fuzzy, c-format msgid "Email server" msgstr "Servidor Samba" #: logdrake:445 #, c-format msgid "\"%s\" neither is a valid email nor is an existing local user!" msgstr %s» no és ni una adreça de correu vàlida ni un usuari local existent!" #: logdrake:450 #, c-format msgid "" "\"%s\" is a local user, but you did not select a local smtp, so you must use " "a complete email address!" msgstr "" %s» és un usuari local, però no heu escollit un SMTP local, per tant heu " "d'usar una adreça de correu electrònic completa!" #: logdrake:457 #, c-format msgid "The wizard successfully configured the mail alert." msgstr "L'auxiliar ha configurat l'alerta per correu amb èxit." #: logdrake:463 #, c-format msgid "The wizard successfully disabled the mail alert." msgstr "L'auxiliar ha desactivat l'alerta per correu amb èxit." #: logdrake:522 #, c-format msgid "Save as.." msgstr "Anomena i desa..." #: notify-x11-free-driver-switch:18 service_harddrake:458 #, c-format msgid "Display driver setup" msgstr "" #: notify-x11-free-driver-switch:20 #, c-format msgid "The display driver has been automatically switched to '%s'." msgstr "" #: notify-x11-free-driver-switch:21 #, c-format msgid "Reason: %s." msgstr "Motiu: %s." #: scannerdrake:49 #, c-format msgid "" "SANE packages need to be installed to use scanners.\n" "\n" "Do you want to install the SANE packages?" msgstr "" "Es necessita que els paquets de SANE estiguin instal·lats per usar " "escàners.\n" "\n" "Vols instal·lar els paquets SANE?" #: scannerdrake:53 #, c-format msgid "Aborting Scannerdrake." msgstr "S'està avortant Scannerdrake." #: scannerdrake:58 #, c-format msgid "" "Could not install the packages needed to set up a scanner with Scannerdrake." msgstr "" "No s'han pogut instal·lar els paquets necessaris per configurar l'escàner " "amb Scannerdrake." #: scannerdrake:59 #, c-format msgid "Scannerdrake will not be started now." msgstr "Scannerdrake no s'iniciarà ara." #: scannerdrake:65 scannerdrake:503 #, c-format msgid "Searching for configured scanners..." msgstr "S'estan cercant els escàners configurats..." #: scannerdrake:69 scannerdrake:507 #, c-format msgid "Searching for new scanners..." msgstr "S'estan cercant escàners nous..." #: scannerdrake:77 scannerdrake:529 #, c-format msgid "Re-generating list of configured scanners..." msgstr "S'està tornant a generar la llista dels escàners configurats..." #: scannerdrake:99 #, c-format msgid "The %s is not supported by this version of %s." msgstr "El %s no està suportat per aquesta versió de %s." #: scannerdrake:102 scannerdrake:113 #, c-format msgid "Confirmation" msgstr "Confirmació" #: scannerdrake:102 #, c-format msgid "%s found on %s, configure it automatically?" msgstr "S'ha trobat %s en %s, voleu configurar-lo automàticament?" #: scannerdrake:114 #, c-format msgid "%s is not in the scanner database, configure it manually?" msgstr "" "%s no és a la base de dades de l'escàner, voleu configurar-lo manualment?" #: scannerdrake:128 #, c-format msgid "Scanner configuration" msgstr "Configuració de l'escàner" #: scannerdrake:129 #, c-format msgid "Select a scanner model (Detected model: %s, Port: %s)" msgstr "Seleccioneu un model d'escàner (model detectat: %s, port: %s)" #: scannerdrake:131 #, c-format msgid "Select a scanner model (Detected model: %s)" msgstr "Seleccioneu un model d'escàner (model detectat: %s)" #: scannerdrake:132 #, c-format msgid "Select a scanner model (Port: %s)" msgstr "Seleccioneu un model d'escàner (port: %s)" #: scannerdrake:134 scannerdrake:137 #, c-format msgid " (UNSUPPORTED)" msgstr " (NO SUPORTAT)" #: scannerdrake:140 #, c-format msgid "The %s is not supported under Linux." msgstr "El %s no està suportat per a Linux." #: scannerdrake:167 scannerdrake:181 #, c-format msgid "Do not install firmware file" msgstr "No instal·lis el fitxer de firmware" #: scannerdrake:170 scannerdrake:220 #, c-format msgid "Scanner Firmware" msgstr "Microprogramari de l'escàner" #: scannerdrake:171 scannerdrake:223 #, c-format msgid "" "It is possible that your %s needs its firmware to be uploaded everytime when " "it is turned on." msgstr "" "És possible que el vostre %s necessiti que el firmware s'actualitzi cada cop " "que s'encengui." #: scannerdrake:172 scannerdrake:224 #, c-format msgid "If this is the case, you can make this be done automatically." msgstr "Si aquest és el cas, podeu fer que es faci automàticament." #: scannerdrake:173 scannerdrake:227 #, c-format msgid "" "To do so, you need to supply the firmware file for your scanner so that it " "can be installed." msgstr "" "Per fer-ho, cal que subministreu els fitxers del firmware del vostre " "escànner per tal que es pugui instal·lar." #: scannerdrake:174 scannerdrake:228 #, c-format msgid "" "You find the file on the CD or floppy coming with the scanner, on the " "manufacturer's home page, or on your Windows partition." msgstr "" "Podeu trobar el fitxer al CD o disquet que ve amb l'escànner o a la pàgina " "web del fabricant o a la vostra instal·lació de Windows." #: scannerdrake:176 scannerdrake:235 #, c-format msgid "Install firmware file from" msgstr "Instal·la el fitxer de firmware des de" #: scannerdrake:178 scannerdrake:186 scannerdrake:237 scannerdrake:244 #, c-format msgid "CD-ROM" msgstr "CD-ROM" #: scannerdrake:179 scannerdrake:188 scannerdrake:238 scannerdrake:246 #, c-format msgid "Floppy Disk" msgstr "Disquet" #: scannerdrake:180 scannerdrake:190 scannerdrake:239 scannerdrake:248 #, c-format msgid "Other place" msgstr "Una altra ubicació" #: scannerdrake:196 #, c-format msgid "Select firmware file" msgstr "Seleccioneu el fitxer de firmware" #: scannerdrake:199 scannerdrake:258 #, c-format msgid "The firmware file %s does not exist or is unreadable!" msgstr "El fitxer de firmware %s no existeix o no és pot llegir!" #: scannerdrake:222 #, c-format msgid "" "It is possible that your scanners need their firmware to be uploaded " "everytime when they are turned on." msgstr "" "És possible que el vostre escànner necessiti que el firmware s'actualitzi " "cada cop que s'encengui." #: scannerdrake:226 #, c-format msgid "" "To do so, you need to supply the firmware files for your scanners so that it " "can be installed." msgstr "" "Per fer-ho, cal que subministreu els fitxers del firmware del vostre " "escànner per tal que es pugui instal·lar." #: scannerdrake:229 #, c-format msgid "" "If you have already installed your scanner's firmware you can update the " "firmware here by supplying the new firmware file." msgstr "" #: scannerdrake:231 #, c-format msgid "Install firmware for the" msgstr "Instal·la el microprogramari per a" #: scannerdrake:254 #, c-format msgid "Select firmware file for the %s" msgstr "Seleccioneu el fitxer de firmware per %s" #: scannerdrake:272 #, c-format msgid "Could not install the firmware file for the %s!" msgstr "No s'ha pogut instal·lar el fitxer de firmware per %s!" #: scannerdrake:285 #, c-format msgid "The firmware file for your %s was successfully installed." msgstr "El fitxer de firmware pel vostre %s s'ha instal·lat correctament." #: scannerdrake:295 #, c-format msgid "The %s is unsupported" msgstr "No es permet l'ús de %s" #: scannerdrake:300 #, c-format msgid "" "The %s must be configured by system-config-printer.\n" "You can launch system-config-printer from the %s Control Center in Hardware " "section." msgstr "" "La %s s'ha de configurar amb el system-config-printer.\n" "Podeu executar el system-config-printer des del Centre de Control %s en la " "secció Maquinari." #: scannerdrake:318 #, c-format msgid "Setting up kernel modules..." msgstr "S'estan configurant els mòduls del nucli..." #: scannerdrake:328 scannerdrake:335 scannerdrake:365 #, c-format msgid "Auto-detect available ports" msgstr "Detecta automàticament els ports disponibles" #: scannerdrake:329 scannerdrake:375 #, c-format msgid "Device choice" msgstr "Tria del dispositiu" #: scannerdrake:330 scannerdrake:376 #, c-format msgid "Please select the device where your %s is attached" msgstr "Si us plau seleccioneu el dispositiu al qual teniu connectat el %s" #: scannerdrake:331 #, c-format msgid "(Note: Parallel ports cannot be auto-detected)" msgstr "(Nota: els ports paral·lel no es poden detectar automàticament)" #: scannerdrake:333 scannerdrake:378 #, c-format msgid "choose device" msgstr "trieu un dispositiu" #: scannerdrake:367 #, c-format msgid "Searching for scanners..." msgstr "S'estan cercant els escàners..." #: scannerdrake:403 scannerdrake:410 #, c-format msgid "Attention!" msgstr "Atenció !" #: scannerdrake:404 #, c-format msgid "" "Your %s cannot be configured fully automatically.\n" "\n" "Manual adjustments are required. Please edit the configuration file /etc/" "sane.d/%s.conf. " msgstr "" "El vostre %s no es pot configurar completament de forma automàtica.\n" "\n" "Calen ajustaments manuals. Si us plau editeu el fitxer de configuració /etc/" "sane.d/%s.conf. " #: scannerdrake:405 scannerdrake:414 #, c-format msgid "" "More info in the driver's manual page. Run the command \"man sane-%s\" to " "read it." msgstr "" "Més informació a la pàgina del manual del controlador. Executeu l'ordre «man " "sane-%s» per a llegir-la." #: scannerdrake:407 scannerdrake:416 #, c-format msgid "" "After that you may scan documents using \"XSane\" or \"%s\" from Multimedia/" "Graphics in the applications menu." msgstr "" #: scannerdrake:411 #, c-format msgid "" "Your %s has been configured, but it is possible that additional manual " "adjustments are needed to get it to work. " msgstr "" "El vostre %s ha estat configurat però pot ser possible que calguin " "ajustaments manuals per fer-lo funcionar. " #: scannerdrake:412 #, c-format msgid "" "If it does not appear in the list of configured scanners in the main window " "of Scannerdrake or if it does not work correctly, " msgstr "" "Si no apareix a la llista d'escàners configurats a la finestra principal de " "Scannerdrake o bé no funciona correctament. " #: scannerdrake:413 #, c-format msgid "edit the configuration file /etc/sane.d/%s.conf. " msgstr "editar el fitxer de configuració /etc/sane.d/%s.conf. " #: scannerdrake:418 #, c-format msgid "Congratulations!" msgstr "Felicitats!" #: scannerdrake:419 #, c-format msgid "" "Your %s has been configured.\n" "You may now scan documents using \"XSane\" or \"%s\" from Multimedia/" "Graphics in the applications menu." msgstr "" "S'ha configurat el vostre %s.\n" "Ara podeu escanejar documents utilitzant «XSane» o bé «%s» des de Multimèdia/" "Gràfics al menú d'aplicacions." #: scannerdrake:444 #, c-format msgid "" "The following scanners\n" "\n" "%s\n" "are available on your system.\n" msgstr "" "Els escàners\n" "\n" "%s\n" "estan disponibles al sistema.\n" #: scannerdrake:445 #, c-format msgid "" "The following scanner\n" "\n" "%s\n" "is available on your system.\n" msgstr "" "L'escàner\n" "\n" "%s\n" "està disponible al sistema.\n" #: scannerdrake:447 scannerdrake:450 #, c-format msgid "There are no scanners found which are available on your system.\n" msgstr "" "No s'ha trobat cap escàner que estigui disponible en el vostre sistema.\n" #: scannerdrake:458 #, c-format msgid "Scanner Management" msgstr "Gestió del l'escàner" #: scannerdrake:464 #, c-format msgid "Search for new scanners" msgstr "Cerca escàners nous" #: scannerdrake:470 #, c-format msgid "Add a scanner manually" msgstr "Afegiu un escàner manualment" #: scannerdrake:477 #, c-format msgid "Install/Update firmware files" msgstr "Instal·la/Actualitza fitxers de firmware" #: scannerdrake:483 #, c-format msgid "Scanner sharing" msgstr "Compartició d'escàners" #: scannerdrake:542 scannerdrake:707 #, c-format msgid "All remote machines" msgstr "Totes les màquines remotes" #: scannerdrake:554 scannerdrake:857 #, c-format msgid "This machine" msgstr "Aquesta màquina" #: scannerdrake:593 #, c-format msgid "Scanner Sharing" msgstr "Compartició de l'escàner" #: scannerdrake:594 #, c-format msgid "" "Here you can choose whether the scanners connected to this machine should be " "accessible by remote machines and by which remote machines." msgstr "" "Aquí podeu decidir si màquines remotes, i quines d'elles, han de poder " "accedir als escàners connectats a aquesta màquina." #: scannerdrake:595 #, c-format msgid "" "You can also decide here whether scanners on remote machines should be made " "available on this machine." msgstr "" "També podeu decidir aquí si aquesta màquina ha de poder accedir als escàners " "de màquines remotes." #: scannerdrake:598 #, c-format msgid "The scanners on this machine are available to other computers" msgstr "" "Els escàners d'aquesta màquina estan disponibles per a altres ordinadors" #: scannerdrake:600 #, c-format msgid "Scanner sharing to hosts: " msgstr "Compartició d'escàners amb els ordinadors centrals:" #: scannerdrake:605 scannerdrake:622 #, c-format msgid "No remote machines" msgstr "Cap màquina remota" #: scannerdrake:614 #, c-format msgid "Use scanners on remote computers" msgstr "Utilitza els escàners d'ordinadors remots" #: scannerdrake:617 #, c-format msgid "Use the scanners on hosts: " msgstr "Utilitza els escàners dels ordinadors centrals:" #: scannerdrake:644 scannerdrake:716 scannerdrake:866 #, c-format msgid "Sharing of local scanners" msgstr "Compartició d'escàners locals" #: scannerdrake:645 #, c-format msgid "" "These are the machines on which the locally connected scanner(s) should be " "available:" msgstr "" "Aquestes són les màquines en què l'escàner o escàners connectats localment " "han d'estar disponibles:" #: scannerdrake:656 scannerdrake:806 #, c-format msgid "Add host" msgstr "Afegeix un ordinador" #: scannerdrake:662 scannerdrake:812 #, c-format msgid "Edit selected host" msgstr "Edita l'ordinador seleccionat" #: scannerdrake:671 scannerdrake:821 #, c-format msgid "Remove selected host" msgstr "Elimina l'ordinador seleccionat" #: scannerdrake:680 scannerdrake:830 #, c-format msgid "Done" msgstr "Fet" #: scannerdrake:695 scannerdrake:703 scannerdrake:708 scannerdrake:754 #: scannerdrake:845 scannerdrake:853 scannerdrake:858 scannerdrake:904 #, c-format msgid "Name/IP address of host:" msgstr "Nom/Adreça IP de l'ordinador:" #: scannerdrake:717 scannerdrake:867 #, c-format msgid "Choose the host on which the local scanners should be made available:" msgstr "Trieu l'ordinador on els escàners locals han d'estar disponibles:" #: scannerdrake:728 scannerdrake:878 #, c-format msgid "You must enter a host name or an IP address.\n" msgstr "Heu d'introduir un nom d'ordinador o una adreça IP.\n" #: scannerdrake:739 scannerdrake:889 #, c-format msgid "This host is already in the list, it cannot be added again.\n" msgstr "Aquest ordinador ja és a la llista, no es pot tornar a afegir.\n" #: scannerdrake:794 #, c-format msgid "Usage of remote scanners" msgstr "Utilització d'escàners remots" #: scannerdrake:795 #, c-format msgid "These are the machines from which the scanners should be used:" msgstr "Les màquines des de les quals s'han d'utilitzar els escàners son:" #: scannerdrake:952 #, c-format msgid "" "saned needs to be installed to share the local scanner(s).\n" "\n" "Do you want to install the saned package?" msgstr "" "saned ha d'estar instal·lat per compartir els escàners locals.\n" "\n" "Vols instal·lar el paquet de saned?" #: scannerdrake:956 scannerdrake:960 #, c-format msgid "Your scanner(s) will not be available on the network." msgstr "Els vostre(s) escànner(s) no estaran disponibles a la xarxa." #: scannerdrake:959 #, c-format msgid "Could not install the packages needed to share your scanner(s)." msgstr "" "No s'ha pogut instal·lar els paquets necessaris per compartir els vostres " "escàner(s)." #: service_harddrake:157 #, c-format msgid "The graphics card '%s' is no longer supported by driver '%s'" msgstr "La targeta gràfica «%s» ja no funciona amb el controlador «%s»" #: service_harddrake:167 #, c-format msgid "New release, reconfiguring X for %s" msgstr "Nova versió, s'estan reconfigurant les X per a %s" #: service_harddrake:258 #, c-format msgid "The proprietary kernel driver was not found for X.org driver '%s'" msgstr "" "Per al controlador d'X.org «%s» no s'ha trobat el controlador de propietat " "per al nucli" #: service_harddrake:297 #, c-format msgid "Some devices in the \"%s\" hardware class were removed:\n" msgstr "S'han suprimit alguns dispositius en la classe «%s» de maquinari:\n" #: service_harddrake:298 #, c-format msgid "- %s was removed\n" msgstr "- %s s'ha esborrat\n" #: service_harddrake:301 #, c-format msgid "Some devices were added: %s\n" msgstr "S'han afegit alguns dispositius: %s\n" #: service_harddrake:302 #, c-format msgid "- %s was added\n" msgstr "- s'ha afegit %s\n" #: service_harddrake:390 #, c-format msgid "Hardware changes in \"%s\" class (%s seconds to answer)" msgstr "" #: service_harddrake:391 #, c-format msgid "Do you want to run the appropriate config tool?" msgstr "Voleu executar l'eina de configuració adequada?" #: service_harddrake:416 #, c-format msgid "Hardware probing in progress" msgstr "Comprovació de maquinari en curs" #: service_harddrake:437 service_harddrake:442 #, c-format msgid "Display driver issue" msgstr "" #: service_harddrake:438 #, c-format msgid "" "The display driver currently configured requires you to use the 'nokmsboot' " "boot option to prevent the KMS driver of the kernel from being loaded in the " "boot process. Startup of the X server may now fail as that option was not " "specified." msgstr "" #: service_harddrake:443 #, c-format msgid "" "Detected a loaded display driver kernel module which conflicts with the " "driver the X server is configured to use. Startup of the X server may now " "fail." msgstr "" #: service_harddrake:458 #, c-format msgid "The system has to be rebooted due to a display driver change." msgstr "" #: service_harddrake:459 #, c-format msgid "Press Cancel within %d seconds to abort." msgstr "" #: ../menu/localedrake-system.desktop.in.h:1 msgid "System Regional Settings" msgstr "Configuracions regionals del sistema" #: ../menu/localedrake-system.desktop.in.h:2 msgid "System wide language & country configurator" msgstr "Configurador de llengua i país per a tot el sistema" #: ../menu/harddrake.desktop.in.h:1 msgid "HardDrake" msgstr "HardDrake" #: ../menu/harddrake.desktop.in.h:2 msgid "Hardware Central Configuration/information tool" msgstr "Eina central de configuració/informació de maquinari" #: ../menu/harddrake.desktop.in.h:3 msgid "Hardware Configuration Tool" msgstr "Eina de configuració del maquinari" #: ../menu/localedrake-user.desktop.in.h:1 msgid "Regional Settings" msgstr "Configuracions regionals" #: ../menu/localedrake-user.desktop.in.h:2 msgid "Language & country configuration" msgstr "Configuració de llengua i país" #~ msgid "Verbose" #~ msgstr "Amb missatges" #~ msgid "/Autodetect _printers" #~ msgstr "/Detecta les im_pressores automàticament"