Skip to content

Commit e1e35f5

Browse files
committed
msglist: Localize message list title for "DMs with yourself"
Signed-off-by: Zixuan James Li <[email protected]>
1 parent d6d85e4 commit e1e35f5

10 files changed

+32
-1
lines changed

assets/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@
344344
"@unknownUserName": {
345345
"description": "Name placeholder to use for a user when we don't know their name."
346346
},
347+
"messageListYouWithYourselfTitle": "DMs with yourself",
348+
"@messageListYouWithYourselfTitle": {
349+
"description": "Message list page title for a DM group that only includes yourself."
350+
},
347351
"messageListGroupYouAndOthers": "You and {others}",
348352
"@messageListGroupYouAndOthers": {
349353
"description": "Message list recipient header for a DM group with others.",

lib/generated/l10n/zulip_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,12 @@ abstract class ZulipLocalizations {
561561
/// **'(unknown user)'**
562562
String get unknownUserName;
563563

564+
/// Message list page title for a DM group that only includes yourself.
565+
///
566+
/// In en, this message translates to:
567+
/// **'DMs with yourself'**
568+
String get messageListYouWithYourselfTitle;
569+
564570
/// Message list recipient header for a DM group with others.
565571
///
566572
/// 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
@@ -272,6 +272,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
272272
@override
273273
String get unknownUserName => '(unknown user)';
274274

275+
@override
276+
String get messageListYouWithYourselfTitle => 'DMs with yourself';
277+
275278
@override
276279
String messageListGroupYouAndOthers(String others) {
277280
return 'You and $others';

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
272272
@override
273273
String get unknownUserName => '(unknown user)';
274274

275+
@override
276+
String get messageListYouWithYourselfTitle => 'DMs with yourself';
277+
275278
@override
276279
String messageListGroupYouAndOthers(String others) {
277280
return 'You and $others';

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
272272
@override
273273
String get unknownUserName => '(unknown user)';
274274

275+
@override
276+
String get messageListYouWithYourselfTitle => 'DMs with yourself';
277+
275278
@override
276279
String messageListGroupYouAndOthers(String others) {
277280
return 'You and $others';

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
272272
@override
273273
String get unknownUserName => '(unknown user)';
274274

275+
@override
276+
String get messageListYouWithYourselfTitle => 'DMs with yourself';
277+
275278
@override
276279
String messageListGroupYouAndOthers(String others) {
277280
return 'You and $others';

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
272272
@override
273273
String get unknownUserName => '(nieznany użytkownik)';
274274

275+
@override
276+
String get messageListYouWithYourselfTitle => 'DMs with yourself';
277+
275278
@override
276279
String messageListGroupYouAndOthers(String others) {
277280
return 'Ty i $others';

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
272272
@override
273273
String get unknownUserName => '(неизвестный пользователь)';
274274

275+
@override
276+
String get messageListYouWithYourselfTitle => 'DMs with yourself';
277+
275278
@override
276279
String messageListGroupYouAndOthers(String others) {
277280
return 'Вы и $others';

lib/generated/l10n/zulip_localizations_sk.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class ZulipLocalizationsSk extends ZulipLocalizations {
272272
@override
273273
String get unknownUserName => '(unknown user)';
274274

275+
@override
276+
String get messageListYouWithYourselfTitle => 'DMs with yourself';
277+
275278
@override
276279
String messageListGroupYouAndOthers(String others) {
277280
return 'You and $others';

lib/widgets/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class MessageListAppBarTitle extends StatelessWidget {
413413
case DmNarrow(:var otherRecipientIds):
414414
final store = PerAccountStoreWidget.of(context);
415415
if (otherRecipientIds.isEmpty) {
416-
return const Text("DMs with yourself");
416+
return Text(zulipLocalizations.messageListYouWithYourselfTitle);
417417
} else {
418418
final names = otherRecipientIds.map((id) => store.users[id]?.fullName ?? '(unknown user)');
419419
return Text("DMs with ${names.join(", ")}"); // TODO show avatars

0 commit comments

Comments
 (0)