Add translations for mute rules view

This commit is contained in:
Andreas Nedbal 2022-02-17 00:55:13 +01:00 committed by Andreas Nedbal
parent ee969f5361
commit cc50219d05
3 changed files with 20 additions and 8 deletions

View file

@ -1,24 +1,24 @@
.card
.card-body
%h2 Muted words
%p Muting words (or longer phrases) will prevent questions containing those to appear in your inbox.
%p Note: Filtered questions are discarded completely from your inbox, and won't reappear if you remove a filter later on.
%h2= t(".heading")
%p= t(".body")
%p= t(".note")
.js-rules-list
- @rules.each do |rule|
.form-group
.input-group
%input.form-control{ disabled: true, value: rule.muted_phrase }
.input-group-append
%button.btn.btn-danger{ type: 'button', data: { id: rule.id } } Remove
%button.btn.btn-danger{ type: "button", data: { id: rule.id } }= t(".actions.remove")
.form-group
%form
.input-group
%input.form-control#new-rule-text{ placeholder: 'Add a new muted word...' }
%input.form-control#new-rule-text{ placeholder: t(".placeholder") }
.input-group-append
%button.btn.btn-primary#new-rule-submit{ type: 'submit' } Add
%button.btn.btn-primary#new-rule-submit{ type: "submit" }= t(".actions.add")
%template#rule-template
.form-group
.input-group
%input.form-control{ disabled: true }
.input-group-append
%button.btn.btn-danger{ type: 'button' } Remove
%button.btn.btn-danger{ type: "button" }= t(".actions.remove")

View file

@ -55,6 +55,14 @@ en:
export_url:
none: "Once exporting your account is done, a download link will appear here."
present: "Here's your export from %{time}"
muted:
heading: "Muted words"
body: "Muting words (or longer phrases) will prevent questions containing those to appear in your inbox."
note: "Note: Filtered questions are discarded completely from your inbox, and won't reappear if you remove a filter later on."
placeholder: "Add a new muted word..."
actions:
add: "Add"
remove: "Remove"
profile:
adjust:
profile_picture: "Adjust your new profile picture"
@ -141,6 +149,8 @@ en:
user:
edit:
title: "Profile Settings"
edit_mute:
title: "Muted Words"
edit_security:
title: "Security Settings"
edit_theme:

View file

@ -9,4 +9,6 @@ en:
save: "Save changes"
register: "Sign up"
terms: "Terms of Service"
update: "Update"
update: "Update"
messages:
noauth: "requires authentication"