From 35dc12c3a23a449a1902ceb2926bcc9de6e7ef2f Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 7 May 2025 14:31:48 +0200 Subject: [PATCH] Use plural forms for `date_of_birth` prompt --- app/views/auth/registrations/new.html.haml | 2 +- config/locales/simple_form.en.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/auth/registrations/new.html.haml b/app/views/auth/registrations/new.html.haml index 25479104ee..22f53a4f50 100644 --- a/app/views/auth/registrations/new.html.haml +++ b/app/views/auth/registrations/new.html.haml @@ -56,7 +56,7 @@ .fields-group = f.input :date_of_birth, as: :date_of_birth, - hint: t('simple_form.hints.user.date_of_birth', age: Setting.min_age.to_i), + hint: t('simple_form.hints.user.date_of_birth', count: Setting.min_age.to_i), required: true, wrapper: :with_block_label diff --git a/config/locales/simple_form.en.yml b/config/locales/simple_form.en.yml index 5e162a0d64..240db70b32 100644 --- a/config/locales/simple_form.en.yml +++ b/config/locales/simple_form.en.yml @@ -148,7 +148,9 @@ en: min_age: Should not be below the minimum age required by the laws of your jurisdiction. user: chosen_languages: When checked, only posts in selected languages will be displayed in public timelines - date_of_birth: We have to make sure you're at least %{age} to use Mastodon. We won't store this. + date_of_birth: + one: We have to make sure you're at least %{count} to use Mastodon. We won't store this. + other: We have to make sure you're at least %{count} to use Mastodon. We don't store this. role: The role controls which permissions the user has. user_role: color: Color to be used for the role throughout the UI, as RGB in hex format