2017-02-02 23:42:06 +01:00
//
2019-01-18 18:54:09 +01:00
// C o p y r i g h t ( c ) 2 0 1 9 O p e n W h i s p e r S y s t e m s . A l l r i g h t s r e s e r v e d .
2017-02-02 23:42:06 +01:00
//
2016-11-12 18:22:29 +01:00
import Foundation
2017-02-02 23:42:06 +01:00
/* *
* Strings re - used in multiple places should be added here .
*/
2017-07-12 21:51:07 +02:00
2017-12-04 16:35:47 +01:00
@objc public class CommonStrings : NSObject {
@objc
static public let dismissButton = NSLocalizedString ( " DISMISS_BUTTON_TEXT " , comment : " Short text to dismiss current modal / actionsheet / screen " )
@objc
2018-03-06 14:29:25 +01:00
static public let cancelButton = NSLocalizedString ( " TXT_CANCEL_TITLE " , comment : " Label for the cancel button in an alert or action sheet. " )
2017-12-04 16:35:47 +01:00
@objc
2018-11-24 01:03:01 +01:00
static public let doneButton = NSLocalizedString ( " BUTTON_DONE " , comment : " Label for generic done button. " )
@objc
2018-03-06 14:29:25 +01:00
static public let retryButton = NSLocalizedString ( " RETRY_BUTTON_TEXT " , comment : " Generic text for button that retries whatever the last action was. " )
2018-01-17 21:41:08 +01:00
@objc
static public let openSettingsButton = NSLocalizedString ( " OPEN_SETTINGS_BUTTON " , comment : " Button text which opens the settings app " )
2018-03-06 14:29:25 +01:00
@objc
static public let errorAlertTitle = NSLocalizedString ( " ALERT_ERROR_TITLE " , comment : " " )
2017-07-12 21:51:07 +02:00
}
2017-12-04 16:35:47 +01:00
@objc public class MessageStrings : NSObject {
@objc
static public let newGroupDefaultTitle = NSLocalizedString ( " NEW_GROUP_DEFAULT_TITLE " , comment : " Used in place of the group name when a group has not yet been named. " )
2019-01-18 18:54:09 +01:00
@objc
static public let replyNotificationAction = NSLocalizedString ( " PUSH_MANAGER_REPLY " , comment : " Notification action button title " )
@objc
static public let markAsReadNotificationAction = NSLocalizedString ( " PUSH_MANAGER_MARKREAD " , comment : " Notification action button title " )
@objc
static public let sendButton = NSLocalizedString ( " SEND_BUTTON_TITLE " , comment : " Label for the button to send a message " )
2017-10-14 19:20:46 +02:00
}
2019-01-31 03:11:56 +01:00
@objc
public class NotificationStrings : NSObject {
@objc
static public let incomingCallBody = NSLocalizedString ( " CALL_INCOMING_NOTIFICATION_BODY " , comment : " notification body " )
@objc
static public let missedCallBody = NSLocalizedString ( " CALL_MISSED_NOTIFICATION_BODY " , comment : " notification body " )
@objc
static public let missedCallBecauseOfIdentityChangeBody = NSLocalizedString ( " CALL_MISSED_BECAUSE_OF_IDENTITY_CHANGE_NOTIFICATION_BODY " , comment : " notification body " )
@objc
static public let incomingMessageBody = NSLocalizedString ( " APN_Message " , comment : " notification body " )
@objc
static public let incomingGroupMessageTitleFormat = NSLocalizedString ( " NEW_GROUP_MESSAGE_NOTIFICATION_TITLE " , comment : " notification title. Embeds {{author name}} and {{group name}} " )
@objc
static public let failedToSendBody = NSLocalizedString ( " SEND_FAILED_NOTIFICATION_BODY " , comment : " notification body " )
}
2017-12-04 16:35:47 +01:00
@objc public class CallStrings : NSObject {
@objc
static public let callStatusFormat = NSLocalizedString ( " CALL_STATUS_FORMAT " , comment : " embeds {{Call Status}} in call screen label. For ongoing calls, {{Call Status}} is a seconds timer like 01:23, otherwise {{Call Status}} is a short text like 'Ringing', 'Busy', or 'Failed Call' " )
2017-05-31 17:49:30 +02:00
2017-12-04 16:35:47 +01:00
@objc
static public let confirmAndCallButtonTitle = NSLocalizedString ( " SAFETY_NUMBER_CHANGED_CONFIRM_CALL_ACTION " , comment : " alert button text to confirm placing an outgoing call after the recipients Safety Number has changed. " )
2017-05-31 17:49:30 +02:00
2017-12-04 16:35:47 +01:00
@objc
static public let callBackAlertTitle = NSLocalizedString ( " CALL_USER_ALERT_TITLE " , comment : " Title for alert offering to call a user. " )
@objc
static public let callBackAlertMessageFormat = NSLocalizedString ( " CALL_USER_ALERT_MESSAGE_FORMAT " , comment : " Message format for alert offering to call a user. Embeds {{the user's display name or phone number}}. " )
@objc
static public let callBackAlertCallButton = NSLocalizedString ( " CALL_USER_ALERT_CALL_BUTTON " , comment : " Label for call button for alert offering to call a user. " )
2017-06-06 22:31:09 +02:00
2017-05-31 17:49:30 +02:00
// MARK: N o t i f i c a t i o n a c t i o n s
2017-12-04 16:35:47 +01:00
@objc
static public let callBackButtonTitle = NSLocalizedString ( " CALLBACK_BUTTON_TITLE " , comment : " notification action " )
@objc
static public let showThreadButtonTitle = NSLocalizedString ( " SHOW_THREAD_BUTTON_TITLE " , comment : " notification action " )
2019-01-18 18:54:09 +01:00
@objc
static public let answerCallButtonTitle = NSLocalizedString ( " ANSWER_CALL_BUTTON_TITLE " , comment : " notification action " )
@objc
2019-01-31 03:11:56 +01:00
static public let declineCallButtonTitle = NSLocalizedString ( " REJECT_CALL_BUTTON_TITLE " , comment : " notification action " )
2016-11-12 18:22:29 +01:00
}
2017-06-07 21:31:54 +02:00
2018-03-15 18:46:29 +01:00
@objc public class MediaStrings : NSObject {
2018-05-25 23:17:15 +02:00
@objc
2018-03-15 18:46:29 +01:00
static public let allMedia = NSLocalizedString ( " MEDIA_DETAIL_VIEW_ALL_MEDIA_BUTTON " , comment : " nav bar button item " )
}
2017-12-04 16:35:47 +01:00
@objc public class SafetyNumberStrings : NSObject {
@objc
static public let confirmSendButton = NSLocalizedString ( " SAFETY_NUMBER_CHANGED_CONFIRM_SEND_ACTION " ,
2017-06-07 21:31:54 +02:00
comment : " button title to confirm sending to a recipient whose safety number recently changed " )
}