#!/usr/bin/perl use Locale::gettext; use POSIX; my $version = "2006"; setlocale(LC_MESSAGES, ""); bindtextdomain("CD_README","./tmp/"); textdomain("CD_README"); sub N { my $s = shift @_; my $t = gettext($s); sprintf $t, @_; } my $lang=$ENV{LANGUAGE}; my $html_lang="$lang"; my $dir="ltr"; my $left="left"; my $right="right"; if ( $lang =~ /ar|fa|he|ug|ur|yi/) { $dir="rtl"; $left="right"; $right="left" }; if ( $lang =~ /zh_CN/ ) { $html_lang = "zh-CN"; }; if ( $lang =~ /zh_TW/ ) { $html_lang = "zh-TW"; }; if ( $lang =~ /pt_BR/ ) { $html_lang = "pt-BR"; }; if ( $lang =~ /sr\@Latn/ ) { $html_lang = "sr"; }; if ( $lang =~ /uz\@Latn/ ) { $html_lang = "uz"; }; if ( $lang eq "C" ) { $lang = "en"; $html_lang = "en"; }; # langs for which we have pages my $our_lang="en"; if ( $lang =~ /de/ ) { $our_lang = "de"; }; if ( $lang =~ /es/ ) { $our_lang = "es"; }; if ( $lang =~ /fi/ ) { $our_lang = "fi"; }; if ( $lang =~ /fr/ ) { $our_lang = "fr"; }; if ( $lang =~ /he/ ) { $our_lang = "he"; }; if ( $lang =~ /hi/ ) { $our_lang = "hi"; }; if ( $lang =~ /it/ ) { $our_lang = "it"; }; if ( $lang =~ /ja/ ) { $our_lang = "ja"; }; if ( $lang =~ /nl/ ) { $our_lang = "nl"; }; if ( $lang =~ /pl/ ) { $our_lang = "pl"; }; if ( $lang =~ /pt/ ) { $our_lang = "pt"; }; if ( $lang =~ /pt_BR/ ) { $our_lang = "pt-BR"; }; if ( $lang =~ /ru/ ) { $our_lang = "ru"; }; #if ( $lang =~ /sv/ ) { $our_lang = "sv"; }; seems only homepage exists if ( $lang =~ /zh_CN/ ) { $our_lang = "zh"; }; # recode used to convert html entities (eg: "&") to plain text. # the double recoding is needed because recode stupidely things html # is in latin1 only; so the first recode converts anything non-ascii # into html entities, and the second converts back all entities into utf-8 # the ones created by the previous step, and the few ones that were there # previously and the reason for the call to recode. open (INSTALL_TXT, "| sed 's/<.--//g' | sed 's/-->//' | sed 's:&:&_:g' | sed 's:<[^>]*>::g' | recode utf8..h4 | sed 's:&_:\\&:g' | recode h4..utf8 > tmp/INSTALL-$lang.txt") || die("can't open tmp/INSTALL-$lang.txt"); print INSTALL_TXT ""; print INSTALL_TXT "\n"; print INSTALL_TXT " Mandriva Linux\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("Installation Instructions - Mandriva Linux %s",$version) . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("Required configuration") . "\n"; print INSTALL_TXT " * " . N("Pentium processor or compatible") . "\n"; print INSTALL_TXT " * " . N("CDROM drive") . "\n"; print INSTALL_TXT " * " . N("At least 32 MB RAM, 64 MB recommended") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . # the "%s" placeholder is "point 1" or "point 2", etc. N("Installing Mandriva Linux is, in most cases, as simple as putting your Installation CD in your CDROM drive, and restarting your machine. Please refer to %s.", N("point 1")) . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("NOTE:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " * " . N("If you upgrade from 7.x, 8.x or 9.x Mandriva Linux versions, do not forget to backup your system.") . "\n"; print INSTALL_TXT " * " . N("Upgrading from earlier versions (prior to 7.0) is NOT supported. In that case, you need to do a fresh installation and not an update.") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("Below are listed the different ways to install Mandriva Linux:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " ". N("1. %s", N("Boot directly from CD")) . "\n"; print INSTALL_TXT " ". N("2. %s", N("Make a boot floppy with Windows")) . "\n"; print INSTALL_TXT " ". N("3. %s", N("Other installation methods")) . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("1. %s", N("Boot directly from CD")) . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("The Installation CDROM is bootable. In most cases, just insert the CD into the drive and reboot the machine. Follow the instructions displayed on screen: press the [Enter] key to start the installation, or press [F1] for additional help.") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("NOTE:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . # the "%s" placeholder is "point 1" or "point 2", etc. N("On some laptops (portable computers), the system may not be able to boot from the CD. In such a case, you should prepare a boot floppy. See %s for details.", N("point 2")) . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("2. %s", N("Make a boot floppy with Windows")) . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("If your computer cannot boot from the CDROM, you must make a boot floppy under Windows as follows:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " * " . N("insert the CDROM, then open the icon "My Computer", right click on the CDROM drive icon and select "Open"") . "\n"; print INSTALL_TXT " * " . N("go into the "%s" directory and double-click on the "%s" icon", "dosutils","rawwritewin") . "\n"; print INSTALL_TXT " * " . N("insert a blank floppy in the floppy drive") . "\n"; print INSTALL_TXT " * " . N("select "%s" in the "Image File" field (assuming that your CDROM drive is "D:", otherwise replace "D:" as needed)", "D:\\images\\cdrom.img") . "\n"; print INSTALL_TXT " * " . N("select "A:" in the "Floppy Drive" field then click on "Write".") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("To begin the installation:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " * " . N("insert the CDROM in the drive, as well as the boot floppy, then") . "\n"; print INSTALL_TXT " * " . N("restart the computer.") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("3. %s", N("Other installation methods")) . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("If for any reason the previous methods do not fit your needs (you want to perform a network install, an install from pcmcia devices or ...), you will also need to make a boot floppy:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " * " . N("Under Linux (or other modern UNIX systems) type at prompt:") . "\n"; print INSTALL_TXT " \$ dd if=xxxxx.img of=/dev/fd0\n"; print INSTALL_TXT " * " . N("Under Windows, follow the method described in point 2, but using %s (see below) instead of %s.", "xxxxx.img", "cdrom.img") . "\n"; print INSTALL_TXT " * " . N("Under DOS, assuming your CD is drive D:, type:") . "\n" . " " . "D:\\> dosutils\\rawrite.exe -f install\\images\\xxxxx.img -d A" . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("Here the list of boot images:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " +-----------------+------------------------------------------------------+\n"; print INSTALL_TXT " | cdrom.img | "; print INSTALL_TXT sprintf("%-52s |\n", N("install from CD-ROM")); print INSTALL_TXT " +-----------------+------------------------------------------------------+\n"; print INSTALL_TXT " | hd_grub.img | "; print INSTALL_TXT sprintf("%-52s |\n", N("install from hard-disk (from a Linux, Windows, or ReiserFS filesystem)")); print INSTALL_TXT " | | "; print INSTALL_TXT sprintf("%-52s |\n", N("you can configure it for your system at:")); print INSTALL_TXT " | | "; print INSTALL_TXT sprintf("%-52s |\n", "http://qa.mandriva.com/hd_grub.cgi"); print INSTALL_TXT " +-----------------+------------------------------------------------------+\n"; print INSTALL_TXT " | network.img | "; print INSTALL_TXT sprintf("%-52s |\n", N("install from ftp/nfs/http")); print INSTALL_TXT " | | "; print INSTALL_TXT sprintf("%-52s |\n", N("NOTE: you will need to insert %s in your floppy drive when prompted", "network_drivers.img")); print INSTALL_TXT " +-----------------+------------------------------------------------------+\n"; print INSTALL_TXT " | pcmcia.img | "; print INSTALL_TXT sprintf("%-52s |\n", N("install from pcmcia devices (warning, most pcmcia network adapters are now directly supported from %s)", "network.img")); print INSTALL_TXT " +-----------------+------------------------------------------------------+\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("You may also burn %s on a CDROM and boot from it. It supports all installations methods, cdrom, network, and hard-disk.", "boot.iso") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("You can also use a text mode installation if, for any reason, you have trouble with the default graphical installation. To use it, press [F1] at Mandriva Linux welcome screen, then type %s at the prompt.", "text") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("If you need to rescue your existing Mandriva Linux system, insert your Installation CDROM (or any relevant boot floppy), press [F1] at Mandriva Linux welcome screen, then type %s at the prompt.", "rescue") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . # the "%s" placeholder is for a long URL address N("See %s for more technical information.", "http://www.mandrivalinux.com/drakx/README") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("Below are the main stages of installation:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " 1. " . N("Insert your Installation CDROM (or Installation Floppy disk if necessary) and restart your machine.") . "\n"; print INSTALL_TXT " 2. " . # the "%s" placeholders are for ... in the html version; and # nothing in the text version; so the same string can be used for both N("Press [Enter] when the Mandriva Linux welcome screen appears and carefully follow the instructions.") . "\n"; print INSTALL_TXT " 3. " . N("When the installation is complete take out the CD-ROM when ejected (and any floppy disk if present in drive); your machine will restart. If it does not, restart it manually.") . "\n"; print INSTALL_TXT " 4. " . N("Mandriva Linux will start. After bootup, you can login on your machine under the user account setup during install, or as "%s".", "root") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("Important note:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . # the "%s" placeholders are for "root" and commands to launch programs N("The %s account will give you unrestricted access to your Linux system. Do not use it except to configure or administer Linux. For every day use, use a normal user account which you can configure with the %s tool, or with the commands %s and %s.", ""root"", ""userdrake"", ""adduser"", ""passwd"") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("Good luck with Mandriva Linux!") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " " . N("For additional support, see the following:") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT " * " . N("E-Support at %s", "http://www.mandrivaexpert.com/") . "\n"; print INSTALL_TXT " * " . N("Mandriva Linux Errata at %s", "\n http://www.mandrivalinux.com/en/errata.php3") . "\n"; print INSTALL_TXT " * " . N("Mandriva Linux Security Advisories at %s", "\n http://www.mandriva.com/security/advisories") . "\n"; print INSTALL_TXT " * " . N("On-line Documentation at %s", "http://www.mandrivalinux.com/$our_lang/fdoc.php3") . "\n"; print INSTALL_TXT " * " . N("Read and join the On-line Discussion Forums of Mandriva Club at %s", "\n http://club.mandriva.com") . "\n"; print INSTALL_TXT " * " . N("Join the Mailing Lists at %s", "\n http://www.mandrivalinux.com/$our_lang/flists.php3") . "\n"; print INSTALL_TXT " * " . N("Easily Searchable Mailing List archives at %s", "\n http://marc.theaimsgroup.com/") . "\n"; print INSTALL_TXT " * " . N("Search the Internet using Google for Linux") . " " . "\n http://www.google.com/linux" . "\n"; print INSTALL_TXT " * " . N("Search Usenet Groups using Google Groups at %s", "\n http://groups.google.com/groups?group=comp") . "\n"; print INSTALL_TXT "\n"; print INSTALL_TXT "============================================================================\n";