Skip to content

Commit 2b769fd

Browse files
committed
action_sheet: Add 'View read receipts' button
Fixes: #667
1 parent 5a5d7d6 commit 2b769fd

18 files changed

+617
-0
lines changed

assets/l10n/app_en.arb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,29 @@
171171
"num": {"type": "int", "example": "2"}
172172
}
173173
},
174+
"actionSheetOptionViewReadReceipts": "View read receipts",
175+
"@actionSheetOptionViewReadReceipts": {
176+
"description": "Label for the 'View read receipts' button in the message action sheet."
177+
},
178+
"actionSheetReadReceipts": "Read receipts",
179+
"@actionSheetReadReceipts": {
180+
"description": "Title for the \"Read receipts\" bottom sheet."
181+
},
182+
"actionSheetReadReceiptsReadCount": "This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by {count} {count, plural, =1{person} other{people}}:",
183+
"@actionSheetReadReceiptsReadCount": {
184+
"description": "Label in the \"Read receipts\" bottom sheet when one or more people have read the message.",
185+
"placeholders": {
186+
"count": {"type": "int", "example": "1"}
187+
}
188+
},
189+
"actionSheetReadReceiptsZeroReadCount": "No one has read this message yet.",
190+
"@actionSheetReadReceiptsZeroReadCount": {
191+
"description": "Label in the \"Read receipts\" bottom sheet when no one has read the message."
192+
},
193+
"actionSheetReadReceiptsErrorReadCount": "Failed to load read receipts.",
194+
"@actionSheetReadReceiptsErrorReadCount": {
195+
"description": "Label in the \"Read receipts\" bottom sheet when loading read receipts failed."
196+
},
174197
"actionSheetOptionCopyMessageText": "Copy message text",
175198
"@actionSheetOptionCopyMessageText": {
176199
"description": "Label for copy message text button on action sheet."

lib/generated/l10n/zulip_localizations.dart

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,36 @@ abstract class ZulipLocalizations {
371371
/// **'Votes for {emojiName} ({num})'**
372372
String seeWhoReactedSheetUserListLabel(String emojiName, int num);
373373

374+
/// Label for the 'View read receipts' button in the message action sheet.
375+
///
376+
/// In en, this message translates to:
377+
/// **'View read receipts'**
378+
String get actionSheetOptionViewReadReceipts;
379+
380+
/// Title for the "Read receipts" bottom sheet.
381+
///
382+
/// In en, this message translates to:
383+
/// **'Read receipts'**
384+
String get actionSheetReadReceipts;
385+
386+
/// Label in the "Read receipts" bottom sheet when one or more people have read the message.
387+
///
388+
/// In en, this message translates to:
389+
/// **'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by {count} {count, plural, =1{person} other{people}}:'**
390+
String actionSheetReadReceiptsReadCount(int count);
391+
392+
/// Label in the "Read receipts" bottom sheet when no one has read the message.
393+
///
394+
/// In en, this message translates to:
395+
/// **'No one has read this message yet.'**
396+
String get actionSheetReadReceiptsZeroReadCount;
397+
398+
/// Label in the "Read receipts" bottom sheet when loading read receipts failed.
399+
///
400+
/// In en, this message translates to:
401+
/// **'Failed to load read receipts.'**
402+
String get actionSheetReadReceiptsErrorReadCount;
403+
374404
/// Label for copy message text button on action sheet.
375405
///
376406
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,31 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
148148
return 'Votes for $emojiName ($num)';
149149
}
150150

151+
@override
152+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
153+
154+
@override
155+
String get actionSheetReadReceipts => 'Read receipts';
156+
157+
@override
158+
String actionSheetReadReceiptsReadCount(int count) {
159+
String _temp0 = intl.Intl.pluralLogic(
160+
count,
161+
locale: localeName,
162+
other: 'people',
163+
one: 'person',
164+
);
165+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
166+
}
167+
168+
@override
169+
String get actionSheetReadReceiptsZeroReadCount =>
170+
'No one has read this message yet.';
171+
172+
@override
173+
String get actionSheetReadReceiptsErrorReadCount =>
174+
'Failed to load read receipts.';
175+
151176
@override
152177
String get actionSheetOptionCopyMessageText => 'Copy message text';
153178

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,31 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
151151
return 'Votes for $emojiName ($num)';
152152
}
153153

154+
@override
155+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
156+
157+
@override
158+
String get actionSheetReadReceipts => 'Read receipts';
159+
160+
@override
161+
String actionSheetReadReceiptsReadCount(int count) {
162+
String _temp0 = intl.Intl.pluralLogic(
163+
count,
164+
locale: localeName,
165+
other: 'people',
166+
one: 'person',
167+
);
168+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
169+
}
170+
171+
@override
172+
String get actionSheetReadReceiptsZeroReadCount =>
173+
'No one has read this message yet.';
174+
175+
@override
176+
String get actionSheetReadReceiptsErrorReadCount =>
177+
'Failed to load read receipts.';
178+
154179
@override
155180
String get actionSheetOptionCopyMessageText => 'Nachrichtentext kopieren';
156181

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,31 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
148148
return 'Votes for $emojiName ($num)';
149149
}
150150

