From 73a1ac429ff8c43241e1653dfe2b18304743c966 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Thu, 14 Feb 2008 15:54:55 +0100 Subject: [PATCH] Mark .message() strings for translation in musicxml2ly --- python/musicxml.py | 2 +- scripts/musicxml2ly.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/musicxml.py b/python/musicxml.py index a6b8c2ab41..9d6fa054db 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -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: diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index ac0d30ba94..2fe5f23c81 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -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): -- 2.39.5