Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4106

Error message translation with i18n

    • Type: Icon: Task Task
    • Resolution: Done
    • 5.0.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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 Unassigned
            Reporter:
            vonTronje vonTronje [X]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: