0
0

Fix inconsistencies between code and notification source translation strings (#31658)

This commit is contained in:
Claire 2024-08-30 11:37:39 +02:00 committed by GitHub
parent 1ee1c329cc
commit 35538fe694
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -31,11 +31,11 @@ import { RelationshipsSeveranceEvent } from './relationships_severance_event';
import Report from './report';
const messages = defineMessages({
favourite: { id: 'notification.favourite', defaultMessage: '{name} favorited your status' },
favourite: { id: 'notification.favourite', defaultMessage: '{name} favorited your post' },
follow: { id: 'notification.follow', defaultMessage: '{name} followed you' },
ownPoll: { id: 'notification.own_poll', defaultMessage: 'Your poll has ended' },
poll: { id: 'notification.poll', defaultMessage: 'A poll you voted in has ended' },
reblog: { id: 'notification.reblog', defaultMessage: '{name} boosted your status' },
reblog: { id: 'notification.reblog', defaultMessage: '{name} boosted your post' },
status: { id: 'notification.status', defaultMessage: '{name} just posted' },
update: { id: 'notification.update', defaultMessage: '{name} edited a post' },
adminSignUp: { id: 'notification.admin.sign_up', defaultMessage: '{name} signed up' },
@ -201,7 +201,7 @@ class Notification extends ImmutablePureComponent {
<Icon id='star' icon={StarIcon} className='star-icon' />
<span title={notification.get('created_at')}>
<FormattedMessage id='notification.favourite' defaultMessage='{name} favorited your status' values={{ name: link }} />
<FormattedMessage id='notification.favourite' defaultMessage='{name} favorited your post' values={{ name: link }} />
</span>
</div>
@ -231,7 +231,7 @@ class Notification extends ImmutablePureComponent {
<Icon id='retweet' icon={RepeatIcon} />
<span title={notification.get('created_at')}>
<FormattedMessage id='notification.reblog' defaultMessage='{name} boosted your status' values={{ name: link }} />
<FormattedMessage id='notification.reblog' defaultMessage='{name} boosted your post' values={{ name: link }} />
</span>
</div>

View File

@ -14,7 +14,7 @@ const labelRenderer: LabelRenderer = (displayedName, total, seeMoreHref) => {
return (
<FormattedMessage
id='notification.favourite'
defaultMessage='{name} favorited your status'
defaultMessage='{name} favorited your post'
values={{ name: displayedName }}
/>
);

View File

@ -14,7 +14,7 @@ const labelRenderer: LabelRenderer = (displayedName, total, seeMoreHref) => {
return (
<FormattedMessage
id='notification.reblog'
defaultMessage='{name} boosted your status'
defaultMessage='{name} boosted your post'
values={{ name: displayedName }}
/>
);