lib/review/i18n.rb in review-3.0.0.preview1 vs lib/review/i18n.rb in review-3.0.0.preview2

- old
+ new

@@ -88,9 +88,15 @@ user_i18n.each do |key, values| raise KeyError, "Invalid locale file: #{path}" unless values.is_a? Hash @store[key].merge!(values) end end + + # check obsolete locale parameter + s = t('chapter_quote', ['__!@!NUMBER!@!__', '__!@!TITLE!@!__']) + if s !~ /__!@!NUMBER!@!__/ || s !~ /__!@!TITLE!@!__/ + ReVIEW.logger.warn %Q('chapter_quote' should take 2 '%s' (number and title).) + end end def update(user_i18n, locale = nil) locale ||= @locale if @store[locale]