[passepartout] get the manual translatable



commit f58318946afdcf258068cee42ad7c76630c00a2d
Author: Sven Herzberg <herzi lanedo com>
Date:   Thu Apr 23 16:37:25 2009 +0200

    get the manual translatable
    
    * doc/Makefile.am,
    * doc/version.txt.in: updates
    * doc/C/passepartout.xml: dropped the auto-versioning (will re-introduce that
      later)
    * doc/C/users_guide.xml: dropped non-breaking spaces (xml2po doesn't seem to
      permit those)
---
 help/C/passepartout.xml |    6 +++---
 help/C/users_guide.xml  |   26 +++++++++++++-------------
 help/Makefile.am        |    9 ++++++---
 help/version.txt.in     |    3 ++-
 4 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/help/C/passepartout.xml b/help/C/passepartout.xml
index 809a5cc..9ccc6b5 100644
--- a/help/C/passepartout.xml
+++ b/help/C/passepartout.xml
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML 4.1.2//EN"
                       "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"; [
-<!ENTITY version SYSTEM "../version.txt">
 ]>
+<!--<?yelp:chunk-depth 4?>-->
 <book id="passepartout">
   <bookinfo>
     <title>Passepartout Manual</title>
     <releaseinfo>
-      for version &version;
+      for version 0.8-PRE <!-- FIXME: replace automatically -->
     </releaseinfo>
     <authorgroup>
       <author role="maintainer">
@@ -23,7 +23,7 @@
       <year>2002-2004</year> <holder>Fredrik Arnerup</holder>
     </copyright>
     <publisher>
-      <publishername>GNOME Documentation Project</publishername>
+      <publishername>The Passepartout Project</publishername>
     </publisher>
     <xi:include href="legal.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
     <revhistory>
diff --git a/help/C/users_guide.xml b/help/C/users_guide.xml
index e0bbc1c..af5b094 100644
--- a/help/C/users_guide.xml
+++ b/help/C/users_guide.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 	"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";> 
 <chapter>
@@ -72,20 +72,20 @@
 	<title>Command line</title>
 
       <para>You start Passepartout by typing
-        <command>passepartout&#160;&amp;</command> in your terminal
+        <command>passepartout &amp;</command> in your terminal
         window. You are then presented with an empty document window
         (no document has been created).</para>
 
       <para>You can get a list of command line options accepted by
-	Passepartout with <command>passepartout&#160;--help</command>.</para>
-      </section>
+	Passepartout with <command>passepartout --help</command>.</para>
+    </section>
     </section>
 
     <section>
       <title>Creating a new document</title>
 
       <para>To create an empty document, select
