summaryrefslogtreecommitdiffstats
path: root/perl-install/printer.pm
blob: f780963afe0afd53f972ede19f6e85218d700b83 (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
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
package printer;

# $Id$

#use diagnostics;
#use strict;


use common;
use run_program;

#-if we are in an DrakX config
my $prefix = "";

#-location of the printer database in an installed system
my $PRINTER_DB_FILE = "/usr/share/foomatic/db/compiled/overview.xml";
#-configuration directory of Foomatic
my $FOOMATICCONFDIR = "/etc/foomatic"; 
#-location of the file containing the default spooler's name
my $FOOMATIC_DEFAULT_SPOOLER = "$FOOMATICCONFDIR/defaultspooler";

#-Did we already read the subroutines of /usr/sbin/ptal-init?
my $ptalinitread = 0;

%spooler = (
    _("CUPS - Common Unix Printing System") => "cups",
    _("LPRng - LPR New Generation")         => "lprng",
    _("LPD - Line Printer Daemon")          => "lpd",
    _("PDQ - Print, Don't Queue")           => "pdq"
#    _("PDQ - Marcia, click here!")           => "pdq"
);
%spooler_inv = reverse %spooler;

%shortspooler = (
    _("CUPS")   => "cups",
    _("LPRng")  => "lprng",
    _("LPD")    => "lpd",
    _("PDQ")    => "pdq"
);
%shortspooler_inv = reverse %shortspooler;

%lprcommand = (
    "cups"   => "lpr-cups",
    "lprng"  => "lpr-lpd",
    "lpd"    => "lpr-lpd",
    "pdq"    => "lpr-pdq"
);

%printer_type = (
    _("Local printer")                              => "LOCAL",
    _("Remote printer")                             => "REMOTE",
    _("Printer on remote CUPS server")              => "CUPS",
    _("Printer on remote lpd server")               => "LPD",
    _("Network printer (TCP/Socket)")               => "SOCKET",
    _("Printer on SMB/Windows 95/98/NT server")     => "SMB",
    _("Printer on NetWare server")                  => "NCP",
    _("Enter a printer device URI")                 => "URI",
    _("Pipe job into a command")                    => "POSTPIPE"
);
%printer_type_inv = reverse %printer_type;

#------------------------------------------------------------------------------

sub set_prefix($) { $prefix = $_[0] }

sub default_printer_type($) { "LOCAL" }

sub spooler {
    # LPD is taken from the menu for the moment because the classic LPD is
    # highly unsecure. Depending on how the GNU lpr development is going on
    # LPD support can be reactivated by uncommenting the line which is
    # commented out now.

    #return @spooler_inv{qw(cups lpd lprng pdq)};
    return @spooler_inv{qw(cups lprng pdq)};
}

sub printer_type($) {
    my ($printer) = @_;
    for ($printer->{SPOOLER}) {
	/cups/ && return @printer_type_inv{qw(LOCAL), 
					   qw(LPD SOCKET SMB), 
					   $::expert ? qw(URI) : ()};
	/lpd/  && return @printer_type_inv{qw(LOCAL LPD SOCKET SMB NCP),
					   $::expert ? qw(POSTPIPE URI) : ()};
	/lprng/  && return @printer_type_inv{qw(LOCAL LPD SOCKET SMB NCP),
					   $::expert ? qw(POSTPIPE URI) : ()};
	/pdq/  && return @printer_type_inv{qw(LOCAL LPD SOCKET),
					   $::expert ? qw(URI) : ()};
    }
}

sub get_default_spooler () {
    if (-f "$prefix$FOOMATIC_DEFAULT_SPOOLER") {
	open DEFSPOOL, "< $prefix$FOOMATIC_DEFAULT_SPOOLER";
	my $spool = <DEFSPOOL>;
	chomp $spool;
	close DEFSPOOL;
	return $spool if ($spool =~ /cups|lpd|lprng|pdq/); 
    }
}

sub set_default_spooler ($) {
    my ($printer) = @_;
    # Make Foomatic config directory if it does not exist yet
    mkdir "$prefix$FOOMATICCONFDIR" if (!(-d "$prefix$FOOMATICCONFDIR"));
    # Mark the default driver in a file
    open DEFSPOOL, "> $prefix$FOOMATIC_DEFAULT_SPOOLER" || 
	die "Cannot create $prefix$FOOMATIC_DEFAULT_SPOOLER!";
    print DEFSPOOL $printer->{SPOOLER};
    close DEFSPOOL;
}

sub set_permissions {
    my ($file, $perms, $owner, $group) = @_;
    # We only need to set the permissions during installation to be able to
    # print test pages. After installation the devfsd daemon does the business
    # automatically.
    if (!$::isInstall) { return 1 }
    if ($owner && $group) {
        run_program::rooted($prefix, "/bin/chown", "$owner.$group", $file)
	    || die "Could not start chown!";
    } elsif ($owner) {
        run_program::rooted($prefix, "/bin/chown", $owner, $file)
	    || die "Could not start chown!";
    } elsif ($group) {
        run_program::rooted($prefix, "/bin/chgrp", $group, $file)
	    || die "Could not start chgrp!";
    }
    run_program::rooted($prefix, "/bin/chmod", $perms, $file)
	|| die "Could not start chmod!";
}

sub restart_service ($) {
    my ($service) = @_;
    # Exit silently if the service is not installed
    return 1 if (!(-x "$prefix/etc/rc.d/init.d/$service"));
    run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "restart");
    if (($? >> 8) != 0) {
	return 0;
    } else {
	# CUPS needs some time to come up.
	wait_for_cups() if ($service eq "cups");
	return 1;
    }
}

sub start_service ($) {
    my ($service) = @_;
    # Exit silently if the service is not installed
    return 1 if (!(-x "$prefix/etc/rc.d/init.d/$service"));
    run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "start");
    if (($? >> 8) != 0) {
	return 0;
    } else {
	# CUPS needs some time to come up.
	wait_for_cups() if ($service eq "cups");
	return 1;
    }
}

sub start_not_running_service ($) {
    my ($service) = @_;
    # Exit silently if the service is not installed
    return 1 if (!(-x "$prefix/etc/rc.d/init.d/$service"));
    run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "status");
    # The exit status is not zero when the service is not running
    if (($? >> 8) != 0) {
	run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "start");
	if (($? >> 8) != 0) {
	    return 0;
	} else {
	    # CUPS needs some time to come up.
	    wait_for_cups() if ($service eq "cups");
	    return 1;
	}
    } else {
	return 1;
    }
}

sub stop_service ($) {
    my ($service) = @_;
    # Exit silently if the service is not installed
    return 1 if (!(-x "$prefix/etc/rc.d/init.d/$service"));
    run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "stop");
    if (($? >> 8) != 0) { return 0 } else { return 1 }
}

sub service_starts_on_boot ($) {
    my ($service) = @_;
    local *F; 
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"/bin/sh -c \"export LC_ALL=C; /sbin/chkconfig --list $service 2>&1\" |" ||
	    return 0;
    while (my $line = <F>) {
	chomp $line;
	if ($line =~ /:on/) {
	    close F;
	    return 1;
	}
    }
    close F;
    return 0;
}

sub start_service_on_boot ($) {
    my ($service) = @_;
    run_program::rooted($prefix, "/sbin/chkconfig", "--add", $service)
	|| return 0;
    return 1;
}

sub SIGHUP_daemon {
    my ($service) = @_;
    if ($service eq "cupsd") { $service = "cups" };
    # PDQ has no daemon, exit.
    if ($service eq "pdq") { return 1 };
    # CUPS needs auto-correction for its configuration
    run_program::rooted($prefix, "/usr/sbin/correctcupsconfig") if ($service eq "cups");
    # Name of the daemon
    my %daemons = (
			    "lpr" => "lpd",
			    "lpd" => "lpd",
			    "lprng" => "lpd",
			    "cups" => "cupsd",
			    "devfs" => "devfsd",
			    );
    my $daemon = $daemons{$service};
    $daemon = $service if (! defined $daemon);
#    if ($service eq "cups") {
#	# The current CUPS (1.1.13) dies on SIGHUP, do the normal restart.
#	restart_service($service);
#	# CUPS needs some time to come up.
#	wait_for_cups();
#    } else {

    # Send the SIGHUP
    run_program::rooted($prefix, "/usr/bin/killall", "-HUP", $daemon);
    if ($service eq "cups") {
	# CUPS needs some time to come up.
	wait_for_cups();
    }

    return 1;
}

sub wait_for_cups {
    # CUPS needs some time to come up. Wait up to 30 seconds, checking
    # whether CUPS is ready.
    my $cupsready = 0;
    my $i;
    for ($i = 0; $i < 30; $i++) {
	run_program::rooted($prefix, "/usr/bin/lpstat", "-r");
	if (($? >> 8) != 0) {
	    # CUPS is not ready, continue
	    sleep 1;
	} else {
	    # CUPS is ready, quit
	    $cupsready = 1;
	    last;
	}
    }
    return $cupsready;
}

sub assure_device_is_available_for_cups {
    # Checks whether CUPS already "knows" a certain port, it does not
    # know it usually when the appropriate kernel module is loaded
    # after CUPS was started or when the printer is turned on after
    # CUPS was started. CUPS 1.1.12 and newer refuses to set up queues
    # on devices which it does not know, it points these queues to
    # file:/dev/null instead. Restart CUPS if necessary to assure that
    # CUPS knows the device.
    my ($device) = @_;
    local *F; 
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"/bin/sh -c \"export LC_ALL=C; /usr/sbin/lpinfo -v\" |" ||
	    die "Could not run \"lpinfo\"!";
    while (my $line = <F>) {
	if ($line =~ /$device/) { # Found a line containing the device name,
	                          # so CUPS knows it.
	    close F;
	    return 1;
	}
    }
    close F;
    return SIGHUP_daemon("cups");
}

sub network_running {
    # If the network is not running return 0, otherwise 1.
    local *F; 
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"/bin/sh -c \"export LC_ALL=C; /sbin/ifconfig\" |" ||
	    die "Could not run \"ifconfig\"!";
    while (my $line = <F>) {
	if (($line !~ /^lo\s+/) && # The loopback device can have been 
                                   # started by the spooler's startup script
	    ($line =~ /^(\S+)\s+/)) { # In this line starts an entry for a
	                              # running network
	    close F;
	    return 1;
	}
    }
    close F;
    return 0;
}

sub get_security_level {
    # Get security level by reading /etc/profile (only after install).
    # This is a preliminary solution until msec puts the security level
    # definition into the correct file.
    $file = "/etc/profile";
    if (-f $file) {
	local *F; 
	open F, "< $file" || return 0;
	while (my $line = <F>) {
	    if ($line =~ /^\s*SECURE_LEVEL=([0-5])\s*$/) {
		close F;
		return $1;
	    }
	}
	close F;
    }
    return 0;
}
    

sub spooler_in_security_level {
    # Was the current spooler already added to the current security level?
    my ($spooler, $level) = @_;
    my $sp;
    $sp = (($spooler eq "lpr") || ($spooler eq "lprng")) ? "lpd" : $spooler;
    $file = "$prefix/etc/security/msec/server.$level";
    if (-f $file) {
	local *F; 
	open F, "< $file" || return 0;
	while (my $line = <F>) {
	    if ($line =~ /^\s*$sp\s*$/) {
		close F;
		return 1;
	    }
	}
	close F;
    }
    return 0;
}

sub add_spooler_to_security_level {
    my ($spooler, $level) = @_;
    my $sp;
    $sp = (($spooler eq "lpr") || ($spooler eq "lprng")) ? "lpd" : $spooler;
    $file = "$prefix/etc/security/msec/server.$level";
    if (-f $file) {
	local *F; 
	open F, ">> $file" || return 0;
	print F "$sp\n";
	close F;
    }
    return 1;
}

sub files_exist {
    my @files = @_;
    for my $file (@files) {
	   return 0 if (! -f "$prefix$file"),
    }
    return 1;
}

sub set_alternative {
    my ($command, $executable) = @_;
    local *F;
    # Read the list of executables for the given command to find the number
    # of the desired executable
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"/bin/sh -c \"export LC_ALL=C; /bin/echo | update-alternatives --config $command \" |" ||
	    die "Could not run \"update-alternatives\"!";
    my $choice = 0;
    while (my $line = <F>) {
	chomp $line;
	if ($line =~ m/^[\* ][\+ ]\s*([0-9]+)\s+(\S+)\s*$/) { # list entry?
	    if ($2 eq $executable) {
		$choice = $1;
		last;
	    }
	}
    }
    close F;
    # If the executable was found, assign the command to it
    if ($choice > 0) {
	system(($::testing ? $prefix : "chroot $prefix/ ") .
	       "/bin/sh -c \"/bin/echo $choice | update-alternatives --config $command > /dev/null 2>&1\"");
    }
    return 1;
}    

sub pdq_panic_button {
    my $setting = $_[0];
    if (-f "$prefix/usr/sbin/pdqpanicbutton") {
        run_program::rooted($prefix, "/usr/sbin/pdqpanicbutton", "--$setting")
	    || die "Could not $setting PDQ panic buttons!";
    }
}

