<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -138,6 +138,24 @@ module ActionView
       
     end #module DateHelper
 
+    class InstanceTag       
+      def to_label_tag(text = nil, options = {})
+        if options[:locale]
+          @original_locale = Locale.code
+          Locale.code = options[:locale]
+        end
+        options = options.stringify_keys
+        name_and_id = options.dup
+        add_default_name_and_id(name_and_id)
+        options.delete(&quot;index&quot;)
+        options[&quot;for&quot;] ||= name_and_id[&quot;id&quot;]     
+        content = (text.blank? ? nil : text.to_s) || 
+                  (!method_name.blank? &amp;&amp; 
+                    method_name.to_sym.l != &quot;__localization_missing__&quot; ? method_name.to_sym.l : method_name.humanize)
+        Locale.code = @original_locale if options[:locale]
+        label_tag(name_and_id[&quot;id&quot;], content, options)
+      end  # to_label_tag
+    end  # class InstanceTag
 
     module FormOptionsHelper
       </diff>
      <filename>lib/rails/localized_action_view.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,7 @@ require File.dirname(__FILE__) + '/helpers/spec_helper'
 include ActionView::Helpers::DateHelper
 include ActionView::Helpers::NumberHelper
 include ActionView::Helpers::FormOptionsHelper
+include ActionView::Helpers::FormHelper
 
 describe &quot;when Rails is loaded&quot; do
   
@@ -112,5 +113,11 @@ describe &quot;when Rails is loaded&quot; do
     Globalite.current_language = :fr
     us.to_sentence.should == 'Heidi et Matt'
   end
+
+  it 'labels should be localized' do
+    Globalite.current_language = :de
+    # testing for :array_connector here as this is defined within de-DE.yml by default 
+    label(:dummy, :array_connector).should eql('&lt;label for=&quot;dummy_array_connector&quot;&gt;und&lt;/label&gt;')
+  end
   
 end
\ No newline at end of file</diff>
      <filename>spec/core_localization_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>40495dfb0b81750717c8698ff311b41bb597fcb5</id>
    </parent>
  </parents>
  <author>
    <name>Paul Sponagl</name>
    <email>paulsponagl@Macintosh-2.local</email>
  </author>
  <url>http://github.com/mattetti/globalite/commit/4c84ae9e9194d3894676d910a24b5bbc217e24d3</url>
  <id>4c84ae9e9194d3894676d910a24b5bbc217e24d3</id>
  <committed-date>2008-09-04T13:05:20-07:00</committed-date>
  <authored-date>2008-09-04T13:05:20-07:00</authored-date>
  <message>added support for labels (very useful with scaffolding)</message>
  <tree>7b28ff4901a678f546c1c28f2483028890139cee</tree>
  <committer>
    <name>Paul Sponagl</name>
    <email>paulsponagl@Macintosh-2.local</email>
  </committer>
</commit>