-	<menuchoice><guimenu>File</guimenu><guimenuitem>New&#160;...</guimenuitem></menuchoice>.
+	<menuchoice><guimenu>File</guimenu><guimenuitem>New ...</guimenuitem></menuchoice>.
 	In the dialog that will
           appear, you can choose between creating a document from an
           existing template (any Passepartout document can be used as
@@ -93,7 +93,7 @@
           also specify the page number the first page in the document
           should have.  These settings can be changed at a later point
 	  by selecting
-	  <menuchoice><guimenu>File</guimenu><guimenuitem>Properties&#160;...</guimenuitem></menuchoice>.
+	  <menuchoice><guimenu>File</guimenu><guimenuitem>Properties ...</guimenuitem></menuchoice>.
       </para>
     </section>
 
@@ -101,9 +101,9 @@
       <title>Adding pages</title>
 
       <para>To add a page to the document, select
-	<menuchoice><guimenu>Page</guimenu><guimenuitem>Insert Before&#160;...</guimenuitem></menuchoice>
+	<menuchoice><guimenu>Page</guimenu><guimenuitem>Insert Before ...</guimenuitem></menuchoice>
 	or
-	<menuchoice><guimenu>Page</guimenu><guimenuitem>Insert After&#160;...</guimenuitem></menuchoice>.
+	<menuchoice><guimenu>Page</guimenu><guimenuitem>Insert After ...</guimenuitem></menuchoice>.
         If the document was created from
         a template, you will be asked to select a template
         page.</para>
@@ -117,7 +117,7 @@
     <section><title>Importing images</title>
 
       <para>You can add an image to a page by selecting 
-	<menuchoice><guimenu>Edit</guimenu><guimenuitem>Insert Image&#160;...</guimenuitem></menuchoice>.
+	<menuchoice><guimenu>Edit</guimenu><guimenuitem>Insert Image ...</guimenuitem></menuchoice>.
       </para>
 
       <para>
@@ -137,7 +137,7 @@
     
     <section><title>Text frames &amp; text streams</title> 
       <para>A text frame can be added to a page by selecting
-	<menuchoice><guimenu>Edit</guimenu><guimenuitem>Insert Text Frame&#160;...</guimenuitem></menuchoice>
+	<menuchoice><guimenu>Edit</guimenu><guimenuitem>Insert Text Frame ...</guimenuitem></menuchoice>
 	The text shown in a text frame
 	is read from an <acronym>XML</acronym> file, but the text
 	frame is not connected directly to the file. Instead, each
@@ -198,7 +198,7 @@
 
       <para>Several frames may be combined into a
 	<emphasis>group</emphasis> by selecting more than one frame
-	(using CTRL-button&#160;1) and selecting
+	(using CTRL-button 1) and selecting
 	<menuchoice>
 	  <guimenu>Edit</guimenu>
 	  <guimenu>Arrange</guimenu>
@@ -236,7 +236,7 @@
       <para>Select
 	<menuchoice>
 	  <guimenu>File</guimenu>
-	  <guimenuitem>Print&#160;...</guimenuitem>
+	  <guimenuitem>Print ...</guimenuitem>
 	</menuchoice>.
 	There is also a
 	<guimenuitem>Print Preview</guimenuitem> item that will start
@@ -255,7 +255,7 @@
       <para>A view can be duplicated by selecting
 	<menuchoice>
 	  <guimenu>View</guimenu>
-	  <guimenuitem>New&#160;View</guimenuitem>
+	  <guimenuitem>New View</guimenuitem>
 	</menuchoice>.
 	A document will not be closed
 	until all its views has been closed.</para>
diff --git a/help/Makefile.am b/help/Makefile.am
index c02db73..90f6970 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -7,10 +7,13 @@ DOC_INCLUDES=\
 	legal.xml \
 	nsfaq.xml \
 	users_guide.xml \
+	$(NULL)
+DOC_ENTITIES=\
 	../version.txt \
 	$(NULL)
 
 DOC_LINGUAS=\
+	de \
 	$(NULL)
 
 dist_help_DATA=\
@@ -30,7 +33,7 @@ check-local: check-manual
 # FIXME: once we use docbook 5.0, make sure each <acronym> has an <alt>
 check-manual: C/passepartout.xml
 	@echo "[TEST] $<"
-	(cd C && $(XMLLINT) --xinclude `basename $<` | $(XMLLINT) --valid --noout -)
+	(cd C && $(XMLLINT) --noxincludenode ../$(srcdir)/$< | $(XMLLINT) --valid --noout -)
 
 # Make symbolic links to the stylesheets:
 # (Remove existing stylesheets first; the -f flag for ln is not portable.)
@@ -61,11 +64,11 @@ SUFFIXES=.txt .xml .html
 
 .xml.txt:
 	@echo "[GEN]  $@"
-	xsltproc -o $@ --path "$(builddir)/C" $(srcdir)/$(DOCBOOK2TXT) $<
+	(mkdir -p C && cd C && xsltproc --path . -o $@ ../$(srcdir)/$(DOCBOOK2TXT) ../$<)
 
 .xml.html:
 	@echo "[GEN]  $@"
-	xsltproc -o $@ --path "$(builddir)/C" $(srcdir)/$(DOCBOOK2HTML) $<
+	(mkdir -p C && cd C && xsltproc --path . -o $@ ../$(srcdir)/$(DOCBOOK2HTML) ../$<)
 
 EXTRA_DIST=$(dist_built_in) $(DOCBOOK2TXT) $(DOCBOOK2HTML)
 CLEANFILES=$(nodist_doc_DATA)
diff --git a/help/version.txt.in b/help/version.txt.in
index d78bda9..8f0bb63 100644
--- a/help/version.txt.in
+++ b/help/version.txt.in
@@ -1 +1,2 @@
- VERSION@
+<?xml version="1.0" encoding="utf-8"?>
+<!ENTITY version "@VERSION@">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]