From 867736237720d112f23904350fc90ca07d892b17 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 10 Feb 2008 19:07:13 +0100 Subject: [PATCH] MusicXML: Some more translated strings... --- python/musicexp.py | 4 ++-- python/musicxml.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/musicexp.py b/python/musicexp.py index 7aa45b1a99..f68c17ce19 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -567,7 +567,7 @@ class RepeatedMusic: self.music = SequentialMusic () self.music.elements = music else: - sys.stderr.write ("WARNING: Unable to set the music %s for the repeat %s" % (music, self)) + sys.stderr.write (_ ("WARNING: Unable to set the music %s for the repeat %s" % (music, self))) def add_ending (self, music): self.endings.append (music) def print_ly (self, printer): @@ -575,7 +575,7 @@ class RepeatedMusic: if self.music: self.music.print_ly (printer) else: - sys.stderr.write ("WARNING: Encountered repeat without body\n") + sys.stderr.write (_ ("WARNING: Encountered repeat without body\n")) printer.dump ('{}') if self.endings: printer.dump ('\\alternative {') diff --git a/python/musicxml.py b/python/musicxml.py index 53fc9ffb54..a08afb0814 100644 --- a/python/musicxml.py +++ b/python/musicxml.py @@ -262,7 +262,7 @@ class Attributes (Measure_element): else: return (4, 4) except KeyError: - sys.stderr.write ('error: requested time signature, but time sig unknown\n') + sys.stderr.write (_ ("error: requested time signature, but time sig is unknown\n")) return (4, 4) # returns clef information in the form ("cleftype", position, octave-shift) @@ -328,7 +328,7 @@ class Note (Measure_element): # FIXME: is it ok to default to eight note for grace notes? return 3 else: - self.message ("Encountered note at %s with %s duration (no element):" % (self.start, self.duration) ) + self.message (_ ("Encountered note at %s with %s duration (no element):") % (self.start, self.duration) ) return 0 def get_factor (self): @@ -362,7 +362,7 @@ class Part_list (Music_xml_node): if instrument_name: return instrument_name else: - sys.stderr.write ("Opps, couldn't find instrument for ID=%s\n" % id) + sys.stderr.write (_ ("Unable to find find instrument for ID=%s\n") % id) return "Grand Piano" class Part_group (Music_xml_node): -- 2.39.2