Skip to content

Commit 9ed5862

Browse files
committed
msglist: Friendlier placeholder text when narrow has no messages
Fixes #1555. For now, the text simply says "There are no messages here." We'll add per-narrow logic later, but this is an improvement over the current appearance which just says "No earlier messages." (Earlier than what?) To support being used in the message-list page (in addition to Inbox, etc.), the placeholder widget only needs small changes, it turns out.
1 parent 01f94f9 commit 9ed5862

17 files changed

+75
-6
lines changed

assets/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,10 @@
530530
"others": {"type": "String", "example": "Alice, Bob"}
531531
}
532532
},
533+
"emptyMessageList": "There are no messages here.",
534+
"@emptyMessageList": {
535+
"description": "Placeholder for some message-list pages when there are no messages."
536+
},
533537
"messageListGroupYouWithYourself": "Messages with yourself",
534538
"@messageListGroupYouWithYourself": {
535539
"description": "Message list recipient header for a DM group that only includes yourself."

lib/generated/l10n/zulip_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,12 @@ abstract class ZulipLocalizations {
845845
/// **'DMs with {others}'**
846846
String dmsWithOthersPageTitle(String others);
847847

848+
/// Placeholder for some message-list pages when there are no messages.
849+
///
850+
/// In en, this message translates to:
851+
/// **'There are no messages here.'**
852+
String get emptyMessageList;
853+
848854
/// Message list recipient header for a DM group that only includes yourself.
849855
///
850856
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
434434
return 'DMs with $others';
435435
}
436436

437+
@override
438+
String get emptyMessageList => 'There are no messages here.';
439+
437440
@override
438441
String get messageListGroupYouWithYourself => 'Messages with yourself';
439442

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
449449
return 'DNs mit $others';
450450
}
451451

452+
@override
453+
String get emptyMessageList => 'There are no messages here.';
454+
452455
@override
453456
String get messageListGroupYouWithYourself => 'Nachrichten mit dir selbst';
454457

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
434434
return 'DMs with $others';
435435
}
436436

437+
@override
438+
String get emptyMessageList => 'There are no messages here.';
439+
437440
@override
438441
String get messageListGroupYouWithYourself => 'Messages with yourself';
439442

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
445445
return 'MD con $others';
446446
}
447447

448+
@override
449+
String get emptyMessageList => 'There are no messages here.';
450+
448451
@override
449452
String get messageListGroupYouWithYourself => 'Messaggi con te stesso';
450453

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
434434
return 'DMs with $others';
435435
}
436436

437+
@override
438+
String get emptyMessageList => 'There are no messages here.';
439+
437440
@override
438441
String get messageListGroupYouWithYourself => 'Messages with yourself';
439442

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
434434
return 'DMs with $others';
435435
}
436436

437+
@override
438+
String get emptyMessageList => 'There are no messages here.';
439+
437440
@override
438441
String get messageListGroupYouWithYourself => 'Messages with yourself';
439442

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
443443
return 'DM z $others';
444444
}
445445

446+
@override
447+
String get emptyMessageList => 'There are no messages here.';
448+
446449
@override
447450
String get messageListGroupYouWithYourself => 'Zapiski na własne konto';
448451

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
443443
return 'ЛС с $others';
444444
}
445445

446+
@override
447+
String get emptyMessageList => 'There are no messages here.';
448+
446449
@override
447450
String get messageListGroupYouWithYourself => 'Сообщения с собой';
448451

0 commit comments

Comments
 (0)