update menu action title message i18n string
This commit is contained in:
parent
9704083adc
commit
bd851e4e1c
@ -156,8 +156,8 @@ extension DataSourceFacade {
|
|||||||
switch action {
|
switch action {
|
||||||
case .muteUser(let actionContext):
|
case .muteUser(let actionContext):
|
||||||
let alertController = UIAlertController(
|
let alertController = UIAlertController(
|
||||||
title: actionContext.isMuting ? "Unmute Account" : "Mute Account",
|
title: actionContext.isMuting ? L10n.Scene.Profile.RelationshipActionAlert.ConfirmUnmuteUser.title : L10n.Scene.Profile.RelationshipActionAlert.ConfirmMuteUser.title,
|
||||||
message: actionContext.isMuting ? "Confirm to unmute \(actionContext.name)" : "Confirm to mute \(actionContext.name)",
|
message: actionContext.isMuting ? L10n.Scene.Profile.RelationshipActionAlert.ConfirmUnmuteUser.message(actionContext.name) : L10n.Scene.Profile.RelationshipActionAlert.ConfirmMuteUser.message(actionContext.name),
|
||||||
preferredStyle: .alert
|
preferredStyle: .alert
|
||||||
)
|
)
|
||||||
let confirmAction = UIAlertAction(
|
let confirmAction = UIAlertAction(
|
||||||
@ -184,8 +184,8 @@ extension DataSourceFacade {
|
|||||||
dependency.present(alertController, animated: true, completion: nil)
|
dependency.present(alertController, animated: true, completion: nil)
|
||||||
case .blockUser(let actionContext):
|
case .blockUser(let actionContext):
|
||||||
let alertController = UIAlertController(
|
let alertController = UIAlertController(
|
||||||
title: actionContext.isBlocking ? "Unblock Account" : "Block Account",
|
title: actionContext.isBlocking ? L10n.Scene.Profile.RelationshipActionAlert.ConfirmUnblockUser.title : L10n.Scene.Profile.RelationshipActionAlert.ConfirmBlockUser.title,
|
||||||
message: actionContext.isBlocking ? "Confirm to unblock \(actionContext.name)" : "Confirm to block \(actionContext.name)",
|
message: actionContext.isBlocking ? L10n.Scene.Profile.RelationshipActionAlert.ConfirmUnblockUser.message(actionContext.name) : L10n.Scene.Profile.RelationshipActionAlert.ConfirmBlockUser.message(actionContext.name),
|
||||||
preferredStyle: .alert
|
preferredStyle: .alert
|
||||||
)
|
)
|
||||||
let confirmAction = UIAlertAction(
|
let confirmAction = UIAlertAction(
|
||||||
@ -280,8 +280,8 @@ extension DataSourceFacade {
|
|||||||
} // end Task
|
} // end Task
|
||||||
case .deleteStatus:
|
case .deleteStatus:
|
||||||
let alertController = UIAlertController(
|
let alertController = UIAlertController(
|
||||||
title: "Delete Post",
|
title: L10n.Common.Alerts.DeletePost.title,
|
||||||
message: "Are you sure you want to delete this post?",
|
message: L10n.Common.Alerts.DeletePost.message,
|
||||||
preferredStyle: .alert
|
preferredStyle: .alert
|
||||||
)
|
)
|
||||||
let confirmAction = UIAlertAction(
|
let confirmAction = UIAlertAction(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user