]> git.donarmstrong.com Git - lilypond.git/commitdiff
Mark .message() strings for translation in musicxml2ly
authorJohn Mandereau <john.mandereau@gmail.com>
Thu, 14 Feb 2008 14:54:55 +0000 (15:54 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Thu, 14 Feb 2008 14:54:55 +0000 (15:54 +0100)
python/musicxml.py
scripts/musicxml2ly.py

index a6b8c2ab4133c0d09e1299ae0a0c1032c405ce33..9d6fa054dbddd136b8184021dc0fbfe97ccdb46a 100644 (file)
@@ -51,7 +51,7 @@ class Xml_node:
        return ''.join ([c.get_text () for c in self._children])
 
     def message (self, msg):
-        sys.stderr.write (msg+'\n')
+        lilylib.stderr_write (msg+'\n')
 
         p = self
         while p:
index ac0d30ba941213265189a4f9596a0694e12cc09b..2fe5f23c8175c584a4cc247b67b0e85162a2a283 100644 (file)
@@ -1256,11 +1256,11 @@ def musicxml_note_to_lily_main_event (n):
         if drum_type:
             event.drum_type = drum_type
         else:
-            n.message ("drum %s type unknown, please add to instrument_drumtype_dict" % n.instrument_name)
+            n.message (_ ("drum %s type unknown, please add to instrument_drumtype_dict" % n.instrument_name)
             event.drum_type = 'acousticsnare'
 
     else:
-        n.message ("cannot find suitable event")
+        n.message (_ ("cannot find suitable event"))
 
     if event:
        event.duration = musicxml_duration_to_lily (n)
@@ -1477,7 +1477,7 @@ def musicxml_voice_to_lily_voice (voice):
                 voice_builder.jumpto (n._when)
             except NegativeSkip, neg:
                 voice_builder.correct_negative_skip (n._when)
-                n.message ("Negative skip? from %s to %s, diff %s" % (neg.here, neg.dest, neg.dest - neg.here))
+                n.message (_ ("Negative skip found: from %s to %s, difference is %s") % (neg.here, neg.dest, neg.dest - neg.here))
             
         if isinstance (n, musicxml.Attributes):
             if n.is_first () and n._measure_position == Rational (0):