]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add some translation markers; normalize whitespace.
authorWerner Lemberg <wl@gnu.org>
Thu, 28 Jun 2012 08:12:25 +0000 (10:12 +0200)
committerWerner Lemberg <wl@gnu.org>
Thu, 28 Jun 2012 08:12:25 +0000 (10:12 +0200)
29 files changed:
lily/arpeggio.cc
lily/directional-element-interface.cc
lily/dispatcher.cc
lily/general-scheme.cc
lily/global-context-scheme.cc
lily/global-context.cc
lily/hairpin.cc
lily/key-engraver.cc
lily/lyric-combine-music-iterator.cc
lily/lyric-engraver.cc
lily/midi-item.cc
lily/multi-measure-rest.cc
lily/page-layout-problem.cc
lily/piano-pedal-align-engraver.cc
lily/pitch-scheme.cc
lily/scale.cc
lily/semi-tie.cc
lily/slur-configuration.cc
lily/slur.cc
lily/spacing-determine-loose-columns.cc
lily/spacing-loose-columns.cc
lily/spanner.cc
lily/stencil-scheme.cc
lily/text-interface.cc
lily/tie.cc
lily/translator-group-ctors.cc
lily/unpure-pure-container.cc
lily/vaticana-ligature-engraver.cc
lily/warn-scheme.cc

index 2f9135e034ebcd9f9a968edd70f4de714756be20..96b6bbd3d5e3be8ee09313fed12249c3f0c2e372 100644 (file)
@@ -22,6 +22,7 @@
 #include "bezier.hh"
 #include "font-interface.hh"
 #include "grob.hh"
+#include "international.hh"
 #include "lookup.hh"
 #include "output-def.hh"
 #include "pointer-group-interface.hh"
@@ -111,7 +112,7 @@ Arpeggio::print (SCM smob)
         }
       else
         {
-          me->warning ("no heads for arpeggio found?");
+          me->warning (_ ("no heads for arpeggio found?"));
           me->suicide ();
           return SCM_EOL;
         }
index 25a05c648d761852cbb46d931dde03a0e6d46d1f..cd8d2c4d98c1b2f8924e6964bdb5746687472055 100644 (file)
@@ -28,7 +28,7 @@ get_grob_direction (Grob *me)
   if (d == ly_symbol2scm ("calculation-in-progress"))
     {
       programming_error ("Grob direction requested while calculation in"
-                         " progress. ");
+                         " progress.");
       return UP;
     }
   if (!is_direction (d))
index c2e777a131de776b42eda946f84d4ac7018da217..8e6350f2949432c87e7de0c8eed20480ece2ea3a 100644 (file)
@@ -259,7 +259,7 @@ Dispatcher::remove_listener (Listener l, SCM ev_class)
   scm_hashq_set_x (listeners_, ev_class, list);
 
   if (first)
