]> git.donarmstrong.com Git - lilypond.git/commitdiff
Amends create-weblinks-itexi to use langdefs
authorPhil Holmes <mail@philholmes.net>
Thu, 1 Sep 2011 16:15:51 +0000 (17:15 +0100)
committerPhil Holmes <mail@philholmes.net>
Fri, 2 Sep 2011 08:29:12 +0000 (09:29 +0100)
scripts/build/create-weblinks-itexi.py

index d799925909c9c4933527cafe77bfb56149977c4b..cba1c9cd35b307f803ee64d53dc6820e91cf2c8b 100644 (file)
@@ -9,14 +9,21 @@ import sys
 import os
 import glob
 
-# these links are relative from /website/ on lilypond.org
-depth = "../"
-
 ### translation data -- shouldn't be here; see issue
 ### http://code.google.com/p/lilypond/issues/detail?id=1050
 
-#langs = ['', 'cs', 'de', 'es', 'fr', 'hu', 'it', 'ja', 'nl', 'zh']
-langs = ['', 'cs', 'de', 'es', 'fr', 'hu', 'it', 'ja', 'nl', 'zh']
+langs = []
+
+import langdefs
+langobjs = langdefs.LANGUAGES
+for i in langobjs:
+    if i.code == 'en':
+        langs.append ('')
+    else:
+        langs.append(i.code)
+
+# these links are relative from /website/ on lilypond.org
+depth = "../"
 
 # Get/update node translations
 '''