lib/i18n/exceptions.rb in i18n-0.8.4 vs lib/i18n/exceptions.rb in i18n-0.8.5
- old
+ new
@@ -69,13 +69,13 @@
class MissingTranslationData < ArgumentError
include MissingTranslation::Base
end
class InvalidPluralizationData < ArgumentError
- attr_reader :entry, :count
- def initialize(entry, count)
- @entry, @count = entry, count
- super "translation data #{entry.inspect} can not be used with :count => #{count}"
+ attr_reader :entry, :count, :key
+ def initialize(entry, count, key)
+ @entry, @count, @key = entry, count, key
+ super "translation data #{entry.inspect} can not be used with :count => #{count}. key '#{key}' is missing."
end
end
class MissingInterpolationArgument < ArgumentError
attr_reader :key, :values, :string