mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Various improvements
This commit is contained in:
parent
43091b01d2
commit
9af928467b
@ -14507,9 +14507,6 @@ Sorry for the inconvenience.";
|
||||
|
||||
"Attachment.DiscardTodoAlertText" = "Discard checklist items?";
|
||||
|
||||
"Auth.PremiumSignUp.ActionTitle" = "Sign up for %@";
|
||||
"Auth.PremiumSignUp.ActionSubtitle" = "Get Telegram Premium for 1 week";
|
||||
|
||||
"Chat.PostApproval.Status.AdminApproved" = "The message was approved";
|
||||
"Chat.PostApproval.Status.AdminRejected" = "The message was rejected";
|
||||
"Chat.PostApproval.Status.UserApproved" = "Your message was approved";
|
||||
@ -14589,10 +14586,6 @@ Sorry for the inconvenience.";
|
||||
"BalanceNeeded.FragmentAction" = "Add Funds via Fragment";
|
||||
|
||||
"Settings.MyTon" = "My TON";
|
||||
"Settings.Ton.Description" = "Use TON to submit post suggestions to channels on Telegram.";
|
||||
|
||||
"Settings.TransactionsTon.Title" = "TON";
|
||||
"Settings.TransactionsTon.Subtitle" = "Use TON to submit post suggestions to channels on Telegram.";
|
||||
|
||||
"Chat.DeletePaidMessageStars.Title" = "Stars Will Be Lost";
|
||||
"Chat.DeletePaidMessageStars.Text" = "You won't receive **Stars** for this post if you delete it now. The post must remain visible for at least **24 hours** after publication.";
|
||||
@ -14658,8 +14651,6 @@ Sorry for the inconvenience.";
|
||||
"Premium.Week.SignUp" = "Sign up for %@";
|
||||
"Premium.Week.SignUpInfo" = "Get Telegram Premium for 1 week";
|
||||
|
||||
"Settings.MyTon" = "My TON";
|
||||
|
||||
"Stars.Gift.Ton.Text" = "Use TON to submit post suggestions to channels on Telegram.";
|
||||
"Stars.Ton.Title" = "TON";
|
||||
"Stars.Ton.Description" = "Use TON to submit post suggestions to channels on Telegram.";
|
||||
|
||||
@ -1126,6 +1126,7 @@ private final class DemoSheetContent: CombinedComponent {
|
||||
content: AnyComponent(PhoneDemoComponent(
|
||||
context: component.context,
|
||||
position: .top,
|
||||
model: .island,
|
||||
videoFile: configuration.videos["todo"],
|
||||
decoration: .todo
|
||||
)),
|
||||
|
||||
@ -870,6 +870,7 @@ public class PremiumLimitsListScreen: ViewController {
|
||||
content: AnyComponent(PhoneDemoComponent(
|
||||
context: context,
|
||||
position: .top,
|
||||
model: .island,
|
||||
videoFile: videos["todo"],
|
||||
decoration: .todo
|
||||
)),
|
||||
|
||||
@ -193,20 +193,6 @@ public func chatTranslationState(context: AccountContext, peerId: EnginePeer.Id,
|
||||
return .single(nil)
|
||||
}
|
||||
|
||||
let translationConfiguration = TranslationConfiguration.with(appConfiguration: context.currentAppConfiguration.with { $0 })
|
||||
var chatTranslationAvailable = true
|
||||
switch translationConfiguration.auto {
|
||||
case .system:
|
||||
if #available(iOS 18.0, *) {
|
||||
} else {
|
||||
chatTranslationAvailable = false
|
||||
}
|
||||
case .alternative, .disabled:
|
||||
chatTranslationAvailable = false
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
guard canTranslateChats(context: context) else {
|
||||
return .single(nil)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user