]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/website_post.py
Web build: fixes to work on lilypond.org.
[lilypond.git] / scripts / build / website_post.py
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 = [