From 66d8180483f0960a2d7a537261c212860a6b73d3 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 19 Feb 2022 18:08:44 +0100 Subject: [PATCH 1/2] Add translations for settings tabs --- app/views/tabs/_settings.haml | 20 ++++++++++---------- config/locales/views.en.yml | 11 +++++++++++ 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/app/views/tabs/_settings.haml b/app/views/tabs/_settings.haml index 9195899a..884eb2ba 100644 --- a/app/views/tabs/_settings.haml +++ b/app/views/tabs/_settings.haml @@ -1,13 +1,13 @@ .card .list-group - = list_group_item t('views.settings.tabs.account'), edit_user_registration_path - = list_group_item t('views.settings.tabs.profile'), edit_user_profile_path - = list_group_item t('views.settings.tabs.privacy'), edit_user_privacy_path - = list_group_item t('views.settings.tabs.security'), edit_user_security_path - = list_group_item t('views.settings.tabs.sharing'), services_path - = list_group_item 'Muted words', edit_user_mute_rules_path - = list_group_item 'Theme', edit_user_theme_path - = list_group_item 'Your Data', user_data_path - = list_group_item 'Export', user_export_path + = list_group_item t(".account"), edit_user_registration_path + = list_group_item t(".profile"), edit_user_profile_path + = list_group_item t(".privacy"), edit_user_privacy_path + = list_group_item t(".security"), edit_user_security_path + = list_group_item t(".sharing"), services_path + = list_group_item t(".mutes"), edit_user_mute_rules_path + = list_group_item t(".theme"), edit_user_theme_path + = list_group_item t(".data"), user_data_path + = list_group_item t(".export"), user_export_path -.d-none.d-sm-block= render 'shared/links' +.d-none.d-sm-block= render "shared/links" diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index ec5d32bb..ebb5f086 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -146,6 +146,17 @@ en: body: "Raised content basically describes all the different boxes and panels you can see across the site." accent: example: "Some text on top of a accented area on a raised element!" + tabs: + settings: + account: "Account" + profile: "Profile" + privacy: "Privacy" + sharing: "Sharing" + security: "Security" + mutes: "Muted words" + theme: "Theme" + data: "Your Data" + export: "Export" user: edit: title: "Profile Settings" From 1778cb713a4afe4b831a0210b114c65c73d665f1 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 19 Feb 2022 18:09:03 +0100 Subject: [PATCH 2/2] Remove legacy settings tabs locales --- config/locales/en.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 7c09b2b9..0cf50fc0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -360,13 +360,6 @@ en: create: "Create an account" another: "Ask another question" join: "Join %{app_title} today! You'll be able to follow and ask people you know and a lot more." - settings: - tabs: - account: "Account" - profile: "Profile" - privacy: "Privacy" - sharing: "Sharing" - security: "Security" privacy: anonymous: "Allow anonymous questions" public: "Show your answers in the public timeline"