Skip to content

Commit b6e1bf8

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

9 files changed

+29
-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
@@ -559,6 +559,12 @@ abstract class ZulipLocalizations {
559559
/// **'(unknown user)'**
560560
String get unknownUserName;
561561

562+
/// Message list page title for a DM group that only includes yourself.
563+
///
564+
/// In en, this message translates to:
565+
/// **'DMs with yourself'**
566+
String get messageListYouWithYourselfTitle;
567+
562568
/// Message list recipient header for a DM group with others.
563569
///
564570
/// 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_fr.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ class ZulipLocalizationsFr 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_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 => '(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
@@ -420,7 +420,7 @@ class MessageListAppBarTitle extends StatelessWidget {
420420
case DmNarrow(:var otherRecipientIds):
421421
final store = PerAccountStoreWidget.of(context);
422422
if (otherRecipientIds.isEmpty) {
423-
return const Text("DMs with yourself");
423+
return Text(zulipLocalizations.messageListYouWithYourselfTitle);
424424
} else {
425425
final names = otherRecipientIds.map((id) => store.users[id]?.fullName ?? '(unknown user)');
426426
return Text("DMs with ${names.join(", ")}"); // TODO show avatars

0 commit comments

Comments
 (0)