#!/usr/bin/perl ################################################################################ # Mandrakeonline Text User Interface # # # # Copyright (C) 2001-2002-2003-2004 Mandrakesoft # # # # Daouda Lo # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License Version 2 as # # published by the Free Software Foundation. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ################################################################################ use strict; use lib qw(/usr/lib/libDrakX /usr/lib/libDrakX/drakfirsttime); use standalone; use interactive; use common; use wizards; use lang; use Getopt::Long; BEGIN { unshift @::textdomains, 'mdkonline', 'drakfirstboot' }; use mdkonline; use Digest::MD5 qw(md5 md5_hex md5_base64); my $in = interactive->vnew('su'); my $expert_link = 'http://www.mandrakeexpert.com'; my $online_link = 'https://www.mandrakeonline.net'; my $confdir = '/root/.MdkOnline'; my $conffile = "$confdir/mdkupdate"; my $logfile = '/var/tmp/mdkonline.log'; #for compatibilities mkdir_p($confdir) if !-d $confdir; -e '/root/.mdkupdate' and system("mv", "/root/.mdkupdate", $conffile); $::Wizard_title = N("Mandrakeonline"); my %choices = ( account => N("I already have an account"), noaccount => N("I want to subscribe") ); my $choice = $choices{account}; my ($wiz, $login, $nlogin, $password, $npassword, $boxname, $cfmpassword, $email, $is_success, $key, $r, $createaccount, $sendconfres, $country); GetOptions('login=s' => \$login, 'pass=s' => \$password, 'box=s' => \$boxname, 'country:s' => \$country); my %countries = map { lang::c2name($_) => $_ } lang::list_countries(); $country = lang::c2name(lang::read('', $>)->{country}); sub read_conf() { my $wideconf = '/etc/sysconfig/mdkonline'; my %t = getVarsFromSh($wideconf); my $host = chomp_(`hostname`); $t{MACHINE} ||= $1 if $host =~ /(\w+)(.*)/; $login = $t{LOGIN}; $boxname = $t{MACHINE} } sub check_login { my ($log, $pass, $box) = @_; my ($res, $resp); my $pp = md5_hex($pass); $log && $pass && $box or return 0; my $clink = $expert_link . '/firsttimewizard/validusercheck.php' . '?u=' . $log . '&p=' . $pp; $resp = mdkonline::get_from_URL($clink, "MdkOnline_tuiAgent/"); $resp->is_success and $res = $resp->content =~ /TRUE/ ? 1 : 0; $res } sub send_conf { my ($log, $pass, $box) = @_; my $uplink = $online_link . '/wizard.php'; my $pp = md5_hex($pass); my $w = $in->wait_message(N("Please wait"), N("Reading configuration\n")); mdkonline::report_config("$confdir/$log.$pp.$box.online.log"); my $tag = { submit => "upload_wizard", wizard => ["$confdir/$log.$pp.$box.online.log.bz2.uue"] }; undef $w; my $ww = $in->wait_message(N("Please wait"), N("Sending configuration...")); ($sendconfres, $key) = mdkonline::send_config($uplink, $tag); mdkonline::hw_upload($log, $pass, $box); undef $ww; ($sendconfres, $key) } sub create_new_account { my ($log, $pass, $mail) = @_; my $url = $expert_link . '/online3_CreateAccount.php' . '?desuserid=' . $log . '&despwd=' . $pass . '&user_email=' . $mail; my $ca = mdkonline::subscribe_online($url); $ca } $wiz = { name => N("Mandrakeonline"), pages => { welcome => { name => N("This assistant will help you to upload your configuration\n(packages, hardware configuration) to a centralized database in\norder to keep you informed about security updates and useful upgrades.\n"), no_back => 1, next => 'choices' }, choices => { name => N("Account creation or authentication"), data => [ { val => \$choice, type => 'list', list => [ values %choices ] } ], post => sub { +{ reverse %choices }->{$choice} }, }, account => { name => N("Enter your Mandrakeonline login, password and machine name:"), pre => sub { read_conf(); }, data => sub { [ { label => N("Login:"), val => \$login }, { label => N("Password:"), val => \$password, hidden => 1 }, { label => N("Machine name:"), val => \$boxname }, ], }, post => sub { my $_wait = $in->wait_message(N("Please wait"), N("Connecting to Mandrakeonline website...")); $is_success = check_login($login, $password, $boxname); undef($_wait); "authenticate" }, }, authenticate => { name => sub { if ($is_success) { N("In order to benefit from Mandrakeonline services,\nwe are about to upload your configuration.\n\nThe Wizard will now send the following information to Mandrakesoft:\n1) the list of packages you have installed on your system,\n2) your hardware configuration.\n\nIf you feel uncomfortable by that idea, or do not want to benefit from this service,\nplease press 'Cancel'. By pressing 'Next', you allow us to keep you informed\nabout security updates and useful upgrades via personalized email alerts.\nFurthermore, you benefit from discounted paid support services on\nwww.mandrakeexpert.com.") } else { N("Connection problem") . " " . N("or") . " " . N("wrong password:") . "\n" . N("Your login or password was wrong.\n Either you'll have to type it again, or you'll need to create an account on Mandrakeonline.\n In the latter case, go back to the first step to connect to Mandrakeonline.\n Be aware that you must also provide a Machine name \n (only alphabetical characters are admitted)") } }, no_back => $is_success ? 1 : 0, post => sub { if ($is_success) { ($sendconfres, $key) = send_conf($login, $password, $boxname); "upload" } else { "choices" } } }, noaccount => { name => N("Create a Mandrakeonline Account"), data => sub { [ { label => N("Login:"), val => \$nlogin }, { label => N("Password:"), val => \$npassword, hidden => 1 }, { label => N("Confirm Password:"), val => \$cfmpassword, hidden => 1 }, { label => N("Mail contact:"), val => \$email }, ] }, post => sub { $createaccount = $npassword ne $cfmpassword ? N("The passwords do not match\n Please try again\n") : $nlogin eq '' ? N("Please provide a login") : mdkonline::check_valid_email($email) == 0 ? N("Not a valid mail address!\n") : create_new_account($nlogin, $npassword, $email); "createaccount" } }, createaccount => { name => sub { $createaccount eq 'OK' ? "\n\n" . N("Mandrakeonline Account successfully created.\nPlease click \"Next\" to authenticate and upload your configuration\n") : $createaccount; }, post => sub { $createaccount eq 'OK' ? "account" : "noaccount" } }, upload => { name => sub { if ($sendconfres eq 'TRUE' && $key) { "\n\n" . N("Your upload was successful!") . "\n\n" . N("From now you will receive on security and updates \nannouncements thanks to Mandrakeonline.") . "\n\n" . N("Mandrakeonline offers you the ability to automate the updates.\nA program will run regulary in your system waiting for new updates\n"); } else { N("Connection problem") . N("Problem occurs when uploading files, please try again") } }, data => sub { if ($sendconfres eq 'TRUE' && $key) { [ { label => N("Country"), val => \$country, type => "combo", list => [ sort keys %countries ], not_edit => 0 } ] } }, post => sub { mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE'); mdkonline::write_wide_conf($login, $boxname, $country); mdkonline::clean_confdir(); "end" }, }, end => { name => sub { N("Congratulations") . "\n\n" . N("Your Mandrakeonline account has been successfully configured\n") }, end => 1, no_back => 1, next => 0, } } }; if ($login && $password && $boxname) { $is_success = check_login($login, $password, $boxname); if ($is_success) { ($sendconfres, $key) = send_conf($login, $password, $boxname); if ($sendconfres eq 'TRUE' && $key) { mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE'); mdkonline::write_wide_conf($login, $boxname, $country); output_p($logfile, N("Configuration uploaded successfully")) } else { output_p($logfile, N("Problem uploading configuration")) } } else { output_p($logfile, N("Cannot connect to mandrakeonline website: wrong login/password or router/firewall bad settings")) } } else { wizards->new->safe_process($wiz, $in); } d='n188' href='#n188'>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
# translation of bs.po to Bosnian
# translation of bs.po to Bosanski
# translation of mdkonline-bs.po to Bosnian
# Bosnian translation of Madrake Online.
# Copyright (C) 2001 Mandriva S.A.
# Amila Akagić <bono@lugbih.org>, 2001..
# Amila Akagić <bono@linux.org.ba>, 2004.
# Vedran Ljubovic <vljubovic@smartnet.ba>, 2005, 2006.
#
msgid ""
msgstr ""
"Project-Id-Version: bs\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-29 00:44+0200\n"
"PO-Revision-Date: 2006-09-13 20:38+0200\n"
"Last-Translator: Vedran Ljubovic <vljubovic@smartnet.ba>\n"
"Language-Team: Bosnian <lokal@linux.org.ba>\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.10.2\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. -PO: here %s will be replaced by the local time (eg: "Will check updates at 14:03:50"
#: ../mgaapplet:82
#, fuzzy, c-format
msgid "Will check updates at %s"
msgstr "Provjeri ispravke"

