diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 62a9ed76e5..7cec8241ff 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -9008,6 +9008,10 @@ Sorry for the inconvenience."; "PowerSaving.BatteryLevelLimit.AlwaysOff" = "Always Off"; "PowerSaving.BatteryLevelLimit.WhenBelow" = "When Below %@%"; +"PowerSaving.AllDescriptionNever" = "Don’t disable all resource-intensive processes even when the battery is low."; +"PowerSaving.AllDescriptionAlways" = "Always disable all resource-intensive processes, regardless of the battery charge level."; +"PowerSaving.AllDescriptionLimit" = "Automatically disable all resource-intensive processes when your battery is below %@%."; + "AppearanceSettings.Animations" = "Animations"; "SendInviteLink.SkipAction" = "Skip"; diff --git a/submodules/SettingsUI/Sources/Data and Storage/EnergySavingSettingsScreen.swift b/submodules/SettingsUI/Sources/Data and Storage/EnergySavingSettingsScreen.swift index 673daa54db..1adeb07de8 100644 --- a/submodules/SettingsUI/Sources/Data and Storage/EnergySavingSettingsScreen.swift +++ b/submodules/SettingsUI/Sources/Data and Storage/EnergySavingSettingsScreen.swift @@ -221,11 +221,11 @@ private func energeSavingSettingsScreenEntries( let allText: String if settings.energyUsageSettings.activationThreshold <= 4 { - allText = "Don’t disable all resource-intensive processes even when the battery is low." + allText = presentationData.strings.PowerSaving_AllDescriptionNever } else if settings.energyUsageSettings.activationThreshold >= 96 { - allText = "Always disable all resource-intensive processes, regardless of the battery charge level." + allText = presentationData.strings.PowerSaving_AllDescriptionAlways } else { - allText = "Automatically disable all resource-intensive processes when your battery is below \(settings.energyUsageSettings.activationThreshold)%." + allText = presentationData.strings.PowerSaving_AllDescriptionLimit("\(settings.energyUsageSettings.activationThreshold)") } entries.append(.allFooter(allText))