Skip to content

Commit

Permalink
i18n-0.5.0 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
pejuko committed Nov 29, 2010
1 parent 82a6a51 commit 634572f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/i18n/backend/translate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def translate(locale, key, options = {})

return nil if tr.to_s.empty?

values = options.except(*I18n::Backend::Base::RESERVED_KEYS)
values = options.except(*RESERVED_KEYS)

tr = resolve(locale, key, tr, options)
tr = interpolate(locale, tr, values) if values
Expand Down
2 changes: 1 addition & 1 deletion test/tc_backend_properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_1020_escaped_operators_in_key
end

def test_1030_key_without_assign_and_value
assert_equal( "translation missing: cze, empty_key", I18n.t("empty_key") )
assert_equal( "translation missing: cze.empty_key", I18n.t("empty_key") )
end

end

0 comments on commit 634572f

Please sign in to comment.