#: ../mgaapplet:90
#, c-format
msgid "Your system is up-to-date"
msgstr "Vaš sistem je up-to-date"

#: ../mgaapplet:95
#, fuzzy, c-format
msgid "Service configuration problem. Please check the logs and contact %s."
msgstr ""
"Problem kod podešavanja servisa. Provjerite logove i pošaljite mail za "
"support@mageiaonline.com"

#: ../mgaapplet:101
#, c-format
msgid "Please wait, finding available packages..."
msgstr "Molim sačekajte, tražim dostupne pakete..."

#: ../mgaapplet:106
#, c-format
msgid "New updates are available for your system"
msgstr "Nove ispravke su dostupne za vaš sistem"

#: ../mgaapplet:112
#, c-format
msgid "A new version of Mageia distribution has been released"
msgstr ""

#: ../mgaapplet:123
#, c-format
msgid "Network is down. Please configure your network"
msgstr "Mreža ne radi. Podesite vašu mrežu"

#: ../mgaapplet:129
#, c-format
msgid "Service is not activated. Please click on \"Online Website\""
msgstr "Servis nije aktiviran. Kliknite na \"Online web stranica\""

#: ../mgaapplet:134 ../mgaapplet:140
#, fuzzy, c-format
msgid "urpmi database locked"
msgstr "urpmi baza podataka je zaključana"

