Skip to content

Commit b5cf046

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 9770b16 commit b5cf046

19 files changed

+231
-99
lines changed

assets/l10n/app_en.arb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -797,10 +797,14 @@
797797
"@inboxPageTitle": {
798798
"description": "Title for the page with unreads."
799799
},
800-
"inboxEmptyPlaceholder": "There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.",
801-
"@inboxEmptyPlaceholder": {
800+
"inboxEmptyPlaceholderHeader": "There are no unread messages in your inbox.",
801+
"@inboxEmptyPlaceholderHeader": {
802802
"description": "Centered text on the 'Inbox' page saying that there is no content to show."
803803
},
804+
"inboxEmptyPlaceholderMessage": "Use the buttons below to view the combined feed or list of channels.",
805+
"@inboxEmptyPlaceholderMessage": {
806+
"description": "Additional centered text on the 'Inbox' page saying that there is no content to show."
807+
},
804808
"recentDmConversationsPageTitle": "Direct messages",
805809
"@recentDmConversationsPageTitle": {
806810
"description": "Title for the page with a list of DM conversations."
@@ -809,10 +813,14 @@
809813
"@recentDmConversationsSectionHeader": {
810814
"description": "Heading for direct messages section on the 'Inbox' message view."
811815
},
812-
"recentDmConversationsEmptyPlaceholder": "You have no direct messages yet! Why not start the conversation?",
813-
"@recentDmConversationsEmptyPlaceholder": {
816+
"recentDmConversationsEmptyPlaceholderHeader": "You have no direct messages yet!",
817+
"@recentDmConversationsEmptyPlaceholderHeader": {
814818
"description": "Centered text on the 'Direct messages' page saying that there is no content to show."
815819
},
820+
"recentDmConversationsEmptyPlaceholderMessage": "Why not start the conversation?",
821+
"@recentDmConversationsEmptyPlaceholderMessage": {
822+
"description": "Additional centered text on the 'Direct messages' page saying that there is no content to show."
823+
},
816824
"combinedFeedPageTitle": "Combined feed",
817825
"@combinedFeedPageTitle": {
818826
"description": "Page title for the 'Combined feed' message view."
@@ -829,8 +837,8 @@
829837
"@channelsPageTitle": {
830838
"description": "Title for the page with a list of subscribed channels."
831839
},
832-
"channelsEmptyPlaceholder": "You are not subscribed to any channels yet.",
833-
"@channelsEmptyPlaceholder": {
840+
"channelsEmptyPlaceholderHeader": "You are not subscribed to any channels yet.",
841+
"@channelsEmptyPlaceholderHeader": {
834842
"description": "Centered text on the 'Channels' page saying that there is no content to show."
835843
},
836844
"mainMenuMyProfile": "My profile",

lib/generated/l10n/zulip_localizations.dart

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,14 @@ abstract class ZulipLocalizations {
12121212
/// Centered text on the 'Inbox' page saying that there is no content to show.
12131213
///
12141214
/// In en, this message translates to:
1215-
/// **'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.'**
1216-
String get inboxEmptyPlaceholder;
1215+
/// **'There are no unread messages in your inbox.'**
1216+
String get inboxEmptyPlaceholderHeader;
1217+
1218+
/// Additional centered text on the 'Inbox' page saying that there is no content to show.
1219+
///
1220+
/// In en, this message translates to:
1221+
/// **'Use the buttons below to view the combined feed or list of channels.'**
1222+
String get inboxEmptyPlaceholderMessage;
12171223

12181224
/// Title for the page with a list of DM conversations.
12191225
///
@@ -1230,8 +1236,14 @@ abstract class ZulipLocalizations {
12301236
/// Centered text on the 'Direct messages' page saying that there is no content to show.
12311237
///
12321238
/// In en, this message translates to:
1233-
/// **'You have no direct messages yet! Why not start the conversation?'**
1234-
String get recentDmConversationsEmptyPlaceholder;
1239+
/// **'You have no direct messages yet!'**
1240+
String get recentDmConversationsEmptyPlaceholderHeader;
1241+
1242+
/// Additional centered text on the 'Direct messages' page saying that there is no content to show.
1243+
///
1244+
/// In en, this message translates to:
1245+
/// **'Why not start the conversation?'**
1246+
String get recentDmConversationsEmptyPlaceholderMessage;
12351247

12361248
/// Page title for the 'Combined feed' message view.
12371249
///
@@ -1261,7 +1273,7 @@ abstract class ZulipLocalizations {
12611273
///
12621274
/// In en, this message translates to:
12631275
/// **'You are not subscribed to any channels yet.'**
1264-
String get channelsEmptyPlaceholder;
1276+
String get channelsEmptyPlaceholderHeader;
12651277

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

lib/generated/l10n/zulip_localizations_ar.dart

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

656656
@override
657-
String get inboxEmptyPlaceholder =>
658-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
657+
String get inboxEmptyPlaceholderHeader =>
658+
'There are no unread messages in your inbox.';
659+
660+
@override
661+
String get inboxEmptyPlaceholderMessage =>
662+
'Use the buttons below to view the combined feed or list of channels.';
659663

660664
@override
661665
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -664,8 +668,12 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
664668
String get recentDmConversationsSectionHeader => 'Direct messages';
665669

666670
@override
667-
String get recentDmConversationsEmptyPlaceholder =>
668-
'You have no direct messages yet! Why not start the conversation?';
671+
String get recentDmConversationsEmptyPlaceholderHeader =>
672+
'You have no direct messages yet!';
673+
674+
@override
675+
String get recentDmConversationsEmptyPlaceholderMessage =>
676+
'Why not start the conversation?';
669677

670678
@override
671679
String get combinedFeedPageTitle => 'Combined feed';
@@ -680,7 +688,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
680688
String get channelsPageTitle => 'Channels';
681689

682690
@override
683-
String get channelsEmptyPlaceholder =>
691+
String get channelsEmptyPlaceholderHeader =>
684692
'You are not subscribed to any channels yet.';
685693

686694
@override

lib/generated/l10n/zulip_localizations_de.dart

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

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

681685
@override
682686
String get recentDmConversationsPageTitle => 'Direktnachrichten';
@@ -685,8 +689,12 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
685689
String get recentDmConversationsSectionHeader => 'Direktnachrichten';
686690

687691
@override
688-
String get recentDmConversationsEmptyPlaceholder =>
689-
'Du hast noch keine Direktnachrichten! Warum nicht die Unterhaltung beginnen?';
692+
String get recentDmConversationsEmptyPlaceholderHeader =>
693+
'You have no direct messages yet!';
694+
695+
@override
696+
String get recentDmConversationsEmptyPlaceholderMessage =>
697+
'Why not start the conversation?';
690698

691699
@override
692700
String get combinedFeedPageTitle => 'Kombinierter Feed';
@@ -701,7 +709,8 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
701709
String get channelsPageTitle => 'Kanäle';
702710

703711
@override
704-
String get channelsEmptyPlaceholder => 'Du hast noch keine Kanäle abonniert.';
712+
String get channelsEmptyPlaceholderHeader =>
713+
'You are not subscribed to any channels yet.';
705714

706715
@override
707716
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
@@ -654,8 +654,12 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
654654
String get inboxPageTitle => 'Inbox';
655655

656656
@override
657-
String get inboxEmptyPlaceholder =>
658-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
657+
String get inboxEmptyPlaceholderHeader =>
658+
'There are no unread messages in your inbox.';
659+
660+
@override
661+
String get inboxEmptyPlaceholderMessage =>
662+
'Use the buttons below to view the combined feed or list of channels.';
659663

660664
@override
661665
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -664,8 +668,12 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
664668
String get recentDmConversationsSectionHeader => 'Direct messages';
665669

666670
@override
667-
String get recentDmConversationsEmptyPlaceholder =>
668-
'You have no direct messages yet! Why not start the conversation?';
671+
String get recentDmConversationsEmptyPlaceholderHeader =>
672+
'You have no direct messages yet!';
673+
674+
@override
675+
String get recentDmConversationsEmptyPlaceholderMessage =>
676+
'Why not start the conversation?';
669677

670678
@override
671679
String get combinedFeedPageTitle => 'Combined feed';
@@ -680,7 +688,7 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
680688
String get channelsPageTitle => 'Channels';
681689

682690
@override
683-
String get channelsEmptyPlaceholder =>
691+
String get channelsEmptyPlaceholderHeader =>
684692
'You are not subscribed to any channels yet.';
685693

686694
@override

lib/generated/l10n/zulip_localizations_it.dart

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

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

675679
@override
676680
String get recentDmConversationsPageTitle => 'Messaggi diretti';
@@ -679,8 +683,12 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
679683
String get recentDmConversationsSectionHeader => 'Messaggi diretti';
680684

681685
@override
682-
String get recentDmConversationsEmptyPlaceholder =>
683-
'Non ci sono ancora messaggi diretti! Perché non iniziare la conversazione?';
686+
String get recentDmConversationsEmptyPlaceholderHeader =>
687+
'You have no direct messages yet!';
688+
689+
@override
690+
String get recentDmConversationsEmptyPlaceholderMessage =>
691+
'Why not start the conversation?';
684692

685693
@override
686694
String get combinedFeedPageTitle => 'Feed combinato';
@@ -695,8 +703,8 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
695703
String get channelsPageTitle => 'Canali';
696704

697705
@override
698-
String get channelsEmptyPlaceholder =>
699-
'Non sei ancora iscritto ad alcun canale.';
706+
String get channelsEmptyPlaceholderHeader =>
707+
'You are not subscribed to any channels yet.';
700708

701709
@override
702710
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
@@ -654,8 +654,12 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
654654
String get inboxPageTitle => 'Inbox';
655655

656656
@override
657-
String get inboxEmptyPlaceholder =>
658-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
657+
String get inboxEmptyPlaceholderHeader =>
658+
'There are no unread messages in your inbox.';
659+
660+
@override
661+
String get inboxEmptyPlaceholderMessage =>
662+
'Use the buttons below to view the combined feed or list of channels.';
659663

660664
@override
661665
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -664,8 +668,12 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
664668
String get recentDmConversationsSectionHeader => 'Direct messages';
665669

666670
@override
667-
String get recentDmConversationsEmptyPlaceholder =>
668-
'You have no direct messages yet! Why not start the conversation?';
671+
String get recentDmConversationsEmptyPlaceholderHeader =>
672+
'You have no direct messages yet!';
673+
674+
@override
675+
String get recentDmConversationsEmptyPlaceholderMessage =>
676+
'Why not start the conversation?';
669677

670678
@override
671679
String get combinedFeedPageTitle => 'Combined feed';
@@ -680,7 +688,7 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
680688
String get channelsPageTitle => 'Channels';
681689

682690
@override
683-
String get channelsEmptyPlaceholder =>
691+
String get channelsEmptyPlaceholderHeader =>
684692
'You are not subscribed to any channels yet.';
685693

686694
@override

lib/generated/l10n/zulip_localizations_nb.dart

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

656656
@override
657-
String get inboxEmptyPlaceholder =>
658-
'There are no unread messages in your inbox. Use the buttons below to view the combined feed or list of channels.';
657+
String get inboxEmptyPlaceholderHeader =>
658+
'There are no unread messages in your inbox.';
659+
660+
@override
661+
String get inboxEmptyPlaceholderMessage =>
662+
'Use the buttons below to view the combined feed or list of channels.';
659663

660664
@override
661665
String get recentDmConversationsPageTitle => 'Direct messages';
@@ -664,8 +668,12 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
664668
String get recentDmConversationsSectionHeader => 'Direct messages';
665669

666670
@override
667-
String get recentDmConversationsEmptyPlaceholder =>
668-
'You have no direct messages yet! Why not start the conversation?';
671+
String get recentDmConversationsEmptyPlaceholderHeader =>
672+
'You have no direct messages yet!';
673+
674+
@override
675+
String get recentDmConversationsEmptyPlaceholderMessage =>
676+
'Why not start the conversation?';
669677

670678
@override
671679
String get combinedFeedPageTitle => 'Combined feed';
@@ -680,7 +688,7 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
680688
String get channelsPageTitle => 'Channels';
681689

682690
@override
683-
String get channelsEmptyPlaceholder =>
691+
String get channelsEmptyPlaceholderHeader =>
684692
'You are not subscribed to any channels yet.';
685693

686694
@override

lib/generated/l10n/zulip_localizations_pl.dart

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

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

671675
@override
672676
String get recentDmConversationsPageTitle => 'Wiadomości bezpośrednie';
@@ -675,8 +679,12 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
675679
String get recentDmConversationsSectionHeader => 'Wiadomości bezpośrednie';
676680

677681
@override
678-
String get recentDmConversationsEmptyPlaceholder =>
679-
'Brak wiadomości w archiwum! Może warto rozpocząć dyskusję?';
682+
String get recentDmConversationsEmptyPlaceholderHeader =>
683+
'You have no direct messages yet!';
684+
685+
@override
686+
String get recentDmConversationsEmptyPlaceholderMessage =>
687+
'Why not start the conversation?';
680688

681689
@override
682690
String get combinedFeedPageTitle => 'Mieszany widok';
@@ -691,7 +699,8 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
691699
String get channelsPageTitle => 'Kanały';
692700

693701
@override
694-
String get channelsEmptyPlaceholder => 'Nie śledzisz żadnego z kanałów.';
702+
String get channelsEmptyPlaceholderHeader =>
703+
'You are not subscribed to any channels yet.';
695704

696705
@override
697706
String get mainMenuMyProfile => 'Mój profil';

0 commit comments

Comments
 (0)