Skip to content

Commit aa06296

Browse files
committed
home: Add placeholder text for empty Inbox, Channels, and Direct messages
The Figma has some graphics on all of these, but we'll leave that for later: see issue zulip#1551. Fixes: zulip#385 Fixes: zulip#386
1 parent b6254ea commit aa06296

19 files changed

+228
-77
lines changed

assets/l10n/app_en.arb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,10 @@
777777
"@inboxPageTitle": {
778778
"description": "Title for the page with unreads."
779779
},
780+
"inboxEmptyPlaceholder": "There are no unread messages in your inbox.",
781+
"@inboxEmptyPlaceholder": {
782+
"description": "Centered text on the 'Inbox' page saying that there is no content to show."
783+
},
780784
"recentDmConversationsPageTitle": "Direct messages",
781785
"@recentDmConversationsPageTitle": {
782786
"description": "Title for the page with a list of DM conversations."
@@ -785,6 +789,10 @@
785789
"@recentDmConversationsSectionHeader": {
786790
"description": "Heading for direct messages section on the 'Inbox' message view."
787791
},
792+
"recentDmConversationsEmptyPlaceholder": "You have no direct messages yet! Why not start the conversation?",
793+
"@recentDmConversationsEmptyPlaceholder": {
794+
"description": "Centered text on the 'Direct messages' page saying that there is no content to show."
795+
},
788796
"combinedFeedPageTitle": "Combined feed",
789797
"@combinedFeedPageTitle": {
790798
"description": "Page title for the 'Combined feed' message view."
@@ -801,6 +809,10 @@
801809
"@channelsPageTitle": {
802810
"description": "Title for the page with a list of subscribed channels."
803811
},
812+
"channelsEmptyPlaceholder": "You are not subscribed to any channels yet.",
813+
"@channelsEmptyPlaceholder": {
814+
"description": "Centered text on the 'Channels' page saying that there is no content to show."
815+
},
804816
"mainMenuMyProfile": "My profile",
805817
"@mainMenuMyProfile": {
806818
"description": "Label for main-menu button leading to the user's own profile."
@@ -829,10 +841,6 @@
829841
"@unpinnedSubscriptionsLabel": {
830842
"description": "Label for the list of unpinned subscribed channels."
831843
},
832-
"subscriptionListNoChannels": "No channels found",
833-
"@subscriptionListNoChannels": {
834-
"description": "Text to display on subscribed-channels page when there are no subscribed channels."
835-
},
836844
"notifSelfUser": "You",
837845
"@notifSelfUser": {
838846
"description": "Display name for the user themself, to show after replying in an Android notification"

lib/generated/l10n/zulip_localizations.dart

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,12 @@ abstract class ZulipLocalizations {
11751175
/// **'Inbox'**
11761176
String get inboxPageTitle;
11771177

1178+
/// Centered text on the 'Inbox' page saying that there is no content to show.
1179+
///
1180+
/// In en, this message translates to:
1181+
/// **'There are no unread messages in your inbox.'**
1182+
String get inboxEmptyPlaceholder;
1183+
11781184
/// Title for the page with a list of DM conversations.
11791185
///
11801186
/// In en, this message translates to:
@@ -1187,6 +1193,12 @@ abstract class ZulipLocalizations {
11871193
/// **'Direct messages'**
11881194
String get recentDmConversationsSectionHeader;
11891195

1196+
/// Centered text on the 'Direct messages' page saying that there is no content to show.
1197+
///
1198+
/// In en, this message translates to:
1199+
/// **'You have no direct messages yet! Why not start the conversation?'**
1200+
String get recentDmConversationsEmptyPlaceholder;
1201+
11901202
/// Page title for the 'Combined feed' message view.
11911203
///
11921204
/// In en, this message translates to:
@@ -1211,6 +1223,12 @@ abstract class ZulipLocalizations {
12111223
/// **'Channels'**
12121224
String get channelsPageTitle;
12131225

1226+
/// Centered text on the 'Channels' page saying that there is no content to show.
1227+
///
1228+
/// In en, this message translates to:
1229+
/// **'You are not subscribed to any channels yet.'**
1230+
String get channelsEmptyPlaceholder;
1231+
12141232
/// Label for main-menu button leading to the user's own profile.
12151233
///
12161234
/// In en, this message translates to:
@@ -1247,12 +1265,6 @@ abstract class ZulipLocalizations {
12471265
/// **'Unpinned'**
12481266
String get unpinnedSubscriptionsLabel;
12491267

1250-
/// Text to display on subscribed-channels page when there are no subscribed channels.
1251-
///
1252-
/// In en, this message translates to:
1253-
/// **'No channels found'**
1254-
String get subscriptionListNoChannels;
1255-
12561268
/// Display name for the user themself, to show after replying in an Android notification
12571269
///
12581270
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,12 +636,20 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
636636
@override
637637
String get inboxPageTitle => 'Inbox';
638638

639+
@override
640+
String get inboxEmptyPlaceholder =>
641+
'There are no unread messages in your inbox.';
642+
639643
@override
640644
String get recentDmConversationsPageTitle => 'Direct messages';
641645

642646
@override
643647
String get recentDmConversationsSectionHeader => 'Direct messages';
644648

649+
@override
650+
String get recentDmConversationsEmptyPlaceholder =>
651+
'You have no direct messages yet! Why not start the conversation?';
652+
645653
@override
646654
String get combinedFeedPageTitle => 'Combined feed';
647655

@@ -654,6 +662,10 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
654662
@override
655663
String get channelsPageTitle => 'Channels';
656664

665+
@override
666+
String get channelsEmptyPlaceholder =>
667+
'You are not subscribed to any channels yet.';
668+
657669
@override
658670
String get mainMenuMyProfile => 'My profile';
659671

@@ -680,9 +692,6 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
680692
@override
681693
String get unpinnedSubscriptionsLabel => 'Unpinned';
682694

683-
@override
684-
String get subscriptionListNoChannels => 'No channels found';
685-
686695
@override
687696
String get notifSelfUser => 'You';
688697

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,12 +636,20 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
636636
@override
637637
String get inboxPageTitle => 'Inbox';
638638

639+
@override
640+
String get inboxEmptyPlaceholder =>
641+
'There are no unread messages in your inbox.';
642+
639643
@override
640644
String get recentDmConversationsPageTitle => 'Direct messages';
641645

642646
@override
643647
String get recentDmConversationsSectionHeader => 'Direct messages';
644648

649+
@override
650+
String get recentDmConversationsEmptyPlaceholder =>
651+
'You have no direct messages yet! Why not start the conversation?';
652+
645653
@override
646654
String get combinedFeedPageTitle => 'Combined feed';
647655

@@ -654,6 +662,10 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
654662
@override
655663
String get channelsPageTitle => 'Channels';
656664

665+
@override
666+
String get channelsEmptyPlaceholder =>
667+
'You are not subscribed to any channels yet.';
668+
657669
@override
658670
String get mainMenuMyProfile => 'My profile';
659671

@@ -680,9 +692,6 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
680692
@override
681693
String get unpinnedSubscriptionsLabel => 'Unpinned';
682694

683-
@override
684-
String get subscriptionListNoChannels => 'No channels found';
685-
686695
@override
687696
String get notifSelfUser => 'You';
688697

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,12 +636,20 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
636636
@override
637637
String get inboxPageTitle => 'Inbox';
638638

639+
@override
640+
String get inboxEmptyPlaceholder =>
641+
'There are no unread messages in your inbox.';
642+
639643
@override
640644
String get recentDmConversationsPageTitle => 'Direct messages';
641645

642646
@override
643647
String get recentDmConversationsSectionHeader => 'Direct messages';
644648

649+
@override
650+
String get recentDmConversationsEmptyPlaceholder =>
651+
'You have no direct messages yet! Why not start the conversation?';
652+
645653
@override
646654
String get combinedFeedPageTitle => 'Combined feed';
647655

@@ -654,6 +662,10 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
654662
@override
655663
String get channelsPageTitle => 'Channels';
656664

665+
@override
666+
String get channelsEmptyPlaceholder =>
667+
'You are not subscribed to any channels yet.';
668+
657669
@override
658670
String get mainMenuMyProfile => 'My profile';
659671

@@ -680,9 +692,6 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
680692
@override
681693
String get unpinnedSubscriptionsLabel => 'Unpinned';
682694

683-
@override
684-
String get subscriptionListNoChannels => 'No channels found';
685-
686695
@override
687696
String get notifSelfUser => 'You';
688697

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,12 +636,20 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
636636
@override
637637
String get inboxPageTitle => 'Inbox';
638638

639+
@override
640+
String get inboxEmptyPlaceholder =>
641+
'There are no unread messages in your inbox.';
642+
639643
@override
640644
String get recentDmConversationsPageTitle => 'Direct messages';
641645

642646
@override
643647
String get recentDmConversationsSectionHeader => 'Direct messages';
644648

649+
@override
650+
String get recentDmConversationsEmptyPlaceholder =>
651+
'You have no direct messages yet! Why not start the conversation?';
652+
645653
@override
646654
String get combinedFeedPageTitle => 'Combined feed';
647655

@@ -654,6 +662,10 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
654662
@override
655663
String get channelsPageTitle => 'Channels';
656664

665+
@override
666+
String get channelsEmptyPlaceholder =>
667+
'You are not subscribed to any channels yet.';
668+
657669
@override
658670
String get mainMenuMyProfile => 'My profile';
659671

@@ -680,9 +692,6 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
680692
@override
681693
String get unpinnedSubscriptionsLabel => 'Unpinned';
682694

683-
@override
684-
String get subscriptionListNoChannels => 'No channels found';
685-
686695
@override
687696
String get notifSelfUser => 'You';
688697

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,12 +636,20 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
636636
@override
637637
String get inboxPageTitle => 'Inbox';
638638

639+
@override
640+
String get inboxEmptyPlaceholder =>
641+
'There are no unread messages in your inbox.';
642+
639643
@override
640644
String get recentDmConversationsPageTitle => 'Direct messages';
641645

642646
@override
643647
String get recentDmConversationsSectionHeader => 'Direct messages';
644648

649+
@override
650+
String get recentDmConversationsEmptyPlaceholder =>
651+
'You have no direct messages yet! Why not start the conversation?';
652+
645653
@override
646654
String get combinedFeedPageTitle => 'Combined feed';
647655

@@ -654,6 +662,10 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
654662
@override
655663
String get channelsPageTitle => 'Channels';
656664

665+
@override
666+
String get channelsEmptyPlaceholder =>
667+
'You are not subscribed to any channels yet.';
668+
657669
@override
658670
String get mainMenuMyProfile => 'My profile';
659671

@@ -680,9 +692,6 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
680692
@override
681693
String get unpinnedSubscriptionsLabel => 'Unpinned';
682694

683-
@override
684-
String get subscriptionListNoChannels => 'No channels found';
685-
686695
@override
687696
String get notifSelfUser => 'You';
688697

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,12 +645,20 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
645645
@override
646646
String get inboxPageTitle => 'Odebrane';
647647

648+
@override
649+
String get inboxEmptyPlaceholder =>
650+
'There are no unread messages in your inbox.';
651+
648652
@override
649653
String get recentDmConversationsPageTitle => 'Wiadomości bezpośrednie';
650654

651655
@override
652656
String get recentDmConversationsSectionHeader => 'Wiadomości bezpośrednie';
653657

658+
@override
659+
String get recentDmConversationsEmptyPlaceholder =>
660+
'You have no direct messages yet! Why not start the conversation?';
661+
654662
@override
655663
String get combinedFeedPageTitle => 'Mieszany widok';
656664

@@ -663,6 +671,10 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
663671
@override
664672
String get channelsPageTitle => 'Kanały';
665673

674+
@override
675+
String get channelsEmptyPlaceholder =>
676+
'You are not subscribed to any channels yet.';
677+
666678
@override
667679
String get mainMenuMyProfile => 'Mój profil';
668680

@@ -689,9 +701,6 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
689701
@override
690702
String get unpinnedSubscriptionsLabel => 'Odpięte';
691703

692-
@override
693-
String get subscriptionListNoChannels => 'Nie odnaleziono kanałów';
694-
695704
@override
696705
String get notifSelfUser => 'Ty';
697706

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,12 +649,20 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
649649
@override
650650
String get inboxPageTitle => 'Входящие';
651651

652+
@override
653+
String get inboxEmptyPlaceholder =>
654+
'There are no unread messages in your inbox.';
655+
652656
@override
653657
String get recentDmConversationsPageTitle => 'Личные сообщения';
654658

655659
@override
656660
String get recentDmConversationsSectionHeader => 'Личные сообщения';
657661

662+
@override
663+
String get recentDmConversationsEmptyPlaceholder =>
664+
'You have no direct messages yet! Why not start the conversation?';
665+
658666
@override
659667
String get combinedFeedPageTitle => 'Объединенная лента';
660668

@@ -667,6 +675,10 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
667675
@override
668676
String get channelsPageTitle => 'Каналы';
669677

678+
@override
679+
String get channelsEmptyPlaceholder =>
680+
'You are not subscribed to any channels yet.';
681+
670682
@override
671683
String get mainMenuMyProfile => 'Мой профиль';
672684

@@ -693,9 +705,6 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
693705
@override
694706
String get unpinnedSubscriptionsLabel => 'Откреплены';
695707

696-
@override
697-
String get subscriptionListNoChannels => 'Каналы не найдены';
698-
699708
@override
700709
String get notifSelfUser => 'Вы';
701710

0 commit comments

Comments
 (0)