#: ../mgaapplet:145
#, c-format
msgid "Release not supported (too old release, or development release)"
msgstr ""
"Izdanje nije podržano (prestaro izdanje ili je riječ o izdanju u razvoju)"

#: ../mgaapplet:150
#, c-format
msgid ""
"No medium found. You must add some media through 'Software Media Manager'."
msgstr ""

#: ../mgaapplet:155
#, fuzzy, c-format
msgid ""
"You already have at least one update medium configured, but\n"
"all of them are currently disabled. You should run the Software\n"
"Media Manager to enable at least one (check it in the \"%s\"\n"
"column).\n"
"\n"
"Then, restart \"%s\"."
msgstr ""
"Već ste podesili jedan ili više medija za ažuriranje, ali svi su trenutno\n"
"isključeni. Trebate pokrenuti Upravitelj softverskim medijima i\n"
"uključiti barem jedan (označite ga u koloni Uključen?).\n"
"\n"
"Zatim, restartujte %s."

#: ../mgaapplet:160
#, c-format
msgid "Enabled"
msgstr "Uključeno"

#: ../mgaapplet:166 ../mgaapplet:688
#, c-format
msgid "Install updates"
msgstr "Instaliraj ispravke"

#: ../mgaapplet:167
#, c-format
msgid "Check Updates"
msgstr "Provjeri da li ima ispravki"

#: ../mgaapplet:168
#, c-format
msgid "Configure Network"
msgstr "Podesi mrežu"

#: ../mgaapplet:169
#, c-format
msgid "Upgrade the system"
msgstr ""

#: ../mgaapplet:343
#, c-format
msgid "Received SIGHUP (probably an upgrade has finished), restarting applet."
msgstr ""

#: ../mgaapplet:350
#, c-format
msgid "Launching drakconnect\n"
msgstr "Pokrećem drakconnect\n"

