From martin.quinson at imag.fr Mon Jan 24 01:47:37 2005 Content-Type: multipart/mixed; boundary="===============5186271473697297500==" MIME-Version: 1.0 From: Martin Quinson To: devel at lists.po4a.org Subject: [Po4a-devel]From Debian BTS: Bug#291831: po4a: some errors with with d-i manual's xml files Date: Mon, 24 Jan 2005 08:08:27 +0100 Message-ID: <20050124070827.GA19507@papagos> --===============5186271473697297500== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, I just received this from the Debian BTS. Jordi, it looks like your first bug report ;) I'd say that something is going wrong with the comment containing tags in the Xml module. Could you please look at it (or tell us what we can do to help you -- don't want to step on your feet) ? I would also rewrite the code around 471 to: unless (defined($name) && $name eq $tag) { die "po4a::xml: ". sprintf(dgettext("po4a","Unexpected closing tag found in %s...."; } it would avoid the use of uninitialized value the bug report speaks about. Thanks for your time, = Mt. ----- Forwarded message from "Carlos Z.F. Liu" ----- Subject: Bug#291831: po4a: some errors with with d-i manual's xmlw files X-Debian-PR-Package: po4a From: "Carlos Z.F. Liu" To: Debian Bug Tracking System X-Mailer: reportbug 3.6 Date: Mon, 24 Jan 2005 04:06:24 +1300 Package: po4a Version: 0.19-1 Severity: normal Here are 2 problems with xml files in d-i manual (both sarge and trunk branch in SVN). 1. Can't generate .po file from en/boot-installer/i386.xml, po4a reported following msg: Use of uninitialized value in string ne at /usr/share/perl5/Locale/Po4a/Xml.pm line 471. po4a::xml: Unexpected closing tag found in en/boot-installer/i386.xml:231. The main document may be wrong. After a careful recheck, I think the file is 100% valid, and I can generate HTML from it without any problem. The tricky thing is that many pairs were commented by in the document. Perhaps, po4a didn't handle then correctly. (I guess ;-) 2. Another two files, en/using-d-i/modules/baseconfig.xml and en/using-d-i/modules/os-prober.xml. po4a can produce pot file from xml, but it will ignore the last paragraph after a comment. Then, after I translated po files and convert them back to xml, those generated xml files are invalid. Please look at attachments to know what I mean. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.9 Locale: LANG=3Den_NZ.UTF-8, LC_CTYPE=3Dzh_CN.UTF-8 (charmap=3DUTF-8) Versions of packages po4a depends on: ii gettext 0.14.1-8 GNU Internationalization utili= ties ii liblocale-gettext-perl 1.01-17 Using libc functions for inter= nati ii libsgmls-perl 1.03ii-31 Perl modules for processing SG= ML p ii perl [perl5] 5.8.4-5 Larry Wall's Practical Extract= ion = ii perl-modules 5.8.4-5 Core Perl modules ii sp 1.3.4-1.2.1-43 James Clark's SGML parsing too= ls -- no debconf information Booting from a CD-ROM &boot-installer-intro-cd.xml; Booting from linux using <command>LILO</command> or <command>GRUB</command> To boot the installer from hard disk, you must first download and place the needed files as described in . If you intend to use the hard drive only for booting and then download everything over the network, you should download the netboot/debian-installer/i386/initrd.gz file and its c= orresponding kernel. This will allow you to repartition the hard disk from which you boot the installer, although you should do so with care. Alternatively, if you intend to keep an existing partition on the hard drive unchanged during the install, you can download the hd-media/initrd.gz file and its kernel, as well as copy a CD iso to the drive (make sure the file is named ending in ".iso". The installer can then boot from the drive and install from the CD image, without needing the network. For LILO, you will need to configure two essential things in /etc/lilo.conf: to load the initrd.gz installer at boot time; have the vmlinuz kernel use a RAM disk as its root partition. Here is a /etc/lilo.conf example: image=3D/boot/newinstall/vmlinuz label=3Dnewinstall initrd=3D/boot/newinstall/initrd.gz root=3D/dev/ram0 append=3D"devfs=3Dmount,dall ramdisk_size=3D17000" For more details, refer to the initrd 4 and lilo.conf 5 man pages. Now run lilo and reboot. The procedure for GRUB is quite similar. Locate your menu.lst in the /boot/grub/ directory (sometimes in the /boot/boot/grub/), add the following lines: title New Install kernel (hd0,0)/boot/newinstall/vmlinuz root=3D/dev/ram0 devfs=3Dmount,dall = ramdisk_size=3D17000 initrd (hd0,0)/boot/newinstall/initrd.gz and reboot. Note that the value of the ramdisksize may need to be adjusted for the size of the initrd image. = >From now on, there should be no difference between GRUB or LILO. Booting from USB memory stick Lets assume you have prepared everything from and . Now just plug your USB stick into some free USB connector and reboot the computer. The system should boot up, and you should be presented with the boot: prompt. Here you can enter optional boot arguments, or just hit &enterkey;. In case your computer doesn't support booting from USB memory devices, you can still use a single floppy to do the initial boot and then switch to USB. Boot your system as described in ; the kernel on the boot floppy should detect your USB stick automatically. When it asks for the root floppy, simply press &enterkey;. You should see &d-i; starting. Booting from Floppies You will have already downloaded the floppy images you needed and created floppies from the images in . To boot from the installer boot floppy, place it in the primary floppy drive, shut down the system as you normally would, then turn it back on. For installing from a LS-120 drive (ATAPI version) with a set of floppies, you need to specify the virtual location for the floppy device. This is done with the root=3D boot argument, giving the device that the ide-floppy driver maps the device to. For example, if your LS-120 drive is connected as the first IDE device (master) on the second cable, you enter linux root=3D/dev/hdc at the boot prompt. Installation from LS-120 is only supported by 2.4 and later kernels. Note that on some machines, Control Alt Delete does not properly reset the machine, so a ``hard'' reboot is recommended. If you are installing from an existing operating system (e.g., from a DOS box) you don't have a choice. Otherwise, please do a hard reboot when booting. The floppy disk will be accessed, and you should then see a screen that introduces the boot floppy and ends with the boot: prompt. Once you press &enterkey;, you should see the message Loading..., followed by Uncompressing Linux..., and then a screenfull or so of information about the hardware in your system. More information on this phase of the boot process can be found below in . After booting from the boot floppy, the root floppy is requested. Insert the root floppy and press &enterkey;, and the contents are loaded into memory. The installer program debian-installer is automatically launched. = Booting with TFTP = &boot-installer-intro-net.xml; = There are various ways to do a TFTP boot on i386. NIC or Motherboard that support PXE It could be that your Network Interface Card or Motherboard provides PXE boot functionality. This is a Intel re-implemention of TFTP boot. If so you may be able to configure your BIOS to boot from the network. = NIC with network bootROM It could be that your Network Interface Card provides TFTP boot functionality. Let us (&email-debian-boot-list;) know how did you manage it. Please refer to this document. Etherboot The etherboot project provides bootdiskettes and even bootroms that do a TFTPboot. i386 Boot Parameters When the installer boots, you will be presented with the boot prompt, boot:. You can do two things at the boot: prompt. You can press the function keys F1 through F10 to view a few pages of helpful information, or you can press Enter to boot the system. Information on boot parameters which might be useful can be found by pressing F3 through F7. If you add any parameters to the boot command line, be sure to type the boot method (the default is linux) and a space before the first parameter (e.g., linux floppy=3Dthinkpad). If you simply press &enter= key;, that's the same as typing linux without any special parameters. Some systems have floppies with ``inverted DCLs''. If you receive errors reading from the floppy, even when you know the floppy is good, try the parameter floppy=3Dthinkpad. On some systems, such as the IBM PS/1 or ValuePoint (which have ST-506 disk drivers), the IDE drive may not be properly recognized. Again, try it first without the parameters and see if the IDE drive is recognized properly. If not, determine your drive geometry (cylinders, heads, and sectors), and use the parameter hd=3Dcylinders,heads,sectors. If you have a very old machine, and the kernel hangs after saying Checking 'hlt' instruction..., then you should try the no-hlt boot argument, which disables this test. If your screen begins to show a weird picture while the kernel boots, eg. pure white, pure black or colored pixel garbage, your system may contain a problematic video card which does not switch to the framebuffer mode properly. Then you can use the boot parameter debian-installer/framebuffer=3Dfalse or video=3Dvga16:off to disable the framebuffer console. Only the English language will be available during the installation due to limited console features. See for details. System freeze during the PCMCIA configuration phase Some laptop models produced by Dell are known to crash when PCMCIA device detection tries to access some hardware addresses. Other laptops may display similar problems. If you experience such a problem and you don't need PCMCIA support during the installation, you can disable PCMCIA using the hw-detect/start_pcmcia=3Dfalse boot parameter. You c= an then configure PCMCIA after the installation is completed and exclude the resource range causing the problems. Alternatively, you can boot the installer in expert mode. You will then be asked to enter the resource range options your hardware needs. For example, if you have one of the Dell laptops mentioned above, you should enter exclude port 0x800-0x8ff here. There is also a list of some common resource range options in the System resource settings section of the PCMCIA HOWTO. Note that you have to omit the commas, if any, when you enter this value in the installer. System freeze while loading the USB modules The kernel normally tries to install USB modules and the USB keyboard driver in order to support some non-standard USB keyboards. However, there are some broken USB systems where the driver hangs on loading. A possible workaround may be disabling the USB controller in your mainboard BIOS setup. Another o= ption is passing the debian-installer/probe/usb=3Dfalse pa= rameter at the boot prompt, which will prevent the modules from being loaded. Running <command>base-config</command> From Within &d-i; It is possible to configure the base system within the first stage installer (before rebooting from the hard drive), by running base-config in a chroot environment. This is mainly useful for testing the installer and a vast majority of people should avoid it. # Debian GNU/Linux Installation Guide # Original translator szjungle, 2004. # msgid "" msgstr "" "Project-Id-Version: d-i-manaul\n" "POT-Creation-Date: 2005-01-21 4:19+1300\n" "PO-Revision-Date: 2005-01-08 18:51+0800\n" "Last-Translator: Jungle Ji \n" "Language-Team: debian-chinese-gb \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=3Dutf-8\n" "Content-Transfer-Encoding: 8bit\n" # type: Content of: outside any tag (error?) #: en/using-d-i/modules/baseconfig.xml:1 #, no-wrap msgid "\n" msgstr "\n" # type: Content of: outside any tag (error?) #: en/using-d-i/modules/baseconfig.xml:2 #, no-wrap msgid "" "\n" "\n" " " msgstr "" "\n" "\n" " " # type: Content of: #: en/using-d-i/modules/baseconfig.xml:4 #, no-wrap msgid "" "\n" " " msgstr "" "\n" " " # type: Content of: #: en/using-d-i/modules/baseconfig.xml:5 #, no-wrap msgid "Running " msgstr "??? &d-i; ???????????? " # type: Content of: <sect3><para><command> #: en/using-d-i/modules/baseconfig.xml:5 #: en/using-d-i/modules/baseconfig.xml:11 #, no-wrap msgid "base-config" msgstr "base-config" # type: Content of: <sect3><title> #: en/using-d-i/modules/baseconfig.xml:5 #, no-wrap msgid " From Within &d-i;" msgstr " " # type: Content of: <sect3> #: en/using-d-i/modules/baseconfig.xml:5 #, no-wrap msgid "" "\n" "\n" msgstr "" "\n" "\n" # type: Content of: <sect3><para> #: en/using-d-i/modules/baseconfig.xml:7 #, no-wrap msgid "" "\n" "\n" "It is possible to configure the base system within the first stage\n" "installer (before rebooting from the hard drive), by running\n" msgstr "" "\n" "?????????????????????????????????????????????????????????????????? (??????= ??????????????????)???\n" "??????\n" # type: Content of: <sect3><para> #: en/using-d-i/modules/baseconfig.xml:11 #, no-wrap msgid " in a " msgstr " ??? " # type: Content of: <sect3><para><firstterm> #: en/using-d-i/modules/baseconfig.xml:11 #, no-wrap msgid "chroot" msgstr "chroot" # type: Content of: <sect3><para> #: en/using-d-i/modules/baseconfig.xml:11 #, fuzzy, no-wrap msgid "" "\n" "environment. This is mainly useful for testing the installer and a\n" "vast majority of people should avoid it.\n" msgstr "" "\n" "???????????????????????????????????????????????????\n" "??????????????????????????????????????????\n" <!-- retain these comments for translator revision tracking --> <!-- original version: 21579 --> <sect3 id=3D"baseconfig"> <title>??? &d-i; ???????????? <command>base-config</command> ?????????????????????????????????????????????????????????????????? (???????= ?????????????????)??? ?????? base-config ??? chroot environment. This is mainly useful for testing the installer and a vast majority of people should avoid it. Feel free to prove me I'm wrong --> --> Detecting other operating systems Before a boot loader is installed, the installer will attempt to probe for other operating systems which are installed on the machine. If it finds a supported operating system, you will be informed of this during the boot loader installation step, and the computer will be configured to boot this other operating system in addition to Debian. Note that multiple operating systems booting on a single machine is still something of a black art. The automatic support for detecting and setting up boot loaders to boot other operating systems varies by architecture and even by subarchitecture. If it does not work you should consult your boot manager's documentation for more information. The installer may fail to detect other operating systems if the partitions = on which they reside are mounted when the detection takes place. This may occu= r if you select a mountpoint (e.g. /win) for a partition containing another oper= ating system in partman, or if you have mounted partitions man= ually from a console. ??????????????????????????? ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????? ???????????????????????????????????????????????????????????????????????????= ?????????????????? ??? Debian ????????????????????????????????????????????????????????????????= ?? ????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????= ???????????????????????????????????? ???????????????????????????????????????????????????????????????????????????= ????????? The installer may fail to detect other operating systems if the partitions = on which they reside are mounted when the detection takes place. This may occu= r if you select a mountpoint (e.g. /win) for a partition containing another oper= ating system in partman, or if you have mounted partitions man= ually from a console. TODO: Maybe include some arch-dependent tables with supported OS'es here -= -> --> # SOME DESCRIPTIVE TITLE # Original translator szjungle, 2004. # = msgid "" msgstr "" "Project-Id-Version: d-i-manual\n" "POT-Creation-Date: 2005-01-21 5:07+1300\n" "PO-Revision-Date: 2004-12-09 11:52+0800\n" "Last-Translator: Jungle Ji \n" "Language-Team: debian-chinese-gb \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=3Dutf-8\n" "Content-Transfer-Encoding: 8bit\n" # type: Content of: outside any tag (error?) #: en/using-d-i/modules/os-prober.xml:1 #, no-wrap msgid "\n" msgstr "\n" # type: Content of: outside any tag (error?) #: en/using-d-i/modules/os-prober.xml:2 #, no-wrap msgid "" "\n" "\n" " " msgstr "" "\n" "\n" " " # type: Content of: #: en/using-d-i/modules/os-prober.xml:4 #, no-wrap msgid "" "\n" " " msgstr "" "\n" " " # type: Content of: #: en/using-d-i/modules/os-prober.xml:5 #, no-wrap msgid "Detecting other operating systems" msgstr "???????????????????????????" # type: Content of: <sect3> #: en/using-d-i/modules/os-prober.xml:5 #, no-wrap msgid "" "\n" "\n" msgstr "" "\n" "\n" # type: Content of: <sect3><para> #: en/using-d-i/modules/os-prober.xml:7 #, no-wrap msgid "" "\n" "\n" "Before a boot loader is installed, the installer will attempt to probe for= \n" "other operating systems which are installed on the machine. If it finds a\= n" "supported operating system, you will be informed of this during the boot\n" "loader installation step, and the computer will be configured to boot this= \n" "other operating system in addition to Debian.\n" "\n" msgstr "" "\n" "??????????????????????????????????????????????????????????????????????????= ?????????????????????????????????????\n" "??????????????????????????????????????????????????????????????????????????= ???????????????????\n" "??? Debian ???????????????????????????????????????????????????????????????= ???\n" # type: Content of: <sect3><para> #: en/using-d-i/modules/os-prober.xml:15 #, no-wrap msgid "" "\n" "\n" "Note that multiple operating systems booting on a single machine is still\= n" "something of a black art. The automatic support for detecting and setting\= n" "up boot loaders to boot other operating systems varies by architecture and= \n" "even by subarchitecture. If it does not work you should consult your\n" "boot manager's documentation for more information.\n" "\n" msgstr "" "\n" "\n" "?????????????????????????????????????????????????????????????????????\n" "??????????????????????????????????????????????????????????????????????????= ?????????????????????????????????????\n" "??????????????????????????????????????????????????????????????????????????= ??????????\n" "\n" # type: Content of: <sect3><note><para> #~ msgid "" #~ "\n" #~ "\n" #~ "The installer may fail to detect other operating systems if the " #~ "partitions on\n" #~ "which they reside are mounted when the detection takes place. This may " #~ "occur if\n" #~ "you select a mountpoint (e.g. /win) for a partition containing another " #~ "operating\n" #~ "system in " #~ msgstr "" #~ "\n" #~ "???????????????????????????????????????????????????????????????????????= ?????????????????????????\n" #~ "??????????????????????????? " # type: Content of: <sect3><note><para><command> #~ msgid "partman" #~ msgstr "partman" # type: Content of: <sect3><note><para> #~ msgid "" #~ ", or if you have mounted partitions manually\n" #~ "from a console.\n" #~ "\n" #~ msgstr "" #~ " ??????????????????(??? /win)??????????????????????????????????????????= ?????????????????????????????????\n" ----- End forwarded message ----- --===============5186271473697297500== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuMi40IChHTlUv TGludXgpCgppRDhEQlFGQjlKN3JJaUMvTWVGRjh6UVJBbE1kQUo5a21zQnV6T0doNk5aUHNmTTN6 elhTa3lML09nQ2dtUTZKCnlsTmw2Q21RdlJtN21ocDAyd0ZiVlJRPQo9QkJITAotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============5186271473697297500==--