XML2PO is weird!
Tommy Reynolds
Tommy.Reynolds at MegaCoder.com
Sun Mar 5 07:59:25 UTC 2006
- Previous message (by thread): install-guide/en fedora-install-guide-abouttoinstall.xml, 1.6, 1.7 fedora-install-guide-acknowledgements.xml, 1.6, 1.7 fedora-install-guide-adminoptions.xml, 1.8, 1.9 fedora-install-guide-beginninginstallation.xml, 1.7, 1.8 fedora-install-guide-bootloader.xml, 1.6, 1.7 fedora-install-guide-diskpartitioning.xml, 1.9, 1.10 fedora-install-guide-firstboot.xml, 1.8, 1.9 fedora-install-guide-installingpackages.xml, 1.6, 1.7 fedora-install-guide-intro.xml, 1.11, 1.12 fedora-install-guide-locale.xml, 1.8, 1.9 fedora-install-guide-networkconfig.xml, 1.6, 1.7 fedora-install-guide-nextsteps.xml, 1.7, 1.8 fedora-install-guide-other-instmethods.xml, 1.8, 1.9 fedora-install-guide-packageselection.xml, 1.8, 1.9 fedora-install-guide-rootpassword.xml, 1.6, 1.7 fedora-install-guide-techref.xml, 1.7, 1.8 fedora-install-guide-timezone.xml, 1.6, 1.7 fedora-install-guide-upgrading.xml, 1.6, 1.7 fedora-install-guide.xml, 1.8, 1.9
- Next message (by thread): install-guide/po fedora-install-guide.pot, 1.2, 1.3 zh_CN.po, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
It seems that xml2po(1) will sometimes expand entities and will
sometimes _not_ expand entities. There is a "-k" or a
"--keep-entities" that claims "Don't expand entities", but it lies.
Evidently there is a fallback mode in xml2po(1) where *all* entities
are expanded. I know there is an "-e" or "--expand-all-entities"
switch, but I'm not using it.
For example, generate a .POT file:
$ cd example-tutorial
$ xml2po -o the.pot en_US/example-tutorial.xml
and then apply it (UNCHANGED!) against the original XML file using
various combinations of "-e", "-k" and no switches at all:
$ xml2po -o junk-e.xml -e -p the.pot en_US/example-tutorial.xml
$ xml2po -o junk-k.xml -k -p the.pot en_US/example-tutorial.xml
$ xml2po -o junk-plain.xml the.pot en_US/example-tutorial.xml
and then compare the files using diff(1). There are NO differences.
Anybody care to explain? Or suggest a work-around?
--
I'm already an anomaly, I shall soon be an anachronism, and I have
every intention of dying an abuse!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20060305/875f6dcb/attachment.sig>
- Previous message (by thread): install-guide/en fedora-install-guide-abouttoinstall.xml, 1.6, 1.7 fedora-install-guide-acknowledgements.xml, 1.6, 1.7 fedora-install-guide-adminoptions.xml, 1.8, 1.9 fedora-install-guide-beginninginstallation.xml, 1.7, 1.8 fedora-install-guide-bootloader.xml, 1.6, 1.7 fedora-install-guide-diskpartitioning.xml, 1.9, 1.10 fedora-install-guide-firstboot.xml, 1.8, 1.9 fedora-install-guide-installingpackages.xml, 1.6, 1.7 fedora-install-guide-intro.xml, 1.11, 1.12 fedora-install-guide-locale.xml, 1.8, 1.9 fedora-install-guide-networkconfig.xml, 1.6, 1.7 fedora-install-guide-nextsteps.xml, 1.7, 1.8 fedora-install-guide-other-instmethods.xml, 1.8, 1.9 fedora-install-guide-packageselection.xml, 1.8, 1.9 fedora-install-guide-rootpassword.xml, 1.6, 1.7 fedora-install-guide-techref.xml, 1.7, 1.8 fedora-install-guide-timezone.xml, 1.6, 1.7 fedora-install-guide-upgrading.xml, 1.6, 1.7 fedora-install-guide.xml, 1.8, 1.9
- Next message (by thread): install-guide/po fedora-install-guide.pot, 1.2, 1.3 zh_CN.po, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-docs-list
mailing list