Update localization

This commit is contained in:
Ali 2021-12-10 22:03:35 +04:00
parent af9a417798
commit aa1b009cea
2 changed files with 11 additions and 6 deletions

View File

@ -364,7 +364,7 @@
"Login.HaveNotReceivedCodeInternal" = "Haven't received the code?";
"Login.CodeSentSms" = "We have sent you an SMS with the code";
"Login.Code" = "Code";
"Login.WillCallYou" = "Telegram will call you in %@";
"Login.WillCallYou" = "You can request a voice call in %@";
"Login.CallRequestState2" = "Requesting a call from Telegram...";
"Login.CallRequestState3" = "Telegram dialed your number\n[Didn't get the code?]";
"Login.EmailNotConfiguredError" = "Please set up an email account.";
@ -2073,7 +2073,7 @@
"Login.CodeSentCall" = "We are calling your phone to dictate a code.";
"Login.WillSendSms" = "Telegram will send you an SMS in %@";
"Login.WillSendSms" = "You can request an SMS in %@";
"Login.SmsRequestState2" = "Requesting an SMS from Telegram...";
"Login.SmsRequestState3" = "Telegram sent you an SMS\n[Didn't get the code?]";
@ -3764,8 +3764,9 @@ Unused sets are archived when you add more.";
"AuthCode.Alert" = "Your login code is %@. Enter it in the Telegram app where you are trying to log in.\n\nDo not give this code to anyone.";
"Login.CheckOtherSessionMessages" = "Check your Telegram messages";
"Login.SendCodeViaSms" = "Send the code as an SMS";
"Login.SendCodeViaCall" = "Get code on my phone";
"Login.SendCodeViaSms" = "Get the code via SMS";
"Login.SendCodeViaCall" = "Call me to dictate the code";
"Login.SendCodeViaFlashCall" = "Get the code via phone call";
"Login.CancelPhoneVerification" = "Do you want to stop the phone number verification process?";
"Login.CancelPhoneVerificationStop" = "Stop";
"Login.CancelPhoneVerificationContinue" = "Continue";

View File

@ -48,8 +48,10 @@ public func authorizationNextOptionText(currentType: SentAuthorizationCodeType,
switch nextType {
case .sms:
return (NSAttributedString(string: strings.Login_SendCodeViaSms, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
case .call, .flashCall, .missedCall:
case .call:
return (NSAttributedString(string: strings.Login_SendCodeViaCall, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
case .flashCall, .missedCall:
return (NSAttributedString(string: strings.Login_SendCodeViaFlashCall, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
case .none:
return (NSAttributedString(string: strings.Login_HaveNotReceivedCodeInternal, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
}
@ -57,8 +59,10 @@ public func authorizationNextOptionText(currentType: SentAuthorizationCodeType,
switch nextType {
case .sms:
return (NSAttributedString(string: strings.Login_SendCodeViaSms, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
case .call, .flashCall, .missedCall:
case .call:
return (NSAttributedString(string: strings.Login_SendCodeViaCall, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
case .flashCall, .missedCall:
return (NSAttributedString(string: strings.Login_SendCodeViaFlashCall, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
case .none:
return (NSAttributedString(string: strings.Login_HaveNotReceivedCodeInternal, font: Font.regular(16.0), textColor: accentColor, paragraphAlignment: .center), true)
}