]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/lilylib.py
convert-ly: Exit with error status when errors occur.
[lilypond.git] / python / lilylib.py
index afebefb7a807f12aea5b5a7936b97fb35a919721..8aaa57ab8bc24ce5d10a8e0d8cc174f121b9445f 100644 (file)
@@ -40,9 +40,14 @@ try:
     import gettext
     t = gettext.translation ('lilypond', localedir)
     _ = t.ugettext
+    ungettext = t.ungettext
 except:
     def _ (s):
         return s
+    def ungettext (s, p, n):
+        if n == 1:
+            return s
+        return p
 underscore = _
 
 # Urg, Python 2.4 does not define stderr/stdout encoding