Fix localization

This commit is contained in:
Ali 2023-03-09 09:20:35 +04:00
parent d046176912
commit 6ce70fe59b
2 changed files with 7 additions and 3 deletions

View File

@ -9008,6 +9008,10 @@ Sorry for the inconvenience.";
"PowerSaving.BatteryLevelLimit.AlwaysOff" = "Always Off"; "PowerSaving.BatteryLevelLimit.AlwaysOff" = "Always Off";
"PowerSaving.BatteryLevelLimit.WhenBelow" = "When Below %@%"; "PowerSaving.BatteryLevelLimit.WhenBelow" = "When Below %@%";
"PowerSaving.AllDescriptionNever" = "Dont 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"; "AppearanceSettings.Animations" = "Animations";
"SendInviteLink.SkipAction" = "Skip"; "SendInviteLink.SkipAction" = "Skip";

View File

@ -221,11 +221,11 @@ private func energeSavingSettingsScreenEntries(
let allText: String let allText: String
if settings.energyUsageSettings.activationThreshold <= 4 { if settings.energyUsageSettings.activationThreshold <= 4 {
allText = "Dont disable all resource-intensive processes even when the battery is low." allText = presentationData.strings.PowerSaving_AllDescriptionNever
} else if settings.energyUsageSettings.activationThreshold >= 96 { } 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 { } 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)) entries.append(.allFooter(allText))