summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-04-28 18:01:50 +0200
committerArne Schwabe <arne@rfc2549.org>2014-04-28 18:01:50 +0200
commit0a77bcf40724525cd5fbf51ac82093f63df4600b (patch)
treefcdd3eae81e87e0f72dc71b0b719df62b2aff445
parent2b31f7fc937a982f8f83c5ed9b7e2e8485c9476d (diff)
Update genFAQ script
--HG-- rename : misc/genFAQ.py => main/misc/genFAQ.py extra : rebase_source : a23e494c5276400d05ddf853af7bde77c2e52f63
-rwxr-xr-xmain/misc/genFAQ.py (renamed from misc/genFAQ.py)8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/genFAQ.py b/main/misc/genFAQ.py
index 713d71f1..b1506420 100755
--- a/misc/genFAQ.py
+++ b/main/misc/genFAQ.py
@@ -73,18 +73,18 @@ def loadstrres(filename,lang):
def main():
- loadstrres("res/values/strings.xml","default")
+ loadstrres("src/main/res/values/strings.xml","default")
- faqdom = dom.parse("res/layout/faq.xml")
+ faqdom = dom.parse("src/main/res/layout/faq.xml")
faq= genPage(faqdom,"default")
open(faqpath + "/FAQ.wiki","w").write(faq)
- for directory in os.listdir("res"):
+ for directory in os.listdir("src/main/res"):
if directory.startswith("values-") and directory.find("-sw")==-1:
lang = directory.split("-",1)[1]
print lang
- loadstrres("res/values-%s/strings.xml" % lang,lang)
+ loadstrres("src/main/res/values-%s/strings.xml" % lang,lang)
langdir= "%s/%s" %(faqpath,lang)
if lang=="zh-rCN":