Skip to content

Commit 644643f

Browse files
committed
swift package manager initial commit
1 parent 716437e commit 644643f

File tree

1,059 files changed

+25239
-51581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,059 files changed

+25239
-51581
lines changed

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ xcuserdata
44
xcuserstate
55
.DS_Store
66
core-xprojects/Mozjpeg/build
7-
core-xprojects/OpenSSLEncryption/build
7+
core-xprojects/openssl/build
88
core-xprojects/libwebp/build
99
core-xprojects/libopus/build
1010
core-xprojects/ffmpeg/build

‎Telegram-Mac.xcworkspace/contents.xcworkspacedata

-96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Telegram-Mac/AboutModalController.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ fileprivate class AboutModalView : Control {
4848

4949
_ = attr.append(string: " (", color: theme.colors.grayText, font: .medium(.text))
5050

51-
let range = attr.append(string: L10n.x3vGGIWUTitle.lowercased(), color: theme.colors.accent, font: .medium(.text))
51+
let range = attr.append(string: strings().x3vGGIWUTitle.lowercased(), color: theme.colors.accent, font: .medium(.text))
5252
attr.addAttribute(.link, value: "copy", range: range)
5353
_ = attr.append(string: ")", color: theme.colors.grayText, font: .medium(.text))
5454

5555
_ = attr.append(string: "\n\n")
5656

5757

5858

59-
_ = attr.append(string: L10n.aboutDescription, color: theme.colors.text, font: .normal(.text))
59+
_ = attr.append(string: strings().aboutDescription, color: theme.colors.text, font: .normal(.text))
6060

6161
let descLayout = TextViewLayout(attr, alignment: .center)
6262
descLayout.measure(width:frameRect.width - 40)
@@ -121,7 +121,7 @@ class AboutModalController: ModalViewController {
121121
execute(inapp: url)
122122
} else if let url = url as? String, url == "copy" {
123123
copyToClipboard(APP_VERSION_STRING)
124-
self?.show(toaster: ControllerToaster(text: L10n.shareLinkCopied))
124+
self?.show(toaster: ControllerToaster(text: strings().shareLinkCopied))
125125
return
126126
}
127127
self?.close()

‎Telegram-Mac/AccountContext.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,12 @@ final class AccountContext {
656656
let confirmationImpl:([PeerId])->Signal<Bool, NoError> = { peerIds in
657657
if let first = peerIds.first, peerIds.count == 1 {
658658
return account.postbox.loadedPeerWithId(first) |> deliverOnMainQueue |> mapToSignal { peer in
659-
return confirmSignal(for: window, information: L10n.composeConfirmStartSecretChat(peer.displayTitle))
659+
return confirmSignal(for: window, information: strings().composeConfirmStartSecretChat(peer.displayTitle))
660660
}
661661
}
662-
return confirmSignal(for: window, information: L10n.peerInfoConfirmAddMembers1Countable(peerIds.count))
662+
return confirmSignal(for: window, information: strings().peerInfoConfirmAddMembers1Countable(peerIds.count))
663663
}
664-
let select = selectModalPeers(window: window, context: self, title: L10n.composeSelectSecretChat, limit: 1, confirmation: confirmationImpl)
664+
let select = selectModalPeers(window: window, context: self, title: strings().composeSelectSecretChat, limit: 1, confirmation: confirmationImpl)
665665

666666
let create = select |> map { $0.first! } |> mapToSignal { peerId in
667667
return engine.peers.createSecretChat(peerId: peerId) |> `catch` {_ in .complete()}

0 commit comments

Comments
 (0)