mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix data usage localization
This commit is contained in:
@@ -9063,3 +9063,11 @@ Sorry for the inconvenience.";
|
||||
"Conversation.ForwardOptions.RecipientsMessagesForwardHidden" = "Recipients won't see they were forwarded";
|
||||
|
||||
"Conversation.SendMessage.SendWhenOnline" = "Send When Online";
|
||||
|
||||
"DataUsage.HeaderNoDataUsed" = "No data used";
|
||||
"DataUsage.Header" = "Data Usage";
|
||||
|
||||
"DataUsage.SettingsHelpCellular" = "You can change your auto-download settings for media to reduce data usage when cellular.";
|
||||
"DataUsage.SettingsHelpWifi" = "You can change your auto-download settings for media to reduce data usage when on wifi.";
|
||||
|
||||
"DataUsage.Reset" = "Reset Statistics";
|
||||
|
||||
@@ -783,9 +783,9 @@ final class DataUsageScreenComponent: Component {
|
||||
|
||||
let headerText: String
|
||||
if totalSize == 0 {
|
||||
headerText = "No Data Used"
|
||||
headerText = environment.strings.DataUsage_HeaderNoDataUsed
|
||||
} else {
|
||||
headerText = "Data Usage"
|
||||
headerText = environment.strings.DataUsage_Header
|
||||
}
|
||||
let headerViewSize = self.headerView.update(
|
||||
transition: .immediate,
|
||||
@@ -1092,7 +1092,7 @@ final class DataUsageScreenComponent: Component {
|
||||
transition: transition,
|
||||
component: AnyComponent(MultilineTextComponent(
|
||||
text: .markdown(
|
||||
text: self.selectedStats == .mobile ? "You can change your auto-download settings for media to reduce data usage when cellular." : "You can change your auto-download settings for media to reduce data usage when on wifi.", attributes: MarkdownAttributes(
|
||||
text: self.selectedStats == .mobile ? environment.strings.DataUsage_SettingsHelpCellular : environment.strings.DataUsage_SettingsHelpWifi, attributes: MarkdownAttributes(
|
||||
body: body,
|
||||
bold: bold,
|
||||
link: body,
|
||||
@@ -1125,7 +1125,7 @@ final class DataUsageScreenComponent: Component {
|
||||
transition: transition,
|
||||
component: AnyComponent(DataButtonComponent(
|
||||
theme: environment.theme,
|
||||
title: "Reset Statistics",
|
||||
title: environment.strings.DataUsage_Reset,
|
||||
action: { [weak self] in
|
||||
self?.requestClear()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user