]> git.donarmstrong.com Git - lilypond.git/commitdiff
Web build: fixes to work on lilypond.org.
authorGraham Percival <graham@percival-music.ca>
Sun, 4 Apr 2010 05:37:57 +0000 (06:37 +0100)
committerGraham Percival <graham@percival-music.ca>
Sun, 4 Apr 2010 05:37:57 +0000 (06:37 +0100)
Documentation/contributor/website-work.itexi
scripts/build/website_post.py

index 794e2c10ae24088842f694ea2532f366a4a71477..774aa4574685314cff40b3949ff875b9ed21c5f5 100644 (file)
@@ -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
index fbb462a51dab90a205963ba780d70251d0363f24..2007e911973287be4316c661ef9970596d08dd57 100644 (file)
@@ -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 = [