inflections.rb 1.0 KB

12345678910111213141516171819202122232425262728
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. # Be sure to restart your server when you modify this file.
  3. # Add new inflection rules using the following format. Inflections
  4. # are locale specific, and you may define rules for as many different
  5. # locales as you wish. All of these examples are active by default:
  6. # ActiveSupport::Inflector.inflections(:en) do |inflect|
  7. # inflect.plural /^(ox)$/i, '\1en'
  8. # inflect.singular /^(ox)en/i, '\1'
  9. # inflect.irregular 'person', 'people'
  10. # inflect.uncountable %w( fish sheep )
  11. # end
  12. # These inflection rules are supported but not enabled by default:
  13. # ActiveSupport::Inflector.inflections(:en) do |inflect|
  14. # inflect.acronym 'RESTful'
  15. # end
  16. ActiveSupport::Inflector.inflections(:en) do |inflect|
  17. # Rails thinks the singularized version of knowledge_bases is knowledge_basis?!
  18. # see: KnowledgeBase.table_name.singularize
  19. inflect.irregular 'base', 'bases'
  20. inflect.acronym 'SMIME'
  21. inflect.acronym 'GitLab'
  22. inflect.acronym 'GitHub'
  23. end