-    warning ("Attempting to remove nonexisting listener.");
+    warning (_ ("Attempting to remove nonexisting listener."));
   else if (!scm_is_pair (list))
     {
       /* Unregister with all dispatchers. */
@@ -281,7 +281,7 @@ Dispatcher::register_as_listener (Dispatcher *disp)
   // Don't register twice to the same dispatcher.
   if (scm_assq (disp->self_scm (), dispatchers_) != SCM_BOOL_F)
     {
-      warning ("Already listening to dispatcher, ignoring request");
+      warning (_ ("Already listening to dispatcher, ignoring request"));
       return;
     }
 
index b9507766894df7216cdfa1de7eb65026114a1879..f2b3ff1ae51ec8ca2ae84a94de919c76c9d16ba0 100644 (file)
@@ -466,7 +466,7 @@ format_single_argument (SCM arg, int precision, bool escape = false)
 
       if (isnan (val) || isinf (val))
         {
-          warning (_ ("Found infinity or nan in output. Substituting 0.0"));
+          warning (_ ("Found infinity or nan in output.  Substituting 0.0"));
           return ("0.0");
           if (strict_infinity_checking)
             abort ();
index edd4c8cdbc4899871678566895e22cf4c22cb035..1267793cf3564b3e3198aeffe3b235a7ef3e2528 100644 (file)
@@ -101,7 +101,7 @@ LY_DEFINE (ly_interpret_music_expression, "ly:interpret-music-expression",
 
   Cpu_timer timer;
 
-  message (_ ("Interpreting music... "));
+  message (_ ("Interpreting music..."));
 
   SCM protected_iter = Music_iterator::get_static_get_iterator (music);
   Music_iterator *iter = unsmob_iterator (protected_iter);
index 3384133f353ab9e9546d50c55f88f18a52862bdc..431ffe4de371842899ef7feaf49ce2ccec307c4f 100644 (file)
@@ -154,7 +154,8 @@ Global_context::run_iterator_on_me (Music_iterator *iter)
 
       if (w == prev_mom_)
         {
-          programming_error ("Moment is not increasing. Aborting interpretation.");
+          programming_error ("Moment is not increasing."
+                             "  Aborting interpretation.");
           break;
         }
 
index adaa20159376bb0e0b1f3ec2c1163d760014bd31..3933bd8a3b458c23ed4282f2f9cd4f8cf0334c76 100644 (file)
@@ -58,7 +58,7 @@ Hairpin::broken_bound_padding (SCM smob)
   Item *r_bound = me->get_bound (RIGHT);
   if (r_bound->break_status_dir () != -1)
     {
-      me->warning ("Asking for broken bound padding at a non-broken bound.");
+      me->warning (_ ("Asking for broken bound padding at a non-broken bound."));
       return scm_from_double (0.0);
     }
 
index fd60570821e05dc37f875d0255942d82b63f7284..6f1d9a374e4fb64fbffa24e5c5628e25026aee2d 100644 (file)
@@ -21,6 +21,7 @@
 #include "clef.hh"
 #include "context.hh"
 #include "engraver.hh"
+#include "international.hh"
 #include "item.hh"
 #include "pitch.hh"
 #include "protected-scm.hh"
@@ -195,7 +196,7 @@ Key_engraver::read_event (Stream_event const *r)
           }
 
       if (warn)
-        r->origin ()->warning ("Incomplete keyAlterationOrder for key signature");
+        r->origin ()->warning (_ ("Incomplete keyAlterationOrder for key signature"));
     }
 
   context ()->set_property ("keySignature", scm_reverse_x (accs, SCM_EOL));
index 061148d976723ea04debbfd45f26e0ea54e1c9b7..48c8af205e1a16741b44405850279773869fd07e 100644 (file)
@@ -196,7 +196,7 @@ Lyric_combine_music_iterator::construct_children ()
 
   if (!lyrics_context_)
     {
-      m->origin ()->warning ("argument of \\lyricsto should contain Lyrics context");
+      m->origin ()->warning (_ ("argument of \\lyricsto should contain Lyrics context"));
     }
 
   lyricsto_voice_name_ = get_music ()->get_property ("associated-context");
index f6356330f828707061abaa78c2f3b4ac46b88b99..e4b23d1f943af6d820805ef527461a5817e2c9ae 100644 (file)
@@ -183,7 +183,8 @@ Lyric_engraver::stop_translation_timestep ()
             }
           else
             {
-              text_->warning (_ ("Lyric syllable does not have note. Use \\lyricsto or associatedVoice."));
+              text_->warning (_ ("Lyric syllable does not have note."
+                                 "  Use \\lyricsto or associatedVoice."));
               text_->set_property ("X-offset", scm_from_int (0));
             }
         }
index fb7df2437561636393ecf621a8b6354f882d12c5..0d0edbb4c7fc904a8f4526ecc6389799587e558b 100644 (file)
@@ -158,7 +158,7 @@ Midi_time_signature::to_string () const
   int num = abs (audio_->beats_);
   if (num > 255)
     {
-      warning ("Time signature with more than 255 beats. Truncating");
+      warning (_ ("Time signature with more than 255 beats.  Truncating"));
       num = 255;
     }
 
