Skip to content

Commit 2ed033d

Browse files
committed
read_receipts: Add "Read receipts" bottom sheet
Fixes: #667
1 parent 35dd07a commit 2ed033d

19 files changed

+602
-1
lines changed

assets/l10n/app_en.arb

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

lib/generated/l10n/zulip_localizations.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,30 @@ abstract class ZulipLocalizations {
371371
/// **'View read receipts'**
372372
String get actionSheetOptionViewReadReceipts;
373373

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

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,28 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
148148
@override
149149
String get actionSheetOptionViewReadReceipts => 'View read receipts';
150150

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

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,28 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
151151
@override
152152
String get actionSheetOptionViewReadReceipts => 'View read receipts';
153153

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+
154176
@override
155177
String get actionSheetOptionCopyMessageText => 'Nachrichtentext kopieren';
156178

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,28 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
148148
@override
149149
String get actionSheetOptionViewReadReceipts => 'View read receipts';
150150

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

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,28 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
148148
@override
149149
String get actionSheetOptionViewReadReceipts => 'View read receipts';
150150

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

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,28 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
150150
@override
151151
String get actionSheetOptionViewReadReceipts => 'View read receipts';
152152

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

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,28 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
146146
@override
147147
String get actionSheetOptionViewReadReceipts => 'View read receipts';
148148

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

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,28 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
148148
@override
149149
String get actionSheetOptionViewReadReceipts => 'View read receipts';
150150

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

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,28 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
151151
@override
152152
String get actionSheetOptionViewReadReceipts => 'View read receipts';
153153

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+
154176
@override
155177
String get actionSheetOptionCopyMessageText => 'Skopiuj tekst wiadomości';
156178

0 commit comments

Comments
 (0)