mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:52:45 +08:00
FIX: Improve group mention copy for small groups (#24558)
If a group is < 5 members, the mention warning doesn't need to be so harsh. This commit changes the copy for the existing warning and adds a new one for groups that are >= 5 members.
This commit is contained in:
parent
fd5d595412
commit
eb1a622d38
|
@ -859,7 +859,12 @@ export default class ComposerService extends Service {
|
|||
group_link: groupLink,
|
||||
});
|
||||
} else if (userCount > 0) {
|
||||
body = I18n.t("composer.group_mentioned", {
|
||||
// Louder warning for a larger group.
|
||||
const translationKey =
|
||||
userCount >= 5
|
||||
? "composer.larger_group_mentioned"
|
||||
: "composer.group_mentioned";
|
||||
body = I18n.t(translationKey, {
|
||||
group: `@${name}`,
|
||||
count: userCount,
|
||||
group_link: groupLink,
|
||||
|
|
|
@ -2395,8 +2395,9 @@ en:
|
|||
one: "<b>Warning!</b> You mentioned <a href='%{group_link}'>%{group}</a>, however this group has more members than the administrator configured mention limit of %{count} user. Nobody will be notified."
|
||||
other: "<b>Warning!</b> You mentioned <a href='%{group_link}'>%{group}</a>, however this group has more members than the administrator configured mention limit of %{count} users. Nobody will be notified."
|
||||
group_mentioned:
|
||||
one: "By mentioning %{group}, you are about to notify <a href='%{group_link}'>%{count} person</a> – are you sure?"
|
||||
other: "By mentioning %{group}, you are about to notify <a href='%{group_link}'>%{count} people</a> – are you sure?"
|
||||
one: "Mentioning %{group} will notify <a href='%{group_link}'>%{count} person</a>."
|
||||
other: "Mentioning %{group} will notify <a href='%{group_link}'>%{count} people</a>."
|
||||
larger_group_mentioned: "Mentioning %{group} will notify <a href='%{group_link}'>%{count} people</a>. Are you sure?"
|
||||
cannot_see_mention:
|
||||
category: "You mentioned @%{username} but they won't be notified because they do not have access to this category. You will need to add them to a group that has access to this category."
|
||||
private: "You mentioned @%{username} but they won't be notified because they are unable to see this personal message. You will need to invite them to this personal message."
|
||||
|
|
Loading…
Reference in New Issue
Block a user