mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactor string generation
This commit is contained in:
@@ -259,7 +259,7 @@ private func proxySettingsControllerEntries(theme: PresentationTheme, strings: P
|
||||
var text = strings.SocksProxySetup_ProxyStatusConnected
|
||||
if case let .available(rtt) = status {
|
||||
let pingTime: Int = Int(rtt * 1000.0)
|
||||
text = text + ", \(strings.SocksProxySetup_ProxyStatusPing("\(pingTime)").0)"
|
||||
text = text + ", \(strings.SocksProxySetup_ProxyStatusPing("\(pingTime)").string)"
|
||||
}
|
||||
displayStatus = DisplayProxyServerStatus(activity: false, text: text, textActive: true)
|
||||
}
|
||||
@@ -280,7 +280,7 @@ private func proxySettingsControllerEntries(theme: PresentationTheme, strings: P
|
||||
displayStatus = DisplayProxyServerStatus(activity: false, text: text, textActive: false)
|
||||
case let .available(rtt):
|
||||
let pingTime: Int = Int(rtt * 1000.0)
|
||||
text = text + ", \(strings.SocksProxySetup_ProxyStatusPing("\(pingTime)").0)"
|
||||
text = text + ", \(strings.SocksProxySetup_ProxyStatusPing("\(pingTime)").string)"
|
||||
displayStatus = DisplayProxyServerStatus(activity: false, text: text, textActive: false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user