Skip to content

Commit aaf1161

Browse files
committed
page: Split empty-page placeholder messages into header and message
Following a new Figma frame that specifies larger text for the first part: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=11194-18392&m=dev The smaller text is left optional. The subscriptions page has a plan to add that smaller text, as a TODO(#188); it's blocked on adding an "All channels" page.
1 parent 19553d9 commit aaf1161

19 files changed

+229
-99
lines changed

assets/l10n/app_en.arb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,10 +793,14 @@
793793
"@inboxPageTitle": {
794794
"description": "Title for the page with unreads."
795795
},
796-
"inboxEmptyPlaceholder": "There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.",
797-
"@inboxEmptyPlaceholder": {
796+
"inboxEmptyPlaceholderHeader": "There are no unread messages in your inbox.",
797+
"@inboxEmptyPlaceholderHeader": {
798798
"description": "Centered text on the 'Inbox' page saying that there is no content to show."
799799
},
800+
"inboxEmptyPlaceholderMessage": "Use the buttons below to view the combined feed or list of channels.",
801+
"@inboxEmptyPlaceholderMessage": {
802+
"description": "Additional centered text on the 'Inbox' page saying that there is no content to show."
803+
},
800804
"recentDmConversationsPageTitle": "Direct messages",
801805
"@recentDmConversationsPageTitle": {
802806
"description": "Title for the page with a list of DM conversations."
@@ -805,10 +809,14 @@
805809
"@recentDmConversationsSectionHeader": {
806810
"description": "Heading for direct messages section on the 'Inbox' message view."
807811
},
808-
"recentDmConversationsEmptyPlaceholder": "You have no direct messages yet! Why not start the conversation?",
809-
"@recentDmConversationsEmptyPlaceholder": {
812+
"recentDmConversationsEmptyPlaceholderHeader": "You have no direct messages yet!",
813+
"@recentDmConversationsEmptyPlaceholderHeader": {
810814
"description": "Centered text on the 'Direct messages' page saying that there is no content to show."
811815
},
816+
"recentDmConversationsEmptyPlaceholderMessage": "Why not start the conversation?",
817+
"@recentDmConversationsEmptyPlaceholderMessage": {
818+
"description": "Additional centered text on the 'Direct messages' page saying that there is no content to show."
819+
},
812820
"combinedFeedPageTitle": "Combined feed",
813821
"@combinedFeedPageTitle": {
814822
"description": "Page title for the 'Combined feed' message view."
@@ -825,8 +833,8 @@
825833
"@channelsPageTitle": {
826834
"description": "Title for the page with a list of subscribed channels."
827835
},
828-
"channelsEmptyPlaceholder": "You are not subscribed to any channels yet.",
829-
"@channelsEmptyPlaceholder": {
836+
"channelsEmptyPlaceholderHeader": "You are not subscribed to any channels yet.",
837+
"@channelsEmptyPlaceholderHeader": {
830838
"description": "Centered text on the 'Channels' page saying that there is no content to show."
831839
},
832840
"mainMenuMyProfile": "My profile",

lib/generated/l10n/zulip_localizations.dart

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,8 +1206,14 @@ abstract class ZulipLocalizations {
12061206
/// Centered text on the 'Inbox' page saying that there is no content to show.
12071207
///
12081208
/// In en, this message translates to:
1209-
/// **'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.'**
1210-
String get inboxEmptyPlaceholder;
1209+
/// **'There are no unread messages in your inbox.'**
1210+
String get inboxEmptyPlaceholderHeader;
1211+
1212+
/// Additional centered text on the 'Inbox' page saying that there is no content to show.
1213+
///
1214+
/// In en, this message translates to:
1215+
/// **'Use the buttons below to view the combined feed or list of channels.'**
1216+
String get inboxEmptyPlaceholderMessage;
12111217

12121218
/// Title for the page with a list of DM conversations.
12131219
///
@@ -1224,8 +1230,14 @@ abstract class ZulipLocalizations {
12241230
/// Centered text on the 'Direct messages' page saying that there is no content to show.
12251231
///
12261232
/// In en, this message translates to:
1227-
/// **'You have no direct messages yet! Why not start the conversation?'**
1228-
String get recentDmConversationsEmptyPlaceholder;
1233+
/// **'You have no direct messages yet!'**
1234+
String get recentDmConversationsEmptyPlaceholderHeader;
1235+
1236+
/// Additional centered text on the 'Direct messages' page saying that there is no content to show.
1237+
///
1238+
/// In en, this message translates to:
1239+
/// **'Why not start the conversation?'**
1240+
String get recentDmConversationsEmptyPlaceholderMessage;
12291241

12301242
/// Page title for the 'Combined feed' message view.
12311243
///
@@ -1255,7 +1267,7 @@ abstract class ZulipLocalizations {
12551267
///
12561268
/// In en, this message translates to:
12571269
/// **'You are not subscribed to any channels yet.'**
1258-
String get channelsEmptyPlaceholder;
1270+
String get channelsEmptyPlaceholderHeader;
12591271

12601272
/// Label for main-menu button leading to the user's own profile.
12611273
///

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,12 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
651651
String get inboxPageTitle => 'Inbox';
652652

653653
@override
654-
String get inboxEmptyPlaceholder =>
655-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
654+
String get inboxEmptyPlaceholderHeader =>
655+
'There are no unread messages in your inbox.';
656+
657+
@override
658+
String get inboxEmptyPlaceholderMessage =>
659+
'Use the buttons below to view the combined feed or list of channels.';
656660

657661
@override
658662
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -661,8 +665,12 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
661665
String get recentDmConversationsSectionHeader => 'Direct messages';
662666

663667
@override
664-
String get recentDmConversationsEmptyPlaceholder =>
665-
'You have no direct messages yet! Why not start the conversation?';
668+
String get recentDmConversationsEmptyPlaceholderHeader =>
669+
'You have no direct messages yet!';
670+
671+
@override
672+
String get recentDmConversationsEmptyPlaceholderMessage =>
673+
'Why not start the conversation?';
666674

667675
@override
668676
String get combinedFeedPageTitle => 'Combined feed';
@@ -677,7 +685,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
677685
String get channelsPageTitle => 'Channels';
678686

679687
@override
680-
String get channelsEmptyPlaceholder =>
688+
String get channelsEmptyPlaceholderHeader =>
681689
'You are not subscribed to any channels yet.';
682690

683691
@override

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,12 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
672672
String get inboxPageTitle => 'Eingang';
673673

674674
@override
675-
String get inboxEmptyPlaceholder =>
676-
'Es sind keine ungelesenen Nachrichten in deinem Eingang. Verwende die Buttons unten um den kombinierten Feed oder die Kanalliste anzusehen.';
675+
String get inboxEmptyPlaceholderHeader =>
676+
'There are no unread messages in your inbox.';
677+
678+
@override
679+
String get inboxEmptyPlaceholderMessage =>
680+
'Use the buttons below to view the combined feed or list of channels.';
677681

678682
@override
679683
String get recentDmConversationsPageTitle => 'Direktnachrichten';
@@ -682,8 +686,12 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
682686
String get recentDmConversationsSectionHeader => 'Direktnachrichten';
683687

684688
@override
685-
String get recentDmConversationsEmptyPlaceholder =>
686-
'Du hast noch keine Direktnachrichten! Warum nicht die Unterhaltung beginnen?';
689+
String get recentDmConversationsEmptyPlaceholderHeader =>
690+
'You have no direct messages yet!';
691+
692+
@override
693+
String get recentDmConversationsEmptyPlaceholderMessage =>
694+
'Why not start the conversation?';
687695

688696
@override
689697
String get combinedFeedPageTitle => 'Kombinierter Feed';
@@ -698,7 +706,8 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
698706
String get channelsPageTitle => 'Kanäle';
699707

700708
@override
701-
String get channelsEmptyPlaceholder => 'Du hast noch keine Kanäle abonniert.';
709+
String get channelsEmptyPlaceholderHeader =>
710+
'You are not subscribed to any channels yet.';
702711

703712
@override
704713
String get mainMenuMyProfile => 'Mein Profil';

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,12 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
651651
String get inboxPageTitle => 'Inbox';
652652

653653
@override
654-
String get inboxEmptyPlaceholder =>
655-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
654+
String get inboxEmptyPlaceholderHeader =>
655+
'There are no unread messages in your inbox.';
656+
657+
@override
658+
String get inboxEmptyPlaceholderMessage =>
659+
'Use the buttons below to view the combined feed or list of channels.';
656660

657661
@override
658662
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -661,8 +665,12 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
661665
String get recentDmConversationsSectionHeader => 'Direct messages';
662666

663667
@override
664-
String get recentDmConversationsEmptyPlaceholder =>
665-
'You have no direct messages yet! Why not start the conversation?';
668+
String get recentDmConversationsEmptyPlaceholderHeader =>
669+
'You have no direct messages yet!';
670+
671+
@override
672+
String get recentDmConversationsEmptyPlaceholderMessage =>
673+
'Why not start the conversation?';
666674

667675
@override
668676
String get combinedFeedPageTitle => 'Combined feed';
@@ -677,7 +685,7 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
677685
String get channelsPageTitle => 'Channels';
678686

679687
@override
680-
String get channelsEmptyPlaceholder =>
688+
String get channelsEmptyPlaceholderHeader =>
681689
'You are not subscribed to any channels yet.';
682690

683691
@override

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,12 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
666666
String get inboxPageTitle => 'Inbox';
667667

668668
@override
669-
String get inboxEmptyPlaceholder =>
670-
'Non ci sono messaggi non letti nella posta in arrivo. Usare i pulsanti sotto per visualizzare il feed combinato o l\'elenco dei canali.';
669+
String get inboxEmptyPlaceholderHeader =>
670+
'There are no unread messages in your inbox.';
671+
672+
@override
673+
String get inboxEmptyPlaceholderMessage =>
674+
'Use the buttons below to view the combined feed or list of channels.';
671675

672676
@override
673677
String get recentDmConversationsPageTitle => 'Messaggi diretti';
@@ -676,8 +680,12 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
676680
String get recentDmConversationsSectionHeader => 'Messaggi diretti';
677681

678682
@override
679-
String get recentDmConversationsEmptyPlaceholder =>
680-
'Non ci sono ancora messaggi diretti! Perché non iniziare la conversazione?';
683+
String get recentDmConversationsEmptyPlaceholderHeader =>
684+
'You have no direct messages yet!';
685+
686+
@override
687+
String get recentDmConversationsEmptyPlaceholderMessage =>
688+
'Why not start the conversation?';
681689

682690
@override
683691
String get combinedFeedPageTitle => 'Feed combinato';
@@ -692,8 +700,8 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
692700
String get channelsPageTitle => 'Canali';
693701

694702
@override
695-
String get channelsEmptyPlaceholder =>
696-
'Non sei ancora iscritto ad alcun canale.';
703+
String get channelsEmptyPlaceholderHeader =>
704+
'You are not subscribed to any channels yet.';
697705

698706
@override
699707
String get mainMenuMyProfile => 'Il mio profilo';

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,12 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
651651
String get inboxPageTitle => 'Inbox';
652652

653653
@override
654-
String get inboxEmptyPlaceholder =>
655-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
654+
String get inboxEmptyPlaceholderHeader =>
655+
'There are no unread messages in your inbox.';
656+
657+
@override
658+
String get inboxEmptyPlaceholderMessage =>
659+
'Use the buttons below to view the combined feed or list of channels.';
656660

657661
@override
658662
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -661,8 +665,12 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
661665
String get recentDmConversationsSectionHeader => 'Direct messages';
662666

663667
@override
664-
String get recentDmConversationsEmptyPlaceholder =>
665-
'You have no direct messages yet! Why not start the conversation?';
668+
String get recentDmConversationsEmptyPlaceholderHeader =>
669+
'You have no direct messages yet!';
670+
671+
@override
672+
String get recentDmConversationsEmptyPlaceholderMessage =>
673+
'Why not start the conversation?';
666674

667675
@override
668676
String get combinedFeedPageTitle => 'Combined feed';
@@ -677,7 +685,7 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
677685
String get channelsPageTitle => 'Channels';
678686

679687
@override
680-
String get channelsEmptyPlaceholder =>
688+
String get channelsEmptyPlaceholderHeader =>
681689
'You are not subscribed to any channels yet.';
682690

683691
@override

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,12 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
651651
String get inboxPageTitle => 'Inbox';
652652

653653
@override
654-
String get inboxEmptyPlaceholder =>
655-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
654+
String get inboxEmptyPlaceholderHeader =>
655+
'There are no unread messages in your inbox.';
656+
657+
@override
658+
String get inboxEmptyPlaceholderMessage =>
659+
'Use the buttons below to view the combined feed or list of channels.';
656660

657661
@override
658662
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -661,8 +665,12 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
661665
String get recentDmConversationsSectionHeader => 'Direct messages';
662666

663667
@override
664-
String get recentDmConversationsEmptyPlaceholder =>
665-
'You have no direct messages yet! Why not start the conversation?';
668+
String get recentDmConversationsEmptyPlaceholderHeader =>
669+
'You have no direct messages yet!';
670+
671+
@override
672+
String get recentDmConversationsEmptyPlaceholderMessage =>
673+
'Why not start the conversation?';
666674

667675
@override
668676
String get combinedFeedPageTitle => 'Combined feed';
@@ -677,7 +685,7 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
677685
String get channelsPageTitle => 'Channels';
678686

679687
@override
680-
String get channelsEmptyPlaceholder =>
688+
String get channelsEmptyPlaceholderHeader =>
681689
'You are not subscribed to any channels yet.';
682690

683691
@override

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,12 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
662662
String get inboxPageTitle => 'Odebrane';
663663

664664
@override
665-
String get inboxEmptyPlaceholder =>
666-
'Obecnie brak nowych wiadomości. Skorzystaj z przycisków u dołu ekranu aby przejść do widoku mieszanego lub listy kanałów.';
665+
String get inboxEmptyPlaceholderHeader =>
666+
'There are no unread messages in your inbox.';
667+
668+
@override
669+
String get inboxEmptyPlaceholderMessage =>
670+
'Use the buttons below to view the combined feed or list of channels.';
667671

668672
@override
669673
String get recentDmConversationsPageTitle => 'Wiadomości bezpośrednie';
@@ -672,8 +676,12 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
672676
String get recentDmConversationsSectionHeader => 'Wiadomości bezpośrednie';
673677

674678
@override
675-
String get recentDmConversationsEmptyPlaceholder =>
676-
'Brak wiadomości w archiwum! Może warto rozpocząć dyskusję?';
679+
String get recentDmConversationsEmptyPlaceholderHeader =>
680+
'You have no direct messages yet!';
681+
682+
@override
683+
String get recentDmConversationsEmptyPlaceholderMessage =>
684+
'Why not start the conversation?';
677685

678686
@override
679687
String get combinedFeedPageTitle => 'Mieszany widok';
@@ -688,7 +696,8 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
688696
String get channelsPageTitle => 'Kanały';
689697

690698
@override
691-
String get channelsEmptyPlaceholder => 'Nie śledzisz żadnego z kanałów.';
699+
String get channelsEmptyPlaceholderHeader =>
700+
'You are not subscribed to any channels yet.';
692701

693702
@override
694703
String get mainMenuMyProfile => 'Mój profil';

0 commit comments

Comments
 (0)