index c0f26f5c857c394f1db2de658594919de77e5414..47718a2fec86d906e0b3ce0adb7211c17f07237b 100644 (file)
@@ -135,7 +135,8 @@ calc_closest_duration_log (Grob *me, double duration, bool force_round_up, bool
       && (to_boolean (scm_null_p (duration_logs_list))
           || !to_boolean (scm_list_p (duration_logs_list))))
     {
-      warning (_ ("usable-duration-logs must be a non-empty list.  Falling back to whole rests."));
+      warning (_ ("usable-duration-logs must be a non-empty list."
+                  "  Falling back to whole rests."));
       closest_usable_duration_log = 0;
     }
   else
@@ -324,7 +325,7 @@ Multi_measure_rest::calculate_spacing_rods (Grob *me, Real length)
   if (!spacing)
     spacing = unsmob_grob (ri->get_object ("spacing"));
   if (!spacing)
-    me->warning ("Using naive multi measure rest spacing.");
+    me->warning (_ ("Using naive multi measure rest spacing."));
   else
     {
       Spacing_options options;
index 7120c6c68094ffe9aebe9ea75640c184885d7838..dd9b6da71ca8e658775e49f840bcf10311cbd49b 100644 (file)
@@ -400,7 +400,7 @@ Page_layout_problem::Page_layout_problem (Paper_book *pb, SCM page_scm, SCM syst
           foot_stencil = add_footnotes_to_footer (footnotes, foot_stencil, pb);
         }
       else
-        warning ("A page layout problem has been initiated that cannot accommodate footnotes.");
+        warning (_ ("A page layout problem has been initiated that cannot accommodate footnotes."));
 
       header_height_ = head ? head->extent (Y_AXIS).length () : 0;
       footer_height_ = foot_stencil.extent (Y_AXIS).length ();
index 302a39bd3c95949a27d68b7bd2b5877acb8ea011..31115925996d2ce309865beccda09152d142e735 100644 (file)
@@ -165,7 +165,7 @@ Piano_pedal_align_engraver::get_grob_pedal_type (Grob_info g)
   if (g.event_cause ()->in_event_class ("una-corda-event"))
     return UNA_CORDA;
 
-  programming_error ("Unknown piano pedal type. Defaulting to sustain");
+  programming_error ("Unknown piano pedal type.  Defaulting to sustain");
   return SUSTAIN;
 }
 
