Better translation comments
in response to some confusion received from translators // FREEBIE
This commit is contained in:
parent
3349ac9a10
commit
dc9ffe40e5
|
@ -11,4 +11,5 @@ import Foundation
|
|||
static let callBackButtonTitle = NSLocalizedString("CALLBACK_BUTTON_TITLE", comment: "notification action")
|
||||
static let missedCallNotificationBody = NSLocalizedString("MISSED_CALL", comment: "notification title")
|
||||
static let missedCallNotificationBodyWithCallerName = NSLocalizedString("MSGVIEW_MISSED_CALL", comment: "notification title. Embeds {{Caller's Name}}")
|
||||
static 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'")
|
||||
}
|
||||
|
|
|
@ -560,8 +560,8 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R
|
|||
func updateCallStatusLabel(callState: CallState) {
|
||||
assert(Thread.isMainThread)
|
||||
|
||||
let text = String(format:NSLocalizedString("CALL_STATUS_FORMAT", comment: "Format for call status label"),
|
||||
localizedTextForCallState(callState))
|
||||
let text = String(format: CallStrings.callStatusFormat,
|
||||
localizedTextForCallState(callState))
|
||||
self.callStatusLabel.text = text
|
||||
}
|
||||
|
||||
|
@ -686,7 +686,7 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R
|
|||
guard let call = self.call else {
|
||||
Logger.error("\(TAG) call was unexpectedly nil. Terminating call.")
|
||||
|
||||
let text = String(format:NSLocalizedString("CALL_STATUS_FORMAT", comment: "Format for call status label"),
|
||||
let text = String(format: CallStrings.callStatusFormat,
|
||||
NSLocalizedString("END_CALL_UNCATEGORIZED_FAILURE", comment: "Call setup status label"))
|
||||
self.callStatusLabel.text = text
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
/* Accessibilty label for placing call button */
|
||||
"CALL_LABEL" = "Call";
|
||||
|
||||
/* Format for call status label */
|
||||
/* 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' */
|
||||
"CALL_STATUS_FORMAT" = "Signal %@";
|
||||
|
||||
/* notification action */
|
||||
|
|
Loading…
Reference in New Issue