From bcca0b75dd9dbed94b428a493576857c7755c049 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sun, 4 Apr 2010 06:37:57 +0100 Subject: [PATCH] Web build: fixes to work on lilypond.org. --- Documentation/contributor/website-work.itexi | 2 +- scripts/build/website_post.py | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) 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 = [ -- 2.39.2