sub copy_printer_params($$) {
    my ($from, $to) = @_;
    map { $to->{$_} = $from->{$_} } grep { $_ ne 'configured' } keys %$from; 
    #- avoid cycles-----------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}

sub getinfo($) {
    my ($prefix) = @_;
    my $printer = {};
    my @QUEUES;

    set_prefix($prefix);

    # Initialize $printer data structure
    resetinfo($printer);

    return $printer;
}

#------------------------------------------------------------------------------
sub resetinfo($) {
    my ($printer) = @_;
    $printer->{QUEUE} = "";
    $printer->{OLD_QUEUE} = "";
    $printer->{OLD_CHOICE} = "";
    $printer->{ARGS} = "";
    $printer->{DBENTRY} = "";
    $printer->{DEFAULT} = "";
    $printer->{currentqueue} = {};
    # -check which printing system was used previously and load the information
    # -about its queues
    read_configured_queues($printer);
}

sub read_configured_queues($) {
    my ($printer) = @_;
    my @QUEUES;
    # Get the default spooler choice from the config file
    $printer->{SPOOLER} ||= get_default_spooler();
    if (!$printer->{SPOOLER}) {
	#- Find the first spooler where there are queues
	my $spooler;
	for $spooler (qw(cups pdq lprng lpd)) {
	    #- poll queue info 
	    local *F; 
	    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
		"foomatic-configure -P -q -s $spooler |" ||
		    die "Could not run foomatic-configure";
	    eval (join('',(<F>))); 
	    close F;
	    #- Have we found queues?
	    if ($#QUEUES != -1) {
		$printer->{SPOOLER} = $spooler;
		last;
	    }
	}
    } else {
	#- Poll the queues of the current default spooler
	local *F; 
	open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	    "foomatic-configure -P -q -s $printer->{SPOOLER} |" ||
		die "Could not run foomatic-configure";
	eval (join('',(<F>))); 
	close F;
    }
    $printer->{configured} = {};
    my $i;
    my $N = $#QUEUES + 1;
    for ($i = 0;  $i < $N; $i++) {
	$printer->{configured}{$QUEUES[$i]{queuedata}{queue}} = 
	    $QUEUES[$i];
	if ((!$QUEUES[$i]{make}) || (!$QUEUES[$i]{model})) {
	    if ($printer->{SPOOLER} eq "cups") {
		$printer->{OLD_QUEUE} = $QUEUES[$i]{queuedata}{queue};
		my $descr = get_descr_from_ppd($printer);
		$descr =~ m/^([^\|]*)\|([^\|]*)\|.*$/;
		$printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{make} ||= $1;
		$printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{model} ||= $2;
		# Read out which PPD file was originally used to set up this
		# queue
		local *F;
		if (open F, "< $prefix/etc/cups/ppd/$QUEUES[$i]{queuedata}{queue}.ppd") {
		    while (my $line = <F>) {
			if ($line =~ /^\*%MDKMODELCHOICE:(.+)$/) {
			    $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{ppd} = $1;
			}
		    }
		    close F;
		}
		# Mark that we have a CUPS queue but do not know the name
		# the PPD file in /usr/share/cups/model
		if (!$printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{ppd}) {
		    $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{ppd} = '1';
		}
		$printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{driver} = 'CUPS/PPD';
		$printer->{OLD_QUEUE} = "";
		# Read out the printer's options
		$printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{args} = read_cups_options($QUEUES[$i]{queuedata}{queue});
	    }
	    $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{make} ||= "";
	    $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{model} ||= _("Unknown model");
	} else {
	    $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{make} = $QUEUES[$i]{make};
	    $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{model} = $QUEUES[$i]{model};
	}
	# Fill in "options" field
	if (my $args = $printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{args}) {
	    my $arg;
	    my @options;
	    for $arg (@{$args}) {
		push(@options, "-o");
		my $optstr = $arg->{name} . "=" . $arg->{default};
		push(@options, $optstr);
	    }
	    @{$printer->{configured}{$QUEUES[$i]{queuedata}{queue}}{queuedata}{options}} = @options;
	}
	# Construct an entry line for tree view in main window of
	# printerdrake
	make_menuentry($printer, $QUEUES[$i]{queuedata}{queue});
    }
}

sub make_menuentry {
    my ($printer, $queue) = @_;
    my $spooler = $shortspooler_inv{$printer->{SPOOLER}};
    my $connect = $printer->{configured}{$queue}{queuedata}{connect};
    my $localremote;
    if (($connect =~ m!^file:!) || ($connect =~ m!^ptal:/mlc:!)) {
	$localremote = _("Local Printers");
    } else {
	$localremote = _("Remote Printers");
    }
    my $make = $printer->{configured}{$queue}{queuedata}{make};
    my $model = $printer->{configured}{$queue}{queuedata}{model};
    my $connection;
    if ($connect =~ m!^file:/dev/lp(\d+)$!) {
	my $number = $1;
	$connection = _(" on parallel port \#%s", $number);
    } elsif ($connect =~ m!^file:/dev/usb/lp(\d+)$!) {
	my $number = $1;
	$connection = _(", USB printer \#%s", $number);
    } elsif ($connect =~ m!^ptal:/(.+)$!) {
	my $ptaldevice = $1;
	if ($ptaldevice =~ /^mlc:par:(\d+)$/) {
	    my $number = $1;
	    $connection = _(", multi-function device on parallel port \#%s",
			    $number);
	} elsif ($ptaldevice =~ /^mlc:usb:/) {
	    $connection = _(", multi-function device on USB");
	} elsif ($ptaldevice =~ /^hpjd:/) {
	    $connection = _(", multi-function device on HP JetDirect");
	} else {
	    $connection = _(", multi-function device");
	}
    } elsif ($connect =~ m!^file:(.+)$!) {
	$connection = _(", printing to %s", $1);
    } elsif ($connect =~ m!^lpd://([^/]+)/([^/]+)/?$!) {
	$connection = _("on LPD server \"%s\", printer \"%s\"", $2, $1);
    } elsif ($connect =~ m!^socket://([^/:]+):([^/:]+)/?$!) {
	$connection = _(", TCP/IP host \"%s\", port %s", $1, $2);
    } elsif (($connect =~ m!^smb://([^/\@]+)/([^/\@]+)/?$!) ||
	     ($connect =~ m!^smb://.*/([^/\@]+)/([^/\@]+)/?$!) ||
	     ($connect =~ m!^smb://.*\@([^/\@]+)/([^/\@]+)/?$!)) {
	$connection = _("on Windows server \"%s\", share \"%s\"", $1, $2);
    } elsif (($connect =~ m!^ncp://([^/\@]+)/([^/\@]+)/?$!) ||
	     ($connect =~ m!^ncp://.*/([^/\@]+)/([^/\@]+)/?$!) ||
	     ($connect =~ m!^ncp://.*\@([^/\@]+)/([^/\@]+)/?$!)) {
	$connection = _("on Novell server \"%s\", printer \"%s\"", $1, $2);
    } elsif ($connect =~ m!^postpipe:(.+)$!) {
	$connection = _(", using command %s", $1);
    } else {
	$connection = ($::expert ? ", URI: $connect" : "");
    }
    my $sep = "!";
    $printer->{configured}{$queue}{queuedata}{menuentry} = 
	($::expert ? "$spooler$sep" : "") .
	"$localremote$sep$queue: $make $model$connection";
}

sub read_printer_db(;$) {

    my $spooler = $_[0];

    my $dbpath = $prefix . $PRINTER_DB_FILE;

    local $_; #- use of while (<...

    local *DBPATH; #- don't have to do close ... and don't modify globals at least
    # Generate the Foomatic printer/driver overview, read it from the
    # appropriate file when it is already generated
    if (!(-f $dbpath)) {
	open DBPATH, ($::testing ? $prefix : "chroot $prefix/ ") . 
	    "foomatic-configure -O -q |" ||
		die "Could not run foomatic-configure";
    } else {
	open DBPATH, $dbpath or die "An error occurred on $dbpath : $!";
    }

    my $entry = {};
    my $inentry = 0;
    my $indrivers = 0;
    my $inautodetect = 0;
    while (<DBPATH>) {
	chomp;
	if ($inentry) {
	    # We are inside a printer entry
	    if ($indrivers) {
		# We are inside the drivers block of a printers entry
		if (m!^\s*</drivers>\s*$!) {
		    # End of drivers block
		    $indrivers = 0;
		} elsif (m!^\s*<driver>(.+)</driver>\s*$!) {
		    push (@{$entry->{drivers}}, $1);
		}
	    } elsif ($inautodetect) {
		# We are inside the autodetect block of a printers entry
		# All entries inside this block will be ignored
		if (m!^.*</autodetect>\s*$!) {
		    # End of autodetect block
		    $inautodetect = 0;
		}
	    } else {
		if (m!^\s*</printer>\s*$!) {
		    # entry completed
		    $inentry = 0;
		    # Expert mode:
		    # Make one database entry per driver with the entry name
		    # manufacturer|model|driver
		    if ($::expert) {
			my $driver;
			for $driver (@{$entry->{drivers}}) {
			    my $driverstr;
			    if ($driver eq "Postscript") {
				$driverstr = "PostScript";
			    } else {
				$driverstr = "GhostScript + $driver";
			    }
			    if ($driver eq $entry->{defaultdriver}) {
				$driverstr .= " (recommended)";
			    }
			    $entry->{ENTRY} = "$entry->{make}|$entry->{model}|$driverstr";
			    $entry->{driver} = $driver;
			    # Duplicate contents of $entry because it is multiply entered to the database
			    map { $thedb{$entry->{ENTRY}}{$_} = $entry->{$_} } keys %$entry;
			}
		    } else {
			# Recommended mode
			# Make one entry per printer, with the recommended
			# driver (manufacturerer|model)
			$entry->{ENTRY} = "$entry->{make}|$entry->{model}";
			if ($entry->{defaultdriver}) {
			    $entry->{driver} = $entry->{defaultdriver};
			    map { $thedb{$entry->{ENTRY}}{$_} = $entry->{$_} } keys %$entry;
			}
		    }
		    $entry = {};
		} elsif (m!^\s*<id>\s*([^\s<>]+)\s*</id>\s*$!) {
		    # Foomatic printer ID
		    $entry->{printer} = $1;
		} elsif (m!^\s*<make>(.+)</make>\s*$!) {
		    # Printer manufacturer
		    $entry->{make} = uc($1);
		} elsif (m!^\s*<model>(.+)</model>\s*$!) {
		    # Printer model
		    $entry->{model} = $1;
		} elsif (m!<driver>(.+)</driver>!) {
		    # Printer default driver
		    $entry->{defaultdriver} = $1;
		} elsif (m!^\s*<drivers>\s*$!) {
		    # Drivers block
		    $indrivers = 1;
		    @{$entry->{drivers}} = (); 
		} elsif (m!^\s*<autodetect>\s*$!) {
		    # Autodetect block
		    $inautodetect = 1;
		}
	    }
	} else {
	    if (m!^\s*<printer>\s*$!) {
		# new entry
		$inentry = 1;
	    }
	}
    }
    close DBPATH;

    # Add raw queue
    if ($spooler ne "pdq") {
	$entry->{ENTRY} = _("Raw printer (No driver)");
	$entry->{driver} = "raw";
	$entry->{make} = "";
	$entry->{model} = _("Unknown model");
	map { $thedb{$entry->{ENTRY}}{$_} = $entry->{$_} } keys %$entry;
    }

    #- Load CUPS driver database if CUPS is used as spooler
    if (($spooler) && ($spooler eq "cups") && ($::expert)) {

	#&$install('cups-drivers') unless $::testing;
	#my $w;
	#if ($in) {
	#    $w = $in->wait_message(_("CUPS starting"),
	#			   _("Reading CUPS drivers database..."));
	#}
        poll_ppd_base();
    }

    @entries_db_short     = sort keys %printer::thedb;
    #%descr_to_db          = map { $printer::thedb{$_}{DESCR}, $_ } @entries_db_short;
    #%descr_to_help        = map { $printer::thedb{$_}{DESCR}, $printer::thedb{$_}{ABOUT} } @entries_db_short;
    #@entry_db_description = keys %descr_to_db;
    #db_to_descr          = reverse %descr_to_db;

}

sub read_foomatic_options ($) {
    my ($printer) = @_;
    # Generate the option data for the chosen printer/driver combo
    my $COMBODATA;
    local *F;
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"foomatic-configure -P -q -p $printer->{currentqueue}{printer}" .
	    " -d $printer->{currentqueue}{driver}" . 
		($printer->{OLD_QUEUE} ?
		  " -s $printer->{SPOOLER} -n $printer->{OLD_QUEUE}" : "") .
		($printer->{SPECIAL_OPTIONS} ?
		  " $printer->{SPECIAL_OPTIONS}" : "") 
		    . " |" ||
	    die "Could not run foomatic-configure";
    eval (join('',(<F>))); 
    close F;
    # Return the arguments field
    return $COMBODATA->{args};
}

sub read_cups_options ($) {
    my ($queue_or_file) = @_;
    # Generate the option data from a CUPS PPD file/a CUPS queue
    # Use the same Perl data structure as Foomatic uses to be able to
    # reuse the dialog
    local *F;
    if ($queue_or_file =~ /.ppd.gz$/) { # compressed PPD file
	open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	    "gunzip -cd $queue_or_file | lphelp - |" || return 0;
    } else { # PPD file not compressed or queue
	open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	    "lphelp $queue_or_file |" || return 0;
    }
    my $i;
    my $j;
    my @args;
    my $line;
    my $inoption = 0;
    my $inchoices = 0;
#    my $innumerical = 0;
    while ($line = <F>) {
	chomp $line;
	if ($inoption) {
	    if ($inchoices) {
		if ($line =~ /^\s*(\S+)\s+(\S.*)$/) {
		    push(@{$args[$i]{vals}}, {});
		    $j = $#{$args[$i]{vals}};
		    $args[$i]{vals}[$j]{value} = $1;
		    my $comment = $2;
		    # Did we find the default setting?
		    if ($comment =~ /default\)\s*$/) {
			$args[$i]{default} = $args[$i]{vals}[$j]{value};
			$comment =~ s/,\s*default\)\s*$//;
		    } else {
			$comment =~ s/\)\s*$//;
		    }
		    # Remove opening paranthese
		    $comment =~ s/^\(//;
		    # Remove page size info
		    $comment =~ s/,\s*size:\s*[0-9\.]+x[0-9\.]+in$//;
		    $args[$i]{vals}[$j]{comment} = $comment;
		} elsif (($line =~ /^\s*$/) && ($#{$args[$i]{vals}} > -1)) {
		    $inchoices = 0;
		    $inoption = 0;
		}
#	    } elsif ($innumerical == 1) {
#		if ($line =~ /^\s*The default value is ([0-9\.]+)\s*$/) {
#		    $args[$i]{default} = $1;
#		    $innumerical = 0;
#		    $inoption = 0;
#		}
	    } else {
		if ($line =~ /^\s*<choice>/) {
		    $inchoices = 1;
#		} elsif ($line =~ /^\s*<value> must be a(.*) number in the range ([0-9\.]+)\.\.([0-9\.]+)\s*$/) {
#		    delete($args[$i]{vals});
#		    $args[$i]{min} = $2;
#		    $args[$i]{max} = $3;
#		    my $type = $1;
#		    if ($type =~ /integer/) {
#			$args[$i]{type} = 'int';
#		    } else {
#			$args[$i]{type} = 'float';
#		    }
#		    $innumerical = 1;
		}
	    }
	} else {
	    if ($line =~ /^\s*([^\s:][^:]*):\s+-o\s+([^\s=]+)=<choice>\s*$/) {
#	    if ($line =~ /^\s*([^\s:][^:]*):\s+-o\s+([^\s=]+)=<.*>\s*$/) {
		$inoption = 1;
		push(@args, {});
		$i = $#args;
		$args[$i]{comment} = $1;
		$args[$i]{name} = $2;
		$args[$i]{type} = 'enum';
		@{$args[$i]{vals}} = ();
	    }
	}
    }
    close F;
    # Return the arguments field
    return \@args;
}

#------------------------------------------------------------------------------

sub read_cups_printer_list {
    my ($printer) = $_[0];
    # This function reads in a list of all printers which the local CUPS
    # daemon currently knows, including remote ones.
    local *F;
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"lpstat -v |" || return ();
    my @printerlist;
    my $line;
    while ($line = <F>) {
	if ($line =~ m/^\s*device\s+for\s+([^:\s]+):\s*(\S+)\s*$/) {
	    my $queuename = $1;
	    my $comment = "";
	    if (($2 =~ m!^ipp://([^/:]+)[:/]!) &&
		(!$printer->{configured}{$queuename})) {
		$comment = _("(on %s)", $1);
	    } else {
		$comment = _("(on this machine)");
	    }
	    push (@printerlist, "$queuename $comment");
	}
    }
    close F;
    return @printerlist;
}

sub get_cups_remote_queues {
    my ($printer) = $_[0];
    # This function reads in a list of all remote printers which the local 
    # CUPS daemon knows due to broadcasting of remote servers or 
    # "BrowsePoll" entries in the local /etc/cups/cupsd.conf/
    local *F;
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"lpstat -v |" || return ();
    my @printerlist;
    my $line;
    while ($line = <F>) {
	if ($line =~ m/^\s*device\s+for\s+([^:\s]+):\s*(\S+)\s*$/) {
	    my $queuename = $1;
	    my $comment = "";
	    if (($2 =~ m!^ipp://([^/:]+)[:/]!) &&
		(!$printer->{configured}{$queuename})) {
		$comment = _("On CUPS server \"%s\"", $1);
		my $sep = "!";
		push (@printerlist,
		      ($::expert ? _("CUPS") . $sep : "") .
		      _("Remote Printers") . "$sep$queuename: $comment"
		      . ($queuename eq $printer->{DEFAULT} ?
			 _(" (Default)") : ("")));
	    }
	}
    }
    close F;
    return @printerlist;
}

sub set_cups_autoconf {
    my $autoconf = $_[0];

    # Read config file
    local *F;
    my $file = "$prefix/etc/sysconfig/printing";
    if (!(-f $file)) {
	@file_content = ();
    } else {
	open F, "< $file" or die "Cannot open $file!";
	@file_content = <F>;
	close F;
    }

    # Remove all valid "CUPS_CONFIG" lines
    (/^\s*CUPS_CONFIG/ and $_ = "") foreach @file_content;
 
    # Insert the new "Printcap" line
    if ($autoconf) {
	push @file_content, "CUPS_CONFIG=automatic\n";
    } else {
	push @file_content, "CUPS_CONFIG=manual\n";
    }

    # Write back modified file
    open F, "> $file" or die "Cannot open $file!";
    print F @file_content;
    close F;

    # Restart CUPS
    restart_service("cups");

    return 1;
}

sub get_cups_autoconf {
    local *F;
    open F, ("< $prefix/etc/sysconfig/printing") || return 1;
    my $line;
    while ($line = <F>) {
	if ($line =~ m!^[^\#]*CUPS_CONFIG=manual!) {
	    return 0;
	}
    }
    return 1;
}

sub set_default_printer {
    my ($printer) = $_[0];
    run_program::rooted($prefix, "foomatic-configure",
			"-D", "-q", "-s", $printer->{SPOOLER},
			"-n", $printer->{DEFAULT}) || return 0;
    return 1;
}

sub get_default_printer {
    my $printer = $_[0];
    local *F;
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"foomatic-configure -Q -q -s $printer->{SPOOLER} |" || return undef;
    my $line;
    while ($line = <F>) {
	if ($line =~ m!^\s*<defaultqueue>(.*)</defaultqueue>\s*$!) {
	    return $1;
	}
    }
    return undef;
}

sub read_cupsd_conf {
    my @cupsd_conf;
    local *F;

    open F, "$prefix/etc/cups/cupsd.conf";
    @cupsd_conf = <F>;
    close F;

    @cupsd_conf;
}
sub write_cupsd_conf {
    my (@cupsd_conf) = @_;
    local *F;

    open F, ">$prefix/etc/cups/cupsd.conf";
    print F @cupsd_conf;
    close F;

    #- restart cups after updating configuration.
    restart_service("cups");
}

sub read_printers_conf {
    my ($printer) = @_;
    my $current;

    #- read /etc/cups/printers.conf file.
    #- according to this code, we are now using the following keys for each queues.
    #-    DeviceURI > lpd://printer6/lp
    #-    Info      > Info Text
    #-    Location  > Location Text
    #-    State     > Idle|Stopped
    #-    Accepting > Yes|No
    local *PRINTERS; open PRINTERS, "$prefix/etc/cups/printers.conf" or return;
    local $_;
    while (<PRINTERS>) {
	chomp;
	/^\s*#/ and next;
	if (/^\s*<(?:DefaultPrinter|Printer)\s+([^>]*)>/) { $current = { mode => 'cups', QUEUE => $1, } }
	elsif (/\s*<\/Printer>/) { $current->{QUEUE} && $current->{DeviceURI} or next; #- minimal check of synthax.
				   add2hash($printer->{configured}{$current->{QUEUE}} ||= {}, $current); $current = undef }
	elsif (/\s*(\S*)\s+(.*)/) { $current->{$1} = $2 }
    }
    close PRINTERS;

    #- assume this printing system.
    $printer->{SPOOLER} ||= 'cups';
}

sub get_direct_uri {
    #- get the local printer to access via a Device URI.
    my @direct_uri;
    local *F; open F, ($::testing ? $prefix : "chroot $prefix/ ") . "/usr/sbin/lpinfo -v |";
    local $_;
    while (<F>) {
	/^(direct|usb|serial)\s+(\S*)/ and push @direct_uri, $2;
    }
    close F;
    @direct_uri;
}

sub get_descr_from_ppd {
    my ($printer) = @_;
    my %ppd;

    #- if there is no ppd, this means this is a raw queue.
    local *F; open F, "$prefix/etc/cups/ppd/$printer->{OLD_QUEUE}.ppd" or return "|" . _("Unknown model");
    # "OTHERS|Generic PostScript printer|PostScript (en)";
    local $_;
    while (<F>) {
	/^\*([^\s:]*)\s*:\s*\"([^\"]*)\"/ and do { $ppd{$1} = $2; next };
	/^\*([^\s:]*)\s*:\s*([^\s\"]*)/   and do { $ppd{$1} = $2; next };
    }
    close F;

    my $descr = ($ppd{NickName} || $ppd{ShortNickName} || $ppd{ModelName});
    # Apply the beautifying rules of poll_ppd_base
    if ($descr =~ /Foomatic \+ Postscript/) {
	$descr =~ s/Foomatic \+ Postscript/PostScript/;
    } elsif ($descr =~ /Foomatic/) {
	$descr =~ s/Foomatic/GhostScript/;
    } elsif ($descr =~ /CUPS\+GIMP-print/) {
	$descr =~ s/CUPS\+GIMP-print/CUPS \+ GIMP-Print/;
    } elsif ($descr =~ /Series CUPS/) {
	$descr =~ s/Series CUPS/Series, CUPS/;
    } elsif (!(uc($descr) =~ /POSTSCRIPT/)) {
	$descr .= ", PostScript";
    }

    # Split the $descr into model and driver
    my $model;
    my $driver;
    if ($descr =~ /^([^,]+), (.*)$/) {
	$model = $1;
	$driver = $2;
    } else {
	# Some PPDs do not have the ", <driver>" part.
	$model = $descr;
	$driver = "PostScript";
    }
    my $make = $ppd{Manufacturer};
    my $lang = $ppd{LanguageVersion};

    # Remove manufacturer's name from the beginning of the model name
    if (($make) && ($model =~ /^$make[\s\-]+([^\s\-].*)$/)) {
	$model = $1;
    }

    # Put out the resulting description string
    uc($make) . '|' . $model . '|' . $driver .
      ($lang && (" (" . lc(substr($lang, 0, 2)) . ")"));
}

sub poll_ppd_base {
    #- before trying to poll the ppd database available to cups, we have to make sure
    #- the file /etc/cups/ppds.dat is no more modified.
    #- if cups continue to modify it (because it reads the ppd files available), the
    #- poll_ppd_base program simply cores :-)
    run_program::rooted($prefix, "ifconfig lo 127.0.0.1"); #- else cups will not be happy! and ifup lo don't run ?
    start_not_running_service("cups");
    my $driversthere = scalar(keys %thedb);
    foreach (1..60) {
	local *PPDS; open PPDS, ($::testing ? $prefix : "chroot $prefix/ ") . "/usr/bin/poll_ppd_base -a |";
	local $_;
	while (<PPDS>) {
	    chomp;
	    my ($ppd, $mf, $descr, $lang) = split /\|/;
	    if ($ppd eq "raw") { next }
	    my ($model, $driver);
	    if ($descr) {
		if ($descr =~ /^([^,]+), (.*)$/) {
		    $model = $1;
		    $driver = $2;
		} else {
		    # Some PPDs do not have the ", <driver>" part.
		    $model = $descr;
		    $driver = "PostScript";
		}
	    }
	    # Rename Canon "BJC XXXX" models into "BJC-XXXX" so that the models
	    # do not appear twice
	    if ($mf eq "CANON") {
		$model =~ s/BJC\s+/BJC-/;
	    }
	    $ppd && $mf && $descr and do {
		my $key = "$mf|$model|$driver" . ($lang && " ($lang)");
	        $thedb{$key}{ppd} = $ppd;
		$thedb{$key}{driver} = $driver;
		$thedb{$key}{make} = $mf;
		$thedb{$key}{model} = $model;
	    }
	}
	close PPDS;
	scalar(keys %thedb) - $driversthere > 5 and last;
	#- we have to try again running the program, wait here a little before.
	sleep 1; 
    }

    #scalar(keys %descr_to_ppd) > 5 or die "unable to connect to cups server";

}



#-******************************************************************************
#- write functions
#-******************************************************************************

sub configure_queue($) {
    my ($printer) = @_;
    local *F;

    if ($printer->{currentqueue}{foomatic}) {
	#- Create the queue with "foomatic-configure", in case of queue
	#- renaming copy the old queue
        run_program::rooted($prefix, "foomatic-configure", "-q",
			    "-s", $printer->{currentqueue}{spooler},
			    "-n", $printer->{currentqueue}{queue},
			    (($printer->{currentqueue}{queue} ne 
			      $printer->{OLD_QUEUE}) &&
			     ($printer->{configured}{$printer->{OLD_QUEUE}}) ?
			     ("-C", $printer->{OLD_QUEUE}) : ()),
			    "-c", $printer->{currentqueue}{connect},
			    "-p", $printer->{currentqueue}{printer},
			    "-d", $printer->{currentqueue}{driver},
			    "-N", $printer->{currentqueue}{desc},
			    "-L", $printer->{currentqueue}{loc},
			    @{$printer->{currentqueue}{options}}
			    ) or die "foomatic-configure failed";
    } elsif ($printer->{currentqueue}{ppd}) {
	#- If the chosen driver is a PPD file from /usr/share/cups/model,
	#- we use lpadmin to set up the queue
        run_program::rooted($prefix, "lpadmin",
			    "-p", $printer->{currentqueue}{queue},
#			    $printer->{State} eq 'Idle' && 
#			        $printer->{Accepting} eq 'Yes' ? ("-E") : (),
			    "-E",
			    "-v", $printer->{currentqueue}{connect},
			    ($printer->{currentqueue}{ppd} ne '1') ?
			        ("-m", $printer->{currentqueue}{ppd}) : (),
			    $printer->{currentqueue}{desc} ?
			        ("-D", $printer->{currentqueue}{desc}) : (),
			    $printer->{currentqueue}{loc} ? 
			        ("-L", $printer->{currentqueue}{loc}) : (),
			    @{$printer->{currentqueue}{options}}
			    ) or die "lpadmin failed";
	# Add a comment line containing the path of the used PPD file to the
	# end of the PPD file
	if ($printer->{currentqueue}{ppd} ne '1') {
	    open F, ">> $prefix/etc/cups/ppd/$printer->{currentqueue}{queue}.ppd";
	    print F "*%MDKMODELCHOICE:$printer->{currentqueue}{ppd}\n";
	    close F;
	}
	# Copy the old queue's PPD file to the new queue when it is renamed,
	# to conserve the option settings
	if (($printer->{currentqueue}{queue} ne 
	     $printer->{OLD_QUEUE}) &&
	    ($printer->{configured}{$printer->{OLD_QUEUE}})) {
	    system("cp -f $prefix/etc/cups/ppd/$printer->{OLD_QUEUE}.ppd $prefix/etc/cups/ppd/$printer->{currentqueue}{queue}.ppd");
	}
    } else {
	# Raw queue
        run_program::rooted($prefix, "foomatic-configure", "-q",
			    "-s", $printer->{currentqueue}{spooler},
			    "-n", $printer->{currentqueue}{queue},
			    "-c", $printer->{currentqueue}{connect},
			    "-d", $printer->{currentqueue}{driver},
			    "-N", $printer->{currentqueue}{desc},
			    "-L", $printer->{currentqueue}{loc}
			    ) or die "foomatic-configure failed";
    }	  

    # Make sure that queue is active
    if ($printer->{SPOOLER} ne "pdq") {
        run_program::rooted($prefix, "foomatic-printjob",
			    "-s", $printer->{currentqueue}{spooler},
			    "-C", "up", $printer->{currentqueue}{queue});
    }

    # Check whether a USB printer is configured and activate USB printing if so
    my $useUSB = 0;
    foreach (values %{$printer->{configured}}) {
	$useUSB ||= $_->{queuedata}{connect} =~ /usb/ || 
	    $_->{DeviceURI} =~ /usb/;
    }
    $useUSB ||= ($printer->{currentqueue}{queue}{queuedata}{connect}
		 =~ /usb/);
    if ($useUSB) {
	my $f = "$prefix/etc/sysconfig/usb";
	my %usb = getVarsFromSh($f);
	$usb{PRINTER} = "yes";
	setVarsInSh($f, \%usb);
    }

    # Open permissions for device file when PDQ is chosen as spooler
    # so normal users can print.
    if ($printer->{SPOOLER} eq 'pdq') {
	if ($printer->{currentqueue}{connect} =~ m!^\s*file:(\S*)\s*$!) {
	    set_permissions($1,"666");
	}
    }

    # Make a new printer entry in the $printer structure
    $printer->{configured}{$printer->{currentqueue}{queue}}{queuedata} =
        {};
    copy_printer_params($printer->{currentqueue},
      $printer->{configured}{$printer->{currentqueue}{queue}}{queuedata});
    # Construct an entry line for tree view in main window of
    # printerdrake
    make_menuentry($printer, $printer->{currentqueue}{queue});

    # Store the default option settings
    $printer->{configured}{$printer->{currentqueue}{queue}}{args} = {};
    if ($printer->{currentqueue}{foomatic}) {
	my $tmp = $printer->{OLD_QUEUE};
	$printer->{OLD_QUEUE} = $printer->{currentqueue}{queue};
	$printer->{configured}{$printer->{currentqueue}{queue}}{args} = 
	    read_foomatic_options($printer);
	$printer->{OLD_QUEUE} = $tmp;
    } elsif ($printer->{currentqueue}{ppd}) {
	$printer->{configured}{$printer->{currentqueue}{queue}}{args} =
	    read_cups_options($printer->{currentqueue}{queue});
    }
    # Clean up
    delete($printer->{ARGS});
    $printer->{OLD_CHOICE} = "";
    $printer->{ARGS} = {};
    $printer->{DBENTRY} = "";
    $printer->{currentqueue} = {};
}

sub remove_queue($$) {
    my ($printer) = $_[0];
    my ($queue) = $_[1];
    run_program::rooted($prefix, "foomatic-configure", "-R", "-q",
			"-s", $printer->{SPOOLER},
			"-n", $queue);
    # Delete old stuff from data structure
    delete $printer->{configured}{$queue};
    delete($printer->{currentqueue});
    delete($printer->{ARGS});
    $printer->{OLD_CHOICE} = "";
    $printer->{ARGS} = {};
    $printer->{DBENTRY} = "";
    $printer->{currentqueue} = {};
    removeprinterfromapplications($printer, $queue);
}

sub restart_queue($) {
    my ($printer) = @_;
    my $queue = $printer->{QUEUE};

    # Restart the daemon(s)
    for ($printer->{SPOOLER}) {
	/cups/ && do {
	    #- restart cups.
	    restart_service("cups");
	    last };
	/lpr|lprng/ && do {
	    #- restart lpd.
	    foreach (("/var/spool/lpd/$queue/lock", "/var/spool/lpd/lpd.lock")) {
		my $pidlpd = (cat_("$prefix$_"))[0];
		kill 'TERM', $pidlpd if $pidlpd;
		unlink "$prefix$_";
	    }
	    restart_service("lpd"); sleep 1;
	    last };
    }
    # Kill the jobs
    run_program::rooted($prefix, "foomatic-printjob", "-R",
			"-s", $printer->{SPOOLER},
			"-P", $queue, "-");

}

sub print_pages($@) {
    my ($printer, @pages) = @_;
    my $queue = $printer->{QUEUE};
    my $lpr = "/usr/bin/foomatic-printjob";
    my $lpq = "$lpr -Q";

    # Print the pages
    foreach (@pages) {
	my $page = $_;
	# Only text and PostScript can be printed directly with all spoolers,
	# images must be treated seperately
	if ($page =~ /\.jpg$/) {
	    system(($::testing ? $prefix : "chroot $prefix/ ") .
		   "/usr/bin/convert $page -page 427x654+100+65 PS:- | " .
		   ($::testing ? $prefix : "chroot $prefix/ ") .
		   "$lpr -s $printer->{SPOOLER} -P $queue");
	} else {
	    run_program::rooted($prefix, $lpr, "-s", $printer->{SPOOLER},
				"-P", $queue, $page);
	}
    }
    sleep 5; #- allow lpr to send pages.
    # Check whether the job is queued
    local *F; 
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . "$lpq -s $printer->{SPOOLER} -P $queue |";
    my @lpq_output =
	grep { !/^no entries/ && !(/^Rank\s+Owner/ .. /^\s*$/) } <F>;
    close F;
    @lpq_output;
}

sub lphelp_output {
    my ($printer) = @_;
    my $queue = $printer->{QUEUE};
    my $lphelp = "/usr/bin/lphelp";

    local *F; 
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . "$lphelp $queue |";
    $helptext = join("", <F>);
    close F;
    if (!$helptext || ($helptext eq "")) {
	$helptext = "Option list not available!\n";
    }
    return $helptext;
}

sub pdqhelp_output {
    my ($printer) = @_;
    my $queue = $printer->{QUEUE};
    my $pdq = "/usr/bin/pdq";

    local *F; 
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . "$pdq -h -P $queue  2>&1 |";
    $helptext = join("", <F>);
    close F;
    return $helptext;
}

sub print_optionlist {
    my ($printer) = @_;
    my $queue = $printer->{QUEUE};
    my $lpr = "/usr/bin/foomatic-printjob";

    # Print the option list pages
    if ($printer->{configured}{$queue}{queuedata}{foomatic}) {
        run_program::rooted($prefix, $lpr, "-s", $printer->{SPOOLER},
			    "-P", $queue, "-o", "docs",
			    "/etc/bashrc");
    } elsif ($printer->{configured}{$queue}{queuedata}{ppd}) {
	system(($::testing ? $prefix : "chroot $prefix/ ") .
	       "/usr/bin/lphelp $queue | " .
	       ($::testing ? $prefix : "chroot $prefix/ ") .
	       "$lpr -s $printer->{SPOOLER} -P $queue");
    }
}

# ---------------------------------------------------------------
#
# Spooler config stuff
#
# ---------------------------------------------------------------

sub get_copiable_queues {
    my ($oldspooler, $newspooler) = @_;
    local $_; #- use of while (<...

    local *QUEUEOUTPUT; #- don't have to do close ... and don't modify globals
                        #- at least
    my @queuelist;      #- here we will list all Foomatic-generated queues
    # Get queue list with foomatic-configure
    open QUEUEOUTPUT, ($::testing ? $prefix : "chroot $prefix/ ") . 
	    "foomatic-configure -Q -q -s $oldspooler |" ||
		die "Could not run foomatic-configure";

    my $entry = {};
    my $inentry = 0;
    while (<QUEUEOUTPUT>) {
	chomp;
	if ($inentry) {
	    # We are inside a queue entry
	    if (m!^\s*</queue>\s*$!) {
		# entry completed
		$inentry = 0;
		if (($entry->{foomatic}) && 
		    ($entry->{spooler} eq $oldspooler)) {
		    # Is the connection type supported by the new
		    # spooler?
		    if ((($newspooler eq "cups") &&
			 (($entry->{connect} =~ /^file:/) ||
			  ($entry->{connect} =~ /^ptal:/) ||
			  ($entry->{connect} =~ /^lpd:/) ||
			  ($entry->{connect} =~ /^socket:/) ||
			  ($entry->{connect} =~ /^smb:/) ||
			  ($entry->{connect} =~ /^ipp:/))) ||
			((($newspooler eq "lpd") ||
			  ($newspooler eq "lprng")) &&
			 (($entry->{connect} =~ /^file:/) ||
			  ($entry->{connect} =~ /^ptal:/) ||
			  ($entry->{connect} =~ /^lpd:/) ||
			  ($entry->{connect} =~ /^socket:/) ||
			  ($entry->{connect} =~ /^smb:/) ||
			  ($entry->{connect} =~ /^ncp:/) ||
			  ($entry->{connect} =~ /^postpipe:/))) ||
			(($newspooler eq "pdq") &&
			 (($entry->{connect} =~ /^file:/) ||
			  ($entry->{connect} =~ /^ptal:/) ||
			  ($entry->{connect} =~ /^lpd:/) ||
			  ($entry->{connect} =~ /^socket:/)))) {
			push(@queuelist, $entry->{name});
		    }
		}
		$entry = {};
	    } elsif (m!^\s*<name>(.+)</name>\s*$!) {
		    # queue name
		    $entry->{name} = $1;
	    } elsif (m!^\s*<connect>(.+)</connect>\s*$!) {
		    # connection type (URI)
		    $entry->{connect} = $1;
	    }
	} else {
	    if (m!^\s*<queue\s+foomatic\s*=\s*\"?(\d+)\"?\s*spooler\s*=\s*\"?(\w+)\"?\s*>\s*$!) {
		# new entry
		$inentry = 1;
		$entry->{foomatic} = $1;
		$entry->{spooler} = $2;
	    }
	}
    }
    close QUEUEOUTPUT;
    
    return @queuelist;
}

sub copy_foomatic_queue {
    my ($printer, $oldqueue, $oldspooler, $newqueue) = @_;
    run_program::rooted($prefix, "foomatic-configure", "-q",
			"-s", $printer->{SPOOLER},
			"-n", $newqueue,
			"-C", $oldspooler, $oldqueue);
}

# ------------------------------------------------------------------
#
# Configuration of HP multi-function devices
#
# ------------------------------------------------------------------

sub configure_hpoj {
    my ($device, @autodetected) = @_;

    # Make the subroutines of /usr/sbin/ptal-init available
    # It's only necessary to read it at the first call of this subroutine,
    # the subroutine definitions stay valid after leaving this subroutine.
    if (!$ptalinitread) {
	local *PTALINIT;
	open PTALINIT, "$prefix/usr/sbin/ptal-init" || do {
	    die "unable to open $prefix/usr/sbin/ptal-init";
	};
	my @ptalinitfunctions; # subroutine definitions in /usr/sbin/ptal-init
	while (<PTALINIT>) {
	    if (m!sub main!) {
		last;
	    } elsif (m!^[^\#]!) {
		push (@ptalinitfunctions, $_);
	    }
	}
	close PTALINIT;
	eval "@ptalinitfunctions
        sub getDevnames {
	    return (%devnames)
	}
        sub getConfigInfo {
            return (%configInfo)
        }";
	$ptalinitread = 1;
    }

    # Read the HPOJ config file and check whether this device is already
    # configured
    setupVariables ();
    readDeviceInfo ();

    # Get the model ID as auto-detected
    $device =~ m!^/dev/\S*lp(\d+)$!;
    my $model = $1;
    my $model_long = $1;
    my $serialnumber = "";
    my $serialnumber_long = "";
    my $cardreader = 0;
    my $device_ok = 1;
    my $bus;
    my $address_arg = "";
    my $base_address = "";
    if ($device =~ /usb/) {
	$bus = "usb";
    } else {
	$bus = "par";
	$address_arg = parport_addr($device);
	$address_arg =~ /^\s*-base\s+(\S+)/;
	eval ("$base_address = $1");
    }
    my $devdata;

    foreach (@autodetected) {
	$device eq $_->{port} or next;
	$devdata = $_;
	$model = $_->{val}{MODEL};
	$serialnumber = $_->{val}{SERIALNUMBER};
	# Check if the device is really an HP multi-function device
	stop_service("hpoj");
	run_program::rooted($prefix, 
			    "ptal-mlcd", "$bus:probe", "-device", 
			    $device, split(' ',$address_arg));
	$device_ok = 0;
	local *F; 
	if (open F, ($::testing ? $prefix : "chroot $prefix/ ") . "/usr/bin/ptal-devid mlc:$bus:probe |") {
	    my $devid = join("", <F>);
	    close F;
	    if ($devid) {
		$device_ok = 1;
		if (open F, ($::testing ? $prefix : "chroot $prefix/ ") . "/usr/bin/ptal-devid mlc:$bus:probe -long -mdl 2>/dev/null |") {
		    $model_long = join("", <F>);
		    close F;
		    chomp $model_long;
		}
		if (open F, ($::testing ? $prefix : "chroot $prefix/ ") . "/usr/bin/ptal-devid mlc:$bus:probe -long -sern 2>/dev/null |") {
		    $serialnumber_long = join("", <F>);
		    close F;
		    chomp $serialnumber_long;
		}
		if (cardReaderDetected ("mlc:$bus:probe")) {
		    $cardreader = 1;
		}
	    }
	}
	if (open F, ($::testing ? $prefix : "chroot $prefix/ ") . "ps auxwww | grep \"ptal-mlcd $bus:probe\" | grep -v grep | ") {
	    my $line = <F>;
	    if ($line =~ /^\s*\S+\s+(\d+)\s+/) {
		my $pid = $1;
		kill (15, $pid);
	    }
	    close F;
	}
	start_service("hpoj");
	last;
    }
    # No, it is not an HP multi-function device.
    return "" if (!$device_ok);

    # Determine the ptal device name from already existing config files
    my $ptaldevice = lookupDevname ("mlc:$bus:", $model_long, 
				    $serialnumber_long, $base_address);

    # It's all done for us, the device is already configured
    return $ptaldevice if defined($ptaldevice);

    # Determine the ptal name for a new device
    $ptaldevice = $model;
    $ptaldevice =~ s![\s/]+!_!g;
    $ptaldevice = "mlc:$bus:$ptaldevice";

    # Delete any old/conflicting devices
    deleteDevice ($ptaldevice);
    if ($bus eq "par") {
	while (1) {
	    my $oldDevname = lookupDevname ("mlc:par:",undef,undef,
					  $base_address);
	    if (!defined($oldDevname)) {
		last;
	    }
	    deleteDevice ($oldDevname);
	}
    }

    # Configure the device

    # Open configuration file
    local *CONFIG;
    open(CONFIG,"> /etc/ptal/$ptaldevice") ||
	die "Could not open /etc/ptal/$ptaldevice for writing!\n";

    # Write file header.
    $_ = `date`;
    chomp;
    print CONFIG
	"# Added $_ by \"printerdrake\".\n".
	"\n".
	"# The basic format for this file is \"key[+]=value\".\n".
	"# If you say \"+=\" instead of \"=\", then the value is appended to any\n".
	"# value already defined for this key, rather than replacing it.\n".
	"\n".
	"# Comments must start at the beginning of the line.  Otherwise, they may\n".
	"# be interpreted as being part of the value.\n".
	"\n".
	"# If you have multiple devices and want to define options that apply to\n".
	"# all of them, then put them in the file /etc/ptal/defaults, which is read\n".
	"# in before this file.\n".
	"\n".
	"# The format version of this file:\n".
	"#   ptal-init ignores devices with incorrect/missing versions.\n".
	"init.version=1\n";

    # Write model string.
    if ($model_long !~ /\S/) {
	print CONFIG
	    "\n".
	    "# \"printerdrake\" couldn't read the model but added this device anyway:\n".
	    "# ";
    } else {
	print CONFIG
	    "\n".
	    "# The device model that was originally detected on this port:\n".
	    "#   If this ever changes, then you should re-run \"printerdrake\"\n".
	    "#   to delete and re-configure this device.\n";
	if ($bus eq "par") {
	    print CONFIG
		"#   Comment out if you don't care what model is really connected to this\n".
		"#   parallel port.\n";
	}
    }
    print CONFIG
	"init.mlcd.append+=-devidmatch \"$model_long\"\n";

    # Write serial-number string.
    if ($serialnumber_long!~/\S/) {
	print CONFIG
	    "\n".
	    "# The device's serial number is unknown.\n".
	    "# ";
    } else {
	print CONFIG
	    "\n".
	    "# The serial number of the device that was originally detected on this port:\n"
	    ;
	if ($bus=~/^[pu]/) {
	    print CONFIG
		"#   Comment out if you want to disable serial-number matching.\n";
	}
    }
    print CONFIG
	"init.mlcd.append+=-devidmatch \"$serialnumber_long\"\n";

    if ($bus=~/^[pu]/) {
	print CONFIG
	    "\n".
	    "# Standard options passed to ptal-mlcd:\n".
	    "init.mlcd.append+=";
	if ($bus eq "usb") {
	    # Important: don't put more quotes around /dev/usb/lp[0-9]*,
	    # because ptal-mlcd currently does no globbing:
	    print CONFIG "-device /dev/usb/lp[0-9]*";
	} elsif ($bus eq "par") {
	    print CONFIG "$address_arg -device $device";
	}
	print CONFIG "\n".
	    "\n".
	    "# ptal-mlcd's remote console can be useful for debugging, but may be a\n".
	    "# security/DoS risk otherwise.  In any case, it's accessible with the\n".
	    "# command \"ptal-connect mlc:<XXX>:<YYY> -service PTAL-MLCD-CONSOLE\".\n".
	    "# Uncomment the following line if you want to enable this feature for\n".
	    "# this device:\n".
	    "# init.mlcd.append+=-remconsole\n".
	    "\n".
	    "# If you need to pass any other command-line options to ptal-mlcd, then\n".
	    "# add them to the following line and uncomment the line:\n".
	    "# init.mlcd.append+=\n".
	    "\n".
	    "# By default ptal-printd is started for mlc: devices.  If you use CUPS,\n".
	    "# then you may not be able to use ptal-printd, and you can uncomment the\n".
	    "# following line to disable ptal-printd for this device:\n".
	    "# init.printd.start=0\n";
    } else {
	print CONFIG
	    "\n".
	    "# By default ptal-printd isn't started for hpjd: devices.\n".
	    "# If for some reason you want to start it for this device, then\n".
	    "# uncomment the following line:\n".
	    "# init.printd.start=1\n";
    }

    print CONFIG
	"\n".
	"# If you need to pass any additional command-line options to ptal-printd,\n".
	"# then add them to the following line and uncomment the line:\n".
	"# init.printd.append+=\n";
    if ($cardreader) {
	print CONFIG
	    "\n".
	    "# Uncomment the following line to enable ptal-photod for this device:\n".
	    "init.photod.start=1\n".
	    "\n".
	    "# If you have more than one photo-card-capable peripheral and you want to\n".
	    "# assign particular TCP port numbers and mtools drive letters to each one,\n".
	    "# then change the line below to use the \"-portoffset <n>\" option.\n".
	    "init.photod.append+=-maxaltports 26\n";
    }
    close(CONFIG);
    readOneDevice ($ptaldevice);

    # Restart HPOJ
    restart_service("hpoj");

    # Return HPOJ device name to form the URI
    return $ptaldevice;
}

sub parport_addr{
    # auto-detect the parallel port addresses
    my ($device) = @_;
    $device =~ m!^/dev/lp(\d+)$!;
    my $portnumber = $1;
    my $parport_addresses = 
	`cat /proc/sys/dev/parport/parport$portnumber/base-addr`;
    my $address_arg;
    if ($parport_addresses =~ /^\s*(\d+)\s+(\d+)\s*$/) {
	$address_arg = sprintf(" -base 0x%x -basehigh 0x%x", $1, $2);
    } elsif ($parport_addresses =~ /^\s*(\d+)\s*$/) {
	$address_arg = sprintf(" -base 0x%x", $1);
    } else {
	$address_arg = "";
    }
    return $address_arg;
}

sub config_sane {
    # Add HPOJ backend to /etc/sane.d/dll.conf if needed (no individual
    # config file /etc/sane.d/hpoj.conf necessary, the HPOJ driver finds the
    # scanner automatically)
    return if member("hpoj", chomp_(cat_("$prefix/etc/sane.d/dll.conf")));
    local *F;
    open F, ">> $prefix/etc/sane.d/dll.conf" or 
	die "can't write SANE config in /etc/sane.d/dll.conf: $!";
    print F "hpoj\n";
    close F;
}

sub config_photocard {

    # Add definitions for the drives p:. q:, r:, and s: to /etc/mtools.conf
    my $mtoolsconf = join("", cat_("$prefix/etc/mtools.conf"));
    return if $mtoolsconf =~ m/^\s*drive\s+p:/m;
    my $mtoolsconf_append = "
# Drive definitions added for the photo card readers in HP multi-function
# devices driven by HPOJ
drive p: file=\":0\" remote
drive q: file=\":1\" remote
drive r: file=\":2\" remote
drive s: file=\":3\" remote
# This turns off some file system integrity checks of mtools, it is needed
# for some photo cards.
mtools_skip_check=1
";
    open F, ">> $prefix/etc/mtools.conf" or 
	die "can't write mtools config in /etc/mtools.conf: $!";
    print F $mtoolsconf_append;
    close F;

    # Generate a config file for the graphical mtools frontend MToolsFM or
    # modify the existing one
    my $mtoolsfmconf;
    if (-f "$prefix/etc/mtoolsfm.conf") {
	open F, "< $prefix/etc/mtoolsfm.conf" or 
	    die "can't read MToolsFM config in $prefix/etc/mtoolsfm.conf: $!";
	$mtoolsfmconf = join("", <F>);
	close F;
	$mtoolsfmconf =~ m/^\s*DRIVES\s*=\s*\"([A-Za-z ]*)\"/m;
	my $alloweddrives = lc($1);
	foreach my $letter ("p", "q", "r", "s") {
	    if ($alloweddrives !~ /$letter/) {
		$alloweddrives .= $letter;
	    }
	}
	$mtoolsfmconf =~ s/^\s*DRIVES\s*=\s*\"[A-Za-z ]*\"/DRIVES=\"$alloweddrives\"/m;
	$mtoolsfmconf =~ s/^\s*LEFTDRIVE\s*=\s*\"[^\"]*\"/LEFTDRIVE=\"p\"/m;
    } else {
	$mtoolsfmconf = "\# MToolsFM config file. comments start with a hash sign.
\#
\# This variable sets the allowed driveletters (all lowercase). Example:
\# DRIVES=\"ab\"
DRIVES=\"apqrs\"
\#
\# This variable sets the driveletter upon startup in the left window.
\# An empty string or space is for the hardisk. Example:
\# LEFTDRIVE=\"a\"
LEFTDRIVE=\"p\"
\#
\# This variable sets the driveletter upon startup in the right window.
\# An empty string or space is for the hardisk. Example:
\# RIGHTDRIVE=\"a\"
RIGHTDRIVE=\" \"
";
    }
    open F, "> $prefix/etc/mtoolsfm.conf" or 
	die "can't write mtools config in /etc/mtools.conf: $!";
    print F $mtoolsfmconf;
    close F;
}

# ------------------------------------------------------------------
#
# Configuration of printers in Applications
#
# ------------------------------------------------------------------

sub configureapplications {
    my ($printer) = @_;
    configurestaroffice($printer);
    configureopenoffice($printer);
}

sub addcupsremotetoapplications {
    my ($printer, $queue) = @_;
    return (addcupsremotetostaroffice($printer, $queue) &&
	    addcupsremotetoopenoffice($printer, $queue));
}

sub removeprinterfromapplications {
    my ($printer, $queue) = @_;
    return (removeprinterfromstaroffice($printer, $queue) &&
	    removeprinterfromopenoffice($printer, $queue));
}

sub removelocalprintersfromapplications {
    my ($printer) = @_;
    removelocalprintersfromstaroffice($printer);
    removelocalprintersfromopenoffice($printer);
}

sub configurestaroffice {
    my ($printer) = @_;
    # Do we have Star Office installed?
    my $configfilename = findsofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/xp3/Xpdefaults$!;
    my $configprefix = $1;
    # Load Star Office printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Update remote CUPS queues
    if (0 && ($printer->{SPOOLER} eq "cups") && 
	(-x "$prefix/usr/bin/curl")) {
	my @printerlist = getcupsremotequeues();
	for my $listentry (@printerlist) {
	    next if !($listentry =~ /^([^\|]+)\|([^\|]+)$/);
	    my $queue = $1;
	    my $server = $2;
	    eval(run_program::rooted
		 ($prefix, "curl", "-o", "/etc/foomatic/$queue.ppd",
		  "http://$server:631/printers/$queue.ppd"));
	    if (-r "$prefix/etc/foomatic/$queue.ppd") {
		$configfilecontent = 
		    makestarofficeprinterentry($printer, $queue,
					       $configprefix,
					       $configfilecontent);
	    }
	}
    }
    # Update local printer queues
    for my $queue (keys(%{$printer->{configured}})) {
	# Check if we have a PPD file
	if (! -r "$prefix/etc/foomatic/$queue.ppd") {
	    if (-r "$prefix/etc/cups/ppd/$queue.ppd") {
		# If we have a PPD file in the CUPS config dir, link to it
		run_program::rooted($prefix, 
				    "ln", "-sf",
				    "/etc/cups/ppd/$queue.ppd",
				    "/etc/foomatic/$queue.ppd");
	    } elsif (-r "$prefix/usr/share/postscript/ppd/$queue.ppd") {
		# Check PPD directory of GPR, too
		run_program::rooted($prefix, 
				    "ln", "-sf",
				    "/usr/share/postscript/ppd/$queue.ppd",
				    "/etc/foomatic/$queue.ppd");
	    } else {
		# No PPD file at all? We cannot set up this printer
		next;
	    }
	}
	$configfilecontent = 
	    makestarofficeprinterentry($printer, $queue, $configprefix,
				       $configfilecontent);
    }
    # Patch PostScript output to print Euro symbol correctly also for
    # the "Generic Printer"
    $configfilecontent = removeentry
	("ports", "default_queue=", $configfilecontent);
    $configfilecontent = addentry
	("ports",
	 "default_queue=/usr/bin/perl -p -e \"s=16#80 /euro=16#80 /Euro=\" | /usr/bin/$lprcommand{$printer->{SPOOLER}}",
	 $configfilecontent);
    # Write back Star Office configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub configureopenoffice {
    my ($printer) = @_;
    # Do we have OpenOffice.org installed?
    my $configfilename = findopenofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/psprint/psprint.conf$!;
    my $configprefix = $1;
    # Load OpenOffice.org printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Update remote CUPS queues
    if (0 && ($printer->{SPOOLER} eq "cups") && 
	(-x "$prefix/usr/bin/curl")) {
	my @printerlist = getcupsremotequeues();
	for my $listentry (@printerlist) {
	    next if !($listentry =~ /^([^\|]+)\|([^\|]+)$/);
	    my $queue = $1;
	    my $server = $2;
	    eval(run_program::rooted
		 ($prefix, "curl", "-o", "/etc/foomatic/$queue.ppd",
		  "http://$server:631/printers/$queue.ppd"));
	    if (-r "$prefix/etc/foomatic/$queue.ppd") {
		$configfilecontent = 
		    makeopenofficeprinterentry($printer, $queue,
					       $configprefix,
					       $configfilecontent);
	    }
	}
    }
    # Update local printer queues
    for my $queue (keys(%{$printer->{configured}})) {
	# Check if we have a PPD file
	if (! -r "$prefix/etc/foomatic/$queue.ppd") {
	    if (-r "$prefix/etc/cups/ppd/$queue.ppd") {
		# If we have a PPD file in the CUPS config dir, link to it
		run_program::rooted($prefix, 
				    "ln", "-sf",
				    "/etc/cups/ppd/$queue.ppd",
				    "/etc/foomatic/$queue.ppd");
	    } elsif (-r "$prefix/usr/share/postscript/ppd/$queue.ppd") {
		# Check PPD directory of GPR, too
		run_program::rooted($prefix, 
				    "ln", "-sf",
				    "/usr/share/postscript/ppd/$queue.ppd",
				    "/etc/foomatic/$queue.ppd");
	    } else {
		# No PPD file at all? We cannot set up this printer
		next;
	    }
	}
	$configfilecontent = 
	    makeopenofficeprinterentry($printer, $queue, $configprefix,
				       $configfilecontent);
    }
    # Patch PostScript output to print Euro symbol correctly also for
    # the "Generic Printer"
    $configfilecontent = removeentry
	("Generic Printer", "Command=", $configfilecontent);
    $configfilecontent = addentry
	("Generic Printer", 
	 "Command=/usr/bin/perl -p -e \"s=/euro /unused=/Euro /unused=\" | /usr/bin/$lprcommand{$printer->{SPOOLER}}",
	 $configfilecontent);
    # Write back OpenOffice.org configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub addcupsremotetostaroffice {
    my ($printer, $queue) = @_;
    # Do we have Star Office installed?
    my $configfilename = findsofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/xp3/Xpdefaults$!;
    my $configprefix = $1;
    # Load Star Office printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Update remote CUPS queues
    if (($printer->{SPOOLER} eq "cups") && 
	(-x "$prefix/usr/bin/curl")) {
	my @printerlist = getcupsremotequeues();
	for my $listentry (@printerlist) {
	    next if !($listentry =~ /^([^\|]+)\|([^\|]+)$/);
	    my $q = $1;
	    next if ($q ne $queue);
	    my $server = $2;
	    # Remove server name from queue name
	    $q =~ s/^([^@]*)@.*$/$1/;
	    eval(run_program::rooted
		 ($prefix, "/usr/bin/curl", "-o",
		  "/etc/foomatic/$queue.ppd",
		  "http://$server:631/printers/$q.ppd"));
	    # Does the file exist and is it not an error message?
	    if ((-r "$prefix/etc/foomatic/$queue.ppd") &&
		(cat_("$prefix/etc/foomatic/$queue.ppd") =~ 
		 /^\*PPD-Adobe/)) {
		$configfilecontent = 
		    makestarofficeprinterentry($printer, $queue,
					       $configprefix,
					       $configfilecontent);
	    } else {
		return 0;
	    }
	    last;
	}
    }
    # Write back Star Office configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub addcupsremotetoopenoffice {
    my ($printer, $queue) = @_;
    # Do we have OpenOffice.org installed?
    my $configfilename = findopenofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/psprint/psprint.conf$!;
    my $configprefix = $1;
    # Load OpenOffice.org printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Update remote CUPS queues
    if (($printer->{SPOOLER} eq "cups") && 
	(-x "$prefix/usr/bin/curl")) {
	my @printerlist = getcupsremotequeues();
	for my $listentry (@printerlist) {
	    next if !($listentry =~ /^([^\|]+)\|([^\|]+)$/);
	    my $q = $1;
	    next if ($q ne $queue);
	    my $server = $2;
	    # Remove server name from queue name
	    $q =~ s/^([^@]*)@.*$/$1/;
	    eval(run_program::rooted
		 ($prefix, "/usr/bin/curl", "-o",
		  "/etc/foomatic/$queue.ppd",
		  "http://$server:631/printers/$q.ppd"));
	    # Does the file exist and is it not an error message?
	    if ((-r "$prefix/etc/foomatic/$queue.ppd") &&
		(cat_("$prefix/etc/foomatic/$queue.ppd") =~ 
		 /^\*PPD-Adobe/)) {
		$configfilecontent = 
		    makeopenofficeprinterentry($printer, $queue,
					       $configprefix,
					       $configfilecontent);
	    } else {
		return 0;
	    }
	}
    }
    # Write back OpenOffice.org configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub removeprinterfromstaroffice {
    my ($printer, $queue) = @_;
    # Do we have Star Office installed?
    my $configfilename = findsofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/xp3/Xpdefaults$!;
    my $configprefix = $1;
    # Load Star Office printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Remove the printer entry
    $configfilecontent = 
	removestarofficeprinterentry($printer, $queue, $configprefix,
				     $configfilecontent);
    # Write back Star Office configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub removeprinterfromopenoffice {
    my ($printer, $queue) = @_;
    # Do we have OpenOffice.org installed?
    my $configfilename = findopenofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/psprint/psprint.conf$!;
    my $configprefix = $1;
    # Load OpenOffice.org printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Remove the printer entry
    $configfilecontent = 
	removeopenofficeprinterentry($printer, $queue, $configprefix,
				     $configfilecontent);
    # Write back OpenOffice.org configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub removelocalprintersfromstaroffice {
    my ($printer) = @_;
    # Do we have Star Office installed?
    my $configfilename = findsofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/xp3/Xpdefaults$!;
    my $configprefix = $1;
    # Load Star Office printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Remove the printer entries
    for my $queue (keys(%{$printer->{configured}})) {
	$configfilecontent = 
	    removestarofficeprinterentry($printer, $queue, $configprefix,
					 $configfilecontent);
    }
    # Write back Star Office configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub removelocalprintersfromopenoffice {
    my ($printer) = @_;
    # Do we have OpenOffice.org installed?
    my $configfilename = findopenofficeconfigfile();
    return 1 if !$configfilename;
    $configfilename =~ m!^(.*)/share/psprint/psprint.conf$!;
    my $configprefix = $1;
    # Load OpenOffice.org printer config file
    my $configfilecontent = readsofficeconfigfile($configfilename);
    # Remove the printer entries
    for my $queue (keys(%{$printer->{configured}})) {
	$configfilecontent = 
	    removeopenofficeprinterentry($printer, $queue, $configprefix,
					 $configfilecontent);
    }
    # Write back OpenOffice.org configuration file
    return writesofficeconfigfile($configfilename, $configfilecontent);
}

sub makestarofficeprinterentry {
    my ($printer, $queue, $configprefix, $configfile) = @_;
    # Set default printer
    if ($queue eq $printer->{DEFAULT}) {
	$configfile = removeentry("windows", "device=", $configfile);
	$configfile = addentry("windows", 
			       "device=$queue,$queue PostScript,$queue",
			       $configfile);
    }
    # Make an entry in the "[devices]" section
    $configfile = removeentry("devices", "$queue=", $configfile);
    $configfile = addentry("devices", 
			   "$queue=$queue PostScript,$queue",
			   $configfile);
    # Make an entry in the "[ports]" section
    # The "perl" command patches the PostScript output to print the Euro
    # symbol correctly.
    $configfile = removeentry("ports", "$queue=", $configfile);
    $configfile = addentry("ports", 
			   "$queue=/usr/bin/perl -p -e \"s=16#80 /euro=16#80 /Euro=\" | /usr/bin/$lprcommand{$printer->{SPOOLER}} -P $queue",
			   $configfile);
    # Make printer's section
    $configfile = addsection("$queue,PostScript,$queue", $configfile);
    # Load PPD file
    my $ppd = cat_("$prefix/etc/foomatic/$queue.ppd");
    # Set the PostScript level
    my $pslevel;
    if ($ppd =~ /^\s*\*LanguageLevel:\s*\"?([^\s\"]+)\"?\s*$/m) {
	$pslevel = $1;
	$pslevel = "2" if $pslevel eq "3";
    } else {
	$pslevel = "2";
    }
    $configfile = removeentry("$queue.PostScript.$queue",
			      "Level=", $configfile);
    $configfile = addentry("$queue.PostScript.$queue", 
			   "Level=$pslevel", $configfile);
    # Set Color/BW
    my $color;
    if ($ppd =~ /^\s*\*ColorDevice:\s*\"?([Tt]rue)\"?\s*$/m) {
	$color = "1";
    } else {
	$color = "0";
    }
    $configfile = removeentry("$queue.PostScript.$queue",
			      "BitmapColor=", $configfile);
    $configfile = addentry("$queue.PostScript.$queue", 
			   "BitmapColor=$color", $configfile);
    # Set the default paper size
    if ($ppd =~ /^\s*\*DefaultPageSize:\s*(\S+)\s*$/m) {
	my $papersize = $1;
	$configfile = removeentry("$queue.PostScript.$queue",
				  "PageSize=", $configfile);
	$configfile = removeentry("$queue.PostScript.$queue",
				  "PPD_PageSize=", $configfile);
	$configfile = addentry("$queue.PostScript.$queue", 
			       "PageSize=$papersize", $configfile);
	$configfile = addentry("$queue.PostScript.$queue", 
			       "PPD_PageSize=$papersize", $configfile);
    }
    # Link the PPD file
    run_program::rooted($prefix, 
			"ln", "-sf", "/etc/foomatic/$queue.ppd", 
			"$configprefix/share/xp3/ppds/$queue.PS");
    return $configfile;
}

sub makeopenofficeprinterentry {
    my ($printer, $queue, $configprefix, $configfile) = @_;
    # Make printer's section
    $configfile = addsection($queue, $configfile);
    # Load PPD file
    my $ppd = cat_("$prefix/etc/foomatic/$queue.ppd");
    # "PPD_PageSize" line
    if ($ppd =~ /^\s*\*DefaultPageSize:\s*(\S+)\s*$/m) {
	my $papersize = $1;
	$configfile = removeentry($queue,
				  "PPD_PageSize=", $configfile);
	$configfile = addentry($queue, 
			       "PPD_PageSize=$papersize", $configfile);
    }
    # "Command" line
    # The "perl" command patches the PostScript output to print the Euro
    # symbol correctly.
    $configfile = removeentry($queue, "Command=", $configfile);
    $configfile = addentry($queue, 
			   "Command=/usr/bin/perl -p -e \"s=/euro /unused=/Euro /unused=\" | /usr/bin/$lprcommand{$printer->{SPOOLER}} -P $queue",
			   $configfile);
    # "Comment" line 
    $configfile = removeentry($queue, "Comment=", $configfile);
    if (($printer->{configured}{$queue}) &&
	($printer->{configured}{$queue}{queuedata}{desc})) {
	$configfile = addentry
	    ($queue, 
	     "Comment=$printer->{configured}{$queue}{queuedata}{desc}",
	     $configfile);
    } else {
	$configfile = addentry($queue, 
			       "Comment=",
			       $configfile);
    }
    # "Location" line 
    $configfile = removeentry($queue, "Location=", $configfile);
    if (($printer->{configured}{$queue}) &&
	($printer->{configured}{$queue}{queuedata}{loc})) {
	$configfile = addentry
	    ($queue, 
	     "Location=$printer->{configured}{$queue}{queuedata}{loc}",
	     $configfile);
    } else {
	$configfile = addentry($queue, 
			       "Location=",
			       $configfile);
    }
    # "DefaultPrinter" line
    $configfile = removeentry($queue, "DefaultPrinter=", $configfile);
    my $default = "0";
    if ($queue eq $printer->{DEFAULT}) {
	$default = "1";
    }
    $configfile = addentry($queue, 
			   "DefaultPrinter=$default",
			   $configfile);
    # "Printer" line 
    $configfile = removeentry($queue, "Printer=", $configfile);
    $configfile = addentry($queue, 
			   "Printer=$queue/$queue",
			   $configfile);
    # Link the PPD file
    run_program::rooted($prefix, 
			"ln", "-sf", "/etc/foomatic/$queue.ppd", 
			"$configprefix/share/psprint/driver/$queue.PS");
    return $configfile;
}

sub removestarofficeprinterentry {
    my ($printer, $queue, $configprefix, $configfile) = @_;
    # Remove default printer entry
    $configfile = removeentry("windows", "device=$queue,", $configfile);
    # Remove entry in the "[devices]" section
    $configfile = removeentry("devices", "$queue=", $configfile);
    # Remove entry in the "[ports]" section
    $configfile = removeentry("ports", "$queue=", $configfile);
    # Remove "[$queue,PostScript,$queue]" section
    $configfile = removesection("$queue,PostScript,$queue", $configfile);
    # Remove Link of PPD file
    run_program::rooted($prefix, 
			"rm", "-f", 
			"$configprefix/share/xp3/ppds/$queue.PS");
    return $configfile;
}

sub removeopenofficeprinterentry {
    my ($printer, $queue, $configprefix, $configfile) = @_;
    # Remove printer's section
    $configfile = removesection($queue, $configfile);
    # Remove Link of PPD file
    run_program::rooted($prefix, 
			"rm", "-f", 
			"$configprefix/share/psprint/driver/$queue.PS");
    return $configfile;
}

sub findsofficeconfigfile {
    my @configfilenames = 
	("/usr/lib/*/share/xp3/Xpdefaults",
	 "/usr/local/lib/*/share/xp3/Xpdefaults",
	 "/usr/local/*/share/xp3/Xpdefaults",
	 "/opt/*/share/xp3/Xpdefaults");
    my $configfilename = "";
    for $configfilename (@configfilenames) {
	local *F;
	if (open F, "ls -r $prefix$configfilename 2> /dev/null |") {
	    my $filename = <F>;
	    close F;
	    if ($filename) {
		if ($prefix ne "") {
		    $filename =~ s:^$prefix::;
		}
		return $filename;
	    }
	}
    }
    return "";
}

sub findopenofficeconfigfile {
    my @configfilenames =
	("/usr/lib/*/share/psprint/psprint.conf",
	 "/usr/local/lib/*/share/psprint/psprint.conf",
	 "/usr/local/*/share/psprint/psprint.conf",
	 "/opt/*/share/psprint/psprint.conf");
    my $configfilename = "";
    for $configfilename (@configfilenames) {
	local *F;
	if (open F, "ls -r $prefix$configfilename 2> /dev/null |") {
	    my $filename = <F>;
	    close F;
	    if ($filename) {
		if ($prefix ne "") {
		    $filename =~ s:^$prefix::;
		}
		return $filename;
	    }
	}
    }
    return "";
}

sub readsofficeconfigfile {
    my ($file) = @_;
    local *F; 
    open F, "< $prefix$file" || return "";
    my $filecontent = join("", <F>);
    close F;
    return $filecontent;
}

sub writesofficeconfigfile {
    my ($file, $filecontent) = @_;
    local *F; 
    open F, "> $prefix$file" || return 0;
    print F $filecontent;
    close F;
    return 1;
}

sub getcupsremotequeues {
    # The following code reads in a list of all remote printers which the
    # local CUPS daemon knows due to broadcasting of remote servers or 
    # "BrowsePoll" entries in the local /etc/cups/cupsd.conf
    local *F;
    open F, ($::testing ? $prefix : "chroot $prefix/ ") . 
	"lpstat -v |" || return ();
    my @printerlist;
    my $line;
    while ($line = <F>) {
	if ($line =~ m/^\s*device\s+for\s+([^:\s]+):\s*(\S+)\s*$/) {
	    my $queuename = $1;
	    if (($2 =~ m!^ipp://([^/:]+)[:/]!) &&
		(!$printer->{configured}{$queuename})) {
		my $server = $1;
		push (@printerlist, "$queuename|$server");
	    }
	}
    }
    close F;
    return @printerlist;
}

sub addentry {
    my ($section, $entry, $filecontent) = @_;
    my $sectionfound = 0;
    my $entryinserted = 0;
    my @lines = split("\n", $filecontent);
    local $_;
    for (@lines) {
	if (!$sectionfound) {
	    if (/^\s*\[\s*$section\s*\]\s*$/) {
		$sectionfound = 1;
	    }
	} else {
	    if (!/^\s*$/ && !/^\s*;/) { #-#
		$_ = "$entry\n$_";
		$entryinserted = 1;
		last;
	    }
	}
    }
    if ($sectionfound && !$entryinserted) {
	push(@lines, $entry);
    }
    return join ("\n", @lines);
}

sub addsection {
    my ($section, $filecontent) = @_;
    my $entryinserted = 0;
    my @lines = split("\n", $filecontent);
    local $_;
    for (@lines) {
	if (/^\s*\[\s*$section\s*\]\s*$/) {
	    # section already there, nothing to be done
	    return $filecontent;
	}
    }
    return $filecontent . "\n[$section]";
}

sub removeentry {
    my ($section, $entry, $filecontent) = @_;
    my $sectionfound = 0;
    my $done = 0;
    my @lines = split("\n", $filecontent);
    local $_;
    for (@lines) {
	$_ = "$_\n";
	next if ($done);
	if (!$sectionfound) {
	    if (/^\s*\[\s*$section\s*\]\s*$/) {
		$sectionfound = 1;
	    }
	} else {
	    if (/^\s*\[.*\]\s*$/) { # Next section
		$done = 1;
	    } elsif (/^\s*$entry/) {
		$_ = "";
		$done = 1;
	    }
	}
    }
    return join ("", @lines);
}

sub removesection {
    my ($section, $filecontent) = @_;
    my $sectionfound = 0;
    my $done = 0;
    my @lines = split("\n", $filecontent);
    local $_;
    for (@lines) {
	$_ = "$_\n";
	next if ($done);
	if (!$sectionfound) {
	    if (/^\s*\[\s*$section\s*\]\s*$/) {
		$_ = "";
		$sectionfound = 1;
	    }
	} else {
	    if (/^\s*\[.*\]\s*$/) { # Next section
		$done = 1;
	    } else {
		$_ = "";
	    }
	}
    }
    return join ("", @lines);
}

#-######################################################################################
#- Wonderful perl :(
#-######################################################################################
1;
an class="hl slc">#, c-format msgid "Use free space" msgstr "Koristi slobodan prostor" #: fs/partitioning_wizard.pm:86 #, c-format msgid "Not enough free space to allocate new partitions" msgstr "Nema dovoljno slobodnog prostora za pravljenje novih particija" #: fs/partitioning_wizard.pm:94 #, c-format msgid "Use existing partitions" msgstr "Koristi postojeću particiju" #: fs/partitioning_wizard.pm:96 #, c-format msgid "There is no existing partition to use" msgstr "Nemate nijednu postojeću particiju za upotrebu" #: fs/partitioning_wizard.pm:103 #, c-format msgid "Use the Microsoft Windows® partition for loopback" msgstr "Koristi Microsoft Windows® particiju za loopback" #: fs/partitioning_wizard.pm:106 #, c-format msgid "Which partition do you want to use for Linux4Win?" msgstr "Koju particiju želite koristiti za Linux4Win?" #: fs/partitioning_wizard.pm:108 #, c-format msgid "Choose the sizes" msgstr "Izaberite veličine" #: fs/partitioning_wizard.pm:109 #, c-format msgid "Root partition size in MB: " msgstr "Veličina root particije u MB: " #: fs/partitioning_wizard.pm:110 #, c-format msgid "Swap partition size in MB: " msgstr "Veličina swap particije u MB: " #: fs/partitioning_wizard.pm:119 #, c-format msgid "There is no FAT partition to use as loopback (or not enough space left)" msgstr "" "Ne postoji nijedna FAT particija za upotrebu kao loopback (ili nije ostalo " "dovoljno prostora)" #: fs/partitioning_wizard.pm:126 #, c-format msgid "Use the free space on the Microsoft Windows® partition" msgstr "Koristi slobodan prostor na Microsoft Windows® particiji" #: fs/partitioning_wizard.pm:128 #, c-format msgid "Which partition do you want to resize?" msgstr "Kojoj particiji želite promijeniti veličinu?" #: fs/partitioning_wizard.pm:142 #, c-format msgid "" "The FAT resizer is unable to handle your partition, \n" "the following error occurred: %s" msgstr "" "FAT resizer ne može izmijeniti vašu particiju, \n" "došlo je do sljedeće greške: %s" #: fs/partitioning_wizard.pm:145 #, c-format msgid "Computing the size of the Microsoft Windows® partition" msgstr "Izračunavam veličinu Microsoft Windows® particije" #: fs/partitioning_wizard.pm:152 #, c-format msgid "" "Your Microsoft Windows® partition is too fragmented. Please reboot your " "computer under Microsoft Windows®, run the ``defrag'' utility, then restart " "the Mandriva Linux installation." msgstr "" "Vaša Microsoft Windows® particija je previše fragmentirana. Molim " "restartujte vaš računar pod Microsoft Windows®, pokrenite program \"defrag\"," "zatim ponovo pokrenite Mandriva Linux instalaciju." #: fs/partitioning_wizard.pm:155 #, c-format msgid "" "WARNING!\n" "\n" "\n" "Your Microsoft Windows® partition will be now resized.\n" "\n" "\n" "Be careful: this operation is dangerous. If you have not already done so, " "you first need to exit the installation, run \"chkdsk c:\" from a Command " "Prompt under Microsoft Windows® (beware, running graphical program \"scandisk" "\" is not enough, be sure to use \"chkdsk\" in a Command Prompt!), " "optionally run defrag, then restart the installation. You should also backup " "your data.\n" "\n" "\n" "When sure, press %s." msgstr "" "UPOZORENJE!\n" "\n" " DrakX će sada promijeniti veličinu vaše Microsoft Windows® particije.\n" "\n" "\n" "Budite pažljivi, ova operacija je opasna. Ako to već niste uradili, najprije " "napustite instalaciju, izvršite naredbu \"chkdsk c:\" iz Command Prompt-a " "pod Windowsom (obratite pažnju da izvršavanje grafičkog programa \"scandisk" "\" nije dovoljno, trebate koristiti \"chkdsk\" u komandnom upitu!), " "opcionalno pokrenite \"defrag\", zatim ponovo pokrenite instalaciju. Također " "biste trebali spasiti sve podatke.\n" "\n" "\n" "Kada ste sigurni, kliknite na \"%s\"." #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: fs/partitioning_wizard.pm:164 interactive.pm:542 interactive/curses.pm:263 #: ugtk2.pm:512 #, c-format msgid "Next" msgstr "Dalje" #: fs/partitioning_wizard.pm:167 #, fuzzy, c-format msgid "Partitionning" msgstr "Particioniranje" #: fs/partitioning_wizard.pm:167 #, c-format msgid "Which size do you want to keep for Microsoft Windows® on partition %s?" msgstr "" "Koju veličinu želite da sačuvate za Microsoft Windows® na particiji %s?" #: fs/partitioning_wizard.pm:168 #, c-format msgid "Size" msgstr "Veličina" #: fs/partitioning_wizard.pm:177 #, c-format msgid "Resizing Microsoft Windows® partition" msgstr "Smanjujem Microsoft Windows® particiju" #: fs/partitioning_wizard.pm:182 #, c-format msgid "FAT resizing failed: %s" msgstr "Smanjivanje FAT particije nije uspjelo: %s" #: fs/partitioning_wizard.pm:197 #, c-format msgid "There is no FAT partition to resize (or not enough space left)" msgstr "" "Ne postoji nijedna FAT particija za promjenu veličine (ili nije ostalo " "dovoljno prostora)" #: fs/partitioning_wizard.pm:202 #, c-format msgid "Remove Microsoft Windows®" msgstr "Ukloni Microsoft Windows®" #: fs/partitioning_wizard.pm:202 #, c-format msgid "Erase and use entire disk" msgstr "Pobriši čitav disk" #: fs/partitioning_wizard.pm:204 #, c-format msgid "You have more than one hard drive, which one do you install linux on?" msgstr "" "Imate više od jednog hard diska. Na koji od njih želite instalirati Linux?" #: fs/partitioning_wizard.pm:210 fsedit.pm:566 #, c-format msgid "ALL existing partitions and their data will be lost on drive %s" msgstr "" "SVE postojeće particije i podaci na njima će biti izgubljeni na disku %s" #: fs/partitioning_wizard.pm:221 #, c-format msgid "Custom disk partitioning" msgstr "Ručno particioniranje diska" #: fs/partitioning_wizard.pm:227 #, c-format msgid "Use fdisk" msgstr "Koristi fdisk" #: fs/partitioning_wizard.pm:230 #, c-format msgid "" "You can now partition %s.\n" "When you are done, do not forget to save using `w'" msgstr "" "Sada možete particionirati %s.\n" "Kada završite, ne zaboravite spasiti naredbom 'w'" #: fs/partitioning_wizard.pm:270 #, c-format msgid "I can not find any room for installing" msgstr "Ne mogu naći dovoljno prostora za instalaciju" #: fs/partitioning_wizard.pm:274 #, c-format msgid "The DrakX Partitioning wizard found the following solutions:" msgstr "DrakX Particioni čarobnjak je našao sljedeća rješenja:" #: fs/partitioning_wizard.pm:282 #, c-format msgid "Partitioning failed: %s" msgstr "Particioniranje nije uspjelo: %s" #: fs/type.pm:368 #, c-format msgid "You can not use JFS for partitions smaller than 16MB" msgstr "Ne možete koristiti JFS za particije manje od 16MB" #: fs/type.pm:369 #, c-format msgid "You can not use ReiserFS for partitions smaller than 32MB" msgstr "Ne možete koristiti ReiserFS za particije manje od 32MB" #: fsedit.pm:27 #, c-format msgid "with /usr" msgstr "sa /usr" #: fsedit.pm:32 #, c-format msgid "server" msgstr "server" #: fsedit.pm:116 #, c-format msgid "BIOS software RAID detected on disks %s. Activate it?" msgstr "BIOS softverski RAID je pronađen na diskovima %s. Da ga aktiviram?" #: fsedit.pm:224 #, c-format msgid "" "I can not read the partition table of device %s, it's too corrupted for me :" "(\n" "I can try to go on, erasing over bad partitions (ALL DATA will be lost!).\n" "The other solution is to not allow DrakX to modify the partition table.\n" "(the error is %s)\n" "\n" "Do you agree to lose all the partitions?\n" msgstr "" "Ne mogu pročitati tabelu particija na uređaju %s, previše je oštećena za " "mene :(\n" "Mogu pokušati da pobrišem loše particije (SVI PODACI će biti izgubljeni!).\n" "Drugo rješenje je da onemogućim DrakX da mijenja tabelu particija.\n" "(greška je %s)\n" "\n" "Slažete li se sa gubitkom svih particija?\n" #: fsedit.pm:393 #, c-format msgid "Mount points must begin with a leading /" msgstr "Tačke montiranja moraju počinjati sa /" #: fsedit.pm:394 #, c-format msgid "Mount points should contain only alphanumerical characters" msgstr "Tačka montiranja se treba sastojati samo od brojeva i slova" #: fsedit.pm:395 #, c-format msgid "There is already a partition with mount point %s\n" msgstr "Već postoji particija sa tačkom montiranja %s\n" #: fsedit.pm:399 #, c-format msgid "" "You've selected a software RAID partition as root (/).\n" "No bootloader is able to handle this without a /boot partition.\n" "Please be sure to add a /boot partition" msgstr "" "Izabrali ste softversku RAID particiju kao root (/).\n" "Nijedan bootloader nije u mogućnosti da rukuje sa ovim bez /boot particije.\n" "Molim kasnije dodajte /boot particiju" #: fsedit.pm:405 #, c-format msgid "" "You can not use the LVM Logical Volume for mount point %s since it spans " "physical volumes" msgstr "" "Ne možete koristiti LVM logički volumen za tačku montiranja %s pošto on " "obuhvata fizičke volumene" #: fsedit.pm:407 #, c-format msgid "" "You've selected the LVM Logical Volume as root (/).\n" "The bootloader is not able to handle this when the volume spans physical " "volumes.\n" "You should create a /boot partition first" msgstr "" "Izabrali ste LVM logički volumen kao root (/).\n" "Nijedan bootloader nije u mogućnosti da rukuje sa ovim ako se taj volumen " "prostire preko više fizičkih volumena.\n" "Trebali biste najprije napraviti /boot particiju" #: fsedit.pm:411 fsedit.pm:413 #, c-format msgid "This directory should remain within the root filesystem" msgstr "Ovaj direktorij treba ostati unutar korijenskog file sistema" #: fsedit.pm:415 fsedit.pm:417 #, c-format msgid "" "You need a true filesystem (ext2/ext3, reiserfs, xfs, or jfs) for this mount " "point\n" msgstr "" "Potreban vam je pravi file sistem (ext2/ext3, reiserfs, xfs ili jfs) za ovu " "tačku montiranja\n" #: fsedit.pm:419 #, c-format msgid "You can not use an encrypted file system for mount point %s" msgstr "Ne možete koristiti šifrovani datotečni sistem za tačku montiranja %s" #: fsedit.pm:483 #, c-format msgid "Not enough free space for auto-allocating" msgstr "Nema dovoljno prostora za auto-alokaciju" #: fsedit.pm:485 #, c-format msgid "Nothing to do" msgstr "Nemam šta da radim" #: harddrake/data.pm:64 #, c-format msgid "SATA controllers" msgstr "SATA kontroleri" #: harddrake/data.pm:73 #, c-format msgid "RAID controllers" msgstr "RAID kontroleri" #: harddrake/data.pm:83 #, c-format msgid "(E)IDE/ATA controllers" msgstr "(E)IDE/ATA kontroleri" #: harddrake/data.pm:93 #, fuzzy, c-format msgid "Card readers" msgstr "Model kartice:" #: harddrake/data.pm:102 #, c-format msgid "Firewire controllers" msgstr "Firewire kontroleri" #: harddrake/data.pm:111 #, c-format msgid "PCMCIA controllers" msgstr "PCMCIA kontroleri" #: harddrake/data.pm:120 #, c-format msgid "SCSI controllers" msgstr "SCSI kontroleri" #: harddrake/data.pm:129 #, c-format msgid "USB controllers" msgstr "USB kontroleri" #: harddrake/data.pm:138 #, c-format msgid "USB ports" msgstr "USB portovi" #: harddrake/data.pm:147 #, c-format msgid "SMBus controllers" msgstr "SMBus kontroleri" #: harddrake/data.pm:156 #, c-format msgid "Bridges and system controllers" msgstr "Mostovi (bridges) i sistemski kontroleri" #: harddrake/data.pm:168 #, c-format msgid "Floppy" msgstr "Disketa" #: harddrake/data.pm:178 #, c-format msgid "Zip" msgstr "Zip" #: harddrake/data.pm:194 #, c-format msgid "Hard Disk" msgstr "Hard Disk" #: harddrake/data.pm:204 #, c-format msgid "USB Mass Storage Devices" msgstr "USB uređaji za smještaj podataka" #: harddrake/data.pm:213 #, c-format msgid "CDROM" msgstr "CDROM" #: harddrake/data.pm:223 #, c-format msgid "CD/DVD burners" msgstr "CD/DVD pržilica" #: harddrake/data.pm:233 #, c-format msgid "DVD-ROM" msgstr "DVD-ROM" #: harddrake/data.pm:243 #, c-format msgid "Tape" msgstr "Traka" #: harddrake/data.pm:254 #, c-format msgid "AGP controllers" msgstr "AGP kontroleri" #: harddrake/data.pm:263 #, c-format msgid "Videocard" msgstr "Video kartica" #: harddrake/data.pm:272 #, c-format msgid "DVB card" msgstr "DVB kartica" #: harddrake/data.pm:280 #, c-format msgid "Tvcard" msgstr "TV kartica" #: harddrake/data.pm:289 #, c-format msgid "Other MultiMedia devices" msgstr "Drugi multimedijalni uređaj" #: harddrake/data.pm:298 #, c-format msgid "Soundcard" msgstr "Zvučna kartica" #: harddrake/data.pm:311 #, c-format msgid "Webcam" msgstr "Web kamera" #: harddrake/data.pm:325 #, c-format msgid "Processors" msgstr "Procesori" #: harddrake/data.pm:335 #, c-format msgid "ISDN adapters" msgstr "ISDN adapteri" #: harddrake/data.pm:346 #, c-format msgid "USB sound devices" msgstr "USB zvučni uređaji" #: harddrake/data.pm:355 #, c-format msgid "Radio cards" msgstr "Radio kartice" #: harddrake/data.pm:364 #, c-format msgid "ATM network cards" msgstr "ATM mrežne kartice" #: harddrake/data.pm:373 #, c-format msgid "WAN network cards" msgstr "WAN mrežne kartice" #: harddrake/data.pm:382 #, c-format msgid "Bluetooth devices" msgstr "Bluetooth uređaji" #: harddrake/data.pm:391 #, c-format msgid "Ethernetcard" msgstr "Ethernet kartica" #: harddrake/data.pm:408 #, c-format msgid "Modem" msgstr "Modem" #: harddrake/data.pm:418 #, c-format msgid "ADSL adapters" msgstr "ADSL adapteri" #: harddrake/data.pm:430 #, c-format msgid "Memory" msgstr "Memorija" #: harddrake/data.pm:439 #, c-format msgid "Printer" msgstr "Štampač" #. -PO: these are joysticks controllers: #: harddrake/data.pm:453 #, c-format msgid "Game port controllers" msgstr "Game port kontroleri" #: harddrake/data.pm:462 #, c-format msgid "Joystick" msgstr "Joystick" #: harddrake/data.pm:472 #, c-format msgid "Keyboard" msgstr "Tastatura" #: harddrake/data.pm:485 #, c-format msgid "Tablet and touchscreen" msgstr "Tablet i ekran osjetljiv na dodir" #: harddrake/data.pm:494 #, c-format msgid "Mouse" msgstr "Miš" #: harddrake/data.pm:508 #, c-format msgid "Biometry" msgstr "" #: harddrake/data.pm:516 #, c-format msgid "UPS" msgstr "UPS" #: harddrake/data.pm:525 #, c-format msgid "Scanner" msgstr "Skener" #: harddrake/data.pm:536 #, c-format msgid "Unknown/Others" msgstr "Nepoznat/Ostali" #: harddrake/data.pm:564 #, c-format msgid "cpu # " msgstr "cpu # " #: harddrake/sound.pm:202 #, c-format msgid "Please Wait... Applying the configuration" msgstr "Molim sačekajte... Primjenjujem konfiguraciju" #: harddrake/sound.pm:239 #, c-format msgid "No alternative driver" msgstr "Nema alternativnog drajvera" #: harddrake/sound.pm:240 #, c-format msgid "" "There's no known OSS/ALSA alternative driver for your sound card (%s) which " "currently uses \"%s\"" msgstr "" "Nema nijedan poznat OSS/ALSA alternativni drajver za vašu zvučnu karticu (%" "s) koja trenutno koristi \"%s\"" #: harddrake/sound.pm:246 #, c-format msgid "Sound configuration" msgstr "Podešavanje zvuka" #: harddrake/sound.pm:248 #, c-format msgid "" "Here you can select an alternative driver (either OSS or ALSA) for your " "sound card (%s)." msgstr "" "Ovdje možete izabrati alternativni drajver (ili OSS ili ALSA) za vašu zvučnu " "karticu (%s)." #. -PO: here the first %s is either "OSS" or "ALSA", #. -PO: the second %s is the name of the current driver #. -PO: and the third %s is the name of the default driver #: harddrake/sound.pm:253 #, c-format msgid "" "\n" "\n" "Your card currently use the %s\"%s\" driver (default driver for your card is " "\"%s\")" msgstr "" "\n" "\n" "Vaša kartica trenutno koristi %s \"%s\" drajver (uobičajeni drajver za vašu " "karticu je \"%s\")" #: harddrake/sound.pm:255 #, c-format msgid "" "OSS (Open Sound System) was the first sound API. It's an OS independent " "sound API (it's available on most UNIX(tm) systems) but it's a very basic " "and limited API.\n" "What's more, OSS drivers all reinvent the wheel.\n" "\n" "ALSA (Advanced Linux Sound Architecture) is a modularized architecture " "which\n" "supports quite a large range of ISA, USB and PCI cards.\n" "\n" "It also provides a much higher API than OSS.\n" "\n" "To use alsa, one can either use:\n" "- the old compatibility OSS api\n" "- the new ALSA api that provides many enhanced features but requires using " "the ALSA library.\n" msgstr "" "OSS (Open Sound System) je bio prvi API za zvuk. To je API neovisan od " "operativnog sistema (dostupan je na većini UNIX(tm) sistema), ali je vrlo " "elementaran i ograničen.\n" "Pored toga, svi OSS drajveri ponovo izmišljaju točak.\n" "\n" "ALSA (Advanced Linux Sound Architecture) je modularizovana arhitektura koja\n" "podržava prilično velik broj ISA, USB i PCI kartica.\n" "\n" "Ona takođe pruža mnogo viši API nego OSS.\n" "\n" "Da biste koristili ALSA, možete koristiti:\n" "- stari API kompatibilan sa OSSom\n" "- novi ALSA API koji pruža mnoge napredne mogućnosti, ali zahtijeva upotrebu " "ALSA biblioteke.\n" #: harddrake/sound.pm:269 harddrake/sound.pm:354 #, c-format msgid "Driver:" msgstr "Drajver:" #: harddrake/sound.pm:278 #, c-format msgid "Trouble shooting" msgstr "Kako ukloniti problem?" #: harddrake/sound.pm:286 #, c-format msgid "" "The old \"%s\" driver is blacklisted.\n" "\n" "It has been reported to oops the kernel on unloading.\n" "\n" "The new \"%s\" driver will only be used on next bootstrap." msgstr "" "Stari \"%s\" drajver je na crnoj listi.\n" "\n" "Prijavljeno je da ovaj drajver prilikom deinstalacije izaziva oops kernela.\n" "\n" "Stoga će novi drajver \"%s\" biti korišten tek nakon idućeg pokretanja " "sistema." #: harddrake/sound.pm:294 #, c-format msgid "No open source driver" msgstr "Nema open source drajver" #: harddrake/sound.pm:295 #, c-format msgid "" "There's no free driver for your sound card (%s), but there's a proprietary " "driver at \"%s\"." msgstr "" "Nema slobodnih drajvera za vašu zvučnu karticu (%s), ali postoji vlasnički " "drajver na \"%s\"." #: harddrake/sound.pm:298 #, c-format msgid "No known driver" msgstr "Nema nijedan poznat drajver" #: harddrake/sound.pm:299 #, c-format msgid "There's no known driver for your sound card (%s)" msgstr "Nema poznatih drajvera za vašu zvučnu karticu (%s)" #: harddrake/sound.pm:314 #, c-format msgid "Sound trouble shooting" msgstr "Rješavanje problema sa zvukom" #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: harddrake/sound.pm:317 #, c-format msgid "" "The classic bug sound tester is to run the following commands:\n" "\n" "\n" "- \"lspcidrake -v | fgrep AUDIO\" will tell you which driver your card uses\n" "by default\n" "\n" "- \"grep sound-slot /etc/modprobe.conf\" will tell you what driver it\n" "currently uses\n" "\n" "- \"/sbin/lsmod\" will enable you to check if its module (driver) is\n" "loaded or not\n" "\n" "- \"/sbin/chkconfig --list sound\" and \"/sbin/chkconfig --list alsa\" will\n" "tell you if sound and alsa services're configured to be run on\n" "initlevel 3\n" "\n" "- \"aumix -q\" will tell you if the sound volume is muted or not\n" "\n" "- \"/sbin/fuser -v /dev/dsp\" will tell which program uses the sound card.\n" msgstr "" "Klasični način utvrđivanja bugova u zvučnom sistemu je izvršavanje\n" "sljedećih naredbi:\n" "\n" "\n" "- \"lspcidrake -v | fgrep AUDIO\" će vam reći koji drajver inače koristi\n" "vaša kartica\n" "\n" "- \"grep sound-slot /etc/modprobe.conf\" će vam reći koji drajver je\n" "trenutno u upotrebi\n" "\n" "- sa \"/sbin/lsmod\" možete provjeriti da li je modul (drajver) učitan\n" "ili ne\n" "\n" "- \"/sbin/chkconfig --list sound\" i \"/sbin/chkconfig --list alsa\" vam\n" "govore da li su servisi sound i alsa podešeni da se pokreću na\n" "initlevel 3\n" "\n" "- \"aumix -q\" će vam reći da li je zvuk utišan (muted) ili ne\n" "\n" "- \"/sbin/fuser -v /dev/dsp\" vam govori koji program koristi zvučnu " "karticu.\n" #: harddrake/sound.pm:343 #, c-format msgid "Let me pick any driver" msgstr "Dozvoli da sam odaberem drajver" #: harddrake/sound.pm:346 #, c-format msgid "Choosing an arbitrary driver" msgstr "Slobodan izbor drajvera" #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: harddrake/sound.pm:349 #, c-format msgid "" "If you really think that you know which driver is the right one for your " "card\n" "you can pick one in the above list.\n" "\n" "The current driver for your \"%s\" sound card is \"%s\" " msgstr "" "Ako stvarno mislite da znate koji drajver je odgovarajući za vašu karticu\n" "možete odabrati jedan sa gornje liste.\n" "\n" "Trenutni drajver za vašu \"%s\" zvučnu karticu je \"%s\"" #: harddrake/v4l.pm:12 #, c-format msgid "Auto-detect" msgstr "Auto prepoznavanje" #: harddrake/v4l.pm:97 harddrake/v4l.pm:285 harddrake/v4l.pm:337 #, c-format msgid "Unknown|Generic" msgstr "Nepoznat|Opšti" #: harddrake/v4l.pm:130 #, c-format msgid "Unknown|CPH05X (bt878) [many vendors]" msgstr "Nepoznat|CPH05X (bt878) [razni proizvođači]" #: harddrake/v4l.pm:131 #, c-format msgid "Unknown|CPH06X (bt878) [many vendors]" msgstr "Nepoznat|CPH06X (bt878) [razni proizvođači]" #: harddrake/v4l.pm:475 #, c-format msgid "" "For most modern TV cards, the bttv module of the GNU/Linux kernel just auto-" "detect the rights parameters.\n" "If your card is misdetected, you can force the right tuner and card types " "here. Just select your tv card parameters if needed." msgstr "" "Za većinu modernih TV kartica, bttv modul Linux kernela automatski " "prepoznaje odgovarajuće parametre.\n" "Ako je vaša kartica pogrešno prepoznata, ovdje možete prisiliti odgovarajući " "tip tunera i kartice. Samo izaberite parametre vaše TV karte." #: harddrake/v4l.pm:478 #, c-format msgid "Card model:" msgstr "Model kartice:" #: harddrake/v4l.pm:479 #, c-format msgid "Tuner type:" msgstr "Vrsta tunera:" #: interactive.pm:125 interactive.pm:542 interactive/curses.pm:263 #: interactive/http.pm:103 interactive/http.pm:156 interactive/stdio.pm:39 #: interactive/stdio.pm:148 interactive/stdio.pm:149 ugtk2.pm:414 ugtk2.pm:512 #: ugtk2.pm:801 ugtk2.pm:824 #, c-format msgid "Ok" msgstr "U redu" #: interactive.pm:224 modules/interactive.pm:71 ugtk2.pm:800 wizards.pm:156 #, c-format msgid "Yes" msgstr "Da" #: interactive.pm:224 modules/interactive.pm:71 ugtk2.pm:800 wizards.pm:156 #, c-format msgid "No" msgstr "Ne" #: interactive.pm:258 #, c-format msgid "Choose a file" msgstr "Izaberi datoteku" #: interactive.pm:383 interactive/gtk.pm:420 #, c-format msgid "Add" msgstr "Dodaj" #: interactive.pm:383 interactive/gtk.pm:420 #, c-format msgid "Modify" msgstr "Izmijeni" #: interactive.pm:383 interactive/gtk.pm:420 #, c-format msgid "Remove" msgstr "Pobriši" #: interactive.pm:542 interactive/curses.pm:263 ugtk2.pm:512 #, c-format msgid "Finish" msgstr "Kraj" #: interactive.pm:543 interactive/curses.pm:260 ugtk2.pm:510 #, c-format msgid "Previous" msgstr "Nazad" #: interactive/gtk.pm:548 #, c-format msgid "Beware, Caps Lock is enabled" msgstr "" #: interactive/stdio.pm:29 interactive/stdio.pm:154 #, c-format msgid "Bad choice, try again\n" msgstr "Pogrešan izbor, pokušajte ponovo\n" #: interactive/stdio.pm:30 interactive/stdio.pm:155 #, c-format msgid "Your choice? (default %s) " msgstr "Vaš izbor? (podrazumjevano %s)" #: interactive/stdio.pm:54 #, c-format msgid "" "Entries you'll have to fill:\n" "%s" msgstr "" "Stavke koje morate popuniti:\n" "%s" #: interactive/stdio.pm:70 #, c-format msgid "Your choice? (0/1, default `%s') " msgstr "Vaš izbor? (0/1, podrazumjevano %s)" #: interactive/stdio.pm:97 #, c-format msgid "Button `%s': %s" msgstr "Dugme '%s': %s" #: interactive/stdio.pm:98 #, c-format msgid "Do you want to click on this button?" msgstr "Da li želite kliknuti na ovo dugme?" #: interactive/stdio.pm:110 #, c-format msgid "Your choice? (default `%s'%s) " msgstr "Vaš izbor? (podrazumjevano '%s' %s)" #: interactive/stdio.pm:110 #, c-format msgid " enter `void' for void entry" msgstr " unesite `void' za prazan unos" #: interactive/stdio.pm:128 #, c-format msgid "=> There are many things to choose from (%s).\n" msgstr "=> Postoji mnogo stvari od kojih možete izabrati (%s).\n" #: interactive/stdio.pm:131 #, c-format msgid "" "Please choose the first number of the 10-range you wish to edit,\n" "or just hit Enter to proceed.\n" "Your choice? " msgstr "" "Molim unesite prvi broj od deset koji želite izmjeniti,\n" "ili samo pritisnite Enter za nastavak.\n" "Vaš izbor?" #: interactive/stdio.pm:144 #, c-format msgid "" "=> Notice, a label changed:\n" "%s" msgstr "" "=> Primjetite, natpis je promijenjen:\n" "%s" #: interactive/stdio.pm:151 #, c-format msgid "Re-submit" msgstr "Ponovo pošalji" #. -PO: the string "default:LTR" can be translated *ONLY* as "default:LTR" #. -PO: or as "default:RTL", depending if your language is written from #. -PO: left to right, or from right to left; any other string is wrong. #: lang.pm:193 #, c-format msgid "default:LTR" msgstr "default:LTR" #: lang.pm:210 #, c-format msgid "Andorra" msgstr "Andora" #: lang.pm:211 timezone.pm:215 #, c-format msgid "United Arab Emirates" msgstr "Ujedinjeni Arapski Emirati" #: lang.pm:212 #, c-format msgid "Afghanistan" msgstr "Afganistan" #: lang.pm:213 #, c-format msgid "Antigua and Barbuda" msgstr "Antigua i Barbuda" #: lang.pm:214 #, c-format msgid "Anguilla" msgstr "Anguilla" #: lang.pm:215 #, c-format msgid "Albania" msgstr "Albanija" #: lang.pm:216 #, c-format msgid "Armenia" msgstr "Armenija" #: lang.pm:217 #, c-format msgid "Netherlands Antilles" msgstr "Nizozemski Antili" #: lang.pm:218 #, c-format msgid "Angola" msgstr "Angola" #: lang.pm:219 #, c-format msgid "Antarctica" msgstr "Antarktik" #: lang.pm:220 timezone.pm:260 #, c-format msgid "Argentina" msgstr "Argentina" #: lang.pm:221 #, c-format msgid "American Samoa" msgstr "Američka Samoa" #: lang.pm:222 mirror.pm:11 timezone.pm:218 #, c-format msgid "Austria" msgstr "Austrija" #: lang.pm:223 mirror.pm:10 timezone.pm:256 #, c-format msgid "Australia" msgstr "Australija" #: lang.pm:224 #, c-format msgid "Aruba" msgstr "Aruba" #: lang.pm:225 #, c-format msgid "Azerbaijan" msgstr "Azerbejdžan" #: lang.pm:226 #, c-format msgid "Bosnia and Herzegovina" msgstr "Bosna i Hercegovina" #: lang.pm:227 #, c-format msgid "Barbados" msgstr "Barbados" #: lang.pm:228 timezone.pm:200 #, c-format msgid "Bangladesh" msgstr "Bangladeš" #: lang.pm:229 mirror.pm:12 timezone.pm:220 #, c-format msgid "Belgium" msgstr "Belgija" #: lang.pm:230 #, c-format msgid "Burkina Faso" msgstr "Burkina Faso" #: lang.pm:231 timezone.pm:221 #, c-format msgid "Bulgaria" msgstr "Bugarska" #: lang.pm:232 #, c-format msgid "Bahrain" msgstr "Bahrein" #: lang.pm:233 #, c-format msgid "Burundi" msgstr "Burundi" #: lang.pm:234 #, c-format msgid "Benin" msgstr "Benin" #: lang.pm:235 #, c-format msgid "Bermuda" msgstr "Bermuda" #: lang.pm:236 #, c-format msgid "Brunei Darussalam" msgstr "Bruneji" #: lang.pm:237 #, c-format msgid "Bolivia" msgstr "Bolivija" #: lang.pm:238 mirror.pm:13 timezone.pm:261 #, c-format msgid "Brazil" msgstr "Brazil" #: lang.pm:239 #, c-format msgid "Bahamas" msgstr "Bahami" #: lang.pm:240 #, c-format msgid "Bhutan" msgstr "Butan" #: lang.pm:241 #, c-format msgid "Bouvet Island" msgstr "Ostrvo Bouvet" #: lang.pm:242 #, c-format msgid "Botswana" msgstr "Bocvana" #: lang.pm:243 timezone.pm:219 #, c-format msgid "Belarus" msgstr "Bjelorusija" #: lang.pm:244 #, c-format msgid "Belize" msgstr "Belize" #: lang.pm:245 mirror.pm:14 timezone.pm:250 #, c-format msgid "Canada" msgstr "Kanada" #: lang.pm:246 #, c-format msgid "Cocos (Keeling) Islands" msgstr "Kokosova ostrva" #: lang.pm:247 #, c-format msgid "Congo (Kinshasa)" msgstr "Kongo (Kinshasa)" #: lang.pm:248 #, c-format msgid "Central African Republic" msgstr "Centralnoafrička Republika" #: lang.pm:249 #, c-format msgid "Congo (Brazzaville)" msgstr "Kongo (Brazzaville)" #: lang.pm:250 mirror.pm:38 timezone.pm:244 #, c-format msgid "Switzerland" msgstr "Švicarska" #: lang.pm:251 #, c-format msgid "Cote d'Ivoire" msgstr "Obala Slonovače" #: lang.pm:252 #, c-format msgid "Cook Islands" msgstr "Cook ostrva" #: lang.pm:253 timezone.pm:262 #, c-format msgid "Chile" msgstr "Čile" #: lang.pm:254 #, c-format msgid "Cameroon" msgstr "Kamerun" #: lang.pm:255 timezone.pm:201 #, c-format msgid "China" msgstr "Kina" #: lang.pm:256 #, c-format msgid "Colombia" msgstr "Kolumbija" #: lang.pm:257 mirror.pm:15 #, c-format msgid "Costa Rica" msgstr "Kostarika" #: lang.pm:258 #, c-format msgid "Serbia & Montenegro" msgstr "Srbija i Crna Gora" #: lang.pm:259 #, c-format msgid "Cuba" msgstr "Kuba" #: lang.pm:260 #, c-format msgid "Cape Verde" msgstr "Zelenortska ostrva" #: lang.pm:261 #, c-format msgid "Christmas Island" msgstr "Uskršnje ostrvo" #: lang.pm:262 #, c-format msgid "Cyprus" msgstr "Kipar" #: lang.pm:263 mirror.pm:16 timezone.pm:222 #, c-format msgid "Czech Republic" msgstr "Češka" #: lang.pm:264 mirror.pm:21 timezone.pm:227 #, c-format msgid "Germany" msgstr "Njemačka" #: lang.pm:265 #, c-format msgid "Djibouti" msgstr "Džibuti" #: lang.pm:266 mirror.pm:17 timezone.pm:223 #, c-format msgid "Denmark" msgstr "Danska" #: lang.pm:267 #, c-format msgid "Dominica" msgstr "Dominika" #: lang.pm:268 #, c-format msgid "Dominican Republic" msgstr "Dominikanska Republika" #: lang.pm:269 #, c-format msgid "Algeria" msgstr "Alžir" #: lang.pm:270 #, c-format msgid "Ecuador" msgstr "Ekvador" #: lang.pm:271 mirror.pm:18 timezone.pm:224 #, c-format msgid "Estonia" msgstr "Estonija" #: lang.pm:272 #, c-format msgid "Egypt" msgstr "Egipat" #: lang.pm:273 #, c-format msgid "Western Sahara" msgstr "Zapadna Sahara" #: lang.pm:274 #, c-format msgid "Eritrea" msgstr "Eritreja" #: lang.pm:275 mirror.pm:36 timezone.pm:242 #, c-format msgid "Spain" msgstr "Španija" #: lang.pm:276 #, c-format msgid "Ethiopia" msgstr "Etiopija" #: lang.pm:277 mirror.pm:19 timezone.pm:225 #, c-format msgid "Finland" msgstr "Finska" #: lang.pm:278 #, c-format msgid "Fiji" msgstr "Fidži" #: lang.pm:279 #, c-format msgid "Falkland Islands (Malvinas)" msgstr "Falklandsko otočje" #: lang.pm:280 #, c-format msgid "Micronesia" msgstr "Micronesia" #: lang.pm:281 #, c-format msgid "Faroe Islands" msgstr "Farska ostrva" #: lang.pm:282 mirror.pm:20 timezone.pm:226 #, c-format msgid "France" msgstr "Francuska" #: lang.pm:283 #, c-format msgid "Gabon" msgstr "Gabon" #: lang.pm:284 timezone.pm:246 #, c-format msgid "United Kingdom" msgstr "Ujedinjeno Kraljevstvo" #: lang.pm:285 #, c-format msgid "Grenada" msgstr "Grenada" #: lang.pm:286 #, c-format msgid "Georgia" msgstr "Gruzija" #: lang.pm:287 #, c-format msgid "French Guiana" msgstr "Francuska Gvajana" #: lang.pm:288 #, c-format msgid "Ghana" msgstr "Gana" #: lang.pm:289 #, c-format msgid "Gibraltar" msgstr "Gibraltar" #: lang.pm:290 #, c-format msgid "Greenland" msgstr "Grenland" #: lang.pm:291 #, c-format msgid "Gambia" msgstr "Gambija" #: lang.pm:292 #, c-format msgid "Guinea" msgstr "Gvineja" #: lang.pm:293 #, c-format msgid "Guadeloupe" msgstr "Gvadalupe" #: lang.pm:294 #, c-format msgid "Equatorial Guinea" msgstr "Ekvatorijalna Gvineja" #: lang.pm:295 mirror.pm:22 timezone.pm:228 #, c-format msgid "Greece" msgstr "Grčka" #: lang.pm:296 #, c-format msgid "South Georgia and the South Sandwich Islands" msgstr "South Georgia i South Sandwich ostrva" #: lang.pm:297 timezone.pm:251 #, c-format msgid "Guatemala" msgstr "Gvatemala" #: lang.pm:298 #, c-format msgid "Guam" msgstr "Guam" #: lang.pm:299 #, c-format msgid "Guinea-Bissau" msgstr "Gvineja Bisau" #: lang.pm:300 #, c-format msgid "Guyana" msgstr "Gvajana" #: lang.pm:301 #, c-format msgid "Hong Kong SAR (China)" msgstr "Kina (Hong Kong)" #: lang.pm:302 #, c-format msgid "Heard and McDonald Islands" msgstr "Heard ostrvo i McDonaldova ostrva" #: lang.pm:303 #, c-format msgid "Honduras" msgstr "Honduras" #: lang.pm:304 #, c-format msgid "Croatia" msgstr "Hrvatska" #: lang.pm:305 #, c-format msgid "Haiti" msgstr "Haiti" #: lang.pm:306 mirror.pm:23 timezone.pm:229 #, c-format msgid "Hungary" msgstr "Mađarska" #: lang.pm:307 timezone.pm:204 #, c-format msgid "Indonesia" msgstr "Indonezija" #: lang.pm:308 mirror.pm:24 timezone.pm:230 #, c-format msgid "Ireland" msgstr "Irska" #: lang.pm:309 mirror.pm:25 timezone.pm:206 #, c-format msgid "Israel" msgstr "Izrael" #: lang.pm:310 timezone.pm:203 #, c-format msgid "India" msgstr "Indija" #: lang.pm:311 #, c-format msgid "British Indian Ocean Territory" msgstr "Britansko-Indijska morska teritorija" #: lang.pm:312 #, c-format msgid "Iraq" msgstr "Irak" #: lang.pm:313 timezone.pm:205 #, c-format msgid "Iran" msgstr "Iran" #: lang.pm:314 #, c-format msgid "Iceland" msgstr "Island" #: lang.pm:315 mirror.pm:26 timezone.pm:231 #, c-format msgid "Italy" msgstr "Italija" #: lang.pm:316 #, c-format msgid "Jamaica" msgstr "Jamajka" #: lang.pm:317 #, c-format msgid "Jordan" msgstr "Jordan" #: lang.pm:318 mirror.pm:27 timezone.pm:207 #, c-format msgid "Japan" msgstr "Japan" #: lang.pm:319 #, c-format msgid "Kenya" msgstr "Kenija" #: lang.pm:320 #, c-format msgid "Kyrgyzstan" msgstr "Kirgistan" #: lang.pm:321 #, c-format msgid "Cambodia" msgstr "Kambođa" #: lang.pm:322 #, c-format msgid "Kiribati" msgstr "Kiribati" #: lang.pm:323 #, c-format msgid "Comoros" msgstr "Komori" #: lang.pm:324 #, c-format msgid "Saint Kitts and Nevis" msgstr "Saint Kitts and Nevis" #: lang.pm:325 #, c-format msgid "Korea (North)" msgstr "Koreja (Sjeverna)" #: lang.pm:326 timezone.pm:208 #, c-format msgid "Korea" msgstr "Koreja" #: lang.pm:327 #, c-format msgid "Kuwait" msgstr "Kuvajt" #: lang.pm:328 #, c-format msgid "Cayman Islands" msgstr "Kajmanska ostrva" #: lang.pm:329 #, c-format msgid "Kazakhstan" msgstr "Kazahstan" #: lang.pm:330 #, c-format msgid "Laos" msgstr "Laos" #: lang.pm:331 #, c-format msgid "Lebanon" msgstr "Liban" #: lang.pm:332 #, c-format msgid "Saint Lucia" msgstr "Saint Lucia" #: lang.pm:333 #, c-format msgid "Liechtenstein" msgstr "Lihtenštajn" #: lang.pm:334 #, c-format msgid "Sri Lanka" msgstr "Šri Lanka" #: lang.pm:335 #, c-format msgid "Liberia" msgstr "Liberija" #: lang.pm:336 #, c-format msgid "Lesotho" msgstr "Lesoto" #: lang.pm:337 timezone.pm:232 #, c-format msgid "Lithuania" msgstr "Litvanija" #: lang.pm:338 timezone.pm:233 #, c-format msgid "Luxembourg" msgstr "Luksemburg" #: lang.pm:339 #, c-format msgid "Latvia" msgstr "Latvija" #: lang.pm:340 #, c-format msgid "Libya" msgstr "Libija" #: lang.pm:341 #, c-format msgid "Morocco" msgstr "Maroko" #: lang.pm:342 #, c-format msgid "Monaco" msgstr "Monako" #: lang.pm:343 #, c-format msgid "Moldova" msgstr "Moldova" #: lang.pm:344 #, c-format msgid "Madagascar" msgstr "Madagaskar" #: lang.pm:345 #, c-format msgid "Marshall Islands" msgstr "Maršalova ostrva" #: lang.pm:346 #, c-format msgid "Macedonia" msgstr "Makedonija" #: lang.pm:347 #, c-format msgid "Mali" msgstr "Mali" #: lang.pm:348 #, c-format msgid "Myanmar" msgstr "Myanmar" #: lang.pm:349 #, c-format msgid "Mongolia" msgstr "Mongolija" #: lang.pm:350 #, c-format msgid "Northern Mariana Islands" msgstr "Sjeverna Marijanska ostrva" #: lang.pm:351 #, c-format msgid "Martinique" msgstr "Martinik" #: lang.pm:352 #, c-format msgid "Mauritania" msgstr "Mauritanija" #: lang.pm:353 #, c-format msgid "Montserrat" msgstr "Montserrat" #: lang.pm:354 #, c-format msgid "Malta" msgstr "Malta" #: lang.pm:355 #, c-format msgid "Mauritius" msgstr "Mauricijus" #: lang.pm:356 #, c-format msgid "Maldives" msgstr "Maldivi" #: lang.pm:357 #, c-format msgid "Malawi" msgstr "Malavi" #: lang.pm:358 timezone.pm:252 #, c-format msgid "Mexico" msgstr "Meksiko" #: lang.pm:359 timezone.pm:209 #, c-format msgid "Malaysia" msgstr "Malezija" #: lang.pm:360 #, c-format msgid "Mozambique" msgstr "Mozambik" #: lang.pm:361 #, c-format msgid "Namibia" msgstr "Namibija" #: lang.pm:362 #, c-format msgid "New Caledonia" msgstr "Nova Kaledonija" #: lang.pm:363 #, c-format msgid "Niger" msgstr "Niger" #: lang.pm:364 #, c-format msgid "Norfolk Island" msgstr "Norfolk ostrvo" #: lang.pm:365 #, c-format msgid "Nigeria" msgstr "Nigerija" #: lang.pm:366 #, c-format msgid "Nicaragua" msgstr "Nikaragva" #: lang.pm:367 mirror.pm:28 timezone.pm:234 #, c-format msgid "Netherlands" msgstr "Nizozemska" #: lang.pm:368 mirror.pm:30 timezone.pm:235 #, c-format msgid "Norway" msgstr "Norveška" #: lang.pm:369 #, c-format msgid "Nepal" msgstr "Nepal" #: lang.pm:370 #, c-format msgid "Nauru" msgstr "Nauru" #: lang.pm:371 #, c-format msgid "Niue" msgstr "Niue" #: lang.pm:372 mirror.pm:29 timezone.pm:257 #, c-format msgid "New Zealand" msgstr "Novi Zeland" #: lang.pm:373 #, c-format msgid "Oman" msgstr "Oman" #: lang.pm:374 #, c-format msgid "Panama" msgstr "Panama" #: lang.pm:375 #, c-format msgid "Peru" msgstr "Peru" #: lang.pm:376 #, c-format msgid "French Polynesia" msgstr "Francuska Polinezija" #: lang.pm:377 #, c-format msgid "Papua New Guinea" msgstr "Papua Nova Gvineja" #: lang.pm:378 timezone.pm:210 #, c-format msgid "Philippines" msgstr "Filipini" #: lang.pm:379 #, c-format msgid "Pakistan" msgstr "Pakistan" #: lang.pm:380 mirror.pm:31 timezone.pm:236 #, c-format msgid "Poland" msgstr "Poljska" #: lang.pm:381 #, c-format msgid "Saint Pierre and Miquelon" msgstr "Saint Pierre and Miquelon" #: lang.pm:382 #, c-format msgid "Pitcairn" msgstr "Pitcairn" #: lang.pm:383 #, c-format msgid "Puerto Rico" msgstr "Portoriko" #: lang.pm:384 #, c-format msgid "Palestine" msgstr "Palestina" #: lang.pm:385 mirror.pm:32 timezone.pm:237 #, c-format msgid "Portugal" msgstr "Portugal" #: lang.pm:386 #, c-format msgid "Paraguay" msgstr "Paragvaj" #: lang.pm:387 #, c-format msgid "Palau" msgstr "Palau" #: lang.pm:388 #, c-format msgid "Qatar" msgstr "Katar" #: lang.pm:389 #, c-format msgid "Reunion" msgstr "Reunion" #: lang.pm:390 timezone.pm:238 #, c-format msgid "Romania" msgstr "Rumunija" #: lang.pm:391 mirror.pm:33 #, c-format msgid "Russia" msgstr "Rusija" #: lang.pm:392 #, c-format msgid "Rwanda" msgstr "Ruanda" #: lang.pm:393 #, c-format msgid "Saudi Arabia" msgstr "Saudijska Arabija" #: lang.pm:394 #, c-format msgid "Solomon Islands" msgstr "Solomonska ostrva" #: lang.pm:395 #, c-format msgid "Seychelles" msgstr "Sejšelska ostrva" #: lang.pm:396 #, c-format msgid "Sudan" msgstr "Sudan" #: lang.pm:397 mirror.pm:37 timezone.pm:243 #, c-format msgid "Sweden" msgstr "Švedska" #: lang.pm:398 timezone.pm:211 #, c-format msgid "Singapore" msgstr "Singapur" #: lang.pm:399 #, c-format msgid "Saint Helena" msgstr "Saint Helena" #: lang.pm:400 timezone.pm:241 #, c-format msgid "Slovenia" msgstr "Slovenija" #: lang.pm:401 #, c-format msgid "Svalbard and Jan Mayen Islands" msgstr "Svalbard and Jan Mayen ostrva" #: lang.pm:402 mirror.pm:34 timezone.pm:240 #, c-format msgid "Slovakia" msgstr "Slovačka" #: lang.pm:403 #, c-format msgid "Sierra Leone" msgstr "Sierra Leone" #: lang.pm:404 #, c-format msgid "San Marino" msgstr "San Marino" #: lang.pm:405 #, c-format msgid "Senegal" msgstr "Senegal" #: lang.pm:406 #, c-format msgid "Somalia" msgstr "Somalija" #: lang.pm:407 #, c-format msgid "Suriname" msgstr "Surinam" #: lang.pm:408 #, c-format msgid "Sao Tome and Principe" msgstr "Sao Tome i Principe" #: lang.pm:409 #, c-format msgid "El Salvador" msgstr "El Salvador" #: lang.pm:410 #, c-format msgid "Syria" msgstr "Sirija" #: lang.pm:411 #, c-format msgid "Swaziland" msgstr "Svazilend" #: lang.pm:412 #, c-format msgid "Turks and Caicos Islands" msgstr "Turks i Caicos ostrva" #: lang.pm:413 #, c-format msgid "Chad" msgstr "Čad" #: lang.pm:414 #, c-format msgid "French Southern Territories" msgstr "Francuske Južne Teritorije" #: lang.pm:415 #, c-format msgid "Togo" msgstr "Togo" #: lang.pm:416 mirror.pm:40 timezone.pm:213 #, c-format msgid "Thailand" msgstr "Tajland" #: lang.pm:417 #, c-format msgid "Tajikistan" msgstr "Tadžikistan" #: lang.pm:418 #, c-format msgid "Tokelau" msgstr "Tokelau" #: lang.pm:419 #, c-format msgid "East Timor" msgstr "Istočni Timor" #: lang.pm:420 #, c-format msgid "Turkmenistan" msgstr "Turkmenistan" #: lang.pm:421 #, c-format msgid "Tunisia" msgstr "Tunis" #: lang.pm:422 #, c-format msgid "Tonga" msgstr "Tonga" #: lang.pm:423 timezone.pm:214 #, c-format msgid "Turkey" msgstr "Turska" #: lang.pm:424 #, c-format msgid "Trinidad and Tobago" msgstr "Trinidad i Tobago" #: lang.pm:425 #, c-format msgid "Tuvalu" msgstr "Tuvalu" #: lang.pm:426 mirror.pm:39 timezone.pm:212 #, c-format msgid "Taiwan" msgstr "Tajvan" #: lang.pm:427 timezone.pm:197 #, c-format msgid "Tanzania" msgstr "Tanzanija" #: lang.pm:428 timezone.pm:245 #, c-format msgid "Ukraine" msgstr "Ukrajina" #: lang.pm:429 #, c-format msgid "Uganda" msgstr "Uganda" #: lang.pm:430 #, c-format msgid "United States Minor Outlying Islands" msgstr "United States Minor Outlying Islands" #: lang.pm:431 mirror.pm:41 timezone.pm:253 #, c-format msgid "United States" msgstr "SAD" #: lang.pm:432 #, c-format msgid "Uruguay" msgstr "Urugvaj" #: lang.pm:433 #, c-format msgid "Uzbekistan" msgstr "Uzbekistan" #: lang.pm:434 #, c-format msgid "Vatican" msgstr "Vatikan" #: lang.pm:435 #, c-format msgid "Saint Vincent and the Grenadines" msgstr "Saint Vincent and the Grenadines" #: lang.pm:436 #, c-format msgid "Venezuela" msgstr "Venecuela" #: lang.pm:437 #, c-format msgid "Virgin Islands (British)" msgstr "Djevičanska ostrva (Britanska)" #: lang.pm:438 #, c-format msgid "Virgin Islands (U.S.)" msgstr "Djevičanska ostrva (SAD)" #: lang.pm:439 #, c-format msgid "Vietnam" msgstr "Vijetnam" #: lang.pm:440 #, c-format msgid "Vanuatu" msgstr "Vanuatu" #: lang.pm:441 #, c-format msgid "Wallis and Futuna" msgstr "Wallis i Futuna" #: lang.pm:442 #, c-format msgid "Samoa" msgstr "Samoa" #: lang.pm:443 #, c-format msgid "Yemen" msgstr "Jemen" #: lang.pm:444 #, c-format msgid "Mayotte" msgstr "Mayotte" #: lang.pm:445 mirror.pm:35 timezone.pm:196 #, c-format msgid "South Africa" msgstr "Južna Afrika" #: lang.pm:446 #, c-format msgid "Zambia" msgstr "Zambija" #: lang.pm:447 #, c-format msgid "Zimbabwe" msgstr "Zimbabve" #: lang.pm:1193 #, c-format msgid "Welcome to %s" msgstr "Dobro došli u %s" #: lvm.pm:84 #, c-format msgid "Moving used physical extents to other physical volumes failed" msgstr "Premještanje fizičkih extents na druge fizičke volumene nije uspjela" #: lvm.pm:137 #, c-format msgid "Physical volume %s is still in use" msgstr "Fizički volumen %s se još uvijek koristi" #: lvm.pm:147 #, c-format msgid "Remove the logical volumes first\n" msgstr "Najprije ukloni logičke volumene\n" #: lvm.pm:180 #, c-format msgid "The bootloader can't handle /boot on multiple physical volumes" msgstr "Bootloader ne može rukovati /boot particijom na više fizičkih volumena" #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: messages.pm:10 #, c-format msgid "" "Introduction\n" "\n" "The operating system and the different components available in the Mandriva " "Linux distribution \n" "shall be called the \"Software Products\" hereafter. The Software Products " "include, but are not \n" "restricted to, the set of programs, methods, rules and documentation related " "to the operating \n" "system and the different components of the Mandriva Linux distribution.\n" "\n" "\n" "1. License Agreement\n" "\n" "Please read this document carefully. This document is a license agreement " "between you and \n" "Mandriva S.A. which applies to the Software Products.\n" "By installing, duplicating or using the Software Products in any manner, you " "explicitly \n" "accept and fully agree to conform to the terms and conditions of this " "License. \n" "If you disagree with any portion of the License, you are not allowed to " "install, duplicate or use \n" "the Software Products. \n" "Any attempt to install, duplicate or use the Software Products in a manner " "which does not comply \n" "with the terms and conditions of this License is void and will terminate " "your rights under this \n" "License. Upon termination of the License, you must immediately destroy all " "copies of the \n" "Software Products.\n" "\n" "\n" "2. Limited Warranty\n" "\n" "The Software Products and attached documentation are provided \"as is\", " "with no warranty, to the \n" "extent permitted by law.\n" "Mandriva S.A. will, in no circumstances and to the extent permitted by law, " "be liable for any special,\n" "incidental, direct or indirect damages whatsoever (including without " "limitation damages for loss of \n" "business, interruption of business, financial loss, legal fees and penalties " "resulting from a court \n" "judgment, or any other consequential loss) arising out of the use or " "inability to use the Software \n" "Products, even if Mandriva S.A. has been advised of the possibility or " "occurrence of such \n" "damages.\n" "\n" "LIMITED LIABILITY LINKED TO POSSESSING OR USING PROHIBITED SOFTWARE IN SOME " "COUNTRIES\n" "\n" "To the extent permitted by law, Mandriva S.A. or its distributors will, in " "no circumstances, be \n" "liable for any special, incidental, direct or indirect damages whatsoever " "(including without \n" "limitation damages for loss of business, interruption of business, financial " "loss, legal fees \n" "and penalties resulting from a court judgment, or any other consequential " "loss) arising out \n" "of the possession and use of software components or arising out of " "downloading software components \n" "from one of Mandriva Linux sites which are prohibited or restricted in some " "countries by local laws.\n" "This limited liability applies to, but is not restricted to, the strong " "cryptography components \n" "included in the Software Products.\n" "\n" "\n" "3. The GPL License and Related Licenses\n" "\n" "The Software Products consist of components created by different persons or " "entities. Most \n" "of these components are governed under the terms and conditions of the GNU " "General Public \n" "Licence, hereafter called \"GPL\", or of similar licenses. Most of these " "licenses allow you to use, \n" "duplicate, adapt or redistribute the components which they cover. Please " "read carefully the terms \n" "and conditions of the license agreement for each component before using any " "component. Any question \n" "on a component license should be addressed to the component author and not " "to Mandriva.\n" "The programs developed by Mandriva S.A. are governed by the GPL License. " "Documentation written \n" "by Mandriva S.A. is governed by a specific license. Please refer to the " "documentation for \n" "further details.\n" "\n" "\n" "4. Intellectual Property Rights\n" "\n" "All rights to the components of the Software Products belong to their " "respective authors and are \n" "protected by intellectual property and copyright laws applicable to software " "programs.\n" "Mandriva S.A. reserves its rights to modify or adapt the Software Products, " "as a whole or in \n" "parts, by all means and for all purposes.\n" "\"Mandriva\", \"Mandriva Linux\" and associated logos are trademarks of " "Mandriva S.A. \n" "\n" "\n" "5. Governing Laws \n" "\n" "If any portion of this agreement is held void, illegal or inapplicable by a " "court judgment, this \n" "portion is excluded from this contract. You remain bound by the other " "applicable sections of the \n" "agreement.\n" "The terms and conditions of this License are governed by the Laws of " "France.\n" "All disputes on the terms of this license will preferably be settled out of " "court. As a last \n" "resort, the dispute will be referred to the appropriate Courts of Law of " "Paris - France.\n" "For any question on this document, please contact Mandriva S.A. \n" msgstr "" "Budući da prevodilac ovog teksta nije u mogućnosti da osigura pravnu\n" "provjeru prevedenog teksta, tekst licence je ostavljen u originalnom\n" "(engleskom) obliku.\n" "\n" "\n" "Introduction\n" "\n" "The operating system and the different components available in the Mandriva " "Linux distribution \n" "shall be called the \"Software Products\" hereafter. The Software Products " "include, but are not \n" "restricted to, the set of programs, methods, rules and documentation related " "to the operating \n" "system and the different components of the Mandriva Linux distribution.\n" "\n" "\n" "1. License Agreement\n" "\n" "Please read this document carefully. This document is a license agreement " "between you and \n" "Mandriva S.A. which applies to the Software Products.\n" "By installing, duplicating or using the Software Products in any manner, you " "explicitly \n" "accept and fully agree to conform to the terms and conditions of this " "License. \n" "If you disagree with any portion of the License, you are not allowed to " "install, duplicate or use \n" "the Software Products. \n" "Any attempt to install, duplicate or use the Software Products in a manner " "which does not comply \n" "with the terms and conditions of this License is void and will terminate " "your rights under this \n" "License. Upon termination of the License, you must immediately destroy all " "copies of the \n" "Software Products.\n" "\n" "\n" "2. Limited Warranty\n" "\n" "The Software Products and attached documentation are provided \"as is\", " "with no warranty, to the \n" "extent permitted by law.\n" "Mandriva S.A. will, in no circumstances and to the extent permitted by law, " "be liable for any special,\n" "incidental, direct or indirect damages whatsoever (including without " "limitation damages for loss of \n" "business, interruption of business, financial loss, legal fees and penalties " "resulting from a court \n" "judgment, or any other consequential loss) arising out of the use or " "inability to use the Software \n" "Products, even if Mandriva S.A. has been advised of the possibility or " "occurrence of such \n" "damages.\n" "\n" "LIMITED LIABILITY LINKED TO POSSESSING OR USING PROHIBITED SOFTWARE IN SOME " "COUNTRIES\n" "\n" "To the extent permitted by law, Mandriva S.A. or its distributors will, in " "no circumstances, be \n" "liable for any special, incidental, direct or indirect damages whatsoever " "(including without \n" "limitation damages for loss of business, interruption of business, financial " "loss, legal fees \n" "and penalties resulting from a court judgment, or any other consequential " "loss) arising out \n" "of the possession and use of software components or arising out of " "downloading software components \n" "from one of Mandriva Linux sites which are prohibited or restricted in some " "countries by local laws.\n" "This limited liability applies to, but is not restricted to, the strong " "cryptography components \n" "included in the Software Products.\n" "\n" "\n" "3. The GPL License and Related Licenses\n" "\n" "The Software Products consist of components created by different persons or " "entities. Most \n" "of these components are governed under the terms and conditions of the GNU " "General Public \n" "Licence, hereafter called \"GPL\", or of similar licenses. Most of these " "licenses allow you to use, \n" "duplicate, adapt or redistribute the components which they cover. Please " "read carefully the terms \n" "and conditions of the license agreement for each component before using any " "component. Any question \n" "on a component license should be addressed to the component author and not " "to Mandriva.\n" "The programs developed by Mandriva S.A. are governed by the GPL License. " "Documentation written \n" "by Mandriva S.A. is governed by a specific license. Please refer to the " "documentation for \n" "further details.\n" "\n" "\n" "4. Intellectual Property Rights\n" "\n" "All rights to the components of the Software Products belong to their " "respective authors and are \n" "protected by intellectual property and copyright laws applicable to software " "programs.\n" "Mandriva S.A. reserves its rights to modify or adapt the Software Products, " "as a whole or in \n" "parts, by all means and for all purposes.\n" "\"Mandriva\", \"Mandriva Linux\" and associated logos are trademarks of " "Mandriva S.A. \n" "\n" "\n" "5. Governing Laws \n" "\n" "If any portion of this agreement is held void, illegal or inapplicable by a " "court judgment, this \n" "portion is excluded from this contract. You remain bound by the other " "applicable sections of the \n" "agreement.\n" "The terms and conditions of this License are governed by the Laws of " "France.\n" "All disputes on the terms of this license will preferably be settled out of " "court. As a last \n" "resort, the dispute will be referred to the appropriate Courts of Law of " "Paris - France.\n" "For any question on this document, please contact Mandriva S.A. \n" #: messages.pm:90 #, c-format msgid "" "Warning: Free Software may not necessarily be patent free, and some Free\n" "Software included may be covered by patents in your country. For example, " "the\n" "MP3 decoders included may require a licence for further usage (see\n" "http://www.mp3licensing.com for more details). If you are unsure if a " "patent\n" "may be applicable to you, check your local laws." msgstr "" "Upozorenje: Slobodan softver ne mora obavezno biti slobodan od patenata\n" "i neki elementi slobodnog softvera mogu biti obuhvaćeni patentima u vašoj\n" "zemlji. Npr. MP3 dekoderi koji su uključeni možda zahtijevaju licencu za " "daljnje\n" "korištenje (za više detalja, pogledajte http://www.mp3licensing.com). Ako " "niste\n" "sigurni da li se patent odnosi na vas, provjerite vaše lokalne zakone." #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: messages.pm:98 #, c-format msgid "" "\n" "Warning\n" "\n" "Please read carefully the terms below. If you disagree with any\n" "portion, you are not allowed to install the next CD media. Press 'Refuse' \n" "to continue the installation without using these media.\n" "\n" "\n" "Some components contained in the next CD media are not governed\n" "by the GPL License or similar agreements. Each such component is then\n" "governed by the terms and conditions of its own specific license. \n" "Please read carefully and comply with such specific licenses before \n" "you use or redistribute the said components. \n" "Such licenses will in general prevent the transfer, duplication \n" "(except for backup purposes), redistribution, reverse engineering, \n" "de-assembly, de-compilation or modification of the component. \n" "Any breach of agreement will immediately terminate your rights under \n" "the specific license. Unless the specific license terms grant you such\n" "rights, you usually cannot install the programs on more than one\n" "system, or adapt it to be used on a network. In doubt, please contact \n" "directly the distributor or editor of the component. \n" "Transfer to third parties or copying of such components including the \n" "documentation is usually forbidden.\n" "\n" "\n" "All rights to the components of the next CD media belong to their \n" "respective authors and are protected by intellectual property and \n" "copyright laws applicable to software programs.\n" msgstr "" "\n" "Pažnja\n" "\n" "Molim pročitajte pažljivo uslove licence ispod. Ako se ne slažete sa bilo\n" "kojim dijelom, nije vam dozvoljeno da instalirate naredne CD medije. " "Pritisnite\n" "dugme 'Ne prihvatam' da biste nastavili sa instalacijom bez korištenja ovih " "medija.\n" "Budući da prevodilac ovog teksta nije u mogućnosti da osigura pravnu\n" "provjeru prevedenog teksta, tekst je ostavljen u originalnom (engleskom)\n" "obliku.\n" "\n" "Some components contained in the next CD media are not governed\n" "by the GPL License or similar agreements. Each such component is then\n" "governed by the terms and conditions of its own specific license. \n" "Please read carefully and comply with such specific licenses before \n" "you use or redistribute the said components. \n" "Such licenses will in general prevent the transfer, duplication \n" "(except for backup purposes), redistribution, reverse engineering, \n" "de-assembly, de-compilation or modification of the component. \n" "Any breach of agreement will immediately terminate your rights under \n" "the specific license. Unless the specific license terms grant you such\n" "rights, you usually cannot install the programs on more than one\n" "system, or adapt it to be used on a network. In doubt, please contact \n" "directly the distributor or editor of the component. \n" "Transfer to third parties or copying of such components including the \n" "documentation is usually forbidden.\n" "\n" "\n" "All rights to the components of the next CD media belong to their \n" "respective authors and are protected by intellectual property and \n" "copyright laws applicable to software programs.\n" #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: messages.pm:131 #, c-format msgid "" "Congratulations, installation is complete.\n" "Remove the boot media and press Enter to reboot.\n" "\n" "\n" "For information on fixes which are available for this release of Mandriva " "Linux,\n" "consult the Errata available from:\n" "\n" "\n" "%s\n" "\n" "\n" "Information on configuring your system is available in the post\n" "install chapter of the Official Mandriva Linux User's Guide." msgstr "" "Čestitamo, instalacija je završena.\n" "Uklonite boot medij i pritisnite Enter da restartujete računar.\n" "\n" "\n" "Za informacije o ispravkama koje su dostupne za ovu verziju Mandriva " "Linuxa,\n" "pogledajte Errata koja je dostupna na:\n" "\n" "\n" "%s\n" "\n" "\n" "Informacije o podešavanju vašeg sistema su dostupne u poglavlju\n" "\"Nakon instalacije\" vašeg zvaničnog Mandriva Linux Priručnika za upotrebu." #: modules/interactive.pm:19 #, c-format msgid "This driver has no configuration parameter!" msgstr "Ovaj drajver nema podesivih parametara!" #: modules/interactive.pm:22 #, c-format msgid "Module configuration" msgstr "Podešavanje modula" #: modules/interactive.pm:22 #, c-format msgid "You can configure each parameter of the module here." msgstr "Ovdje možete podesiti svaki parametar modula." #: modules/interactive.pm:63 #, c-format msgid "Found %s interfaces" msgstr "Pronađeno %s interfejsa" #: modules/interactive.pm:64 #, c-format msgid "Do you have another one?" msgstr "Imate li neki drugi?" #: modules/interactive.pm:65 #, c-format msgid "Do you have any %s interfaces?" msgstr "Imate li ijedan %s interfejs?" #: modules/interactive.pm:71 #, c-format msgid "See hardware info" msgstr "Pogledaj hardware info" #: modules/interactive.pm:82 #, c-format msgid "Installing driver for USB controller" msgstr "Instaliram drajver za USB kontroler" #: modules/interactive.pm:83 #, c-format msgid "Installing driver for firewire controller %s" msgstr "Instaliram drajver za firewire kontroler %s" #: modules/interactive.pm:84 #, c-format msgid "Installing driver for hard drive controller %s" msgstr "Instaliram drajver za hard disk kontroler %s" #: modules/interactive.pm:85 #, c-format msgid "Installing driver for ethernet controller %s" msgstr "Instaliram drajver za Ethernet kontroler %s" #. -PO: the first %s is the card type (scsi, network, sound,...) #. -PO: the second is the vendor+model name #: modules/interactive.pm:96 #, c-format msgid "Installing driver for %s card %s" msgstr "Instaliram drajver za %s karticu %s" #: modules/interactive.pm:110 #, c-format msgid "" "You may now provide options to module %s.\n" "Note that any address should be entered with the prefix 0x like '0x123'" msgstr "" "Sada možete navesti opcije za modul %s.\n" "Obratite pažnju da adrese trebate unositi sa prefiksom 0x kao npr. '0x123'" #: modules/interactive.pm:116 #, c-format msgid "" "You may now provide options to module %s.\n" "Options are in format ``name=value name2=value2 ...''.\n" "For instance, ``io=0x300 irq=7''" msgstr "" "Sada možete navesti opcije za modul %s. Opcije su u formatu ``ime=vrijednost " "ime2=vrijednost2 ...''.\n" "Na primjer, ``io=0x300 irq=7''" #: modules/interactive.pm:118 #, c-format msgid "Module options:" msgstr "Opcije modula" #. -PO: the %s is the driver type (scsi, network, sound,...) #: modules/interactive.pm:131 #, c-format msgid "Which %s driver should I try?" msgstr "Koji %s drajver ću pokušati?" #: modules/interactive.pm:140 #, c-format msgid "" "In some cases, the %s driver needs to have extra information to work\n" "properly, although it normally works fine without them. Would you like to " "specify\n" "extra options for it or allow the driver to probe your machine for the\n" "information it needs? Occasionally, probing will hang a computer, but it " "should\n" "not cause any damage." msgstr "" "U nekim slučajevima, %s drajver treba imati dodatne informacije za\n" "ispravan rad, iako on obično radi dobro i bez njih. Želite li navesti neke\n" "ekstra opcije za njega ili dozvoliti drajveru da ispita vaš računar za sve\n" "informacije koje mu trebaju? Povremeno, ispitivanje može zaglaviti računar,\n" "ali ne bi trebalo izazvati nikakvu štetu." #: modules/interactive.pm:144 #, c-format msgid "Autoprobe" msgstr "Ispitivanje" #: modules/interactive.pm:144 #, c-format msgid "Specify options" msgstr "Navedi opcije" #: modules/interactive.pm:156 #, c-format msgid "" "Loading module %s failed.\n" "Do you want to try again with other parameters?" msgstr "" "Učitavanje modula %s nije uspjelo.\n" "Želite li probati opet sa drugim parametrima?" #: partition_table.pm:401 #, c-format msgid "mount failed: " msgstr "montiranje nije uspjelo: " #: partition_table.pm:510 #, c-format msgid "Extended partition not supported on this platform" msgstr "Extended particije nisu podržane na ovoj platformi" #: partition_table.pm:528 #, c-format msgid "" "You have a hole in your partition table but I can not use it.\n" "The only solution is to move your primary partitions to have the hole next " "to the extended partitions." msgstr "" "Imate rupu u vašoj tabeli particija, ali je ja ne mogu upotrijebiti.\n" "Jedino rješenje je da pomjerite vaše primarne particije, kako bi se rupa " "našla pored extended particija" #: partition_table/raw.pm:279 #, c-format msgid "" "Something bad is happening on your drive. \n" "A test to check the integrity of data has failed. \n" "It means writing anything on the disk will end up with random, corrupted " "data." msgstr "" "Nešto loše se dešava na vašem disku. \n" "Test integriteta podataka nije uspio. \n" "To znači će da pisanje bilo čega na disk rezultirati smećem." #: raid.pm:42 #, c-format msgid "Can not add a partition to _formatted_ RAID %s" msgstr "Ne mogu dodati particiju na _formatiran_ RAID %s" #: raid.pm:157 #, c-format msgid "Not enough partitions for RAID level %d\n" msgstr "Nema dovoljno particija za RAID nivo %d\n" #: scanner.pm:95 #, c-format msgid "Could not create directory /usr/share/sane/firmware!" msgstr "Ne mogu napraviti direktorij /usr/share/sane/firmware!" #: scanner.pm:106 #, c-format msgid "Could not create link /usr/share/sane/%s!" msgstr "Ne mogu napraviti link /usr/share/sane/%s!" #: scanner.pm:113 #, c-format msgid "Could not copy firmware file %s to /usr/share/sane/firmware!" msgstr "Ne mogu kopirati firmware datoteku %s u /usr/share/sane/firmware!" #: scanner.pm:120 #, c-format msgid "Could not set permissions of firmware file %s!" msgstr "Ne mogu postaviti privilegije firmware datoteke %s!" #: scanner.pm:199 #, c-format msgid "Scannerdrake" msgstr "Scannerdrake" #: scanner.pm:200 #, c-format msgid "Could not install the packages needed to share your scanner(s)." msgstr "Ne mogu instalirati pakete koji su potrebni za dijeljenje skenera." #: scanner.pm:201 #, c-format msgid "Your scanner(s) will not be available for non-root users." msgstr "Vaši skeneri neće biti dostupni neprivilegovanim korisnicima." #: security/help.pm:11 #, fuzzy, c-format msgid "Accept bogus IPv4 error messages." msgstr "Prihvati neispravne IPv4 poruke o grešci" #: security/help.pm:13 #, fuzzy, c-format msgid "Accept broadcasted icmp echo." msgstr "Prihvati broadcast ICMP eho" #: security/help.pm:15 #, fuzzy, c-format msgid "Accept icmp echo." msgstr "Prihvati ICMP eho" #: security/help.pm:17 #, fuzzy, c-format msgid "Allow autologin." msgstr "Dozvoli/zabrani autologin." #. -PO: here "ALL" is a value in a pull-down menu; translate it the same as "ALL" is #: security/help.pm:21 #, fuzzy, c-format msgid "" "If set to \"ALL\", /etc/issue and /etc/issue.net are allowed to exist.\n" "\n" "If set to \"None\", no issues are allowed.\n" "\n" "Else only /etc/issue is allowed." msgstr "" "Ako je postavljeno \"SVE\", dozvoljeno je postojanje /etc/issue i /etc/issue." "net.\n" "\n" "Ako je postavljeno na NIŠTA, datoteke nisu dozvoljene.\n" "\n" "Inače, dozvoljen je samo /etc/issue." #: security/help.pm:27 #, fuzzy, c-format msgid "Allow reboot by the console user." msgstr "Dozvoli/zabrani restartovanje računara iz konzole." #: security/help.pm:29 #, fuzzy, c-format msgid "Allow remote root login." msgstr "Dozvoli prijavu kao root putem mreže" #: security/help.pm:31 #, fuzzy, c-format msgid "Allow direct root login." msgstr "Dozvoli/zabrani direktan root login." #: security/help.pm:33 #, fuzzy, c-format msgid "" "Allow the list of users on the system on display managers (kdm and gdm)." msgstr "" "Dozvoli/zabrani listu korisnika sistema na display manager-ima (kdm i gdm)." #: security/help.pm:35 #, fuzzy, c-format msgid "" "Allow to export display when\n" "passing from the root account to the other users.\n" "\n" "See pam_xauth(8) for more details.'" msgstr "" "Dozvoli/zabrani izvoz ekrana kada\n" "proslijeđujete sa root računa drugim korisnicima.\n" "\n" "Pogledajte pam_xauth(8) za više detalja.'" #: security/help.pm:40 #, fuzzy, c-format msgid "" "Allow X connections:\n" "\n" "- \"All\" (all connections are allowed),\n" "\n" "- \"Local\" (only connection from local machine),\n" "\n" "- \"None\" (no connection)." msgstr "" "Dozvoli/zabrani X konekcije:\n" "\n" "- SVE (sve konekcije su dozvoljene),\n" "\n" "- LOKAL (samo konekcije sa lokalne mašine),\n" "\n" "- NIŠTA (nisu dozvoljene konekcije)." #: security/help.pm:48 #, c-format msgid "" "The argument specifies if clients are authorized to connect\n" "to the X server from the network on the tcp port 6000 or not." msgstr "" "Ovaj argument određuje da li su klijenti autorizovani za\n" "povezivanje na X server putem mreže na TCP portu 6000." #. -PO: here "ALL", "Local" and "None" are values in a pull-down menu; translate them the same as they're #: security/help.pm:53 #, fuzzy, c-format msgid "" "Authorize:\n" "\n" "- all services controlled by tcp_wrappers (see hosts.deny(5) man page) if " "set to \"ALL\",\n" "\n" "- only local ones if set to \"Local\"\n" "\n" "- none if set to \"None\".\n" "\n" "To authorize the services you need, use /etc/hosts.allow (see hosts.allow" "(5))." msgstr "" "Autorizuj:\n" "\n" "- sve servise koje kontrolišu tcp_wrapperi (vidi hosts.deny(5) man " "stranicu), ako je podešeno na \"SVE\",\n" "\n" "- samo lokalne servise, ako je podešeno na \"LOKAL\",\n" "\n" "- nijedan, ako je podešeno na \"NIŠTA\".\n" "\n" "Da biste autorizovali servise koji su vam potrebni, koristite /etc/hosts." "allow (vidi hosts.allow(5))." #: security/help.pm:63 #, c-format msgid "" "If SERVER_LEVEL (or SECURE_LEVEL if absent)\n" "is greater than 3 in /etc/security/msec/security.conf, creates the\n" "symlink /etc/security/msec/server to point to\n" "/etc/security/msec/server.<SERVER_LEVEL>.\n" "\n" "The /etc/security/msec/server is used by chkconfig --add to decide to\n" "add a service if it is present in the file during the installation of\n" "packages." msgstr "" "Ako je SERVER_LEVEL (ili, ako ovaj ne postoji, SECURE_LEVEL)\n" "veći od 3 u /etc/security/msec/security.conf, pravi simbolički link\n" "/etc/security/msec/server koji pokazuje na /etc/security/msec/server." "<SERVER_LEVEL>.\n" "/etc/security/msec/server koristi chkconfig --add da odluči da li\n" "da doda servis ako je prisutan u datoteci tokom instalacije paketa." #: security/help.pm:72 #, fuzzy, c-format msgid "" "Enable crontab and at for users.\n" "\n" "Put allowed users in /etc/cron.allow and /etc/at.allow (see man at(1)\n" "and crontab(1))." msgstr "" "Uključi/isključi crontab i at za korisnike.\n" "\n" "Stavi korisnicima kojima je to dozvoljeno u /etc/cron.allow i /etc/at.allow " "(vidi man stranice at(1) i crontab(1))." #: security/help.pm:77 #, fuzzy, c-format msgid "Enable syslog reports to console 12" msgstr "Uključi/isključi syslog izvještaje na konzoli 12" #: security/help.pm:79 #, fuzzy, c-format msgid "" "Enable name resolution spoofing protection. If\n" "\"%s\" is true, also reports to syslog." msgstr "" "Uključi/isključi zaštitu od lažiranja rezolviranja imena. Ako\n" "je aktivna opcija \"%s\", takođe prijavljuje u syslog." #: security/help.pm:80 #, c-format msgid "Security Alerts:" msgstr "Sigurnosna upozorenja:" #: security/help.pm:82 #, fuzzy, c-format msgid "Enable IP spoofing protection." msgstr "Uključi zaštitu od lažiranja IP adrese" #: security/help.pm:84 #, fuzzy, c-format msgid "Enable libsafe if libsafe is found on the system." msgstr "Uključi libsafe ako libsafe postoji na vašem sistemu" #: security/help.pm:86 #, fuzzy, c-format msgid "Enable the logging of IPv4 strange packets." msgstr "Uključi logovanje čudnih IPv4 paketa" #: security/help.pm:88 #, fuzzy, c-format msgid "Enable msec hourly security check." msgstr "Uključi msec provjeru svakog sata" #: security/help.pm:90 #, c-format msgid "" "Enable su only from members of the wheel group. If set to no, allows su from " "any user." msgstr "" "Omogući su samo članovima wheel grupe. Ako je opcija isključena, su je " "dozvoljen svim korisnicima." #: security/help.pm:92 #, c-format msgid "Use password to authenticate users." msgstr "Koristi šifru za provjeru autentičnosti korisnika." #: security/help.pm:94 #, fuzzy, c-format msgid "Activate ethernet cards promiscuity check." msgstr "Aktiviraj/isključi provjeru promiskuitetnog moda Ethernet kartica." #: security/help.pm:96 #, fuzzy, c-format msgid "Activate daily security check." msgstr "Aktiviraj/isključi dnevnu sigurnosnu provjeru." #: security/help.pm:98 #, fuzzy, c-format msgid "Enable sulogin(8) in single user level." msgstr "Uključi/isključi sulogin(8) na jednokorisničkom nivou." #: security/help.pm:100 #, c-format msgid "Add the name as an exception to the handling of password aging by msec." msgstr "Dodaj ime kao izuzetak od upravljanja starenjem šifara putem msec-a." #: security/help.pm:102 #, c-format msgid "Set password aging to \"max\" days and delay to change to \"inactive\"." msgstr "" "Podesi starenje šifre na \"max\" dana, a pauzu izmjene na \"inactive\"." #: security/help.pm:104 #, c-format msgid "Set the password history length to prevent password reuse." msgstr "" "Podesi dužinu historije šifara kojom se sprječava ponovno korištenje šifara." #: security/help.pm:106 #, c-format msgid "" "Set the password minimum length and minimum number of digit and minimum " "number of capitalized letters." msgstr "" "Podesite minimalnu dužinu šifre, minimalan broj cifara i minimalan broj " "velikih slova." #: security/help.pm:108 #, fuzzy, c-format msgid "Set the root's file mode creation mask." msgstr "Postavlja root-ov umask." #: security/help.pm:109 #, c-format msgid "if set to yes, check open ports." msgstr "ako je postavljeno na da, provjerava otvorene portove." #: security/help.pm:110 #, c-format msgid "" "if set to yes, check for:\n" "\n" "- empty passwords,\n" "\n" "- no password in /etc/shadow\n" "\n" "- for users with the 0 id other than root." msgstr "" "ako je postavljeno na da, provjerava:\n" "\n" "- prazne šifre,\n" "\n" "- nedostatak šifre u /etc/shadow\n" "\n" "- korisnike sa id-om 0 koji nisu root." #: security/help.pm:117 #, c-format msgid "if set to yes, check permissions of files in the users' home." msgstr "" "ako je postavljeno na da, provjerava privilegije datoteka u korisničkom home-" "u." #: security/help.pm:118 #, c-format msgid "if set to yes, check if the network devices are in promiscuous mode." msgstr "" "ako je postavljeno na da, provjerava da li su mrežni uređaji u " "promiskuitetnom modu." #: security/help.pm:119 #, c-format msgid "if set to yes, run the daily security checks." msgstr "ako je postavljeno na da, izvršava dnevne sigurnosne provjere." #: security/help.pm:120 #, c-format msgid "if set to yes, check additions/removals of sgid files." msgstr "ako je postavljeno na da, provjerava dodavanje/brisanje sgid datoteka." #: security/help.pm:121 #, c-format msgid "if set to yes, check empty password in /etc/shadow." msgstr "ako je postavljeno na da, provjerava prazne šifre u /etc/shadow." #: security/help.pm:122 #, c-format msgid "if set to yes, verify checksum of the suid/sgid files." msgstr "ako je postavljeno na da, provjerava checksum suid/sgid datoteka." #: security/help.pm:123 #, c-format msgid "if set to yes, check additions/removals of suid root files." msgstr "" "ako je postavljeno na da, provjerava dodavanje/brisanje suid root datoteka." #: security/help.pm:124 #, c-format msgid "if set to yes, report unowned files." msgstr "ako je postavljeno na da, prijavljuje datoteke bez vlasnika." #: security/help.pm:125 #, c-format msgid "if set to yes, check files/directories writable by everybody." msgstr "" "ako je postavljeno na da, provjerava datoteke/direktorije koje svako može " "pisati." #: security/help.pm:126 #, c-format msgid "if set to yes, run chkrootkit checks." msgstr "ako je postavljeno na da, izvršava chkrootkit provjere." #: security/help.pm:127 #, c-format msgid "" "if set, send the mail report to this email address else send it to root." msgstr "" "ako je uključeno, šalje mail izvještaj na ovu email adresu, inače ga šalje " "root-u." #: security/help.pm:128 #, c-format msgid "if set to yes, report check result by mail." msgstr "ako je postavljeno na da, prijavljuje rezultate provjere mailom." #: security/help.pm:129 #, c-format msgid "Do not send mails if there's nothing to warn about" msgstr "Ne šalji mailove ako nema razloga za upozorenja" #: security/help.pm:130 #, c-format msgid "if set to yes, run some checks against the rpm database." msgstr "ako je postavljeno na da, izvršava neke provjere rpm baze podataka." #: security/help.pm:131 #, c-format msgid "if set to yes, report check result to syslog." msgstr "ako je postavljeno na da, prijavljuje rezultate provjere u syslog." #: security/help.pm:132 #, c-format msgid "if set to yes, reports check result to tty." msgstr "ako je postavljeno na da, prijavljuje rezultate provjere na tty." #: security/help.pm:134 #, c-format msgid "Set shell commands history size. A value of -1 means unlimited." msgstr "" "Podesi veličinu historije naredbi shella. Vrijednost -1 znači neograničeno." #: security/help.pm:136 #, c-format msgid "Set the shell timeout. A value of zero means no timeout." msgstr "" "Postavlja istek vremena shella. Vrijednost nula znači bez isteka vremena." #: security/help.pm:136 #, c-format msgid "Timeout unit is second" msgstr "Jedinica za vrijeme je sekunda" #: security/help.pm:138 #, fuzzy, c-format msgid "Set the user's file mode creation mask." msgstr "Podešava korisnički umask." #: security/l10n.pm:11 #, c-format msgid "Accept bogus IPv4 error messages" msgstr "Prihvati neispravne IPv4 poruke o grešci" #: security/l10n.pm:12 #, c-format msgid "Accept broadcasted icmp echo" msgstr "Prihvati broadcast ICMP eho" #: security/l10n.pm:13 #, c-format msgid "Accept icmp echo" msgstr "Prihvati ICMP eho" #: security/l10n.pm:15 #, c-format msgid "/etc/issue* exist" msgstr "/etc/issue* postoji" #: security/l10n.pm:16 #, c-format msgid "Reboot by the console user" msgstr "Restartovanje za korisnika na konzoli" #: security/l10n.pm:17 #, c-format msgid "Allow remote root login" msgstr "Dozvoli prijavu kao root putem mreže" #: security/l10n.pm:18 #, c-format msgid "Direct root login" msgstr "Direktna root prijava" #: security/l10n.pm:19 #, c-format msgid "List users on display managers (kdm and gdm)" msgstr "Izlistaj korisnike na display manager-ima (kdm i gdm)" #: security/l10n.pm:20 #, c-format msgid "Export display when passing from root to the other users" msgstr "Izvoz ekrana kada prosljeđujete sa roota na druge korisnike" #: security/l10n.pm:21 #, c-format msgid "Allow X Window connections" msgstr "Dozvoli X Window konekcije" #: security/l10n.pm:22 #, c-format msgid "Authorize TCP connections to X Window" msgstr "Autorizuj TCP konekcije na X Window" #: security/l10n.pm:23 #, c-format msgid "Authorize all services controlled by tcp_wrappers" msgstr "Autorizuj sve servise koje kontrolišu tcp_wrapperi" #: security/l10n.pm:24 #, c-format msgid "Chkconfig obey msec rules" msgstr "Chkconfig poštuje msec pravila" #: security/l10n.pm:25 #, c-format msgid "Enable \"crontab\" and \"at\" for users" msgstr "Omogući korisnicima da koriste \"crontab\" i \"at\"" #: security/l10n.pm:26 #, c-format msgid "Syslog reports to console 12" msgstr "Syslog izvještaji na konzoli 12" #: security/l10n.pm:27 #, c-format msgid "Name resolution spoofing protection" msgstr "Zaštita od lažiranja rezolucije imena" #: security/l10n.pm:28 #, c-format msgid "Enable IP spoofing protection" msgstr "Uključi zaštitu od lažiranja IP adrese" #: security/l10n.pm:29 #, c-format msgid "Enable libsafe if libsafe is found on the system" msgstr "Uključi libsafe ako libsafe postoji na vašem sistemu" #: security/l10n.pm:30 #, c-format msgid "Enable the logging of IPv4 strange packets" msgstr "Uključi logovanje čudnih IPv4 paketa" #: security/l10n.pm:31 #, c-format msgid "Enable msec hourly security check" msgstr "Uključi msec provjeru svakog sata" #: security/l10n.pm:32 #, c-format msgid "Enable su only from the wheel group members" msgstr "Omogući su samo za članove wheel grupe" #: security/l10n.pm:33 #, c-format msgid "Use password to authenticate users" msgstr "Koristi šifru da provjeriš autentičnost korisnika" #: security/l10n.pm:34 #, c-format msgid "Ethernet cards promiscuity check" msgstr "Provjera promiskuitetnog režima Ethernet kartica" #: security/l10n.pm:35 #, c-format msgid "Daily security check" msgstr "Dnevna sigurnosna provjera" #: security/l10n.pm:36 #, c-format msgid "Sulogin(8) in single user level" msgstr "Sulogin(8) na jednokorisničkom nivou" #: security/l10n.pm:37 #, c-format msgid "No password aging for" msgstr "Bez starenja šifre za" #: security/l10n.pm:38 #, c-format msgid "Set password expiration and account inactivation delays" msgstr "Izaberite istek šifre i pauze prije deaktivacije računa" #: security/l10n.pm:39 #, c-format msgid "Password history length" msgstr "Dužina historije šifara" #: security/l10n.pm:40 #, c-format msgid "Password minimum length and number of digits and upcase letters" msgstr "Minimalna dužina šifre i broj cifara i velikih slova" #: security/l10n.pm:41 #, c-format msgid "Root umask" msgstr "Root umask" #: security/l10n.pm:42 #, c-format msgid "Shell history size" msgstr "Veličina historije shell-a" #: security/l10n.pm:43 #, c-format msgid "Shell timeout" msgstr "Istek vremena shella" #: security/l10n.pm:44 #, c-format msgid "User umask" msgstr "Korisnički umask" #: security/l10n.pm:45 #, c-format msgid "Check open ports" msgstr "Provjeri otvorene portove" #: security/l10n.pm:46 #, c-format msgid "Check for unsecured accounts" msgstr "Provjeri neupotrijebljene račune" #: security/l10n.pm:47 #, c-format msgid "Check permissions of files in the users' home" msgstr "Provjeri privilegije datoteka u korisničkom home-u." #: security/l10n.pm:48 #, c-format msgid "Check if the network devices are in promiscuous mode" msgstr "Provjeri da li su mrežni uređaji u promiskuitetnom modu" #: security/l10n.pm:49 #, c-format msgid "Run the daily security checks" msgstr "Izvršavaj dnevne sigurnosne provjere" #: security/l10n.pm:50 #, c-format msgid "Check additions/removals of sgid files" msgstr "Provjeri dodavanje/brisanje sgid datoteka" #: security/l10n.pm:51 #, c-format msgid "Check empty password in /etc/shadow" msgstr "Provjeri prazne šifre u /etc/shadow" #: security/l10n.pm:52 #, c-format msgid "Verify checksum of the suid/sgid files" msgstr "Provjeri checksum suid/sgid datoteka" #: security/l10n.pm:53 #, c-format msgid "Check additions/removals of suid root files" msgstr "Provjeri dodavanje/brisanje suid root datoteka" #: security/l10n.pm:54 #, c-format msgid "Report unowned files" msgstr "Prijavi datoteke bez vlasnika" #: security/l10n.pm:55 #, c-format msgid "Check files/directories writable by everybody" msgstr "Provjeri datoteke/direktorije koje svako može pisati" #: security/l10n.pm:56 #, c-format msgid "Run chkrootkit checks" msgstr "Izvrši chkrootkit provjere" #: security/l10n.pm:57 #, c-format msgid "Do not send empty mail reports" msgstr "Ne šalji prazne e-mail izvještaje" #: security/l10n.pm:58 #, c-format msgid "If set, send the mail report to this email address else send it to root" msgstr "" "Ako je uključeno, šalje e-mail izvještaj na ovu email adresu, inače ga šalje " "root-u" #: security/l10n.pm:59 #, c-format msgid "Report check result by mail" msgstr "Prijavi rezultate provjere mailom" #: security/l10n.pm:60 #, c-format msgid "Run some checks against the rpm database" msgstr "Izvrši neke provjere rpm baze podataka" #: security/l10n.pm:61 #, c-format msgid "Report check result to syslog" msgstr "Prijavi rezultate provjere u syslog" #: security/l10n.pm:62 #, c-format msgid "Reports check result to tty" msgstr "Prijavi rezultate provjere na tty" #: security/level.pm:10 #, c-format msgid "Welcome To Crackers" msgstr "Dobrodošli u Crackers" #: security/level.pm:11 #, c-format msgid "Poor" msgstr "Loš" #: security/level.pm:12 #, c-format msgid "Standard" msgstr "Standard" #: security/level.pm:13 #, c-format msgid "High" msgstr "Visok" #: security/level.pm:14 #, c-format msgid "Higher" msgstr "Viši" #: security/level.pm:15 #, c-format msgid "Paranoid" msgstr "Paranoičan" #: security/level.pm:41 #, c-format msgid "" "This level is to be used with care. It makes your system more easy to use,\n" "but very sensitive. It must not be used for a machine connected to others\n" "or to the Internet. There is no password access." msgstr "" "Ovaj nivo treba koristiti pažljivo. On čini vaš sistem lakšim za upotrebu,\n" "ali vrlo osjetljivim: ne smije biti korišten za računar koji je spojen na\n" "druge ili na Internet. Nema pristupa šifrom." #: security/level.pm:44 #, c-format msgid "" "Passwords are now enabled, but use as a networked computer is still not " "recommended." msgstr "" "Šifra je sada aktivirana, ali korištenje za mrežni računar još nije " "preporučeno." #: security/level.pm:45 #, c-format msgid "" "This is the standard security recommended for a computer that will be used " "to connect to the Internet as a client." msgstr "" "Ovo je standardna sigurnost koja je preporučena za računar koji će biti " "korišten za spajanje na Internet kao klijent." #: security/level.pm:46 #, c-format msgid "" "There are already some restrictions, and more automatic checks are run every " "night." msgstr "" "Već postoje određena ograničenja, a više automatskih provjera se pokreće " "svaku noć." #: security/level.pm:47 #, c-format msgid "" "With this security level, the use of this system as a server becomes " "possible.\n" "The security is now high enough to use the system as a server which can " "accept\n" "connections from many clients. Note: if your machine is only a client on the " "Internet, you should choose a lower level." msgstr "" "Sa ovim sigurnosnim nivoom, postaje moguće koristiti ovaj sistem kao " "server.\n" "Sigurnost je sada dovoljno visoka za upotrebu sistema kao servera koji " "prima\n" "konekcije sa mnogo klijenata. Napomena: ako je vaš računar samo klijent na " "Internetu, možda je bolje da izaberete niži nivo." #: security/level.pm:50 #, c-format msgid "" "This is similar to the previous level, but the system is entirely closed and " "security features are at their maximum." msgstr "" "Baziran na prethodnom nivou, ali sada je sistem potpuno zatvoren.\n" "Sigurnosne osobine na maksimumu." #: security/level.pm:55 #, c-format msgid "Security" msgstr "Sigurnost" #: security/level.pm:55 #, c-format msgid "DrakSec Basic Options" msgstr "DrakSec osnovne opcije" #: security/level.pm:57 #, c-format msgid "Please choose the desired security level" msgstr "Molim izaberite nivo sigurnosti" #: security/level.pm:61 #, c-format msgid "Security level" msgstr "Nivo sigurnosti" #: security/level.pm:63 #, c-format msgid "Use libsafe for servers" msgstr "Koristi libsafe za servere" #: security/level.pm:64 #, c-format msgid "" "A library which defends against buffer overflow and format string attacks." msgstr "" "Biblioteka koja brani od napada \"buffer overflow\" i \"format string\"." #: security/level.pm:65 #, c-format msgid "Security Administrator (login or email)" msgstr "Sigurnosni administrator (login ili email)" #: services.pm:19 #, c-format msgid "Launch the ALSA (Advanced Linux Sound Architecture) sound system" msgstr "Pokreće ALSA zvučni sistem (Advanced Linux Sound Architecture)" #: services.pm:20 #, c-format msgid "Anacron is a periodic command scheduler." msgstr "Anacron je periodični izvršitelj programa." #: services.pm:21 #, c-format msgid "" "apmd is used for monitoring battery status and logging it via syslog.\n" "It can also be used for shutting down the machine when the battery is low." msgstr "" "Apmd se koristi za nadgledanje statusa baterija i njegovo bilježenje preko\n" "sysloga. Takođe se može koristiti za gašenje računara kada su baterije pri " "kraju." #: services.pm:23 #, c-format msgid "" "Runs commands scheduled by the at command at the time specified when\n" "at was run, and runs batch commands when the load average is low enough." msgstr "" "Izvršava naredbe zakazane putem at komande u zadato vrijeme,\n" "te pokreće programe u pozadini kada je računar neopterećen." #: services.pm:25 #, c-format msgid "" "cron is a standard UNIX program that runs user-specified programs\n" "at periodic scheduled times. vixie cron adds a number of features to the " "basic\n" "UNIX cron, including better security and more powerful configuration options." msgstr "" "Cron je standardan UNIX program koji periodično pokreće programe koje\n" "zada korisnik. Vixie cron dodaje veći broj mogućnosti osnovnom\n" "UNIX cronu, uključujući bolju sigurnost i moćnije opcije za podešavanje." #: services.pm:28 #, c-format msgid "" "Common UNIX Printing System (CUPS) is an advanced printer spooling system" msgstr "" #: services.pm:29 #, c-format msgid "Launches the graphical display manager" msgstr "" #: services.pm:30 #, c-format msgid "" "FAM is a file monitoring daemon. It is used to get reports when files " "change.\n" "It is used by GNOME and KDE" msgstr "" "FAM je demon koji nadzire datoteke. Pomoću njega programi znaju ako se neka " "datoteka promijeni.\n" "FAM koriste GNOME i KDE grafičke okoline." #: services.pm:32 #, c-format msgid "" "GPM adds mouse support to text-based Linux applications such the\n" "Midnight Commander. It also allows mouse-based console cut-and-paste " "operations,\n" "and includes support for pop-up menus on the console." msgstr "" "GPM dodaje podršku za miša tekstualnim programima kao što je\n" "Midnight Commander. On također omogućuje konzolne isjeci/umetni operacije\n" "pomoću miša i uključuje podršku za pop-up menije na konzoli." #: services.pm:35 #, c-format msgid "HAL is a daemon that collects and maintains information about hardware" msgstr "" #: services.pm:36 #, c-format msgid "" "HardDrake runs a hardware probe, and optionally configures\n" "new/changed hardware." msgstr "" "HardDrake ispituje hardware i eventualno podešava novi ili\n" "izmjenjeni hardware." #: services.pm:38 #, c-format msgid "" "Apache is a World Wide Web server. It is used to serve HTML files and CGI." msgstr "" "Apache je World Wide Web server. Koristi se za posluživanje HTML\n" "datoteka i CGI skripti." #: services.pm:39 #, c-format msgid "" "The internet superserver daemon (commonly called inetd) starts a\n" "variety of other internet services as needed. It is responsible for " "starting\n" "many services, including telnet, ftp, rsh, and rlogin. Disabling inetd " "disables\n" "all of the services it is responsible for." msgstr "" "Internet superserver (obično nazvan inetd) pokreće razne druge Internet\n" "servise po potrebi. Odgovoran je za pokretanje mnogih servisa, kao što su\n" "telnet, ftp, rsh i rlogin. Isključivanje inetd-a isključuje sve servise za " "koje je\n" "on nadležan." #: services.pm:43 #, c-format msgid "" "Launch packet filtering for Linux kernel 2.2 series, to set\n" "up a firewall to protect your machine from network attacks." msgstr "" "Pokreće filtriranje paketa za Linux kernele serije 2.2 kako\n" "bi se aktivirao firewall i zaštitio vaš računar od mrežnih napada." #: services.pm:45 #, c-format msgid "" "This package loads the selected keyboard map as set in\n" "/etc/sysconfig/keyboard. This can be selected using the kbdconfig utility.\n" "You should leave this enabled for most machines." msgstr "" "Ovaj paket učitava izabranu mapu tastature kao što je podešeno u\n" "/etc/sysconfig/keyboard, što se može podesiti korištenjem kbdconfig\n" "programa. Ovaj servis biste trebali ostaviti uključenim na većini računara." #: services.pm:48 #, c-format msgid "" "Automatic regeneration of kernel header in /boot for\n" "/usr/include/linux/{autoconf,version}.h" msgstr "" "Automatsko regenerisanje kernel zaglavlja u /boot za\n" "/usr/include/linux/{autoconf,version}.h" #: services.pm:50 #, c-format msgid "Automatic detection and configuration of hardware at boot." msgstr "Automatsko prepoznavanje i podešavanje hardware-a tokom boota." #: services.pm:51 #, c-format msgid "" "Linuxconf will sometimes arrange to perform various tasks\n" "at boot-time to maintain the system configuration." msgstr "" "Linuxconf će ponekad obaviti raznolike zadatke tokom boota\n" "kako bi se održala sistemska konfiguracija." #: services.pm:53 #, c-format msgid "" "lpd is the print daemon required for lpr to work properly. It is\n" "basically a server that arbitrates print jobs to printer(s)." msgstr "" "lpd je demon za štampu koji je potreban da bi lpr sistem štampe radio " "ispravno.\n" "To je u osnovi server koji dodjeljuje zadatke štampe štampaču/ima." #: services.pm:55 #, c-format msgid "" "Linux Virtual Server, used to build a high-performance and highly\n" "available server." msgstr "" "Linux Virtuelni Server, koristi se za izgradnju servera visokih performansi\n" "i dostupnosti (clusteri servera)." #: services.pm:57 #, c-format msgid "" "DBUS is a daemon which broadcasts notifications of system events and other " "messages" msgstr "" #: services.pm:58 #, c-format msgid "" "named (BIND) is a Domain Name Server (DNS) that is used to resolve host " "names to IP addresses." msgstr "" "named (BIND) je Domain Name Server (DNS) koji se koristi za određivanje IP " "adrese iz imena računara." #: services.pm:59 #, c-format msgid "" "Mounts and unmounts all Network File System (NFS), SMB (Lan\n" "Manager/Windows), and NCP (NetWare) mount points." msgstr "" "Montira i demontira sve Network File System (NFS), SMB (Lan\n" "Manager/Windows) i NCP (NetWare) tačke montiranja." #: services.pm:61 #, c-format msgid "" "Activates/Deactivates all network interfaces configured to start\n" "at boot time." msgstr "" "Aktivira/deaktivira sve mrežne interfejse koji su konfigurisani\n" "za pokretanje tokom boota." #: services.pm:63 #, c-format msgid "" "NFS is a popular protocol for file sharing across TCP/IP networks.\n" "This service provides NFS server functionality, which is configured via the\n" "/etc/exports file." msgstr "" "NFS je popularan protokol za dijeljenje datoteka preko TCP/IP mreža.\n" "Ovaj servis omogućuje funkcionalnost NFS servera, kojeg podešavate\n" "putem /etc/exports datoteke." #: services.pm:66 #, c-format msgid "" "NFS is a popular protocol for file sharing across TCP/IP\n" "networks. This service provides NFS file locking functionality." msgstr "" "NFS je popularan protokol za dijeljenje datoteka preko TCP/IP mreža.\n" "Ovaj servis omogućuje NFS funkcionalnost zaključavanja datoteka." #: services.pm:68 #, c-format msgid "Synchronizes system time using the Network Time Protocol (NTP)" msgstr "" #: services.pm:69 #, c-format msgid "" "Automatically switch on numlock key locker under console\n" "and Xorg at boot." msgstr "" "Automatski uključuje numlock pod konzolom i grafičkim okruženjem\n" "prilikom boota." #: services.pm:71 #, c-format msgid "Support the OKI 4w and compatible winprinters." msgstr "Podrška za OKI 4w i kompatibilne 'winprinter' štampače." #: services.pm:72 #, c-format msgid "" "PCMCIA support is usually to support things like ethernet and\n" "modems in laptops. It will not get started unless configured so it is safe " "to have\n" "it installed on machines that do not need it." msgstr "" "PCMCIA podrška služi za ispravan rad uređaja kao što su mrežne\n" "kartice i modemi, priključenih na PCMCIA port (obično na laptopima).\n" "Neće se pokrenuti sve dok nije ispravno konfigurisan, tako da je\n" "sigurno imati ga instaliranog i na računarima kojima nije potreban." #: services.pm:75 #, c-format msgid "" "The portmapper manages RPC connections, which are used by\n" "protocols such as NFS and NIS. The portmap server must be running on " "machines\n" "which act as servers for protocols which make use of the RPC mechanism." msgstr "" "Portmapper upravlja RPC konekcijama, koje koriste protokoli kao što\n" "su NFS i NIS. Portmap server mora raditi na računarima koje služe kao\n" "serveri za protokole koji koriste RPC mehanizam." #: services.pm:78 #, c-format msgid "" "Postfix is a Mail Transport Agent, which is the program that moves mail from " "one machine to another." msgstr "" "Postfix je Mail Transport Agent, tj. program koji šalje poštu sa jednog " "računara na drugi." #: services.pm:79 #, c-format msgid "" "Saves and restores system entropy pool for higher quality random\n" "number generation." msgstr "" "Snima i učitava sistemski spremnik entropije za veću kvalitetu\n" "generisanja slučajnih brojeva." #: services.pm:81 #, c-format msgid "" "Assign raw devices to block devices (such as hard drive\n" "partitions), for the use of applications such as Oracle or DVD players" msgstr "" "Dodjeljuje raw uređaje blokovskim uređajima (kao što su\n" "particije hard diska), za potrebu programa kao što je Oracle ili DVD playeri" #: services.pm:83 #, c-format msgid "" "The routed daemon allows for automatic IP router table updated via\n" "the RIP protocol. While RIP is widely used on small networks, more complex\n" "routing protocols are needed for complex networks." msgstr "" "Routed demon omogućuje da se automatska IP tabela rutiranja podešava\n" "preko RIP protokola. Mada se RIP često koristi na malim mrežama, " "kompleksniji\n" "protokoli rutiranja su potrebni za složene mreže." #: services.pm:86 #, c-format msgid "" "The rstat protocol allows users on a network to retrieve\n" "performance metrics for any machine on that network." msgstr "" "Rstat protokol omogućava korisnicima na mreži da dobave\n" "mjeru performansi za svaki računar na toj mreži" #: services.pm:88 #, c-format msgid "" "The rusers protocol allows users on a network to identify who is\n" "logged in on other responding machines." msgstr "" "Rusers protokol omogućava korisnicima na mreži da identificiraju\n" "ko je prijavljen na ostalim računarima." #: services.pm:90 #, c-format msgid "" "The rwho protocol lets remote users get a list of all of the users\n" "logged into a machine running the rwho daemon (similar to finger)." msgstr "" "Rwho protokol omogućava udaljenim korisnicima da dobiju listu svih\n" "korisnika prijavljenih na računar na kojem radi rwho demon (slično fingeru)." #: services.pm:92 #, c-format msgid "" "SANE (Scanner Access Now Easy) enables to access scanners, video cameras, ..." msgstr "" #: services.pm:93 #, c-format msgid "" "The SMB/CIFS protocol enables to share access to files & printers and also " "integrates with a Windows Server domain" msgstr "" #: services.pm:94 #, c-format msgid "Launch the sound system on your machine" msgstr "Pokreće zvučni sistem na vašem računaru" #: services.pm:95 #, c-format msgid "" "Secure Shell is a network protocol that allows data to be exchanged over a " "secure channel between two computers" msgstr "" #: services.pm:96 #, c-format msgid "" "Syslog is the facility by which many daemons use to log messages\n" "to various system log files. It is a good idea to always run syslog." msgstr "" "Syslog je sistem pomoću kojeg mnogi servisi zapisuju poruke\n" "u razne sistemske dnevnike (logove). Pametno je uvijek imati pokrenuti " "syslog." #: services.pm:98 #, c-format msgid "Load the drivers for your usb devices." msgstr "Pokreće drajvere za vaše USB uređaje." #: services.pm:99 #, c-format msgid "Starts the X Font Server." msgstr "" #: services.pm:100 #, c-format msgid "Starts other deamons on demand." msgstr "" #: services.pm:123 #, c-format msgid "Printing" msgstr "Štampa" #: services.pm:124 #, c-format msgid "Internet" msgstr "Internet" #: services.pm:127 #, c-format msgid "File sharing" msgstr "Dijeljenje datoteka" #: services.pm:129 #, c-format msgid "System" msgstr "Sistem" #: services.pm:134 #, c-format msgid "Remote Administration" msgstr "Udaljena administracija" #: services.pm:142 #, c-format msgid "Database Server" msgstr "Server baze podataka" #: services.pm:153 services.pm:189 #, c-format msgid "Services" msgstr "Servisi" #: services.pm:153 #, c-format msgid "Choose which services should be automatically started at boot time" msgstr "Izaberite koji servisi se trebaju pokretati automatski prilikom boota" #: services.pm:171 #, c-format msgid "Services: %d activated for %d registered" msgstr "Servisi: %d aktiviran za %d registrovan" #: services.pm:205 #, c-format msgid "running" msgstr "aktivan" #: services.pm:205 #, c-format msgid "stopped" msgstr "zaustavljen" #: services.pm:210 #, c-format msgid "Services and daemons" msgstr "Servisi i demoni" #: services.pm:216 #, c-format msgid "" "No additional information\n" "about this service, sorry." msgstr "" "Nema dodatnih informacija\n" "o ovom servisu, žalim." #: services.pm:221 ugtk2.pm:911 #, c-format msgid "Info" msgstr "Info" #: services.pm:224 #, c-format msgid "Start when requested" msgstr "Pokreni po potrebi" #: services.pm:224 #, c-format msgid "On boot" msgstr "Prilikom boota" #: services.pm:242 #, c-format msgid "Start" msgstr "Start" #: services.pm:242 #, c-format msgid "Stop" msgstr "Stop" #: standalone.pm:25 #, c-format msgid "" "This program is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2, or (at your option)\n" "any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, write to the Free Software\n" "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, " "USA.\n" msgstr "" "This program is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2, or (at your option)\n" "any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, write to the Free Software\n" "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, " "USA.\n" #: standalone.pm:44 #, c-format msgid "" "[--config-info] [--daemon] [--debug] [--default] [--show-conf]\n" "Backup and Restore application\n" "\n" "--default : save default directories.\n" "--debug : show all debug messages.\n" "--show-conf : list of files or directories to backup.\n" "--config-info : explain configuration file options (for non-X " "users).\n" "--daemon : use daemon configuration. \n" "--help : show this message.\n" "--version : show version number.\n" msgstr "" "[--config-info] [--daemon] [--debug] [--default] [--show-conf]\n" "Program za backup and restore\n" "\n" "--default : save default directories.\n" "--debug : show all debug messages.\n" "--show-conf : list of files or directories to backup.\n" "--config-info : explain configuration file options (for non-X " "users).\n" "--daemon : use daemon configuration. \n" "--help : show this message.\n" "--version : show version number.\n" #: standalone.pm:56 #, c-format msgid "" "[--boot] [--splash]\n" "OPTIONS:\n" " --boot - enable to configure boot loader\n" " --splash - enable to configure boot theme\n" "default mode: offer to configure autologin feature" msgstr "" "[--boot] [--splash]\n" "OPCIJE:\n" " --boot - omogućuje podešavanje boot loadera\n" " --splash - omogućuje podešavanje boot teme\n" "podrazumijevano: podešavanje autologin mogućnosti" #: standalone.pm:61 #, c-format msgid "" "[OPTIONS] [PROGRAM_NAME]\n" "\n" "OPTIONS:\n" " --help - print this help message.\n" " --report - program should be one of Mandriva Linux tools\n" " --incident - program should be one of Mandriva Linux tools" msgstr "" "[OPTIONS] [PROGRAM_NAME]\n" "\n" "OPCIJE:\n" " --help - ispisuje ovu pomoć.\n" " --report - program treba biti neki od Mandriva Linux alata\n" " --incident - program treba biti neki od Mandriva Linux alata" #: standalone.pm:67 #, c-format msgid "" "[--add]\n" " --add - \"add a network interface\" wizard\n" " --del - \"delete a network interface\" wizard\n" " --skip-wizard - manage connections\n" " --internet - configure internet\n" " --wizard - like --add" msgstr "" "[--add]\n" " --add - čarobnjak \"dodaj mrežni interfejs\"\n" " --del - čarobnjak \"obriši mrežni interfejs\"\n" " --skip-wizard - upravljanje konekcijama\n" " --internet - podesi internet\n" " --wizard - isto što i --add" #: standalone.pm:73 #, c-format msgid "" "\n" "Font Importation and monitoring application\n" "\n" "OPTIONS:\n" "--windows_import : import from all available windows partitions.\n" "--xls_fonts : show all fonts that already exist from xls\n" "--install : accept any font file and any directory.\n" "--uninstall : uninstall any font or any directory of font.\n" "--replace : replace all font if already exist\n" "--application : 0 none application.\n" " : 1 all application available supported.\n" " : name_of_application like so for staroffice \n" " : and gs for ghostscript for only this one." msgstr "" "\n" "Program za uvoz i nadzor fontova \n" "\n" "OPCIJE:\n" "--windows_import : uvezi sa dostupnih windows particija.\n" "--xls_fonts : prikaži sve postojeće fontove koje prijavljuje xls\n" "--install : instaliraj bilo koji font ili direktorij.\n" "--uninstall : deinstaliraj bilo koji font ili direktorij.\n" "--replace : zamijeni font ako vec postoji\n" "--application : 0 bez programa.\n" " : 1 podrška za sve poznate programe.\n" " : ime_programa npr. so za staroffice \n" " : i gs za ghostscript za samo taj program." #: standalone.pm:88 #, c-format msgid "" "[OPTIONS]...\n" "Mandriva Linux Terminal Server Configurator\n" "--enable : enable MTS\n" "--disable : disable MTS\n" "--start : start MTS\n" "--stop : stop MTS\n" "--adduser : add an existing system user to MTS (requires username)\n" "--deluser : delete an existing system user from MTS (requires " "username)\n" "--addclient : add a client machine to MTS (requires MAC address, IP, " "nbi image name)\n" "--delclient : delete a client machine from MTS (requires MAC address, " "IP, nbi image name)" msgstr "" "[OPTIONS]...\n" "Podešavanje Mandriva Linux Terminal Servera\n" "--enable : omogući MTS\n" "--disable : onemogući MTS\n" "--start : pokreni MTS\n" "--stop : zaustavi MTS\n" "--adduser : dodaj postojećeg sistemskog korisnika MTSu (potrebno je " "korisničko ime)\n" "--deluser : obriši postojećeg sistemskog korisnika sa MTSa (potrebno " "je korisničko ime)\n" "--addclient : dodaj klijentski računar MTSu (potrebna je MAC adresa, " "IP, nbi image ime)\n" "--delclient : obriši klijentski računar sa MTSa (potrebna je MAC " "adresa, IP, nbi image ime)" #: standalone.pm:100 #, c-format msgid "[keyboard]" msgstr "[tastatura]" #: standalone.pm:101 #, c-format msgid "[--file=myfile] [--word=myword] [--explain=regexp] [--alert]" msgstr "[--file=mojfajl] [--word=mojarijec] [--explain=regexp] [--alert]" #: standalone.pm:102 #, c-format msgid "" "[OPTIONS]\n" "Network & Internet connection and monitoring application\n" "\n" "--defaultintf interface : show this interface by default\n" "--connect : connect to internet if not already connected\n" "--disconnect : disconnect to internet if already connected\n" "--force : used with (dis)connect : force (dis)connection.\n" "--status : returns 1 if connected 0 otherwise, then exit.\n" "--quiet : do not be interactive. To be used with (dis)connect." msgstr "" "[OPTIONS]\n" "Program za povezivanje na mrežu/Internet i nadzor veze\n" "\n" "--defaultintf interface : podesi podrazumijevani interfejs\n" "--connect : spoji se na Inernet, ako nisi već spojen\n" "--disconnect : prekini vezu s Internetom, ako si spojen\n" "--force : koristi se sa (dis)connect : prinudi operaciju.\n" "--status : vraća 1 ako je spojen, u suprotnom 0.\n" "--quiet : bez interaktivnosti. Koristi se sa (dis)connect." #: standalone.pm:112 #, c-format msgid "" "[OPTION]...\n" " --no-confirmation do not ask first confirmation question in Mandriva " "Update mode\n" " --no-verify-rpm do not verify packages signatures\n" " --changelog-first display changelog before filelist in the " "description window\n" " --merge-all-rpmnew propose to merge all .rpmnew/.rpmsave files found" msgstr "" "[OPTION]...\n" " --no-confirmation ne postavljaj prvo pitanje u Mandriva Update modu\n" " --no-verify-rpm ne provjeravaj potpise paketa\n" " --changelog-first prikaži changelog prije filelist u opisnom prozoru\n" " --merge-all-rpmnew predloži merge svih pronađenih .rpmnew/.rpmsave " "datoteka" #: standalone.pm:117 #, c-format msgid "" "[--manual] [--device=dev] [--update-sane=sane_source_dir] [--update-" "usbtable] [--dynamic=dev]" msgstr "" "[--manual] [--device=dev] [--update-sane=sane_source_dir] [--update-" "usbtable] [--dynamic=dev]" #: standalone.pm:118 #, c-format msgid "" " [everything]\n" " XFdrake [--noauto] monitor\n" " XFdrake resolution" msgstr "" " [everything]\n" " XFdrake [--noauto] monitor\n" " XFdrake rezolucija" #: standalone.pm:154 #, c-format msgid "" "\n" "Usage: %s [--auto] [--beginner] [--expert] [-h|--help] [--noauto] [--" "testing] [-v|--version] " msgstr "" "\n" "Upotreba: %s [--auto] [--beginner] [--expert] [-h|--help] [--noauto] [--" "testing] [-v|--version] " #: timezone.pm:150 timezone.pm:151 #, c-format msgid "All servers" msgstr "Svi serveri" #: timezone.pm:185 #, c-format msgid "Global" msgstr "Globalno" #: timezone.pm:188 #, c-format msgid "Africa" msgstr "Afrika" #: timezone.pm:189 #, c-format msgid "Asia" msgstr "Azija" #: timezone.pm:190 #, c-format msgid "Europe" msgstr "Evropa" #: timezone.pm:191 #, c-format msgid "North America" msgstr "Sjeverna Amerika" #: timezone.pm:192 #, c-format msgid "Oceania" msgstr "Okeanija" #: timezone.pm:193 #, c-format msgid "South America" msgstr "Južna Amerika" #: timezone.pm:202 #, c-format msgid "Hong Kong" msgstr "Hong Kong" #: timezone.pm:239 #, c-format msgid "Russian Federation" msgstr "Ruska Federacija" #: timezone.pm:247 #, c-format msgid "Yugoslavia" msgstr "Jugoslavija" #: ugtk2.pm:801 #, c-format msgid "Is this correct?" msgstr "Da li je ovo ispravno?" #: ugtk2.pm:861 #, c-format msgid "No file chosen" msgstr "Nije izabrana datoteka" #: ugtk2.pm:863 #, c-format msgid "You have chosen a file, not a directory" msgstr "Izabrali ste datoteku, a ne direktorij" #: ugtk2.pm:865 #, c-format msgid "You have chosen a directory, not a file" msgstr "Izabrali ste direktorij, a ne datoteku" #: ugtk2.pm:867 #, c-format msgid "No such directory" msgstr "Nema tog direktorija" #: ugtk2.pm:867 #, c-format msgid "No such file" msgstr "Nema te datoteke" #: ugtk2.pm:946 #, c-format msgid "Expand Tree" msgstr "Proširi stablo" #: ugtk2.pm:947 #, c-format msgid "Collapse Tree" msgstr "Smanji stablo" #: ugtk2.pm:948 #, c-format msgid "Toggle between flat and group sorted" msgstr "Ravno / složeno po grupama" #: wizards.pm:95 #, c-format msgid "" "%s is not installed\n" "Click \"Next\" to install or \"Cancel\" to quit" msgstr "" "%s nije instaliran\n" "Kliknite na \"Dalje\" da ga instalirate ili \"Odustani\" za izlaz" #: wizards.pm:99 #, c-format msgid "Installation failed" msgstr "Instalacija nije uspjela" #~ msgid "Undo" #~ msgstr "Poništi" #~ msgid "Save partition table" #~ msgstr "Snimi tabelu particija" #~ msgid "Restore partition table" #~ msgstr "Vrati tabelu particija" #~ msgid "Select file" #~ msgstr "Izaberite datoteku" #~ msgid "" #~ "The backup partition table has not the same size\n" #~ "Still continue?" #~ msgstr "" #~ "Backup tabela particija nema istu veličinu\n" #~ "Da svejedno nastavim?" #~ msgid "Info: " #~ msgstr "Info: " #~ msgid "Unknown driver" #~ msgstr "Nepoznat drajver" #~ msgid "Error reading file %s" #~ msgstr "Greška u čitanju datoteke %s" #~ msgid "Restoring from file %s failed: %s" #~ msgstr "Povratak iz datoteke %s nije uspio: %s" #~ msgid "Bad backup file" #~ msgstr "Loša backup datoteka" #~ msgid "Error writing to file %s" #~ msgstr "Greška u pisanju datoteke: %s" #~ msgid "Error: The \"%s\" driver for your sound card is unlisted" #~ msgstr "Greška: Drajver \"%s\" za vašu zvučnu karticu nije na listi" #~ msgid "Ext2" #~ msgstr "Ext2" #~ msgid "Journalised FS" #~ msgstr "Journalised FS" #~ msgid "Starts the X Font Server (this is mandatory for Xorg to run)." #~ msgstr "Pokreće X Font Server (ovo je nužno da bi Xorg radio)." #~ msgid "Add user" #~ msgstr "Dodaj korisnika" #~ msgid "Accept user" #~ msgstr "Prihvati korisnika" #, fuzzy #~ msgid "" #~ "Do not update directory inode access times on this filesystem\n" #~ "(e.g, for faster access on the news spool to speed up news servers)." #~ msgstr "" #~ "Ne ažuriraj vrijeme pristupa inode-u na ovom sistemu\n" #~ "(npr. radi bržeg pristupa spool-u na news serverima)." #~ msgid "No supermount" #~ msgstr "Bez supermounta" #~ msgid "Supermount" #~ msgstr "Supermount" #~ msgid "Supermount except for CDROM drives" #~ msgstr "Supermount osim za CD-ROM uređaje" #~ msgid "Rescue partition table" #~ msgstr "Spasi tabelu particija" #~ msgid "Removable media automounting" #~ msgstr "Automatsko montiranje izmjenjivih medija" #~ msgid "Trying to rescue partition table" #~ msgstr "Pokušavam da spasim tabelu particija" #~ msgid "" #~ "Use local for all authentication and information user tell in local file" #~ msgstr "" #~ "Koristite \"lokalno\" za provjeru identiteta i informacije o korisnicima " #~ "u lokalnoj datoteci" #~ msgid "Accept/Refuse bogus IPv4 error messages." #~ msgstr "Prihvati/odbij neispravne IPv4 poruke o grešci." #~ msgid "Accept/Refuse broadcasted icmp echo." #~ msgstr "Dozvoli/zabrani broadcast-ovani ICMP eho." #~ msgid "Accept/Refuse icmp echo." #~ msgstr "Prihvati/odbij ICMP eho." #~ msgid "Allow/Forbid remote root login." #~ msgstr "Dozvoli/zabrani prijavu kao root sa udaljenog računara" #~ msgid "Enable/Disable IP spoofing protection." #~ msgstr "Uključi/isključi zaštitu od lažiranja IP adrese." #~ msgid "Enable/Disable libsafe if libsafe is found on the system." #~ msgstr "Uključi/isključi libsafe ako je libsafe pronađen na sistemu." #~ msgid "Enable/Disable the logging of IPv4 strange packets." #~ msgstr "Uključi/isključi logiranje čudnih IPv4 paketa." #~ msgid "Enable/Disable msec hourly security check." #~ msgstr "Uključi/isključi msec provjeru svakog sata." #~ msgid "Icon" #~ msgstr "Ikona" #~ msgid "Number of capture buffers:" #~ msgstr "Broj capture buffera:" #~ msgid "number of capture buffers for mmap'ed capture" #~ msgstr "broj capture buffera za mmap-ovani capture" #~ msgid "PLL setting:" #~ msgstr "PLL postavka:" #~ msgid "Radio support:" #~ msgstr "Podrška za radio:" #~ msgid "enable radio support" #~ msgstr "uključi radio podršku" #~ msgid " [--skiptest] [--cups] [--lprng] [--lpd] [--pdq]" #~ msgstr " [--skiptest] [--cups] [--lprng] [--lpd] [--pdq]"