#!/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"; }; my $google_lang="$html_lang"; if ( $html_lang =~ /nb/ ) { $google_lang = "no"; }; if ( $html_lang =~ /pa_IN/ ) { $google_lang = "pa"; }; if ( $html_lang =~ /sc/ ) { $google_lang = "it"; }; # 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"; }; open (INSTALL_HTML, ">tmp/install-$lang.htm") || die("can't open tmp/install-$lang.htm"); print INSTALL_HTML "\n"; print INSTALL_HTML "\n"; print INSTALL_HTML "\n"; print INSTALL_HTML " \n"; print INSTALL_HTML " \n"; print INSTALL_HTML " " . N("Installation Instructions - Mandriva Linux %s",$version) . "\n"; print INSTALL_HTML <<'EOF' EOF ; #if ( $dir =~ /rtl/ ) { print INSTALL_HTML "\n\n" }; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

" . N("Installation Instructions") . "

\n"; print INSTALL_HTML "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . N("Required configuration") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . # 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_HTML "

\n"; print INSTALL_HTML " " . N("NOTE:") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . N("Below are listed the different ways to install Mandriva Linux:") . "

\n"; print INSTALL_HTML "

    \n"; print INSTALL_HTML "
  1. " . N("Boot directly from CD") . "
  2. \n"; print INSTALL_HTML "
  3. " . N("Make a boot floppy with Windows") . "
  4. \n"; print INSTALL_HTML "
  5. " . N("Other installation methods") . "
  6. \n"; print INSTALL_HTML "
\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

" . N("1. %s", N("Boot directly from CD")) . "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . 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_HTML "

\n"; print INSTALL_HTML " " . N("NOTE:") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . # 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_HTML "

\n"; print INSTALL_HTML " [" . N("top of this page") . "]\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

" . N("2. %s", N("Make a boot floppy with Windows")) . "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . N("If your computer cannot boot from the CDROM, you must make a boot floppy under Windows as follows:") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . N("To begin the installation:") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " [" . N("top of this page") . "]\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

" . N("3. %s", N("Other installation methods")) . "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . 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_HTML "

\n"; print INSTALL_HTML "

\n \n \n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . N("Here the list of boot images:") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "\n"; print INSTALL_HTML "\n"; print INSTALL_HTML " \n"; print INSTALL_HTML "\n"; print INSTALL_HTML " \n"; print INSTALL_HTML "\n"; print INSTALL_HTML " \n"; print INSTALL_HTML "\n"; print INSTALL_HTML " \n"; print INSTALL_HTML "
cdrom.img" . N("install from CD-ROM") . "
hd_grub.img" . N("install from hard-disk (from a Linux, Windows, or ReiserFS filesystem)") . "
\n" . " " . N("you can configure it for your system at:") . "\n " . "" . "http://qa.mandriva.com/hd_grub.cgi" . "" . "
network.img" . N("install from ftp/nfs/http") . "
" . N("NOTE: you will need to insert %s in your floppy drive when prompted", "network_drivers.img") . "
pcmcia.img" . N("install from pcmcia devices (warning, most pcmcia network adapters are now directly supported from %s)", "network.img") . "
\n"; print INSTALL_HTML "
\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . 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_HTML "

\n"; print INSTALL_HTML " [" . N("top of this page") . "]\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . 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_HTML "

\n"; print INSTALL_HTML " " . 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_HTML "

\n"; print INSTALL_HTML " " . # 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_HTML "

\n"; print INSTALL_HTML " [" . N("top of this page") . "]\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

" . N("Below are the main stages of installation:") . "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

    \n"; print INSTALL_HTML "
  1. " . N("Insert your Installation CDROM (or Installation Floppy disk if necessary) and restart your machine.") . "
  2. \n"; print INSTALL_HTML "
  3. " . N("Press [Enter] when the Mandriva Linux welcome screen appears and carefully follow the instructions.") . "
  4. \n"; print INSTALL_HTML "
  5. " . 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.") . "
  6. \n"; print INSTALL_HTML "
  7. " . N("Mandriva Linux will start. After bootup, you can login on your machine under the user account setup during install, or as "%s".", "root") . "
  8. \n"; print INSTALL_HTML "
\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . N("Important note:") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . # 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_HTML "

\n"; print INSTALL_HTML "

" . N("Good luck with Mandriva Linux!") . "
\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " [" . N("top of this page") . "]\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML " " . N("For additional support, see the following:") . "\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "

\n"; print INSTALL_HTML "


\n"; #if ( $dir =~ /rtl/ ) { print INSTALL_HTML "
\n" }; print INSTALL_HTML "\n"; print INSTALL_HTML "\n";