mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-18 12:30:03 +00:00
Add missing report category translation (#25400)
This commit is contained in:
parent
10746af82f
commit
1cb4514d0e
|
@ -8,10 +8,12 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { AvatarOverlay } from 'mastodon/components/avatar_overlay';
|
import { AvatarOverlay } from 'mastodon/components/avatar_overlay';
|
||||||
import { RelativeTimestamp } from 'mastodon/components/relative_timestamp';
|
import { RelativeTimestamp } from 'mastodon/components/relative_timestamp';
|
||||||
|
|
||||||
|
// This needs to be kept in sync with app/models/report.rb
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
openReport: { id: 'report_notification.open', defaultMessage: 'Open report' },
|
openReport: { id: 'report_notification.open', defaultMessage: 'Open report' },
|
||||||
other: { id: 'report_notification.categories.other', defaultMessage: 'Other' },
|
other: { id: 'report_notification.categories.other', defaultMessage: 'Other' },
|
||||||
spam: { id: 'report_notification.categories.spam', defaultMessage: 'Spam' },
|
spam: { id: 'report_notification.categories.spam', defaultMessage: 'Spam' },
|
||||||
|
legal: { id: 'report_notification.categories.legal', defaultMessage: 'Legal' },
|
||||||
violation: { id: 'report_notification.categories.violation', defaultMessage: 'Rule violation' },
|
violation: { id: 'report_notification.categories.violation', defaultMessage: 'Rule violation' },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -553,6 +553,7 @@
|
||||||
"report.unfollow": "Unfollow @{name}",
|
"report.unfollow": "Unfollow @{name}",
|
||||||
"report.unfollow_explanation": "You are following this account. To not see their posts in your home feed anymore, unfollow them.",
|
"report.unfollow_explanation": "You are following this account. To not see their posts in your home feed anymore, unfollow them.",
|
||||||
"report_notification.attached_statuses": "{count, plural, one {{count} post} other {{count} posts}} attached",
|
"report_notification.attached_statuses": "{count, plural, one {{count} post} other {{count} posts}} attached",
|
||||||
|
"report_notification.categories.legal": "Legal",
|
||||||
"report_notification.categories.other": "Other",
|
"report_notification.categories.other": "Other",
|
||||||
"report_notification.categories.spam": "Spam",
|
"report_notification.categories.spam": "Spam",
|
||||||
"report_notification.categories.violation": "Rule violation",
|
"report_notification.categories.violation": "Rule violation",
|
||||||
|
|
|
@ -48,6 +48,7 @@ class Report < ApplicationRecord
|
||||||
|
|
||||||
validate :validate_rule_ids
|
validate :validate_rule_ids
|
||||||
|
|
||||||
|
# entries here needs to be kept in sync with app/javascript/mastodon/features/notifications/components/report.jsx
|
||||||
enum category: {
|
enum category: {
|
||||||
other: 0,
|
other: 0,
|
||||||
spam: 1_000,
|
spam: 1_000,
|
||||||
|
|
Loading…
Reference in a new issue