Skip to content

Commit

Permalink
autocomplete: Support @-wildcard in user-mention autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
sm-sayedi committed Jan 15, 2025
1 parent c6a1e69 commit 0b864f2
Show file tree
Hide file tree
Showing 17 changed files with 705 additions and 81 deletions.
12 changes: 11 additions & 1 deletion assets/l10n/app_ar.arb
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
{}
{
"wildcardMentionAll": "الجميع",
"wildcardMentionEveryone": "الكل",
"wildcardMentionChannel": "القناة",
"wildcardMentionStream": "الدفق",
"wildcardMentionTopic": "الموضوع",
"wildcardMentionChannelDescription": "إخطار القناة",
"wildcardMentionStreamDescription": "إخطار الدفق",
"wildcardMentionAllDmDescription": "إخطار المستلمين",
"wildcardMentionTopicDescription": "إخطار الموضوع"
}
36 changes: 36 additions & 0 deletions assets/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,42 @@
"@manyPeopleTyping": {
"description": "Text to display when there are multiple users typing."
},
"wildcardMentionAll": "all",
"@wildcardMentionAll": {
"description": "Text for \"@all\" wildcard-mention autocomplete option when writing a channel or DM message."
},
"wildcardMentionEveryone": "everyone",
"@wildcardMentionEveryone": {
"description": "Text for \"@everyone\" wildcard-mention autocomplete option when writing a channel or DM message."
},
"wildcardMentionChannel": "channel",
"@wildcardMentionChannel": {
"description": "Text for \"@channel\" wildcard-mention autocomplete option when writing a channel message."
},
"wildcardMentionStream": "stream",
"@wildcardMentionStream": {
"description": "Text for \"@stream\" wildcard-mention autocomplete option when writing a channel message in older servers."
},
"wildcardMentionTopic": "topic",
"@wildcardMentionTopic": {
"description": "Text for \"@topic\" wildcard-mention autocomplete option when writing a channel message."
},
"wildcardMentionChannelDescription": "Notify channel",
"@wildcardMentionChannelDescription": {
"description": "Description for \"@all\", \"@everyone\", \"@channel\", and \"@stream\" wildcard-mention autocomplete options when writing a channel message."
},
"wildcardMentionStreamDescription": "Notify stream",
"@wildcardMentionStreamDescription": {
"description": "Description for \"@all\", \"@everyone\", and \"@stream\" wildcard-mention autocomplete options when writing a channel message in older severs."
},
"wildcardMentionAllDmDescription": "Notify recipients",
"@wildcardMentionAllDmDescription": {
"description": "Description for \"@all\" and \"@everyone\" wildcard-mention autocomplete options when writing a DM message."
},
"wildcardMentionTopicDescription": "Notify topic",
"@wildcardMentionTopicDescription": {
"description": "Description for \"@topic\" wildcard-mention autocomplete options when writing a channel message."
},
"messageIsEditedLabel": "EDITED",
"@messageIsEditedLabel": {
"description": "Label for an edited message. (Use ALL CAPS for cased alphabets: Latin, Greek, Cyrillic, etc.)"
Expand Down
54 changes: 54 additions & 0 deletions lib/generated/l10n/zulip_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,60 @@ abstract class ZulipLocalizations {
/// **'Several people are typing…'**
String get manyPeopleTyping;

/// Text for "@all" wildcard-mention autocomplete option when writing a channel or DM message.
///
/// In en, this message translates to:
/// **'all'**
String get wildcardMentionAll;

/// Text for "@everyone" wildcard-mention autocomplete option when writing a channel or DM message.
///
/// In en, this message translates to:
/// **'everyone'**
String get wildcardMentionEveryone;

/// Text for "@channel" wildcard-mention autocomplete option when writing a channel message.
///
/// In en, this message translates to:
/// **'channel'**
String get wildcardMentionChannel;

/// Text for "@stream" wildcard-mention autocomplete option when writing a channel message in older servers.
///
/// In en, this message translates to:
/// **'stream'**
String get wildcardMentionStream;

/// Text for "@topic" wildcard-mention autocomplete option when writing a channel message.
///
/// In en, this message translates to:
/// **'topic'**
String get wildcardMentionTopic;

/// Description for "@all", "@everyone", "@channel", and "@stream" wildcard-mention autocomplete options when writing a channel message.
///
/// In en, this message translates to:
/// **'Notify channel'**
String get wildcardMentionChannelDescription;

/// Description for "@all", "@everyone", and "@stream" wildcard-mention autocomplete options when writing a channel message in older severs.
///
/// In en, this message translates to:
/// **'Notify stream'**
String get wildcardMentionStreamDescription;

/// Description for "@all" and "@everyone" wildcard-mention autocomplete options when writing a DM message.
///
/// In en, this message translates to:
/// **'Notify recipients'**
String get wildcardMentionAllDmDescription;

/// Description for "@topic" wildcard-mention autocomplete options when writing a channel message.
///
/// In en, this message translates to:
/// **'Notify topic'**
String get wildcardMentionTopicDescription;

/// Label for an edited message. (Use ALL CAPS for cased alphabets: Latin, Greek, Cyrillic, etc.)
///
/// In en, this message translates to:
Expand Down
27 changes: 27 additions & 0 deletions lib/generated/l10n/zulip_localizations_ar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,33 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
@override
String get manyPeopleTyping => 'Several people are typing…';

@override
String get wildcardMentionAll => 'الجميع';

@override
String get wildcardMentionEveryone => 'الكل';

@override
String get wildcardMentionChannel => 'القناة';

@override
String get wildcardMentionStream => 'الدفق';

@override
String get wildcardMentionTopic => 'الموضوع';

@override
String get wildcardMentionChannelDescription => 'إخطار القناة';

@override
String get wildcardMentionStreamDescription => 'إخطار الدفق';

@override
String get wildcardMentionAllDmDescription => 'إخطار المستلمين';

@override
String get wildcardMentionTopicDescription => 'إخطار الموضوع';

@override
String get messageIsEditedLabel => 'EDITED';

Expand Down
27 changes: 27 additions & 0 deletions lib/generated/l10n/zulip_localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,33 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
@override
String get manyPeopleTyping => 'Several people are typing…';

@override
String get wildcardMentionAll => 'all';

@override
String get wildcardMentionEveryone => 'everyone';

@override
String get wildcardMentionChannel => 'channel';

@override
String get wildcardMentionStream => 'stream';

@override
String get wildcardMentionTopic => 'topic';

@override
String get wildcardMentionChannelDescription => 'Notify channel';

@override
String get wildcardMentionStreamDescription => 'Notify stream';

@override
String get wildcardMentionAllDmDescription => 'Notify recipients';

@override
String get wildcardMentionTopicDescription => 'Notify topic';

@override
String get messageIsEditedLabel => 'EDITED';

Expand Down
27 changes: 27 additions & 0 deletions lib/generated/l10n/zulip_localizations_ja.dart
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,33 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
@override
String get manyPeopleTyping => 'Several people are typing…';

@override
String get wildcardMentionAll => 'all';

@override
String get wildcardMentionEveryone => 'everyone';

@override
String get wildcardMentionChannel => 'channel';

@override
String get wildcardMentionStream => 'stream';

@override
String get wildcardMentionTopic => 'topic';

@override
String get wildcardMentionChannelDescription => 'Notify channel';

@override
String get wildcardMentionStreamDescription => 'Notify stream';

@override
String get wildcardMentionAllDmDescription => 'Notify recipients';

@override
String get wildcardMentionTopicDescription => 'Notify topic';

@override
String get messageIsEditedLabel => 'EDITED';

Expand Down
27 changes: 27 additions & 0 deletions lib/generated/l10n/zulip_localizations_nb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,33 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
@override
String get manyPeopleTyping => 'Several people are typing…';

@override
String get wildcardMentionAll => 'all';

@override
String get wildcardMentionEveryone => 'everyone';

@override
String get wildcardMentionChannel => 'channel';

@override
String get wildcardMentionStream => 'stream';

@override
String get wildcardMentionTopic => 'topic';

@override
String get wildcardMentionChannelDescription => 'Notify channel';

@override
String get wildcardMentionStreamDescription => 'Notify stream';

@override
String get wildcardMentionAllDmDescription => 'Notify recipients';

@override
String get wildcardMentionTopicDescription => 'Notify topic';

@override
String get messageIsEditedLabel => 'EDITED';

Expand Down
27 changes: 27 additions & 0 deletions lib/generated/l10n/zulip_localizations_pl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,33 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
@override
String get manyPeopleTyping => 'Wielu ludzi coś pisze…';

@override
String get wildcardMentionAll => 'all';

@override
String get wildcardMentionEveryone => 'everyone';

@override
String get wildcardMentionChannel => 'channel';

@override
String get wildcardMentionStream => 'stream';

@override
String get wildcardMentionTopic => 'topic';

@override
String get wildcardMentionChannelDescription => 'Notify channel';

@override
String get wildcardMentionStreamDescription => 'Notify stream';

@override
String get wildcardMentionAllDmDescription => 'Notify recipients';

@override
String get wildcardMentionTopicDescription => 'Notify topic';

@override
String get messageIsEditedLabel => 'ZMIENIONO';

Expand Down
27 changes: 27 additions & 0 deletions lib/generated/l10n/zulip_localizations_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,33 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
@override
String get manyPeopleTyping => 'Несколько человек набирают сообщения…';

@override
String get wildcardMentionAll => 'all';

@override
String get wildcardMentionEveryone => 'everyone';

@override
String get wildcardMentionChannel => 'channel';

@override
String get wildcardMentionStream => 'stream';

@override
String get wildcardMentionTopic => 'topic';

@override
String get wildcardMentionChannelDescription => 'Notify channel';

@override
String get wildcardMentionStreamDescription => 'Notify stream';

@override
String get wildcardMentionAllDmDescription => 'Notify recipients';

@override
String get wildcardMentionTopicDescription => 'Notify topic';

@override
String get messageIsEditedLabel => 'ИЗМЕНЕНО';

Expand Down
27 changes: 27 additions & 0 deletions lib/generated/l10n/zulip_localizations_sk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,33 @@ class ZulipLocalizationsSk extends ZulipLocalizations {
@override
String get manyPeopleTyping => 'Niekoľko ludí píše…';

@override
String get wildcardMentionAll => 'all';

@override
String get wildcardMentionEveryone => 'everyone';

@override
String get wildcardMentionChannel => 'channel';

@override
String get wildcardMentionStream => 'stream';

@override
String get wildcardMentionTopic => 'topic';

@override
String get wildcardMentionChannelDescription => 'Notify channel';

@override
String get wildcardMentionStreamDescription => 'Notify stream';

@override
String get wildcardMentionAllDmDescription => 'Notify recipients';

@override
String get wildcardMentionTopicDescription => 'Notify topic';

@override
String get messageIsEditedLabel => 'UPRAVENÉ';

Expand Down
Loading

0 comments on commit 0b864f2

Please sign in to comment.