Skip to content

Commit b4cd5aa

Browse files
sm-sayedignpricechrisbobbe
committed
action_sheet: Add 'View read receipts' button
Fixes: #667 Co-authored-by: Greg Price <[email protected]> Co-authored-by: Chris Bobbe <[email protected]>
1 parent 925da63 commit b4cd5aa

19 files changed

+817
-0
lines changed

assets/l10n/app_en.arb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,29 @@
202202
"num": {"type": "int", "example": "2"}
203203
}
204204
},
205+
"actionSheetOptionViewReadReceipts": "View read receipts",
206+
"@actionSheetOptionViewReadReceipts": {
207+
"description": "Label for the 'View read receipts' button in the message action sheet."
208+
},
209+
"actionSheetReadReceipts": "Read receipts",
210+
"@actionSheetReadReceipts": {
211+
"description": "Title for the \"Read receipts\" bottom sheet."
212+
},
213+
"actionSheetReadReceiptsReadCount": "{count, plural, =1{This message has been <z-link>read</z-link> by {count} person:} other{This message has been <z-link>read</z-link> by {count} people:}}",
214+
"@actionSheetReadReceiptsReadCount": {
215+
"description": "Label in the \"Read receipts\" bottom sheet when one or more people have read the message.",
216+
"placeholders": {
217+
"count": {"type": "int", "example": "1"}
218+
}
219+
},
220+
"actionSheetReadReceiptsZeroReadCount": "No one has read this message yet.",
221+
"@actionSheetReadReceiptsZeroReadCount": {
222+
"description": "Label in the \"Read receipts\" bottom sheet when no one has read the message."
223+
},
224+
"actionSheetReadReceiptsErrorReadCount": "Failed to load read receipts.",
225+
"@actionSheetReadReceiptsErrorReadCount": {
226+
"description": "Label in the \"Read receipts\" bottom sheet when loading read receipts failed."
227+
},
205228
"actionSheetOptionCopyMessageText": "Copy message text",
206229
"@actionSheetOptionCopyMessageText": {
207230
"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
@@ -413,6 +413,36 @@ abstract class ZulipLocalizations {
413413
/// **'Votes for {emojiName} ({num})'**
414414
String seeWhoReactedSheetUserListLabel(String emojiName, int num);
415415

416+
/// Label for the 'View read receipts' button in the message action sheet.
417+
///
418+
/// In en, this message translates to:
419+
/// **'View read receipts'**
420+
String get actionSheetOptionViewReadReceipts;
421+
422+
/// Title for the "Read receipts" bottom sheet.
423+
///
424+
/// In en, this message translates to:
425+
/// **'Read receipts'**
426+
String get actionSheetReadReceipts;
427+
428+
/// Label in the "Read receipts" bottom sheet when one or more people have read the message.
429+
///
430+
/// In en, this message translates to:
431+
/// **'{count, plural, =1{This message has been <z-link>read</z-link> by {count} person:} other{This message has been <z-link>read</z-link> by {count} people:}}'**
432+
String actionSheetReadReceiptsReadCount(int count);
433+
434+
/// Label in the "Read receipts" bottom sheet when no one has read the message.
435+
///
436+
/// In en, this message translates to:
437+
/// **'No one has read this message yet.'**
438+
String get actionSheetReadReceiptsZeroReadCount;
439+
440+
/// Label in the "Read receipts" bottom sheet when loading read receipts failed.
441+
///
442+
/// In en, this message translates to:
443+
/// **'Failed to load read receipts.'**
444+
String get actionSheetReadReceiptsErrorReadCount;
445+
416446
/// Label for copy message text button on action sheet.
417447
///
418448
/// 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
@@ -172,6 +172,31 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
172172
return 'Votes for $emojiName ($num)';
173173
}
174174

175+
@override
176+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
177+
178+
@override
179+
String get actionSheetReadReceipts => 'Read receipts';
180+
181+
@override
182+
String actionSheetReadReceiptsReadCount(int count) {
183+
String _temp0 = intl.Intl.pluralLogic(
184+
count,
185+
locale: localeName,
186+
other: 'This message has been <z-link>read</z-link> by $count people:',
187+
one: 'This message has been <z-link>read</z-link> by $count person:',
188+
);
189+
return '$_temp0';
190+
}
191+
192+
@override
193+
String get actionSheetReadReceiptsZeroReadCount =>
194+
'No one has read this message yet.';
195+
196+
@override
197+
String get actionSheetReadReceiptsErrorReadCount =>
198+
'Failed to load read receipts.';
199+
175200
@override
176201
String get actionSheetOptionCopyMessageText => 'Copy message text';
177202

lib/generated/l10n/zulip_localizations_de.dart

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

178+
@override
179+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
180+
181+
@override
182+
String get actionSheetReadReceipts => 'Read receipts';
183+
184+
@override
185+
String actionSheetReadReceiptsReadCount(int count) {
186+
String _temp0 = intl.Intl.pluralLogic(
187+
count,
188+
locale: localeName,
189+
other: 'This message has been <z-link>read</z-link> by $count people:',
190+
one: 'This message has been <z-link>read</z-link> by $count person:',
191+
);
192+
return '$_temp0';
193+
}
194+
195+
@override
196+
String get actionSheetReadReceiptsZeroReadCount =>
197+
'No one has read this message yet.';
198+
199+
@override
200+
String get actionSheetReadReceiptsErrorReadCount =>
201+
'Failed to load read receipts.';
202+
178203
@override
179204
String get actionSheetOptionCopyMessageText => 'Nachrichtentext kopieren';
180205

lib/generated/l10n/zulip_localizations_en.dart

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

175+
@override
176+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
177+
178+
@override
179+
String get actionSheetReadReceipts => 'Read receipts';
180+
181+
@override
182+
String actionSheetReadReceiptsReadCount(int count) {
183+
String _temp0 = intl.Intl.pluralLogic(
184+
count,
185+
locale: localeName,
186+
other: 'This message has been <z-link>read</z-link> by $count people:',
187+
one: 'This message has been <z-link>read</z-link> by $count person:',
188+
);
189+
return '$_temp0';
190+
}
191+
192+
@override
193+
String get actionSheetReadReceiptsZeroReadCount =>
194+
'No one has read this message yet.';
195+
196+
@override
197+
String get actionSheetReadReceiptsErrorReadCount =>
198+
'Failed to load read receipts.';
199+
175200
@override
176201
String get actionSheetOptionCopyMessageText => 'Copy message text';
177202

lib/generated/l10n/zulip_localizations_fr.dart

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

175+
@override
176+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
177+
178+
@override
179+
String get actionSheetReadReceipts => 'Read receipts';
180+
181+
@override
182+
String actionSheetReadReceiptsReadCount(int count) {
183+
String _temp0 = intl.Intl.pluralLogic(
184+
count,
185+
locale: localeName,
186+
other: 'This message has been <z-link>read</z-link> by $count people:',
187+
one: 'This message has been <z-link>read</z-link> by $count person:',
188+
);
189+
return '$_temp0';
190+
}
191+
192+
@override
193+
String get actionSheetReadReceiptsZeroReadCount =>
194+
'No one has read this message yet.';
195+
196+
@override
197+
String get actionSheetReadReceiptsErrorReadCount =>
198+
'Failed to load read receipts.';
199+
175200
@override
176201
String get actionSheetOptionCopyMessageText => 'Copy message text';
177202

lib/generated/l10n/zulip_localizations_it.dart

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

177+
@override
178+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
179+
180+
@override
181+
String get actionSheetReadReceipts => 'Read receipts';
182+
183+
@override
184+
String actionSheetReadReceiptsReadCount(int count) {
185+
String _temp0 = intl.Intl.pluralLogic(
186+
count,
187+
locale: localeName,
188+
other: 'This message has been <z-link>read</z-link> by $count people:',
189+
one: 'This message has been <z-link>read</z-link> by $count person:',
190+
);
191+
return '$_temp0';
192+
}
193+
194+
@override
195+
String get actionSheetReadReceiptsZeroReadCount =>
196+
'No one has read this message yet.';
197+
198+
@override
199+
String get actionSheetReadReceiptsErrorReadCount =>
200+
'Failed to load read receipts.';
201+
177202
@override
178203
String get actionSheetOptionCopyMessageText => 'Copia il testo del messaggio';
179204

lib/generated/l10n/zulip_localizations_ja.dart

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

173+
@override
174+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
175+
176+
@override
177+
String get actionSheetReadReceipts => 'Read receipts';
178+
179+
@override
180+
String actionSheetReadReceiptsReadCount(int count) {
181+
String _temp0 = intl.Intl.pluralLogic(
182+
count,
183+
locale: localeName,
184+
other: 'This message has been <z-link>read</z-link> by $count people:',
185+
one: 'This message has been <z-link>read</z-link> by $count person:',
186+
);
187+
return '$_temp0';
188+
}
189+
190+
@override
191+
String get actionSheetReadReceiptsZeroReadCount =>
192+
'No one has read this message yet.';
193+
194+
@override
195+
String get actionSheetReadReceiptsErrorReadCount =>
196+
'Failed to load read receipts.';
197+
173198
@override
174199
String get actionSheetOptionCopyMessageText => 'メッセージ本文をコピー';
175200

lib/generated/l10n/zulip_localizations_nb.dart

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

175+
@override
176+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
177+
178+
@override
179+
String get actionSheetReadReceipts => 'Read receipts';
180+
181+
@override
182+
String actionSheetReadReceiptsReadCount(int count) {
183+
String _temp0 = intl.Intl.pluralLogic(
184+
count,
185+
locale: localeName,
186+
other: 'This message has been <z-link>read</z-link> by $count people:',
187+
one: 'This message has been <z-link>read</z-link> by $count person:',
188+
);
189+
return '$_temp0';
190+
}
191+
192+
@override
193+
String get actionSheetReadReceiptsZeroReadCount =>
194+
'No one has read this message yet.';
195+
196+
@override
197+
String get actionSheetReadReceiptsErrorReadCount =>
198+
'Failed to load read receipts.';
199+
175200
@override
176201
String get actionSheetOptionCopyMessageText => 'Copy message text';
177202

lib/generated/l10n/zulip_localizations_pl.dart

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

178+
@override
179+
String get actionSheetOptionViewReadReceipts => 'View read receipts';
180+
181+
@override
182+
String get actionSheetReadReceipts => 'Read receipts';
183+
184+
@override
185+
String actionSheetReadReceiptsReadCount(int count) {
186+
String _temp0 = intl.Intl.pluralLogic(
187+
count,
188+
locale: localeName,
189+
other: 'This message has been <z-link>read</z-link> by $count people:',
190+
one: 'This message has been <z-link>read</z-link> by $count person:',
191+
);
192+
return '$_temp0';
193+
}
194+
195+
@override
196+
String get actionSheetReadReceiptsZeroReadCount =>
197+
'No one has read this message yet.';
198+
199+
@override
200+
String get actionSheetReadReceiptsErrorReadCount =>
201+
'Failed to load read receipts.';
202+
178203
@override
179204
String get actionSheetOptionCopyMessageText => 'Skopiuj tekst wiadomości';
180205

0 commit comments

Comments
 (0)