]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/lilylib.py
Imported Upstream version 2.18.0
[lilypond.git] / python / lilylib.py
index 7e3eb410bdec1014c61f95bf58f4318b40463862..647061f4c710d46066b9e1aa20134bbd52fef291 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