From: Graham Percival Date: Sun, 4 Apr 2010 05:37:57 +0000 (+0100) Subject: Web build: fixes to work on lilypond.org. X-Git-Tag: release/2.13.18-1~18^2~1^2~14 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bcca0b75dd9dbed94b428a493576857c7755c049;p=lilypond.git Web build: fixes to work on lilypond.org. --- diff --git a/Documentation/contributor/website-work.itexi b/Documentation/contributor/website-work.itexi index 794e2c10ae..774aa45746 100644 --- a/Documentation/contributor/website-work.itexi +++ b/Documentation/contributor/website-work.itexi @@ -112,7 +112,7 @@ DEST=$HOME/web/ cd $HOME/src/build-website cp $HOME/lilypond/trusted-scripts/website.make . -make -f make/website.make WEBSITE_ONLY_BUILD=1 website +make -f website.make WEBSITE_ONLY_BUILD=1 website rsync -ra $HOME/src/build-website/out-website/website/ $DEST/website/ cp $HOME/src/build-website/out-website/pictures $DEST cp $HOME/src/build-website/out-website/.htaccess $DEST diff --git a/scripts/build/website_post.py b/scripts/build/website_post.py index fbb462a51d..2007e91197 100644 --- a/scripts/build/website_post.py +++ b/scripts/build/website_post.py @@ -40,13 +40,18 @@ translations = { # needs at least: make -C po or make- C Documentation/po HAVE_GETTEXT = False +#### this breaks on lilypond.org # Keep some freakin' gettext compatibility -if HAVE_GETTEXT: - import lilylib as ly; - global _;_=ly._ -else: # poor mans translation - def _ (string, lang=os.environ['LANG']): - return translations.get (lang.split ('_')[0], {}).get (string, string) +#if HAVE_GETTEXT: +# import lilylib as ly; +# global _;_=ly._ +#else: # poor mans translation +# def _ (string, lang=os.environ['LANG']): +# return translations.get (lang.split ('_')[0], {}).get (string, string) + +#### this works on lilypond.org +def _ (string, lang): + return translations.get (lang.split ('_')[0], {}).get (string, string) exclude_manuals = [