From f7463631031e04638f7749f782972e2776d50517 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 7 Feb 2022 23:01:03 +0100 Subject: [PATCH] Move controller-scoped locales to `controllers.en.yml` --- config/locales/controllers.en.yml | 33 +++++++++++++++++++++++++++++++ config/locales/en.yml | 32 ------------------------------ 2 files changed, 33 insertions(+), 32 deletions(-) create mode 100644 config/locales/controllers.en.yml diff --git a/config/locales/controllers.en.yml b/config/locales/controllers.en.yml new file mode 100644 index 00000000..ea0a20a7 --- /dev/null +++ b/config/locales/controllers.en.yml @@ -0,0 +1,33 @@ +en: + announcement: + create: + success: "Announcement created successfully." + error: "Unable to create announcement." + update: + success: "Announcement updated successfully." + error: "Unable to save announcement." + destroy: + success: "Announcement has been deleted successfully." + error: "Unable to delete announcement." + services: + create: + success: "Service connected successfully." + duplicate: "The %{service} account you are trying to connect is already connected to another %{app} account. If you are unable to disconnect the account yourself, please send us a Direct Message on Twitter: @retrospring." + error: "Unable to connect service." + update: + success: "Service updated successfully." + error: "Unable to update service." + failure: + error: :errors.base + destroy: + success: "Service removed successfully." + user: + update: + success: "Profile updated successfully." + error: "Unable to update profile." + notice: + profile_picture: " It might take a few minutes until your new profile picture is shown everywhere." + profile_header: " It might take a few minutes until your new profile header is shown everywhere." + update_profile: + success: :user.update.success + error: :user.update.error diff --git a/config/locales/en.yml b/config/locales/en.yml index 6af492a0..093be9d0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -411,38 +411,6 @@ en: invalid_code: "The code you entered was invalid." setup: success: "Two factor authentication has been enabled for your account." - announcement: - create: - success: "Announcement created successfully." - error: "Unable to create announcement." - update: - success: "Announcement updated successfully." - error: "Unable to save announcement." - destroy: - success: "Announcement has been deleted successfully." - error: "Unable to delete announcement." - services: - create: - success: "Service connected successfully." - duplicate: "The %{service} account you are trying to connect is already connected to another %{app} account. If you are unable to disconnect the account yourself, please send us a Direct Message on Twitter: @retrospring." - error: "Unable to connect service." - update: - success: "Service updated successfully." - error: "Unable to update service." - failure: - error: :errors.base - destroy: - success: "Service removed successfully." - user: - update: - success: "Profile updated successfully." - error: "Unable to update profile." - notice: - profile_picture: " It might take a few minutes until your new profile picture is shown everywhere." - profile_header: " It might take a few minutes until your new profile header is shown everywhere." - update_profile: - success: :user.update.success - error: :user.update.error voc: cancel: "Cancel" close: "Close"