index a1f58ae63bc0f7dfa57025cf27b52fe22287dbf6..f4231f06859ed305a70a6bdc73d2e0fabb3f6337 100644 (file)
@@ -35,10 +35,10 @@ LY_DEFINE (ly_pitch_transpose, "ly:pitch-transpose",
 LY_DEFINE (ly_make_pitch, "ly:make-pitch",
            2, 1, 0, (SCM octave, SCM note, SCM alter),
            "@var{octave} is specified by an integer, zero for the octave"
-           " containing middle@tie{}C. @var{note} is a number indexing the"
+           " containing middle@tie{}C.  @var{note} is a number indexing the"
            " global default scale, with 0 corresponding to pitch@tie{}C"
-           " and 6 usually corresponding to pitch@tie{}B. "
-           " Optional @var{alter} is"
+           " and 6 usually corresponding to pitch@tie{}B."
+           "  Optional @var{alter} is"
            " a rational number of 200-cent whole tones for alteration.")
 
 {
index 516969f28798c3f459c6856d50e430d0e6a71dfa..c4b3ccf2c5f5e963dda69f0678a3e5876bf7725d 100644 (file)
@@ -75,9 +75,9 @@ Scale *default_global_scale = 0;
 
 LY_DEFINE (ly_set_default_scale, "ly:set-default-scale",
            1, 0, 0, (SCM scale),
-           "Set the global default scale. This determines the tuning of"
+           "Set the global default scale.  This determines the tuning of"
            " pitches with no accidentals or key signatures.  The first"
-           " pitch is C. Alterations are calculated relative to this"
+           " pitch is C.  Alterations are calculated relative to this"
            " scale.  The number of pitches in this scale determines the"
            " number of scale steps that make up an octave.  Usually the"
            " 7-note major scale.")
index 75f2f4f8ed673fec04c714f967596359666099ed..02b7f2941531769048816c090988b1b0a821b01c 100644 (file)
@@ -51,7 +51,7 @@ Semi_tie::calc_control_points (SCM smob)
     }
   else
     {
-      programming_error ("lv tie without Semi_tie_column. Killing lv tie.");
+      programming_error ("lv tie without Semi_tie_column.  Killing lv tie.");
       me->suicide ();
     }
 
index 6095cdf35bc61f1c0d743cdee61eb7ef891ed6bd..b144b2656ff927aeb5a51f506e631b98cf441499 100644 (file)
@@ -191,7 +191,7 @@ Slur_configuration::add_score (Real s, string desc)
 {
   if (s < 0)
     {
-      programming_error ("Negative demerits found for slur. Ignoring");
+      programming_error ("Negative demerits found for slur.  Ignoring");
       s = 0.0;
     }
 
index 7e2cb1d1b02b4b82859f813eb043b3afbe6669a1..6d0d84203ea0da8b80a2d30b5a59d7d739ccfeb5 100644 (file)
@@ -427,7 +427,7 @@ Slur::auxiliary_acknowledge_extra_object (Grob_info const &info,
         }
     }
   else if (avoid != ly_symbol2scm ("ignore"))
-    e->warning (_f ("Ignoring grob for slur: %s. avoid-slur not set?",
+    e->warning (_f ("Ignoring grob for slur: %s.  avoid-slur not set?",
                     e->name ().c_str ()));
 }
 
index 785f01039caed06049c4bede4fc60f36555bbc80..2deae13b27dbf59568f8263e07c7c69e0e5748ba 100644 (file)
@@ -228,7 +228,7 @@ Spacing_spanner::prune_loose_columns (Grob *me,
           */
           if (!right_neighbor || !left_neighbor)
             {
-              c->programming_error ("Cannot determine neighbors for floating column. ");
+              c->programming_error ("Cannot determine neighbors for floating column.");
               c->set_object ("between-cols", scm_cons (cols->at (i - 1)->self_scm (),
                                                        cols->at (i + 1)->self_scm ()));
             }
index 861b540e5f0df7baf287e9d0bb27885f5d9dbb37..bf8e13593aa4ed71074dc1c2e52fc6a2b186baf0 100644 (file)
@@ -83,7 +83,8 @@ set_loose_columns (System *which, Column_x_positions const *posns)
 
       if (!right)
         {
-          programming_error ("Can't attach loose column sensibly. Attaching to end of system.");
+          programming_error ("Can't attach loose column sensibly."
+                             "  Attaching to end of system.");
           right = which->get_bound (RIGHT);
         }
 
index ae0094fc4bdbc0329c1eb611e81f8935b7f92424..eeff11bba7186a0d0360e886c959d0b93e2334c1 100644 (file)
@@ -101,7 +101,7 @@ Spanner::do_break_processing ()
 
           if (!bounds[LEFT] || ! bounds[RIGHT])
             {
-              programming_error ("bounds of this piece aren't breakable. ");
+              programming_error ("bounds of this piece aren't breakable.");
               continue;
             }
 
@@ -110,7 +110,8 @@ Spanner::do_break_processing ()
 
           if (!ok)
             {
-              programming_error (to_string ("Spanner `%s' is not fully contained in parent spanner. Ignoring orphaned part",
+              programming_error (to_string ("Spanner `%s' is not fully contained in parent spanner."
+                                            "  Ignoring orphaned part",
                                             name ().c_str ()));
               continue;
             }
index d73221ff89503495cc2b36d67f660fe0d6fe4955..7e346ca7f821b634977571f31b17ebc03536657d 100644 (file)
@@ -288,7 +288,7 @@ LY_DEFINE (ly_bracket, "ly:bracket",
 LY_DEFINE (ly_stencil_rotate, "ly:stencil-rotate",
            4, 0, 0, (SCM stil, SCM angle, SCM x, SCM y),
            "Return a stencil @var{stil} rotated @var{angle} degrees around"
-           " the relative offset (@var{x}, @var{y}). E.g. an offset of"
+           " the relative offset (@var{x}, @var{y}).  E.g., an offset of"
            " (-1, 1) will rotate the stencil around the left upper corner.")
 {
   Stencil *s = unsmob_stencil (stil);
index 940f42a07524eaacee7a35335fa45aeea91adb43..cd906c2e8eb7f791c58f522ea2a74415f27e8423 100644 (file)
@@ -151,7 +151,7 @@ Text_interface::interpret_markup (SCM layout_smob, SCM props, SCM markup)
     }
   else
     {
-      programming_error ("Object is not a markup. ");
+      programming_error ("Object is not a markup.");
       scm_puts ("This object should be a markup: ", scm_current_error_port ());
       scm_display (markup, scm_current_error_port ());
       scm_puts ("\n", scm_current_error_port ());
index aaac5fbbd484433bf7498315d7fc7ec3971fbb3c..23e8d4c7da958eee36186e169c4a6f453bd471c2 100644 (file)
@@ -104,7 +104,7 @@ Tie::get_position (Grob *me)
     systems.. We should look at the first broken copy.
 
   */
-  programming_error ("Tie without heads. Suicide");
+  programming_error ("Tie without heads.  Suicide");
   me->suicide ();
   return 0;
 }
index c21adb3856a59596ae21d41c94579fce3c9de057..bd349824d7658f0fcfe1de66f8eb7e634fedd05f 100644 (file)
@@ -37,7 +37,7 @@ get_translator_group (SCM sym)
   else if (sym == ly_symbol2scm ("Score_performer"))
     return new Score_performer ();
 
-  error (_f ("fatal error. Couldn't find type: %s",
+  error (_f ("fatal error.  Couldn't find type: %s",
              ly_symbol2string (sym).c_str ()));
   scm_flush (scm_current_error_port ());
   scm_display (sym, scm_current_error_port ());
index 888cf24dae4bc37612e45bb1f8ee38ecf7dca0c9..2caba1216efc9dae103655f11c5fe5315b3039e2 100644 (file)
@@ -53,7 +53,7 @@ LY_DEFINE (ly_unpure_pure_container_p, "ly:unpure-pure-container?",
 LY_DEFINE (ly_make_unpure_pure_container, "ly:make-unpure-pure-container",
            1, 1, 0, (SCM unpure, SCM pure),
            "Make an unpure-pure container.  @var{unpure} should be an unpure"
-           " expression, and @var{pure} should be a pure expression. If @var{pure}"
+           " expression, and @var{pure} should be a pure expression.  If @var{pure}"
            " is ommitted, the value of @var{unpure} will be used twice.")
 {
   SCM z;
index ca90582d51139e569be8e520e0ff7b027c6c0ebe..2e3148cc2884ecfde792223b7bbed4cc567fe01f 100644 (file)
@@ -463,9 +463,9 @@ Vaticana_ligature_engraver::check_for_ambiguous_dot_pitch (Grob_info primitive)
       if (pitch == new_pitch)
         {
           primitive.grob ()->
-          warning ("Ambiguous use of dots in ligature: there are"
-                   " multiple dotted notes with the same pitch."
-                   "  The ligature should be split.");
+          warning (_ ("Ambiguous use of dots in ligature: there are"
+                      " multiple dotted notes with the same pitch."
+                      "  The ligature should be split."));
           return; // supress multiple identical warnings
         }
     }
@@ -521,10 +521,10 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
         }
       else if (augmented_primitives_.size () > 0)
         {
-          primitive->warning ("This ligature has a dotted head followed by"
-                              " a non-dotted head.  The ligature should be"
-                              " split after the last dotted head before"
-                              " this head.");
+          primitive->warning (_ ("This ligature has a dotted head followed by"
+                                 " a non-dotted head.  The ligature should be"
+                                 " split after the last dotted head before"
+                                 " this head."));
         }
 
       if (is_stacked_head (prefix_set, context_info))
index d3ba9d18400eeb3fdc97e0f357a254551974625d..c2449d164eeab9fe6dec153d2e103fadf990ac3b 100644 (file)
@@ -127,7 +127,7 @@ LY_DEFINE (ly_expect_warning, "ly:expect-warning",
            1, 0, 1, (SCM str, SCM rest),
            "A Scheme callable function to register a warning to be expected"
            " and subsequently suppressed.  If the warning is not encountered,"
-           " a warning about the missing warning will be shown. The message"
+           " a warning about the missing warning will be shown.  The message"
            " should be translated with @code{(_ ...)} and changing parameters"
            " given after the format string.")
 {