#: ../mgaapplet:357 ../mgaapplet:433 ../mgaapplet:494
#, c-format
msgid "New version of Mageia distribution"
msgstr ""

#: ../mgaapplet:362
#, c-format
msgid "Browse"
msgstr ""

#: ../mgaapplet:366 ../mgaapplet-upgrade-helper:89
#: ../mgaapplet-upgrade-helper:137 ../mgaapplet-upgrade-helper:170
#: ../mgaapplet-upgrade-helper:176 ../mgaapplet-upgrade-helper:224
#: ../mgaapplet-upgrade-helper:283 ../mgaapplet_gui.pm:207
#, c-format
msgid "Error"
msgstr "Greška"

#: ../mgaapplet:366
#, c-format
msgid "You must choose a directory owned by the super administrator!"
msgstr ""

#: ../mgaapplet:373
#, c-format
msgid "A new version of Mageia distribution has been released."
msgstr ""

#: ../mgaapplet:375 ../mgaapplet:445
#, c-format
msgid "More info about this new version"
msgstr ""

#: ../mgaapplet:377 ../mgaapplet:439
#, c-format
msgid "Do you want to upgrade to the '%s' distribution?"
msgstr ""

#: ../mgaapplet:379 ../mgaapplet:449
#, c-format
msgid "Do not ask me next time"
msgstr ""

#: ../mgaapplet:380
#, c-format
msgid "Download all packages at once"
msgstr ""

#: ../mgaapplet:381
#, c-format
msgid "(Warning: You will need quite a lot of free space)"
msgstr ""

#: ../mgaapplet:386
#, c-format
msgid "Where to download packages:"
msgstr ""

#: ../mgaapplet:389 ../mgaapplet:454 ../mgaapplet:520 ../mgaapplet_gui.pm:195
#, c-format
msgid "Next"
msgstr "Dalje"

#: ../mgaapplet:389 ../mgaapplet:454 ../mgaapplet:520
#: ../mgaapplet-upgrade-helper:143 ../mgaapplet-upgrade-helper:159
#: ../mgaapplet_gui.pm:195
#, c-format
msgid "Cancel"
msgstr "Odustani"

#: ../mgaapplet:406
#, c-format
msgid ""
"Maintenance for this Mageia version has ended. No more updates will be "
"delivered for this system."
msgstr ""

#: ../mgaapplet:412
#, c-format
msgid "In order to keep your system secure, you can:"
msgstr ""

#: ../mgaapplet:418
#, c-format
msgid "Mageia"
msgstr "Mageia"

#: ../mgaapplet:419
#, c-format
msgid "You should upgrade to a newer version of the %s distribution."
msgstr ""

#: ../mgaapplet:428
#, c-format
msgid "Your distribution is no longer supported"
msgstr ""

#: ../mgaapplet:511
#, c-format
msgid ""
"This upgrade requires high bandwidth network connection (cable, xDSL, ...)  "
"and may take several hours to complete."
msgstr ""

#: ../mgaapplet:513
#, c-format
msgid "Estimated download data will be %s"
msgstr ""

#: ../mgaapplet:514
#, c-format
msgid "You should close all other running applications before continuing."
msgstr ""

#: ../mgaapplet:517
#, c-format
msgid ""
"You should put your laptop on AC and favor ethernet connection over wifi, if "
"available."
msgstr ""

#: ../mgaapplet:551
#, c-format
msgid "Launching MageiaUpdate\n"
msgstr "Pokrećem MageiaUpdate\n"

#: ../mgaapplet:569
#, c-format
msgid "Computing new updates...\n"
msgstr "Izračunavam nove ispravke...\n"

#: ../mgaapplet:607
#, c-format
msgid "Checking Network: seems disabled\n"
msgstr "Provjeravam mrežu: čini se da je isključena\n"

#: ../mgaapplet:634
#, c-format
msgid "Mageia Online %s"
msgstr "Mageia Online %s"

#: ../mgaapplet:635 ../mgaapplet:636
#, c-format
msgid "Copyright (C) %s by %s"
msgstr "Autorska prava (C) %s %s"

#: ../mgaapplet:639
#, c-format