151+
@override
152+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
153+
154+
@override
155+
String get actionSheetReadReceipts => 'Read receipts';
156+
157+
@override
158+
String actionSheetReadReceiptsReadCount(int count) {
159+
String _temp0 = intl.Intl.pluralLogic(
160+
count,
161+
locale: localeName,
162+
other: 'people',
163+
one: 'person',
164+
);
165+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
166+
}
167+
168+
@override
169+
String get actionSheetReadReceiptsZeroReadCount =>
170+
'No one has read this message yet.';
171+
172+
@override
173+
String get actionSheetReadReceiptsErrorReadCount =>
174+
'Failed to load read receipts.';
175+
151176
@override
152177
String get actionSheetOptionCopyMessageText => 'Copy message text';
153178

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,31 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
148148
return 'Votes for $emojiName ($num)';
149149
}
150150

151+
@override
152+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
153+
154+
@override
155+
String get actionSheetReadReceipts => 'Read receipts';
156+
157+
@override
158+
String actionSheetReadReceiptsReadCount(int count) {
159+
String _temp0 = intl.Intl.pluralLogic(
160+
count,
161+
locale: localeName,
162+
other: 'people',
163+
one: 'person',
164+
);
165+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
166+
}
167+
168+
@override
169+
String get actionSheetReadReceiptsZeroReadCount =>
170+
'No one has read this message yet.';
171+
172+
@override
173+
String get actionSheetReadReceiptsErrorReadCount =>
174+
'Failed to load read receipts.';
175+
151176
@override
152177
String get actionSheetOptionCopyMessageText => 'Copy message text';
153178

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,31 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
150150
return 'Votes for $emojiName ($num)';
151151
}
152152

153+
@override
154+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
155+
156+
@override
157+
String get actionSheetReadReceipts => 'Read receipts';
158+
159+
@override
160+
String actionSheetReadReceiptsReadCount(int count) {
161+
String _temp0 = intl.Intl.pluralLogic(
162+
count,
163+
locale: localeName,
164+
other: 'people',
165+
one: 'person',
166+
);
167+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
168+
}
169+
170+
@override
171+
String get actionSheetReadReceiptsZeroReadCount =>
172+
'No one has read this message yet.';
173+
174+
@override
175+
String get actionSheetReadReceiptsErrorReadCount =>
176+
'Failed to load read receipts.';
177+
153178
@override
154179
String get actionSheetOptionCopyMessageText => 'Copia il testo del messaggio';
155180

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,31 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
146146
return 'Votes for $emojiName ($num)';
147147
}
148148

149+
@override
150+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
151+
152+
@override
153+
String get actionSheetReadReceipts => 'Read receipts';
154+
155+
@override
156+
String actionSheetReadReceiptsReadCount(int count) {
157+
String _temp0 = intl.Intl.pluralLogic(
158+
count,
159+
locale: localeName,
160+
other: 'people',
161+
one: 'person',
162+
);
163+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
164+
}
165+
166+
@override
167+
String get actionSheetReadReceiptsZeroReadCount =>
168+
'No one has read this message yet.';
169+
170+
@override
171+
String get actionSheetReadReceiptsErrorReadCount =>
172+
'Failed to load read receipts.';
173+
149174
@override
150175
String get actionSheetOptionCopyMessageText => 'メッセージ本文をコピー';
151176

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,31 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
148148
return 'Votes for $emojiName ($num)';
149149
}
150150

151+
@override
152+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
153+
154+
@override
155+
String get actionSheetReadReceipts => 'Read receipts';
156+
157+
@override
158+
String actionSheetReadReceiptsReadCount(int count) {
159+
String _temp0 = intl.Intl.pluralLogic(
160+
count,
161+
locale: localeName,
162+
other: 'people',
163+
one: 'person',
164+
);
165+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
166+
}
167+
168+
@override
169+
String get actionSheetReadReceiptsZeroReadCount =>
170+
'No one has read this message yet.';
171+
172+
@override
173+
String get actionSheetReadReceiptsErrorReadCount =>
174+
'Failed to load read receipts.';
175+
151176
@override
152177
String get actionSheetOptionCopyMessageText => 'Copy message text';
153178

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,31 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
151151
return 'Votes for $emojiName ($num)';
152152
}
153153

154+
@override
155+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
156+
157+
@override
158+
String get actionSheetReadReceipts => 'Read receipts';
159+
160+
@override
161+
String actionSheetReadReceiptsReadCount(int count) {
162+
String _temp0 = intl.Intl.pluralLogic(
163+
count,
164+
locale: localeName,
165+
other: 'people',
166+
one: 'person',
167+
);
168+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
169+
}
170+
171+
@override
172+
String get actionSheetReadReceiptsZeroReadCount =>
173+
'No one has read this message yet.';
174+
175+
@override
176+
String get actionSheetReadReceiptsErrorReadCount =>
177+
'Failed to load read receipts.';
178+
154179
@override
155180
String get actionSheetOptionCopyMessageText => 'Skopiuj tekst wiadomości';
156181

0 commit comments

Comments
 (0)