Skip to content

Commit 1fa9f24

Browse files
committed
msglist: Support retrieving failed outbox message content
Different from the Figma design, the bottom padding below the progress bar is changed from 0.5px to 2px, as discussed here: #1453 (comment) Fixes: #1441
1 parent c8295ae commit 1fa9f24

17 files changed

+461
-30
lines changed

assets/l10n/app_en.arb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@
377377
"@discardDraftForEditConfirmationDialogMessage": {
378378
"description": "Message for a confirmation dialog for discarding message text that was typed into the compose box, when editing a message."
379379
},
380+
"discardDraftForMessageNotSentConfirmationDialogMessage": "When you restore a message not sent, the content that was previously in the compose box is discarded.",
381+
"@discardDraftForMessageNotSentConfirmationDialogMessage": {
382+
"description": "Message for a confirmation dialog when restoring a message not sent, for discarding message text that was typed into the compose box."
383+
},
380384
"discardDraftConfirmationDialogConfirmButton": "Discard",
381385
"@discardDraftConfirmationDialogConfirmButton": {
382386
"description": "Label for the 'Discard' button on a confirmation dialog for discarding message text that was typed into the compose box."
@@ -864,6 +868,10 @@
864868
"@messageIsMovedLabel": {
865869
"description": "Label for a moved message. (Use ALL CAPS for cased alphabets: Latin, Greek, Cyrillic, etc.)"
866870
},
871+
"messageNotSentLabel": "MESSAGE NOT SENT",
872+
"@messageNotSentLabel": {
873+
"description": "Text on a message in the message list saying that a send message request failed. (Use ALL CAPS for cased alphabets: Latin, Greek, Cyrillic, etc.)"
874+
},
867875
"pollVoterNames": "({voterNames})",
868876
"@pollVoterNames": {
869877
"description": "The list of people who voted for a poll option, wrapped in parentheses.",

lib/generated/l10n/zulip_localizations.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,12 @@ abstract class ZulipLocalizations {
631631
/// **'When you edit a message, the content that was previously in the compose box is discarded.'**
632632
String get discardDraftForEditConfirmationDialogMessage;
633633

634+
/// Message for a confirmation dialog when restoring a message not sent, for discarding message text that was typed into the compose box.
635+
///
636+
/// In en, this message translates to:
637+
/// **'When you restore a message not sent, the content that was previously in the compose box is discarded.'**
638+
String get discardDraftForMessageNotSentConfirmationDialogMessage;
639+
634640
/// Label for the 'Discard' button on a confirmation dialog for discarding message text that was typed into the compose box.
635641
///
636642
/// In en, this message translates to:
@@ -1277,6 +1283,12 @@ abstract class ZulipLocalizations {
12771283
/// **'MOVED'**
12781284
String get messageIsMovedLabel;
12791285

1286+
/// Text on a message in the message list saying that a send message request failed. (Use ALL CAPS for cased alphabets: Latin, Greek, Cyrillic, etc.)
1287+
///
1288+
/// In en, this message translates to:
1289+
/// **'MESSAGE NOT SENT'**
1290+
String get messageNotSentLabel;
1291+
12801292
/// The list of people who voted for a poll option, wrapped in parentheses.
12811293
///
12821294
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
318318
String get discardDraftForEditConfirmationDialogMessage =>
319319
'When you edit a message, the content that was previously in the compose box is discarded.';
320320

321+
@override
322+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
323+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
324+
321325
@override
322326
String get discardDraftConfirmationDialogConfirmButton => 'Discard';
323327

@@ -704,6 +708,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
704708
@override
705709
String get messageIsMovedLabel => 'MOVED';
706710

711+
@override
712+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
713+
707714
@override
708715
String pollVoterNames(String voterNames) {
709716
return '($voterNames)';

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
318318
String get discardDraftForEditConfirmationDialogMessage =>
319319
'When you edit a message, the content that was previously in the compose box is discarded.';
320320

321+
@override
322+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
323+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
324+
321325
@override
322326
String get discardDraftConfirmationDialogConfirmButton => 'Discard';
323327

@@ -704,6 +708,9 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
704708
@override
705709
String get messageIsMovedLabel => 'MOVED';
706710

711+
@override
712+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
713+
707714
@override
708715
String pollVoterNames(String voterNames) {
709716
return '($voterNames)';

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
318318
String get discardDraftForEditConfirmationDialogMessage =>
319319
'When you edit a message, the content that was previously in the compose box is discarded.';
320320

321+
@override
322+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
323+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
324+
321325
@override
322326
String get discardDraftConfirmationDialogConfirmButton => 'Discard';
323327

@@ -704,6 +708,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
704708
@override
705709
String get messageIsMovedLabel => 'MOVED';
706710

711+
@override
712+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
713+
707714
@override
708715
String pollVoterNames(String voterNames) {
709716
return '($voterNames)';

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
318318
String get discardDraftForEditConfirmationDialogMessage =>
319319
'When you edit a message, the content that was previously in the compose box is discarded.';
320320

321+
@override
322+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
323+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
324+
321325
@override
322326
String get discardDraftConfirmationDialogConfirmButton => 'Discard';
323327

@@ -704,6 +708,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
704708
@override
705709
String get messageIsMovedLabel => 'MOVED';
706710

711+
@override
712+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
713+
707714
@override
708715
String pollVoterNames(String voterNames) {
709716
return '($voterNames)';

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
318318
String get discardDraftForEditConfirmationDialogMessage =>
319319
'When you edit a message, the content that was previously in the compose box is discarded.';
320320

321+
@override
322+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
323+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
324+
321325
@override
322326
String get discardDraftConfirmationDialogConfirmButton => 'Discard';
323327

@@ -704,6 +708,9 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
704708
@override
705709
String get messageIsMovedLabel => 'MOVED';
706710

711+
@override
712+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
713+
707714
@override
708715
String pollVoterNames(String voterNames) {
709716
return '($voterNames)';

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
325325
String get discardDraftForEditConfirmationDialogMessage =>
326326
'Miej na uwadze, że przechodząc do zmiany wiadomości wyczyścisz okno nowej wiadomości.';
327327

328+
@override
329+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
330+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
331+
328332
@override
329333
String get discardDraftConfirmationDialogConfirmButton => 'Odrzuć';
330334

@@ -713,6 +717,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
713717
@override
714718
String get messageIsMovedLabel => 'PRZENIESIONO';
715719

720+
@override
721+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
722+
716723
@override
717724
String pollVoterNames(String voterNames) {
718725
return '($voterNames)';

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
326326
String get discardDraftForEditConfirmationDialogMessage =>
327327
'When you edit a message, the content that was previously in the compose box is discarded.';
328328

329+
@override
330+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
331+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
332+
329333
@override
330334
String get discardDraftConfirmationDialogConfirmButton => 'Discard';
331335

@@ -717,6 +721,9 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
717721
@override
718722
String get messageIsMovedLabel => 'ПЕРЕМЕЩЕНО';
719723

724+
@override
725+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
726+
720727
@override
721728
String pollVoterNames(String voterNames) {
722729
return '($voterNames)';

lib/generated/l10n/zulip_localizations_sk.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ class ZulipLocalizationsSk extends ZulipLocalizations {
318318
String get discardDraftForEditConfirmationDialogMessage =>
319319
'When you edit a message, the content that was previously in the compose box is discarded.';
320320

321+
@override
322+
String get discardDraftForMessageNotSentConfirmationDialogMessage =>
323+
'When you restore a message not sent, the content that was previously in the compose box is discarded.';
324+
321325
@override
322326
String get discardDraftConfirmationDialogConfirmButton => 'Discard';
323327

@@ -706,6 +710,9 @@ class ZulipLocalizationsSk extends ZulipLocalizations {
706710
@override
707711
String get messageIsMovedLabel => 'PRESUNUTÉ';
708712

713+
@override
714+
String get messageNotSentLabel => 'MESSAGE NOT SENT';
715+
709716
@override
710717
String pollVoterNames(String voterNames) {
711718
return '($voterNames)';

0 commit comments

Comments
 (0)