Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test key structure against "default" locale

This commit allows us to test "en" locale itself.
  • Loading branch information...
commit 909c83f47ca4964e774a9a6beb39bc7dfe807723 1 parent 46b1934
@kuroda kuroda authored
View
2  rails/rails3/action_view.yml
@@ -1,4 +1,4 @@
-"en":
+"default":
number:
# Used in number_with_delimiter()
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
View
2  rails/rails3/active_model.yml
@@ -1,4 +1,4 @@
-en:
+"default":
errors:
# The default format to use in full error messages.
format: "%{attribute} %{message}"
View
2  rails/rails3/active_record.yml
@@ -1,4 +1,4 @@
-en:
+"default":
# Attributes names common to most models
#attributes:
#created_at: "Created at"
View
2  rails/rails3/active_support.yml
@@ -1,4 +1,4 @@
-en:
+"default":
date:
formats:
# Use the strftime parameters for formats.
View
4 rails/test/lib/key_structure.rb
@@ -21,8 +21,8 @@ def check(locale)
init_backend(locale)
I18n.locale = locale.to_sym
- translations = flatten_hash(I18n.backend.translations[:'en'])
- pluralizations = find_pluralizations(I18n.backend.translations[:'en'])
+ translations = flatten_hash(I18n.backend.translations[:'default'])
+ pluralizations = find_pluralizations(I18n.backend.translations[:'default'])
translations.keys.sort.each do |key|
begin
case key
Please sign in to comment.
Something went wrong with that request. Please try again.