From: Phil Holmes Date: Thu, 1 Sep 2011 16:15:51 +0000 (+0100) Subject: Amends create-weblinks-itexi to use langdefs X-Git-Tag: release/2.15.10-1~15 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=3158f995ea81784ea84a06d865e90342ca774406;p=lilypond.git Amends create-weblinks-itexi to use langdefs --- diff --git a/scripts/build/create-weblinks-itexi.py b/scripts/build/create-weblinks-itexi.py index d799925909..cba1c9cd35 100644 --- a/scripts/build/create-weblinks-itexi.py +++ b/scripts/build/create-weblinks-itexi.py @@ -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 '''