@@ -335,12 +335,15 @@ class MessageListAppBarTitle extends StatelessWidget {
335335 case ChannelNarrow (: var streamId):
336336 final store = PerAccountStoreWidget .of (context);
337337 final stream = store.streams[streamId];
338+ // TODO(i18n): provide translations just as
339+ // 'zulipLocalizations.unknownUserName' for 'unknown channel'
338340 final streamName = stream? .name ?? '(unknown channel)' ;
339341 return _buildStreamRow (context, stream: stream, text: streamName);
340342
341343 case TopicNarrow (: var streamId, : var topic):
342344 final store = PerAccountStoreWidget .of (context);
343345 final stream = store.streams[streamId];
346+ // TODO(i18n): provide translations for 'unknown channel'
344347 final streamName = stream? .name ?? '(unknown channel)' ;
345348 return _buildStreamRow (context, stream: stream, text: "$streamName > $topic " );
346349
@@ -349,7 +352,8 @@ class MessageListAppBarTitle extends StatelessWidget {
349352 if (otherRecipientIds.isEmpty) {
350353 return const Text ("DMs with yourself" );
351354 } else {
352- final names = otherRecipientIds.map ((id) => store.users[id]? .fullName ?? '(unknown user)' );
355+ final names = otherRecipientIds.map ((id) =>
356+ store.users[id]? .fullName ?? zulipLocalizations.unknownUserName);
353357 return Text ("DMs with ${names .join (", " )}" ); // TODO show avatars
354358 }
355359 }
0 commit comments