Add translations for privacy setting attributes

This commit is contained in:
Andreas Nedbal 2022-02-19 17:45:11 +01:00 committed by Andreas Nedbal
parent e424d5ed38
commit 2fc4b8f4a4
2 changed files with 8 additions and 6 deletions

View File

@ -1,9 +1,8 @@
.card
.card-body
= bootstrap_form_for(current_user, url: { action: 'edit_privacy' }, method: :patch) do |f|
= bootstrap_form_for(current_user, url: { action: "edit_privacy" }, method: :patch) do |f|
= f.check_box :privacy_allow_anonymous_questions
= f.check_box :privacy_allow_public_timeline
= f.check_box :privacy_allow_stranger_answers
= f.check_box :privacy_allow_anonymous_questions, label: t('views.settings.privacy.anonymous')
= f.check_box :privacy_allow_public_timeline, label: t('views.settings.privacy.public')
= f.check_box :privacy_allow_stranger_answers, label: t('views.settings.privacy.stranger')
= f.submit t('views.actions.save'), class: 'btn btn-primary'
= f.primary

View File

@ -54,6 +54,9 @@ en:
remember_created_at: "Remember me set at"
password: "Password"
password_confirmation: "Confirm your password"
privacy_allow_anonymous_questions: "Allow anonymous 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"
profile_header: "Profile header"
sign_in_count: "Sign in count"