<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Accelerando/Words.pm</filename>
    </added>
    <added>
      <filename>Accelerando/Words.pm~</filename>
    </added>
    <added>
      <filename>Accelerando/Words/en.pm</filename>
    </added>
    <added>
      <filename>Accelerando/Words/en.pm~</filename>
    </added>
    <added>
      <filename>Accelerando/Words/fr.pm</filename>
    </added>
    <added>
      <filename>Accelerando/Words/fr.pm~</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -115,6 +115,14 @@ under the terms of the GPL, version 2.
 use strict;
 use POSIX;
 use Time::HiRes;
+use Accelerando::Words;
+use utf8;
+use vars qw($language_handle);
+$language_handle = Accelerando::Words-&gt;get_handle() || die &quot;Unable to find an appropriate language for your locale, as given, e.g., in your \$LANG environment variable.&quot;;
+      #... should automatically sense user's locale based on, e.g., $LANG
+
+sub w (@) { $language_handle-&gt;maketext(@_) }
+$Carp::Verbose = 1; # in case maketext fails
 
 $| = 1; # autoflush stdout
 
@@ -166,14 +174,14 @@ sub shut_the_hell_up {
 }
 
 my @inputs = (
-  {'what'=&gt;'initial','default'=&gt;60,'name'=&gt;'Initial tempo'},
-  {'what'=&gt;'wait','default'=&gt;10,'name'=&gt;'Seconds to delay before starting'},
-  {'what'=&gt;'timesig','default'=&gt;4,'name'=&gt;'Beats per bar'},
-  {'what'=&gt;'bars','default'=&gt;4,'name'=&gt;'Number of bars before increasing the tempo'},
-  {'what'=&gt;'add','default'=&gt;0,'name'=&gt;'Amount to add to the tempo after the first time'},
-  {'what'=&gt;'max','default'=&gt;($gui ? '' : '999'),'name'=&gt;'Maximum tempo'},
-  {'what'=&gt;'voice','default'=&gt;$gui,'name'=&gt;'Announce tempos','type'=&gt;'Checkbutton'},
-  {'what'=&gt;'interpolate','default'=&gt;1,'name'=&gt;'Increase tempo smoothly during each repetition','type'=&gt;'Checkbutton'},
+  {'what'=&gt;'initial','default'=&gt;60,'name'=&gt;w('Initial tempo')},
+  {'what'=&gt;'wait','default'=&gt;10,'name'=&gt;w('Seconds to delay before starting')},
+  {'what'=&gt;'timesig','default'=&gt;4,'name'=&gt;w('Beats per bar')},
+  {'what'=&gt;'bars','default'=&gt;4,'name'=&gt;w('Number of bars before increasing the tempo')},
+  {'what'=&gt;'add','default'=&gt;0,'name'=&gt;w('Amount to add to the tempo after the first time')},
+  {'what'=&gt;'max','default'=&gt;($gui ? '' : '999'),'name'=&gt;w('Maximum tempo')},
+  {'what'=&gt;'voice','default'=&gt;$gui,'name'=&gt;w('Announce tempos'),'type'=&gt;'Checkbutton'},
+  {'what'=&gt;'interpolate','default'=&gt;1,'name'=&gt;w('Increase tempo smoothly during each repetition'),'type'=&gt;'Checkbutton'},
 );
 my @descriptions = ();
 foreach my $i(@inputs) {push @descriptions,$i-&gt;{'what'}}
@@ -286,7 +294,7 @@ my $start_sub = sub{
       my $t = int($when_to_start-clock()+.99);
       my $new;
       if ($t&gt;=1) {
-        $new = &quot;Starting in $t seconds...&quot;;
+        $new = w('Starting in [_1] seconds...',$t);
       }
       else {
         $new = '';
@@ -322,10 +330,10 @@ my $start_sub = sub{
     my ($xoffset,$yoffset) = (0,0);
     #$playing_message-&gt;geometry(offset_location($xoffset,$yoffset));
 
-    my $stop_button = Gtk2::Button-&gt;new (&quot;Stop&quot;);
+    my $stop_button = Gtk2::Button-&gt;new (w('Stop'));
     $stop_button-&gt;signal_connect (clicked =&gt; $when_done_playing);
 
-    my $skip_delay_button = Gtk2::Button-&gt;new (&quot;Skip Delay&quot;);
+    my $skip_delay_button = Gtk2::Button-&gt;new (w('Skip Delay'));
     $skip_delay_button-&gt;signal_connect (clicked =&gt; sub{$when_to_start=clock()});
 
     my $row = 0;
@@ -422,7 +430,7 @@ foreach my $i(@inputs) {
   ++$k;
 }
 
-my $start_button = Gtk2::Button-&gt;new (&quot;Start&quot;);
+my $start_button = Gtk2::Button-&gt;new (w('Start'));
 $start_button-&gt;signal_connect (clicked =&gt; $start_sub);
 
 $control_frame-&gt;pack_start($input_table,1,1,5); # box, child, expand, fill, padding</diff>
      <filename>accelerando</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>627e419fb7b2f2b9b2e56abe3b2986b8e7083d93</id>
    </parent>
  </parents>
  <author>
    <name>Ben Crowell</name>
    <email>githubcrowell09@lightandmatter.com</email>
  </author>
  <url>http://github.com/bcrowell/accelerando/commit/7936ea35754aa9cb9a14436ac795681a7565d047</url>
  <id>7936ea35754aa9cb9a14436ac795681a7565d047</id>
  <committed-date>2009-01-31T12:30:16-08:00</committed-date>
  <authored-date>2009-01-31T12:30:16-08:00</authored-date>
  <message>add plumbing for internationalization; add French translation</message>
  <tree>42eca8a4228c949ab30c1bd2d01a525ff7e8301d</tree>
  <committer>
    <name>Ben Crowell</name>
    <email>githubcrowell09@lightandmatter.com</email>
  </committer>
</commit>
