Skip to content

Commit

Permalink
localized prompts for elapsed time time_select
Browse files Browse the repository at this point in the history
  • Loading branch information
S. Brent Faulkner committed Feb 20, 2010
1 parent 79ac9af commit 164c2dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/elapsed_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ def #{method_name}
end

ActiveRecord::Base.send :extend, ActiveRecord::ElapsedTime::ClassMethods


I18n.load_path << "#{File.dirname(__FILE__)}/elapsed_time/locale/en.yml"
6 changes: 6 additions & 0 deletions lib/elapsed_time/locale/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"en":
datetime:
prompts:
hours: "Hours"
minutes: "Minutes"
second: "Seconds"

0 comments on commit 164c2dd

Please sign in to comment.