Skip to content

Commit 0347abe

Browse files
khanak0509gnprice
authored andcommitted
topic_list: Add empty state placeholder for channels with no topics
Fixes: #2003
1 parent 639f6e1 commit 0347abe

21 files changed

+72
-1
lines changed

assets/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,5 +1492,9 @@
14921492
"zulipAppTitle": "Zulip",
14931493
"@zulipAppTitle": {
14941494
"description": "The name of Zulip. This should be either 'Zulip' or a transliteration."
1495+
},
1496+
"topicListEmptyPlaceholderHeader": "There are no topics here yet.",
1497+
"@topicListEmptyPlaceholderHeader": {
1498+
"description": "Header text shown when a channel has no topics."
14951499
}
14961500
}

lib/generated/l10n/zulip_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,12 @@ abstract class ZulipLocalizations {
21622162
/// In en, this message translates to:
21632163
/// **'Zulip'**
21642164
String get zulipAppTitle;
2165+
2166+
/// Header text shown when a channel has no topics.
2167+
///
2168+
/// In en, this message translates to:
2169+
/// **'There are no topics here yet.'**
2170+
String get topicListEmptyPlaceholderHeader;
21652171
}
21662172

21672173
class _ZulipLocalizationsDelegate

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,4 +1245,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
12451245

12461246
@override
12471247
String get zulipAppTitle => 'Zulip';
1248+
1249+
@override
1250+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12481251
}

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,4 +1271,7 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
12711271

12721272
@override
12731273
String get zulipAppTitle => 'Zulip';
1274+
1275+
@override
1276+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12741277
}

lib/generated/l10n/zulip_localizations_el.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,4 +1245,7 @@ class ZulipLocalizationsEl extends ZulipLocalizations {
12451245

12461246
@override
12471247
String get zulipAppTitle => 'Zulip';
1248+
1249+
@override
1250+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12481251
}

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
12451245

12461246
@override
12471247
String get zulipAppTitle => 'Zulip';
1248+
1249+
@override
1250+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12481251
}
12491252

12501253
/// The translations for English, as used in the United Kingdom (`en_GB`).

lib/generated/l10n/zulip_localizations_es.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,4 +1245,7 @@ class ZulipLocalizationsEs extends ZulipLocalizations {
12451245

12461246
@override
12471247
String get zulipAppTitle => 'Zulip';
1248+
1249+
@override
1250+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12481251
}

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,4 +1261,7 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
12611261

12621262
@override
12631263
String get zulipAppTitle => 'Zulip';
1264+
1265+
@override
1266+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12641267
}

lib/generated/l10n/zulip_localizations_he.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,4 +1245,7 @@ class ZulipLocalizationsHe extends ZulipLocalizations {
12451245

12461246
@override
12471247
String get zulipAppTitle => 'Zulip';
1248+
1249+
@override
1250+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12481251
}

lib/generated/l10n/zulip_localizations_hu.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,4 +1245,7 @@ class ZulipLocalizationsHu extends ZulipLocalizations {
12451245

12461246
@override
12471247
String get zulipAppTitle => 'Zulip';
1248+
1249+
@override
1250+
String get topicListEmptyPlaceholderHeader => 'There are no topics here yet.';
12481251
}

0 commit comments

Comments
 (0)