[gnomemm-website] Also genereate the Chinese translation.



commit 4299985fce29cf6096bbfaab335d1c98db219912
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Nov 24 13:12:18 2010 +0100

    Also genereate the Chinese translation.
    
    	* html/.htaccess:
    	* html/index.html: Move these to here:
    	* docs/html/.htaccess:
    	* docs/html/index.html:
    	* docs/Makefile.am: Merge and build the zh_CN translation too, though
    	we really need some generic way that will avoid the copy/paste.

 ChangeLog                      |   11 +++++++++++
 docs/Makefile.am               |   10 ++++++----
 {html => docs/html}/.htaccess  |    0
 {html => docs/html}/index.html |    0
 generate.sh                    |   27 ---------------------------
 5 files changed, 17 insertions(+), 31 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c350095..6934cdc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-11-24  Murray Cumming  <murrayc murrayc-desktop>
+
+	Also genereate the Chinese translation.
+
+	* html/.htaccess:
+	* html/index.html: Move these to here:
+	* docs/html/.htaccess:
+	* docs/html/index.html:
+	* docs/Makefile.am: Merge and build the zh_CN translation too, though
+	we really need some generic way that will avoid the copy/paste.
+
 2010-11-24  Murray Cumming  <murrayc murrayc com>
 
 	Again renerate html in en/
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 9d0322c..3dbb95d 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -43,7 +43,7 @@ dist_tutorial_icons_DATA =
 
 include $(top_srcdir)/build/gnome-doc-utils.make
 
-all-local: $(DOC_LINGUAS) $(addsuffix /gnomemm-website.xml,C $(DOC_LINGUAS)) html/en/index.html
+all-local: $(DOC_LINGUAS) $(addsuffix /gnomemm-website.xml,C $(DOC_LINGUAS)) html/en/index.html html/zh_CN/index.html
 
 $(DOC_LINGUAS):
 	@$(MKDIR_P) $@
@@ -55,9 +55,11 @@ html/en/index.html: $(srcdir)/C/gnomemm-website.xml
 	$(AM_V_at)$(MKDIR_P) html/en
 	$(AM_V_GEN)$(XSLTPROC) -o html/en/ --xinclude param.xsl $<
 
-# Make sure that the documentation will always have been generated before
-# executing the commands of a rule that depends on files in html/.
-html/chapter-%.html html/sec-%.html: | html/en/index.html
+html/zh_CN/index.html: $(srcdir)/C/gnomemm-website.xml
+	$(AM_V_at)rm -fr html/zh_CN
+	$(AM_V_at)$(MKDIR_P) html/zh_CN
+	xml2po -t zh_CN/zh_CN.mo -o $(DOC_MODULE).zh_CN.xml $<
+	$(AM_V_GEN)$(XSLTPROC) -o html/zh_CN/ --xinclude param.xsl $(DOC_MODULE).zh_CN.xml
 
 validate: $(srcdir)/C/gnomemm-website.xml
 	$(XMLLINT) --xinclude --postvalid --noout $<
diff --git a/html/.htaccess b/docs/html/.htaccess
similarity index 100%
rename from html/.htaccess
rename to docs/html/.htaccess
diff --git a/html/index.html b/docs/html/index.html
similarity index 100%
rename from html/index.html
rename to docs/html/index.html



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