aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-08-20 18:44:41 +0200
committerSven Fuchs <svenfuchs@artweb-design.de>2008-08-20 18:44:41 +0200
commitc324ef2785f82f03bb0e703da27ba2b8d97a2da1 (patch)
tree6a047af2d2917afa7fe6390ea106af750de715cb /activesupport/lib/active_support
parentfc0358ae16d5631dd1d996b2cf95a8987f9d0c8d (diff)
parent950b9792baae14e42b894f113ae8dfc95df34da9 (diff)
downloadrails-c324ef2785f82f03bb0e703da27ba2b8d97a2da1.tar.gz
rails-c324ef2785f82f03bb0e703da27ba2b8d97a2da1.tar.bz2
rails-c324ef2785f82f03bb0e703da27ba2b8d97a2da1.zip
Merge branch 'iain' into i18n
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/locale/en-US.rb29
-rw-r--r--activesupport/lib/active_support/locale/en-US.yml31
2 files changed, 31 insertions, 29 deletions
diff --git a/activesupport/lib/active_support/locale/en-US.rb b/activesupport/lib/active_support/locale/en-US.rb
deleted file mode 100644
index ed457d6f4f..0000000000
--- a/activesupport/lib/active_support/locale/en-US.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-{ :'en-US' => {
- :support => {
- :array => {
- :sentence_connector => 'and'
- }
- },
- :date => {
- :formats => {
- :default => "%Y-%m-%d",
- :short => "%b %d",
- :long => "%B %d, %Y",
- },
- :day_names => Date::DAYNAMES,
- :abbr_day_names => Date::ABBR_DAYNAMES,
- :month_names => Date::MONTHNAMES,
- :abbr_month_names => Date::ABBR_MONTHNAMES,
- :order => [:year, :month, :day]
- },
- :time => {
- :formats => {
- :default => "%a, %d %b %Y %H:%M:%S %z",
- :short => "%d %b %H:%M",
- :long => "%B %d, %Y %H:%M",
- },
- :am => 'am',
- :pm => 'pm'
- }
- }
-} \ No newline at end of file
diff --git a/activesupport/lib/active_support/locale/en-US.yml b/activesupport/lib/active_support/locale/en-US.yml
new file mode 100644
index 0000000000..60ecb1d42a
--- /dev/null
+++ b/activesupport/lib/active_support/locale/en-US.yml
@@ -0,0 +1,31 @@
+en-US:
+ date:
+ formats:
+ # Use the strftime parameters for formats.
+ # When no format has been given, it uses default.
+ # You can provide other formats here if you like!
+ default: "%Y-%m-%d"
+ short: "%b %d"
+ long: "%B %d, %Y"
+
+ day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
+ abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
+
+ # Don't forget the nil at the beginning; there's no such thing as a 0th month
+ month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
+ abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
+ # Used in date_select and datime_select.
+ order: [ :year, :month, :day ]
+
+ time:
+ formats:
+ default: "%a, %d %b %Y %H:%M:%S %z"
+ short: "%d %b %H:%M"
+ long: "%B %d, %Y %H:%M"
+ am: "am"
+ pm: "pm"
+
+# Used in array.to_sentence.
+ support:
+ array:
+ sentence_connector: "and"