Error message translation with i18n

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 5.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When trying to translate validation error messages with i18n I was unable to change the titles for the 'problem', 'summary' and 'resolution' parts. The content can be easily changed, the titles however are hardcoded in [mongoid_error.rb] (https://github.com/mongoid/mongoid/blob/master/lib/mongoid/errors/mongoid_error.rb#L25-L27).
      Sadly this makes translations into other languages weird.

      I think it would be useful to allow setting these values via i18n locales as well. If you agree I'd be happy to supply a pull request.

      Cheers
      Hagen

              Assignee:
              Unassigned
              Reporter:
              vonTronje [X]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: