mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Update strings and screenshots for waitlist screen. (#1183)
This commit is contained in:
@@ -94,6 +94,7 @@
|
|||||||
"common_permalink" = "Permalink";
|
"common_permalink" = "Permalink";
|
||||||
"common_privacy_policy" = "Privacy policy";
|
"common_privacy_policy" = "Privacy policy";
|
||||||
"common_reactions" = "Reactions";
|
"common_reactions" = "Reactions";
|
||||||
|
"common_refreshing" = "Refreshing…";
|
||||||
"common_replying_to" = "Replying to %1$@";
|
"common_replying_to" = "Replying to %1$@";
|
||||||
"common_report_a_bug" = "Report a bug";
|
"common_report_a_bug" = "Report a bug";
|
||||||
"common_report_submitted" = "Report submitted";
|
"common_report_submitted" = "Report submitted";
|
||||||
@@ -157,6 +158,7 @@
|
|||||||
"notification_invitation_action_reject" = "Reject";
|
"notification_invitation_action_reject" = "Reject";
|
||||||
"notification_invite_body" = "Invited you to chat";
|
"notification_invite_body" = "Invited you to chat";
|
||||||
"notification_new_messages" = "New Messages";
|
"notification_new_messages" = "New Messages";
|
||||||
|
"notification_reaction_body" = "Reacted with %1$@";
|
||||||
"notification_room_action_mark_as_read" = "Mark as read";
|
"notification_room_action_mark_as_read" = "Mark as read";
|
||||||
"notification_room_invite_body" = "Invited you to join the room";
|
"notification_room_invite_body" = "Invited you to join the room";
|
||||||
"notification_sender_me" = "Me";
|
"notification_sender_me" = "Me";
|
||||||
@@ -322,6 +324,10 @@
|
|||||||
"screen_signout_confirmation_dialog_title" = "Sign out";
|
"screen_signout_confirmation_dialog_title" = "Sign out";
|
||||||
"screen_signout_in_progress_dialog_content" = "Signing out…";
|
"screen_signout_in_progress_dialog_content" = "Signing out…";
|
||||||
"screen_start_chat_error_starting_chat" = "An error occurred when trying to start a chat";
|
"screen_start_chat_error_starting_chat" = "An error occurred when trying to start a chat";
|
||||||
|
"screen_waitlist_message" = "There's a high demand for %1$@ on %2$@ at the moment. Come back to the app in a few days and try again.\n\nThanks for your patience!";
|
||||||
|
"screen_waitlist_message_success" = "Welcome to %1$@";
|
||||||
|
"screen_waitlist_title" = "You're on the waitlist!";
|
||||||
|
"screen_waitlist_title_success" = "You're in!";
|
||||||
"session_verification_banner_message" = "Looks like you’re using a new device. Verify it’s you to access your encrypted messages.";
|
"session_verification_banner_message" = "Looks like you’re using a new device. Verify it’s you to access your encrypted messages.";
|
||||||
"session_verification_banner_title" = "Access your message history";
|
"session_verification_banner_title" = "Access your message history";
|
||||||
"settings_rageshake" = "Rageshake";
|
"settings_rageshake" = "Rageshake";
|
||||||
|
|||||||
@@ -14,9 +14,3 @@
|
|||||||
"soft_logout_clear_data_submit" = "Clear all data";
|
"soft_logout_clear_data_submit" = "Clear all data";
|
||||||
"soft_logout_clear_data_dialog_title" = "Clear data";
|
"soft_logout_clear_data_dialog_title" = "Clear data";
|
||||||
"soft_logout_clear_data_dialog_content" = "Clear all data currently stored on this device?\nSign in again to access your account data and messages.";
|
"soft_logout_clear_data_dialog_content" = "Clear all data currently stored on this device?\nSign in again to access your account data and messages.";
|
||||||
|
|
||||||
"common_refreshing" = "Refreshing…";
|
|
||||||
"screen_waitlist_title" = "You're on the waitlist!";
|
|
||||||
"screen_waitlist_title_success" = "You're in!";
|
|
||||||
"screen_waitlist_message" = "There's a high demand for %1$@ on %2$@ at the moment. Come back to the app in a few days and try again.\n\nThanks for your patience!";
|
|
||||||
"screen_waitlist_message_success" = "Welcome to %1$@";
|
|
||||||
|
|||||||
@@ -10,22 +10,6 @@ import Foundation
|
|||||||
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
|
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
|
||||||
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
|
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
|
||||||
public enum UntranslatedL10n {
|
public enum UntranslatedL10n {
|
||||||
/// Refreshing…
|
|
||||||
public static var commonRefreshing: String { return UntranslatedL10n.tr("Untranslated", "common_refreshing") }
|
|
||||||
/// There's a high demand for %1$@ on %2$@ at the moment. Come back to the app in a few days and try again.
|
|
||||||
///
|
|
||||||
/// Thanks for your patience!
|
|
||||||
public static func screenWaitlistMessage(_ p1: Any, _ p2: Any) -> String {
|
|
||||||
return UntranslatedL10n.tr("Untranslated", "screen_waitlist_message", String(describing: p1), String(describing: p2))
|
|
||||||
}
|
|
||||||
/// Welcome to %1$@
|
|
||||||
public static func screenWaitlistMessageSuccess(_ p1: Any) -> String {
|
|
||||||
return UntranslatedL10n.tr("Untranslated", "screen_waitlist_message_success", String(describing: p1))
|
|
||||||
}
|
|
||||||
/// You're on the waitlist!
|
|
||||||
public static var screenWaitlistTitle: String { return UntranslatedL10n.tr("Untranslated", "screen_waitlist_title") }
|
|
||||||
/// You're in!
|
|
||||||
public static var screenWaitlistTitleSuccess: String { return UntranslatedL10n.tr("Untranslated", "screen_waitlist_title_success") }
|
|
||||||
/// Clear all data currently stored on this device?
|
/// Clear all data currently stored on this device?
|
||||||
/// Sign in again to access your account data and messages.
|
/// Sign in again to access your account data and messages.
|
||||||
public static var softLogoutClearDataDialogContent: String { return UntranslatedL10n.tr("Untranslated", "soft_logout_clear_data_dialog_content") }
|
public static var softLogoutClearDataDialogContent: String { return UntranslatedL10n.tr("Untranslated", "soft_logout_clear_data_dialog_content") }
|
||||||
|
|||||||
@@ -210,6 +210,8 @@ public enum L10n {
|
|||||||
public static var commonPrivacyPolicy: String { return L10n.tr("Localizable", "common_privacy_policy") }
|
public static var commonPrivacyPolicy: String { return L10n.tr("Localizable", "common_privacy_policy") }
|
||||||
/// Reactions
|
/// Reactions
|
||||||
public static var commonReactions: String { return L10n.tr("Localizable", "common_reactions") }
|
public static var commonReactions: String { return L10n.tr("Localizable", "common_reactions") }
|
||||||
|
/// Refreshing…
|
||||||
|
public static var commonRefreshing: String { return L10n.tr("Localizable", "common_refreshing") }
|
||||||
/// Replying to %1$@
|
/// Replying to %1$@
|
||||||
public static func commonReplyingTo(_ p1: Any) -> String {
|
public static func commonReplyingTo(_ p1: Any) -> String {
|
||||||
return L10n.tr("Localizable", "common_replying_to", String(describing: p1))
|
return L10n.tr("Localizable", "common_replying_to", String(describing: p1))
|
||||||
@@ -368,6 +370,10 @@ public enum L10n {
|
|||||||
public static func notificationNewMessagesForRoom(_ p1: Int) -> String {
|
public static func notificationNewMessagesForRoom(_ p1: Int) -> String {
|
||||||
return L10n.tr("Localizable", "notification_new_messages_for_room", p1)
|
return L10n.tr("Localizable", "notification_new_messages_for_room", p1)
|
||||||
}
|
}
|
||||||
|
/// Reacted with %1$@
|
||||||
|
public static func notificationReactionBody(_ p1: Any) -> String {
|
||||||
|
return L10n.tr("Localizable", "notification_reaction_body", String(describing: p1))
|
||||||
|
}
|
||||||
/// Mark as read
|
/// Mark as read
|
||||||
public static var notificationRoomActionMarkAsRead: String { return L10n.tr("Localizable", "notification_room_action_mark_as_read") }
|
public static var notificationRoomActionMarkAsRead: String { return L10n.tr("Localizable", "notification_room_action_mark_as_read") }
|
||||||
/// Quick reply
|
/// Quick reply
|
||||||
@@ -812,6 +818,20 @@ public enum L10n {
|
|||||||
public static var screenSignoutPreferenceItem: String { return L10n.tr("Localizable", "screen_signout_preference_item") }
|
public static var screenSignoutPreferenceItem: String { return L10n.tr("Localizable", "screen_signout_preference_item") }
|
||||||
/// An error occurred when trying to start a chat
|
/// An error occurred when trying to start a chat
|
||||||
public static var screenStartChatErrorStartingChat: String { return L10n.tr("Localizable", "screen_start_chat_error_starting_chat") }
|
public static var screenStartChatErrorStartingChat: String { return L10n.tr("Localizable", "screen_start_chat_error_starting_chat") }
|
||||||
|
/// There's a high demand for %1$@ on %2$@ at the moment. Come back to the app in a few days and try again.
|
||||||
|
///
|
||||||
|
/// Thanks for your patience!
|
||||||
|
public static func screenWaitlistMessage(_ p1: Any, _ p2: Any) -> String {
|
||||||
|
return L10n.tr("Localizable", "screen_waitlist_message", String(describing: p1), String(describing: p2))
|
||||||
|
}
|
||||||
|
/// Welcome to %1$@
|
||||||
|
public static func screenWaitlistMessageSuccess(_ p1: Any) -> String {
|
||||||
|
return L10n.tr("Localizable", "screen_waitlist_message_success", String(describing: p1))
|
||||||
|
}
|
||||||
|
/// You're on the waitlist!
|
||||||
|
public static var screenWaitlistTitle: String { return L10n.tr("Localizable", "screen_waitlist_title") }
|
||||||
|
/// You're in!
|
||||||
|
public static var screenWaitlistTitleSuccess: String { return L10n.tr("Localizable", "screen_waitlist_title_success") }
|
||||||
/// Looks like you’re using a new device. Verify it’s you to access your encrypted messages.
|
/// Looks like you’re using a new device. Verify it’s you to access your encrypted messages.
|
||||||
public static var sessionVerificationBannerMessage: String { return L10n.tr("Localizable", "session_verification_banner_message") }
|
public static var sessionVerificationBannerMessage: String { return L10n.tr("Localizable", "session_verification_banner_message") }
|
||||||
/// Access your message history
|
/// Access your message history
|
||||||
|
|||||||
+1
-1
@@ -111,7 +111,7 @@ final class WaitlistScreenCoordinator: CoordinatorProtocol {
|
|||||||
private func showRefreshIndicator() {
|
private func showRefreshIndicator() {
|
||||||
parameters.userIndicatorController.submitIndicator(UserIndicator(id: Self.refreshIndicatorID,
|
parameters.userIndicatorController.submitIndicator(UserIndicator(id: Self.refreshIndicatorID,
|
||||||
type: .modal,
|
type: .modal,
|
||||||
title: UntranslatedL10n.commonRefreshing,
|
title: L10n.commonRefreshing,
|
||||||
persistent: true))
|
persistent: true))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,17 +53,17 @@ struct WaitlistScreenViewState: BindableState {
|
|||||||
|
|
||||||
var title: String {
|
var title: String {
|
||||||
if isWaiting {
|
if isWaiting {
|
||||||
return UntranslatedL10n.screenWaitlistTitle
|
return L10n.screenWaitlistTitle
|
||||||
} else {
|
} else {
|
||||||
return UntranslatedL10n.screenWaitlistTitleSuccess
|
return L10n.screenWaitlistTitleSuccess
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var message: String {
|
var message: String {
|
||||||
if isWaiting {
|
if isWaiting {
|
||||||
return UntranslatedL10n.screenWaitlistMessage(InfoPlistReader.main.bundleDisplayName, homeserver.address)
|
return L10n.screenWaitlistMessage(InfoPlistReader.main.bundleDisplayName, homeserver.address)
|
||||||
} else {
|
} else {
|
||||||
return UntranslatedL10n.screenWaitlistMessageSuccess(InfoPlistReader.main.bundleDisplayName)
|
return L10n.screenWaitlistMessageSuccess(InfoPlistReader.main.bundleDisplayName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,14 +124,17 @@ class MockScreen: Identifiable {
|
|||||||
credentials: credentials,
|
credentials: credentials,
|
||||||
keyBackupNeeded: false))
|
keyBackupNeeded: false))
|
||||||
case .waitlist:
|
case .waitlist:
|
||||||
|
let navigationStackCoordinator = NavigationStackCoordinator()
|
||||||
let credentials = WaitlistScreenCredentials(username: "alice",
|
let credentials = WaitlistScreenCredentials(username: "alice",
|
||||||
password: "password",
|
password: "password",
|
||||||
initialDeviceName: nil,
|
initialDeviceName: nil,
|
||||||
deviceID: nil,
|
deviceID: nil,
|
||||||
homeserver: .mockMatrixDotOrg)
|
homeserver: .mockMatrixDotOrg)
|
||||||
return WaitlistScreenCoordinator(parameters: .init(credentials: credentials,
|
let coordinator = WaitlistScreenCoordinator(parameters: .init(credentials: credentials,
|
||||||
authenticationService: MockAuthenticationServiceProxy(),
|
authenticationService: MockAuthenticationServiceProxy(),
|
||||||
userIndicatorController: UserIndicatorControllerMock.default))
|
userIndicatorController: UserIndicatorControllerMock.default))
|
||||||
|
navigationStackCoordinator.setRootCoordinator(coordinator)
|
||||||
|
return navigationStackCoordinator
|
||||||
case .simpleRegular:
|
case .simpleRegular:
|
||||||
return TemplateScreenCoordinator(parameters: .init(promptType: .regular))
|
return TemplateScreenCoordinator(parameters: .init(promptType: .regular))
|
||||||
case .simpleUpgrade:
|
case .simpleUpgrade:
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:04a9042d779769d3d5f7d9c405ee98c09d10e7b29503784822a9eb5d65fe1335
|
||||||
|
size 86825
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:06364eaf85691663137f97860abd42306c83fa134160de1f9274ab427d1a7db9
|
||||||
|
size 99246
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9b20644e2113d4ccc24d03a3d5818cb36086c83abf00b7a8f64e35d1002bae6d
|
||||||
|
size 108622
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:136e986982afb54c76d94b4e413947f2db0ef194b8c9f02508ac397b5dca2b6c
|
||||||
|
size 138604
|
||||||
Reference in New Issue
Block a user