lib/i18n/migrations/migrator.rb in i18n-migrations-0.1.2 vs lib/i18n/migrations/migrator.rb in i18n-migrations-0.1.3
- old
+ new
@@ -132,10 +132,10 @@
return if all_notes[key].blank? && errors.empty?
notes = all_notes[key]
notes = notes.present? ? notes.split("\n") : []
notes = notes.reject { |n| n.start_with?("[error:") }
- all_notes[key] = (errors + notes).join("\n")
+ all_notes[key] = (errors.map{|e| "[error: #{e}]"} + notes).join("\n")
end
def update_locale_info(locale)
data, notes = read_locale_data_and_notes(locale)
yield data, notes