From bcd119981841f7aa4d9b4f06da2fad1832a4a1eb Mon Sep 17 00:00:00 2001 From: Paulo Abreu Date: Sat, 9 Nov 2024 01:00:43 +0000 Subject: [PATCH] Update update.rb to track the latest Rails release --- rails/rails/active_model.yml | 1 + rails/rails/active_support.yml | 2 ++ rails/script/update.rb | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/rails/rails/active_model.yml b/rails/rails/active_model.yml index cbd3f7074..c6a036359 100644 --- a/rails/rails/active_model.yml +++ b/rails/rails/active_model.yml @@ -18,6 +18,7 @@ en: too_long: one: "is too long (maximum is 1 character)" other: "is too long (maximum is %{count} characters)" + password_too_long: "is too long" too_short: one: "is too short (minimum is 1 character)" other: "is too short (minimum is %{count} characters)" diff --git a/rails/rails/active_support.yml b/rails/rails/active_support.yml index 0453883a7..521342080 100644 --- a/rails/rails/active_support.yml +++ b/rails/rails/active_support.yml @@ -57,6 +57,7 @@ en: format: # Where is the currency sign? %u is the currency unit, %n is the number (default: $5.00) format: "%u%n" + negative_format: "-%u%n" unit: "$" # These six are to override number.format and are optional separator: "." @@ -112,6 +113,7 @@ en: tb: "TB" pb: "PB" eb: "EB" + zb: "ZB" # Used in NumberHelper.number_to_human() decimal_units: format: "%n %u" diff --git a/rails/script/update.rb b/rails/script/update.rb index 1e19ad2dc..44901353b 100644 --- a/rails/script/update.rb +++ b/rails/script/update.rb @@ -4,11 +4,11 @@ puts "Fetching latest Rails locale files to #{rails_locale_dir}" exec %( - curl -Lo '#{rails_locale_dir}/action_view.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/actionview/lib/action_view/locale/en.yml + curl -Lo '#{rails_locale_dir}/action_view.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/actionview/lib/action_view/locale/en.yml - curl -Lo '#{rails_locale_dir}/active_model.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/activemodel/lib/active_model/locale/en.yml + curl -Lo '#{rails_locale_dir}/active_model.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/activemodel/lib/active_model/locale/en.yml - curl -Lo '#{rails_locale_dir}/active_record.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/activerecord/lib/active_record/locale/en.yml + curl -Lo '#{rails_locale_dir}/active_record.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/activerecord/lib/active_record/locale/en.yml - curl -Lo '#{rails_locale_dir}/active_support.yml' https://raw.githubusercontent.com/rails/rails/7-0-stable/activesupport/lib/active_support/locale/en.yml + curl -Lo '#{rails_locale_dir}/active_support.yml' https://raw.githubusercontent.com/rails/rails/8-0-stable/activesupport/lib/active_support/locale/en.yml )