From a705543d89df19d768b4dadcb9d22e1dd712dcb0 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 13 Nov 2022 14:28:03 +0100 Subject: [PATCH] Add locales for user requirement setting and views --- config/locales/activerecord.en.yml | 1 + config/locales/errors.en.yml | 2 ++ config/locales/views.en.yml | 7 ++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/locales/activerecord.en.yml b/config/locales/activerecord.en.yml index cb5881a7..8be68c2c 100644 --- a/config/locales/activerecord.en.yml +++ b/config/locales/activerecord.en.yml @@ -68,6 +68,7 @@ en: password: "Password" password_confirmation: "Confirm your password" privacy_allow_anonymous_questions: "Allow anonymous questions" + privacy_require_user: "Require users to be logged in to ask you questions" privacy_allow_public_timeline: "Show your answers in the public timeline" privacy_allow_stranger_answers: "Allow other people to answer your questions" profile_picture: "Profile picture" diff --git a/config/locales/errors.en.yml b/config/locales/errors.en.yml index c00de3cd..339bcec5 100644 --- a/config/locales/errors.en.yml +++ b/config/locales/errors.en.yml @@ -33,3 +33,5 @@ en: invalid_parameter: "Invalid parameter" record_not_found: "Record not found" + + login_required: "You need to be logged in to perform this action" diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 732e4891..d5cfe7cd 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -110,7 +110,6 @@ en: hide: "Answered by" questionbox: title: "Ask something!" - required: "This user does not want to get asked by strangers. Why don't you %{signup}?" placeholder: "Type your question here…" anonymous: "Hide your name" load: "Asking…" @@ -123,6 +122,12 @@ en: banned: "This user got hit with ye olde banhammer." blocking: "You are blocking this user." blocked: "This user has blocked you." + require_user_html: | + This user requires others to be logged in to ask questions.
+ (%{sign_in} or %{sign_up}) + non_anonymous_html: | + This user does not want to receive anonymous questions.
+ (%{sign_in} or %{sign_up}) devise: registrations: edit: