When i run "xml2po -e -o guide.pot C/gnucash-guide.xml" without the entities, I get a pot file with the strings from only the first xml files that doesn't contain the entities I've added. I think that might be related to the -e option (expands all entities) but using it I can get a single pot file for all the guide and the translation process is more faster.

That's why I made those commits. I hope I havn't broken anything.

Regards
Cristian

Il 25/01/2011 21:06, Geert Janssens ha scritto:
On Saturday 08 January 2011, Cristian Marchi wrote:
Author: cmarchi
Date: 2011-01-08 08:52:15 -0500 (Sat, 08 Jan 2011)
New Revision: 20038
Trac: http://svn.gnucash.org/trac/changeset/20038

Modified:
    gnucash-docs/trunk/help/C/gnucash-help.xml
Log:
Add mdash entity to enable the use of xml2po and add description for
entities.

Modified: gnucash-docs/trunk/help/C/gnucash-help.xml
===================================================================
--- gnucash-docs/trunk/help/C/gnucash-help.xml  2011-01-08 04:52:10 UTC
(rev
20037) +++ gnucash-docs/trunk/help/C/gnucash-help.xml   2011-01-08 13:52:15
UTC (rev 20038) @@ -1,6 +1,13 @@
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"; [
+
+<!-- HTML codes unknown to xmllint: -->
+<!ENTITY lsquo "‘">
+<!ENTITY rsquo "’">
+<!ENTITY mdash "—">
+
+<!-- List of files: -->
  <!ENTITY intro SYSTEM "Help_ch_Intro.xml">
  <!ENTITY chGettingHelp SYSTEM "Help_ch_GettingHelp.xml">
  <!ENTITY chGettingStarted SYSTEM "Help_ch_GettingStarted.xml">
@@ -16,10 +23,17 @@
  <!ENTITY legal SYSTEM "Help_legal.xml">
  <!ENTITY GFDL SYSTEM "Help_fdl-appendix.xml">
  <!ENTITY Tips SYSTEM "Help_tips-appendix.xml">
+
+<!--
+  Some global declarations which are used in the files. For easier
+  maintainance they should be collected here.
+-->
  <!ENTITY manrevision "2.3.16">
  <!ENTITY date "November 7, 2010">
  <!ENTITY app "GnuCash">
  ]>
+
+
  <!--
        (Do not remove this comment block.)
    Template Maintained by the GNOME Documentation Project:

_______________________________________________
gnucash-changes mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-changes
Cristian,

It took me some time to react to this and your later ENTITY additions (r20092,
r20093 and r20110) because other things kept me very busy.

In short, I wonder why you added these ENTITIES. I have tested xml2po on my
system without these entity definitions and I get no errors. What errors do
you get ? What is the exact command you use that causes these errors ?

Geert
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to