From f303b8cf3121391c6928b53ad40af94c4536d5dd Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 3 Jun 2025 19:35:24 +0300 Subject: [PATCH] Move Gravatar enabled/disabled messages to their controller --- app/controllers/confirmations_controller.rb | 4 ++-- config/locales/en.yml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index 2567d895c..73c007dd2 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -101,9 +101,9 @@ class ConfirmationsController < ApplicationController # display a message about the current status of the Gravatar setting def gravatar_status_message(user) if user.image_use_gravatar - t "profiles.show.gravatar.enabled" + t ".gravatar.enabled" else - t "profiles.show.gravatar.disabled" + t ".gravatar.disabled" end end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 0bb5035df..a435d7fa4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1868,6 +1868,9 @@ en: resend_success_flash: confirmation_sent: We've sent a new confirmation note to %{email} and as soon as you confirm your account you'll be able to get mapping. whitelist: If you use an antispam system which sends confirmation requests then please make sure you whitelist %{sender} as we are unable to reply to any confirmation requests. + gravatar: + disabled: "Gravatar has been disabled." + enabled: "Display of your Gravatar has been enabled." messages: new: title: "Send message" @@ -2000,8 +2003,6 @@ en: gravatar: "Use Gravatar" link: "https://wiki.openstreetmap.org/wiki/Gravatar" what_is_gravatar: "What is Gravatar?" - disabled: "Gravatar has been disabled." - enabled: "Display of your Gravatar has been enabled." new image: "Add an image" keep image: "Keep the current image" delete image: "Remove the current image" -- 2.39.5