[damned-lies] Pass mallard mode option to xml2po for Mallard documents
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [damned-lies] Pass mallard mode option to xml2po for Mallard documents
- Date: Thu, 24 Sep 2009 18:18:33 +0000 (UTC)
commit 19b30ff2670d5e267774d1d783d618845f939909
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Sep 24 20:17:57 2009 +0200
Pass mallard mode option to xml2po for Mallard documents
stats/utils.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/stats/utils.py b/stats/utils.py
index f18cdc8..6a68df9 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -107,6 +107,7 @@ def generate_doc_pot_file(vcs_path, potbase, moduleid, verbose):
""" Return the pot file for a document-type domain, and the error if any """
errors = []
+ xml2po_options = ""
if os.access(os.path.join(vcs_path, "C", "index.page"), os.R_OK):
# a Mallard document
files = os.path.join("C", "index.page")
@@ -116,6 +117,7 @@ def generate_doc_pot_file(vcs_path, potbase, moduleid, verbose):
for f in pages.split():
if f.strip() != "":
files += " %s" % (os.path.join("C", f.strip()))
+ xml2po_options = "-m mallard"
else:
modulename = read_makefile_variable([vcs_path], "DOC_MODULE")
@@ -137,7 +139,7 @@ def generate_doc_pot_file(vcs_path, potbase, moduleid, verbose):
files += " %s" % (os.path.join("C", f.strip()))
potfile = os.path.join(vcs_path, "C", potbase + ".pot")
- command = "cd \"%s\" && xml2po -o %s -e %s" % (vcs_path, potfile, files)
+ command = "cd \"%s\" && xml2po %s -o %s -e %s" % (vcs_path, xml2po_options, potfile, files)
(status, output, errs) = run_shell_command(command)
if status != STATUS_OK:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]