]> git.donarmstrong.com Git - lilypond.git/blobdiff - mi2mu/mudela-stream.cc
release: 0.1.24
[lilypond.git] / mi2mu / mudela-stream.cc
index fb8da88d6031f2293a38c199ca02d2d706bcfa66..647a595db1e8f4e9f2b74e176ef12762b5910be2 100644 (file)
@@ -33,14 +33,14 @@ Mudela_stream::~Mudela_stream()
 {
   delete os_p_;
   if  (indent_i_)
-    warning ("lily indent level: " + String (indent_i_));
+    warning (_("lily indent level: ") + String (indent_i_));
 }
 
 Mudela_stream&
 Mudela_stream::operator << (String str)
 {
   static String word_sep_str = "{} \t\n";
-  while  (str.length_i()) 
+  while  (str.length_i())
     {
       int i = str.index_any_i (word_sep_str) + 1;
       if  (!i)
@@ -71,15 +71,15 @@ Mudela_stream::handle_pending_indent()
 void
 Mudela_stream::header()
 {
-  *os_p_ << "% Creator: " << mi2mu_version_str() << "\n";
-  *os_p_ << "% Automatically generated, at ";
+  *os_p_ << _("% Creator: ") << mi2mu_version_str() << "\n";
+  *os_p_ << _("% Automatically generated, at ");
   time_t t (time (0));
   *os_p_ << ctime (&t);
-  *os_p_ << "% from input file: ";
+  *os_p_ << _("% from input file: ");
   //  *os_p_ << midi_parser_l_g->filename_str_;
   // ugh
   *os_p_ << filename_str_g;
-  *os_p_ << "\n\n";    
+  *os_p_ << "\n\n";
   // ugh
   *os_p_ << "\\version \"0.1.6\";\n";
 }
@@ -89,16 +89,16 @@ Mudela_stream::open()
 {
   os_p_ = new ofstream (filename_str_.ch_C ());
   if  (!*os_p_)
-    error  ("can't open: `" + filename_str_ + "\'");
+    error  (_("can't open: `") + filename_str_ + "\'");
 }
 
 void
 Mudela_stream::output (String str)
 {
-  for  (int i = 0; i < str.length_i(); i++) 
+  for  (int i = 0; i < str.length_i(); i++)
     {
       char c = str[ i ];
-      switch  (c) 
+      switch  (c)
        {
        case '{' :
        case '<' :
@@ -141,7 +141,7 @@ Mudela_stream::output (String str)
          *os_p_ << c;
          column_i_++;
          break;
-       }       
+       }
     }
 }
 
@@ -149,27 +149,25 @@ void
 Mudela_stream::output_wrapped (String str)
 {
   // enough room left -> doit
-  if  (column_i_ + str.length_i() <= wrap_column_i_) 
+  if  (column_i_ + str.length_i() <= wrap_column_i_)
     {
       output (str);
       return;
     }
 
   // we're at BOL already; this will never fit -> doit
-  if  (column_i_ == indent_i_ * INDENT_i) 
+  if  (column_i_ == indent_i_ * INDENT_i)
     {
       output (str);
       return;
     }
-  
+
   // ok, let's wrap
   // preserve comment mode
   if  (comment_mode_b_)
     output (String ("\n%"));
-  else 
+  else
     output (String ("\n"));
-  
+
   output (str);
 }
-
-