<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/active_scaffold/locale/hu.yml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -14,4 +14,4 @@ ActiveRecord::Base.class_eval     {include ActiveRecordPermissions::Permissions}
 
 require 'bridges/bridge.rb'
 
-I18n.load_path &lt;&lt; File.dirname(__FILE__) + '/lib/active_scaffold/locale/en.rb'
+I18n.load_path += Dir[File.join(File.dirname(__FILE__), 'lib', 'active_scaffold', 'locale', '*.{rb,yml}')]</diff>
      <filename>environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -81,8 +81,9 @@ module ActiveScaffold::Config
 
     # a generally-applicable name for this ActiveScaffold ... will be used for generating page/section headers
     attr_writer :label
-    def label
-      as_(@label) || model.human_name
+    def label(options={})
+      options[:count] ||= model.count
+      as_(@label) || model.human_name(options)
     end
 
     ##</diff>
      <filename>lib/active_scaffold/config/core.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,7 @@ module ActiveScaffold::Config
     # ----------------------------
     # the label= method already exists in the Form base class
     def label
-      @label ? as_(@label) : as_(:create_model, :model =&gt; @core.label.singularize)
+      @label ? as_(@label) : as_(:create_model, :model =&gt; @core.label(:count =&gt; 1))
     end
 
     # whether the form stays open after a create or not</diff>
      <filename>lib/active_scaffold/config/create.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@ module ActiveScaffold::Config
     # the label for this action. used for the header.
     attr_writer :label
     def label
-      @label ? as_(@label) : as_(:show_model, :model =&gt; @core.label.singularize)
+      @label ? as_(@label) : as_(:show_model, :model =&gt; @core.label(:count =&gt; 1))
     end
 
     # provides access to the list of columns specifically meant for this action to use</diff>
      <filename>lib/active_scaffold/config/show.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@ module ActiveScaffold::Config
 
     # the label= method already exists in the Form base class
     def label
-      @label ? as_(@label) : as_(:update_model, :model =&gt; @core.label.singularize)
+      @label ? as_(@label) : as_(:update_model, :model =&gt; @core.label(:count =&gt; 1))
     end
 
     attr_accessor :nested_links</diff>
      <filename>lib/active_scaffold/config/update.rb</filename>
    </modified>
    <modified>
      <diff>@@ -77,7 +77,7 @@ module ActiveScaffold
       def active_scaffold_input_plural_association(column, options)
         associated_options = @record.send(column.association.name).collect {|r| [r.to_label, r.id]}
         select_options = associated_options | options_for_association(column.association)
-        return 'no options' if select_options.empty?
+        return as_(:no_options) if select_options.empty?
 
         html = &quot;&lt;ul class=\&quot;checkbox-list\&quot; id=\&quot;#{options[:id]}\&quot;&gt;&quot;
 </diff>
      <filename>lib/active_scaffold/helpers/form_column_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -58,7 +58,7 @@ module ActiveScaffold
       def active_scaffold_search_multi_select(column, options)
         associated_options = @record.send(column.association.name).collect {|r| [r.to_label, r.id]}
         select_options = associated_options | options_for_association(column.association, true)
-        return 'no options' if select_options.empty?
+        return as_(:no_options) if select_options.empty?
 
         html = &quot;&lt;ul class=\&quot;checkbox-list\&quot; id=\&quot;#{options[:id]}\&quot;&gt;&quot;
 </diff>
      <filename>lib/active_scaffold/helpers/search_column_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,6 +28,7 @@
       :loading =&gt; 'Loading&#8230;',
       :next =&gt; 'Next',
       :no_entries =&gt; 'No Entries',
+      :no_options =&gt; 'no options',
       :omit_header =&gt; 'Omit Header',
       :options =&gt; 'Options',
       :pdf =&gt; 'PDF',</diff>
      <filename>lib/active_scaffold/locale/en.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4d8c651f352be31484114a45b189e7d18ff5199d</id>
    </parent>
  </parents>
  <author>
    <name>Laszlo Bacsi</name>
    <email>lackac@lackac.hu</email>
  </author>
  <url>http://github.com/activescaffold/active_scaffold/commit/773cbbfe07e8582255539d2397c0c206d8fbe4af</url>
  <id>773cbbfe07e8582255539d2397c0c206d8fbe4af</id>
  <committed-date>2009-03-30T00:49:52-07:00</committed-date>
  <authored-date>2009-03-26T02:00:24-07:00</authored-date>
  <message>Using I18n for singularizing, localized 'no options', added Hungarian localization</message>
  <tree>f60be840719ffc6681341dea4e8e0eb11bc85033</tree>
  <committer>
    <name>Sergio</name>
    <email>sergio@entrecables.com</email>
  </committer>
</commit>
