Skip to content

Commit d05ac9d

Browse files
committed
read_receipts: Add "Read receipts" bottom sheet
Fixes: #667
1 parent a6fc334 commit d05ac9d

18 files changed

+580
-1
lines changed

assets/l10n/app_en.arb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,25 @@
148148
"@actionSheetOptionViewReadReceipts": {
149149
"description": "Label for the 'View read receipts' button in the message action sheet."
150150
},
151+
"actionSheetReadReceipts": "Read receipts",
152+
"@actionSheetReadReceipts": {
153+
"description": "Title for the \"Read receipts\" bottom sheet."
154+
},
155+
"actionSheetReadReceiptsReadCount": "This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by {count} {count, plural, =1{person} other{people}}:",
156+
"@actionSheetReadReceiptsReadCount": {
157+
"description": "Label in the \"Read receipts\" bottom sheet when one or more people have read the message.",
158+
"placeholders": {
159+
"count": {"type": "int", "example": "1"}
160+
}
161+
},
162+
"actionSheetReadReceiptsZeroReadCount": "No one has read this message yet.",
163+
"@actionSheetReadReceiptsZeroReadCount": {
164+
"description": "Label in the \"Read receipts\" bottom sheet when no one has read the message."
165+
},
166+
"actionSheetReadReceiptsErrorReadCount": "Failed to load read receipts.",
167+
"@actionSheetReadReceiptsErrorReadCount": {
168+
"description": "Label in the \"Read receipts\" bottom sheet when loading read receipts failed."
169+
},
151170
"actionSheetOptionCopyMessageText": "Copy message text",
152171
"@actionSheetOptionCopyMessageText": {
153172
"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
@@ -351,6 +351,30 @@ abstract class ZulipLocalizations {
351351
/// **'View read receipts'**
352352
String get actionSheetOptionViewReadReceipts;
353353

354+
/// Title for the "Read receipts" bottom sheet.
355+
///
356+
/// In en, this message translates to:
357+
/// **'Read receipts'**
358+
String get actionSheetReadReceipts;
359+
360+
/// Label in the "Read receipts" bottom sheet when one or more people have read the message.
361+
///
362+
/// In en, this message translates to:
363+
/// **'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by {count} {count, plural, =1{person} other{people}}:'**
364+
String actionSheetReadReceiptsReadCount(int count);
365+
366+
/// Label in the "Read receipts" bottom sheet when no one has read the message.
367+
///
368+
/// In en, this message translates to:
369+
/// **'No one has read this message yet.'**
370+
String get actionSheetReadReceiptsZeroReadCount;
371+
372+
/// Label in the "Read receipts" bottom sheet when loading read receipts failed.
373+
///
374+
/// In en, this message translates to:
375+
/// **'Failed to load read receipts.'**
376+
String get actionSheetReadReceiptsErrorReadCount;
377+
354378
/// Label for copy message text button on action sheet.
355379
///
356380
/// 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
@@ -127,6 +127,28 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
127127
@override
128128
String get actionSheetOptionViewReadReceipts => 'View read receipts';
129129

130+
@override
131+
String get actionSheetReadReceipts => 'Read receipts';
132+
133+
@override
134+
String actionSheetReadReceiptsReadCount(int count) {
135+
String _temp0 = intl.Intl.pluralLogic(
136+
count,
137+
locale: localeName,
138+
other: 'people',
139+
one: 'person',
140+
);
141+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
142+
}
143+
144+
@override
145+
String get actionSheetReadReceiptsZeroReadCount =>
146+
'No one has read this message yet.';
147+
148+
@override
149+
String get actionSheetReadReceiptsErrorReadCount =>
150+
'Failed to load read receipts.';
151+
130152
@override
131153
String get actionSheetOptionCopyMessageText => 'Copy message text';
132154

lib/generated/l10n/zulip_localizations_de.dart

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

133+
@override
134+
String get actionSheetReadReceipts => 'Read receipts';
135+
136+
@override
137+
String actionSheetReadReceiptsReadCount(int count) {
138+
String _temp0 = intl.Intl.pluralLogic(
139+
count,
140+
locale: localeName,
141+
other: 'people',
142+
one: 'person',
143+
);
144+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
145+
}
146+
147+
@override
148+
String get actionSheetReadReceiptsZeroReadCount =>
149+
'No one has read this message yet.';
150+
151+
@override
152+
String get actionSheetReadReceiptsErrorReadCount =>
153+
'Failed to load read receipts.';
154+
133155
@override
134156
String get actionSheetOptionCopyMessageText => 'Nachrichtentext kopieren';
135157

lib/generated/l10n/zulip_localizations_en.dart

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

130+
@override
131+
String get actionSheetReadReceipts => 'Read receipts';
132+
133+
@override
134+
String actionSheetReadReceiptsReadCount(int count) {
135+
String _temp0 = intl.Intl.pluralLogic(
136+
count,
137+
locale: localeName,
138+
other: 'people',
139+
one: 'person',
140+
);
141+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
142+
}
143+
144+
@override
145+
String get actionSheetReadReceiptsZeroReadCount =>
146+
'No one has read this message yet.';
147+
148+
@override
149+
String get actionSheetReadReceiptsErrorReadCount =>
150+
'Failed to load read receipts.';
151+
130152
@override
131153
String get actionSheetOptionCopyMessageText => 'Copy message text';
132154

lib/generated/l10n/zulip_localizations_it.dart

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

132+
@override
133+
String get actionSheetReadReceipts => 'Read receipts';
134+
135+
@override
136+
String actionSheetReadReceiptsReadCount(int count) {
137+
String _temp0 = intl.Intl.pluralLogic(
138+
count,
139+
locale: localeName,
140+
other: 'people',
141+
one: 'person',
142+
);
143+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
144+
}
145+
146+
@override
147+
String get actionSheetReadReceiptsZeroReadCount =>
148+
'No one has read this message yet.';
149+
150+
@override
151+
String get actionSheetReadReceiptsErrorReadCount =>
152+
'Failed to load read receipts.';
153+
132154
@override
133155
String get actionSheetOptionCopyMessageText => 'Copia il testo del messaggio';
134156

lib/generated/l10n/zulip_localizations_ja.dart

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

130+
@override
131+
String get actionSheetReadReceipts => 'Read receipts';
132+
133+
@override
134+
String actionSheetReadReceiptsReadCount(int count) {
135+
String _temp0 = intl.Intl.pluralLogic(
136+
count,
137+
locale: localeName,
138+
other: 'people',
139+
one: 'person',
140+
);
141+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
142+
}
143+
144+
@override
145+
String get actionSheetReadReceiptsZeroReadCount =>
146+
'No one has read this message yet.';
147+
148+
@override
149+
String get actionSheetReadReceiptsErrorReadCount =>
150+
'Failed to load read receipts.';
151+
130152
@override
131153
String get actionSheetOptionCopyMessageText => 'Copy message text';
132154

lib/generated/l10n/zulip_localizations_nb.dart

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

130+
@override
131+
String get actionSheetReadReceipts => 'Read receipts';
132+
133+
@override
134+
String actionSheetReadReceiptsReadCount(int count) {
135+
String _temp0 = intl.Intl.pluralLogic(
136+
count,
137+
locale: localeName,
138+
other: 'people',
139+
one: 'person',
140+
);
141+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
142+
}
143+
144+
@override
145+
String get actionSheetReadReceiptsZeroReadCount =>
146+
'No one has read this message yet.';
147+
148+
@override
149+
String get actionSheetReadReceiptsErrorReadCount =>
150+
'Failed to load read receipts.';
151+
130152
@override
131153
String get actionSheetOptionCopyMessageText => 'Copy message text';
132154

lib/generated/l10n/zulip_localizations_pl.dart

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

133+
@override
134+
String get actionSheetReadReceipts => 'Read receipts';
135+
136+
@override
137+
String actionSheetReadReceiptsReadCount(int count) {
138+
String _temp0 = intl.Intl.pluralLogic(
139+
count,
140+
locale: localeName,
141+
other: 'people',
142+
one: 'person',
143+
);
144+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
145+
}
146+
147+
@override
148+
String get actionSheetReadReceiptsZeroReadCount =>
149+
'No one has read this message yet.';
150+
151+
@override
152+
String get actionSheetReadReceiptsErrorReadCount =>
153+
'Failed to load read receipts.';
154+
133155
@override
134156
String get actionSheetOptionCopyMessageText => 'Skopiuj tekst wiadomości';
135157

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,28 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
130130
@override
131131
String get actionSheetOptionViewReadReceipts => 'View read receipts';
132132

133+
@override
134+
String get actionSheetReadReceipts => 'Read receipts';
135+
136+
@override
137+
String actionSheetReadReceiptsReadCount(int count) {
138+
String _temp0 = intl.Intl.pluralLogic(
139+
count,
140+
locale: localeName,
141+
other: 'people',
142+
one: 'person',
143+
);
144+
return 'This message has been <link href=\"https://chat.zulip.org/help/read-receipts\">read</link> by $count $_temp0:';
145+
}
146+
147+
@override
148+
String get actionSheetReadReceiptsZeroReadCount =>
149+
'No one has read this message yet.';
150+
151+
@override
152+
String get actionSheetReadReceiptsErrorReadCount =>
153+
'Failed to load read receipts.';
154+
133155
@override
134156
String get actionSheetOptionCopyMessageText => 'Скопировать текст сообщения';
135157

0 commit comments

Comments
 (0)