mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Updated Bottom Sheet message string (#3743)
* updated bottom sheet string * updated pseudo language tests
This commit is contained in:
@@ -181,6 +181,7 @@
|
|||||||
"common_message_removed" = "Message removed";
|
"common_message_removed" = "Message removed";
|
||||||
"common_modern" = "Modern";
|
"common_modern" = "Modern";
|
||||||
"common_mute" = "Mute";
|
"common_mute" = "Mute";
|
||||||
|
"common_name_and_id" = "%1$@ (%2$@)";
|
||||||
"common_no_results" = "No results";
|
"common_no_results" = "No results";
|
||||||
"common_no_room_name" = "No room name";
|
"common_no_room_name" = "No room name";
|
||||||
"common_offline" = "Offline";
|
"common_offline" = "Offline";
|
||||||
@@ -371,8 +372,7 @@
|
|||||||
"screen_advanced_settings_element_call_base_url_description" = "Set a custom base URL for Element Call.";
|
"screen_advanced_settings_element_call_base_url_description" = "Set a custom base URL for Element Call.";
|
||||||
"screen_advanced_settings_element_call_base_url_validation_error" = "Invalid URL, please make sure you include the protocol (http/https) and the correct address.";
|
"screen_advanced_settings_element_call_base_url_validation_error" = "Invalid URL, please make sure you include the protocol (http/https) and the correct address.";
|
||||||
"screen_bottom_sheet_create_dm_confirmation_button_title" = "Send invite";
|
"screen_bottom_sheet_create_dm_confirmation_button_title" = "Send invite";
|
||||||
"screen_bottom_sheet_create_dm_message" = "Would you like to start a chat with %1$@ (%2$@)?";
|
"screen_bottom_sheet_create_dm_message" = "Would you like to start a chat with %1$@?";
|
||||||
"screen_bottom_sheet_create_dm_message_no_displayname" = "Would you like to start a chat with %1$@?";
|
|
||||||
"screen_bottom_sheet_create_dm_title" = "Send invite?";
|
"screen_bottom_sheet_create_dm_title" = "Send invite?";
|
||||||
"screen_create_room_room_access_section_anyone_option_description" = "Anyone can join this room";
|
"screen_create_room_room_access_section_anyone_option_description" = "Anyone can join this room";
|
||||||
"screen_create_room_room_access_section_anyone_option_title" = "Anyone";
|
"screen_create_room_room_access_section_anyone_option_title" = "Anyone";
|
||||||
|
|||||||
@@ -181,6 +181,7 @@
|
|||||||
"common_message_removed" = "Message removed";
|
"common_message_removed" = "Message removed";
|
||||||
"common_modern" = "Modern";
|
"common_modern" = "Modern";
|
||||||
"common_mute" = "Mute";
|
"common_mute" = "Mute";
|
||||||
|
"common_name_and_id" = "%1$@ (%2$@)";
|
||||||
"common_no_results" = "No results";
|
"common_no_results" = "No results";
|
||||||
"common_no_room_name" = "No room name";
|
"common_no_room_name" = "No room name";
|
||||||
"common_offline" = "Offline";
|
"common_offline" = "Offline";
|
||||||
@@ -371,8 +372,7 @@
|
|||||||
"screen_advanced_settings_element_call_base_url_description" = "Set a custom base URL for Element Call.";
|
"screen_advanced_settings_element_call_base_url_description" = "Set a custom base URL for Element Call.";
|
||||||
"screen_advanced_settings_element_call_base_url_validation_error" = "Invalid URL, please make sure you include the protocol (http/https) and the correct address.";
|
"screen_advanced_settings_element_call_base_url_validation_error" = "Invalid URL, please make sure you include the protocol (http/https) and the correct address.";
|
||||||
"screen_bottom_sheet_create_dm_confirmation_button_title" = "Send invite";
|
"screen_bottom_sheet_create_dm_confirmation_button_title" = "Send invite";
|
||||||
"screen_bottom_sheet_create_dm_message" = "Would you like to start a chat with %1$@ (%2$@)?";
|
"screen_bottom_sheet_create_dm_message" = "Would you like to start a chat with %1$@?";
|
||||||
"screen_bottom_sheet_create_dm_message_no_displayname" = "Would you like to start a chat with %1$@?";
|
|
||||||
"screen_bottom_sheet_create_dm_title" = "Send invite?";
|
"screen_bottom_sheet_create_dm_title" = "Send invite?";
|
||||||
"screen_create_room_room_access_section_anyone_option_description" = "Anyone can join this room";
|
"screen_create_room_room_access_section_anyone_option_description" = "Anyone can join this room";
|
||||||
"screen_create_room_room_access_section_anyone_option_title" = "Anyone";
|
"screen_create_room_room_access_section_anyone_option_title" = "Anyone";
|
||||||
|
|||||||
@@ -408,6 +408,10 @@ internal enum L10n {
|
|||||||
internal static var commonModern: String { return L10n.tr("Localizable", "common_modern") }
|
internal static var commonModern: String { return L10n.tr("Localizable", "common_modern") }
|
||||||
/// Mute
|
/// Mute
|
||||||
internal static var commonMute: String { return L10n.tr("Localizable", "common_mute") }
|
internal static var commonMute: String { return L10n.tr("Localizable", "common_mute") }
|
||||||
|
/// %1$@ (%2$@)
|
||||||
|
internal static func commonNameAndId(_ p1: Any, _ p2: Any) -> String {
|
||||||
|
return L10n.tr("Localizable", "common_name_and_id", String(describing: p1), String(describing: p2))
|
||||||
|
}
|
||||||
/// No results
|
/// No results
|
||||||
internal static var commonNoResults: String { return L10n.tr("Localizable", "common_no_results") }
|
internal static var commonNoResults: String { return L10n.tr("Localizable", "common_no_results") }
|
||||||
/// No room name
|
/// No room name
|
||||||
@@ -1016,13 +1020,9 @@ internal enum L10n {
|
|||||||
internal static var screenBlockedUsersUnblocking: String { return L10n.tr("Localizable", "screen_blocked_users_unblocking") }
|
internal static var screenBlockedUsersUnblocking: String { return L10n.tr("Localizable", "screen_blocked_users_unblocking") }
|
||||||
/// Send invite
|
/// Send invite
|
||||||
internal static var screenBottomSheetCreateDmConfirmationButtonTitle: String { return L10n.tr("Localizable", "screen_bottom_sheet_create_dm_confirmation_button_title") }
|
internal static var screenBottomSheetCreateDmConfirmationButtonTitle: String { return L10n.tr("Localizable", "screen_bottom_sheet_create_dm_confirmation_button_title") }
|
||||||
/// Would you like to start a chat with %1$@ (%2$@)?
|
|
||||||
internal static func screenBottomSheetCreateDmMessage(_ p1: Any, _ p2: Any) -> String {
|
|
||||||
return L10n.tr("Localizable", "screen_bottom_sheet_create_dm_message", String(describing: p1), String(describing: p2))
|
|
||||||
}
|
|
||||||
/// Would you like to start a chat with %1$@?
|
/// Would you like to start a chat with %1$@?
|
||||||
internal static func screenBottomSheetCreateDmMessageNoDisplayname(_ p1: Any) -> String {
|
internal static func screenBottomSheetCreateDmMessage(_ p1: Any) -> String {
|
||||||
return L10n.tr("Localizable", "screen_bottom_sheet_create_dm_message_no_displayname", String(describing: p1))
|
return L10n.tr("Localizable", "screen_bottom_sheet_create_dm_message", String(describing: p1))
|
||||||
}
|
}
|
||||||
/// Send invite?
|
/// Send invite?
|
||||||
internal static var screenBottomSheetCreateDmTitle: String { return L10n.tr("Localizable", "screen_bottom_sheet_create_dm_title") }
|
internal static var screenBottomSheetCreateDmTitle: String { return L10n.tr("Localizable", "screen_bottom_sheet_create_dm_title") }
|
||||||
|
|||||||
@@ -19,11 +19,13 @@ struct SendInviteConfirmationView: View {
|
|||||||
private let topPadding: CGFloat = 24
|
private let topPadding: CGFloat = 24
|
||||||
|
|
||||||
private var subtitle: String {
|
private var subtitle: String {
|
||||||
|
let string: String
|
||||||
if let displayName = userToInvite.displayName {
|
if let displayName = userToInvite.displayName {
|
||||||
L10n.screenBottomSheetCreateDmMessage(displayName, userToInvite.userID)
|
string = L10n.commonNameAndId(displayName, userToInvite.userID)
|
||||||
} else {
|
} else {
|
||||||
L10n.screenBottomSheetCreateDmMessageNoDisplayname(userToInvite.userID)
|
string = userToInvite.userID
|
||||||
}
|
}
|
||||||
|
return L10n.screenBottomSheetCreateDmMessage(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:579816b346b4bd8a865ab3c787712ad7f69a96ea4bdb6175902ddb1d7ee32344
|
oid sha256:0c6cfb2b199b8daf5d186ebfeb3e6aa5badf5195457ece011f61b3378566405c
|
||||||
size 102539
|
size 104184
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:bd3dc048f39e113f12a396a25a607b156862583c3f54d580a212b0288c42e8f1
|
oid sha256:dfedb2e52414e484cc465b6aa68324e2cef35a18ad024074373a21fe8f508abc
|
||||||
size 64963
|
size 66823
|
||||||
|
|||||||
Reference in New Issue
Block a user