From 82dad857a808630c02aac6b7074eadfbcdbe32bb Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 27 Feb 2023 20:31:01 -0800 Subject: [PATCH] Restore global --- Library/Homebrew/global.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 7712a783f7..c773b8bb0f 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -16,7 +16,7 @@ require "active_support/core_ext/object/blank" require "active_support/core_ext/string/filters" require "active_support/core_ext/object/try" require "active_support/core_ext/array/access" -require "i18n" +require "active_support/core_ext/string/inflections" require "active_support/core_ext/array/conversions" require "active_support/core_ext/hash/deep_merge" require "active_support/core_ext/file/atomic" @@ -27,6 +27,12 @@ require "active_support/core_ext/string/indent" I18n.backend.available_locales # Initialize locales so they can be overwritten. I18n.backend.store_translations :en, support: { array: { last_word_connector: " and " } } +ActiveSupport::Inflector.inflections(:en) do |inflect| + inflect.irregular "formula", "formulae" + inflect.irregular "is", "are" + inflect.irregular "it", "they" +end + HOMEBREW_API_DEFAULT_DOMAIN = ENV.fetch("HOMEBREW_API_DEFAULT_DOMAIN").freeze HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ENV.fetch("HOMEBREW_BOTTLE_DEFAULT_DOMAIN").freeze HOMEBREW_BREW_DEFAULT_GIT_REMOTE = ENV.fetch("HOMEBREW_BREW_DEFAULT_GIT_REMOTE").freeze