Update back button label. (#2775)

This commit is contained in:
Doug 2024-05-03 14:39:14 +01:00 committed by GitHub
parent 11557e4879
commit 8734f94df0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -666,6 +666,7 @@
"screen_room_timeline_reactions_show_less" = "Show less";
"screen_room_timeline_reactions_show_more" = "Show more";
"screen_room_timeline_read_marker_title" = "New";
"screen_room_title" = "Chat";
"screen_room_typing_many_members_first_component_ios" = "%1$@, %2$@ and ";
"screen_room_typing_notification_plural_ios" = " are typing…";
"screen_room_typing_notification_singular_ios" = " is typing…";

View File

@ -1625,6 +1625,8 @@ internal enum L10n {
internal static func screenRoomTimelineStateChanges(_ p1: Int) -> String {
return L10n.tr("Localizable", "screen_room_timeline_state_changes", p1)
}
/// Chat
internal static var screenRoomTitle: String { return L10n.tr("Localizable", "screen_room_title") }
/// Plural format key: "%#@COUNT@"
internal static func screenRoomTypingManyMembers(_ p1: Int) -> String {
return L10n.tr("Localizable", "screen_room_typing_many_members", p1)

View File

@ -47,7 +47,7 @@ struct RoomScreen: View {
.background(Color.compound.bgCanvasDefault.ignoresSafeArea())
.environmentObject(context)
}
.navigationTitle(L10n.commonRoom) // Hidden but used for back button text.
.navigationTitle(L10n.screenRoomTitle) // Hidden but used for back button text.
.navigationBarTitleDisplayMode(.inline)
.navigationBarHidden(isNavigationBarHidden)
.toolbar { toolbar }