mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Update localization
This commit is contained in:
parent
7c754482e9
commit
61b95461d5
@ -9112,11 +9112,6 @@ Sorry for the inconvenience.";
|
|||||||
"Wallpaper.ApplyForAll" = "Apply For All Chats";
|
"Wallpaper.ApplyForAll" = "Apply For All Chats";
|
||||||
"Wallpaper.ApplyForChat" = "Apply For This Chat";
|
"Wallpaper.ApplyForChat" = "Apply For This Chat";
|
||||||
|
|
||||||
"ChatList.ChatFolderUpdateCount_1" = "1 new chat";
|
|
||||||
"ChatList.ChatFolderUpdateCount_any" = "%d new chats";
|
|
||||||
"ChatList.ChatFolderUpdateHintTitle" = "You can join %@";
|
|
||||||
"ChatList.ChatFolderUpdateHintText" = "Tap here to view them";
|
|
||||||
|
|
||||||
"Premium.MaxSharedFolderMembershipText" = "You can only add **%1$@** shareable folders. Upgrade to **Telegram Premium** to increase this limit up to **%2$@**.";
|
"Premium.MaxSharedFolderMembershipText" = "You can only add **%1$@** shareable folders. Upgrade to **Telegram Premium** to increase this limit up to **%2$@**.";
|
||||||
"Premium.MaxSharedFolderMembershipNoPremiumText" = "You can only add **%1$@** shareable folders. We are working to let you increase this limit in the future.";
|
"Premium.MaxSharedFolderMembershipNoPremiumText" = "You can only add **%1$@** shareable folders. We are working to let you increase this limit in the future.";
|
||||||
"Premium.MaxSharedFolderMembershipFinalText" = "Sorry, you can only add **%1$@** shareable folders.";
|
"Premium.MaxSharedFolderMembershipFinalText" = "Sorry, you can only add **%1$@** shareable folders.";
|
||||||
|
@ -1841,19 +1841,16 @@ public final class ChatListNode: ListView {
|
|||||||
suggestedChatListNotice,
|
suggestedChatListNotice,
|
||||||
savedMessagesPeer,
|
savedMessagesPeer,
|
||||||
chatListViewUpdate,
|
chatListViewUpdate,
|
||||||
self.chatFolderUpdates.get() |> distinctUntilChanged,
|
|
||||||
self.statePromise.get(),
|
self.statePromise.get(),
|
||||||
contacts
|
contacts
|
||||||
)
|
)
|
||||||
|> mapToQueue { (hideArchivedFolderByDefault, displayArchiveIntro, storageInfo, suggestedChatListNotice, savedMessagesPeer, updateAndFilter, chatFolderUpdates, state, contacts) -> Signal<ChatListNodeListViewTransition, NoError> in
|
|> mapToQueue { (hideArchivedFolderByDefault, displayArchiveIntro, storageInfo, suggestedChatListNotice, savedMessagesPeer, updateAndFilter, state, contacts) -> Signal<ChatListNodeListViewTransition, NoError> in
|
||||||
let (update, filter) = updateAndFilter
|
let (update, filter) = updateAndFilter
|
||||||
|
|
||||||
let previousHideArchivedFolderByDefaultValue = previousHideArchivedFolderByDefault.swap(hideArchivedFolderByDefault)
|
let previousHideArchivedFolderByDefaultValue = previousHideArchivedFolderByDefault.swap(hideArchivedFolderByDefault)
|
||||||
|
|
||||||
let notice: ChatListNotice?
|
let notice: ChatListNotice?
|
||||||
if let chatFolderUpdates, chatFolderUpdates.availableChatsToJoin != 0 {
|
if let suggestedChatListNotice {
|
||||||
notice = .chatFolderUpdates(count: chatFolderUpdates.availableChatsToJoin)
|
|
||||||
} else if let suggestedChatListNotice {
|
|
||||||
notice = suggestedChatListNotice
|
notice = suggestedChatListNotice
|
||||||
} else if let storageInfo {
|
} else if let storageInfo {
|
||||||
notice = .clearStorage(sizeFraction: storageInfo)
|
notice = .clearStorage(sizeFraction: storageInfo)
|
||||||
|
@ -84,7 +84,6 @@ enum ChatListNotice: Equatable {
|
|||||||
case setupPassword
|
case setupPassword
|
||||||
case premiumUpgrade(discount: Int32)
|
case premiumUpgrade(discount: Int32)
|
||||||
case premiumAnnualDiscount(discount: Int32)
|
case premiumAnnualDiscount(discount: Int32)
|
||||||
case chatFolderUpdates(count: Int)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ChatListNodeEntry: Comparable, Identifiable {
|
enum ChatListNodeEntry: Comparable, Identifiable {
|
||||||
|
@ -172,15 +172,6 @@ class ChatListStorageInfoItemNode: ItemListRevealOptionsItemNode {
|
|||||||
titleString = titleStringValue
|
titleString = titleStringValue
|
||||||
|
|
||||||
textString = NSAttributedString(string: item.strings.ChatList_PremiumAnnualDiscountText, font: textFont, textColor: item.theme.rootController.navigationBar.secondaryTextColor)
|
textString = NSAttributedString(string: item.strings.ChatList_PremiumAnnualDiscountText, font: textFont, textColor: item.theme.rootController.navigationBar.secondaryTextColor)
|
||||||
case let .chatFolderUpdates(count):
|
|
||||||
let rawTitleString = item.strings.ChatList_ChatFolderUpdateHintTitle(item.strings.ChatList_ChatFolderUpdateCount(Int32(count)))
|
|
||||||
let titleStringValue = NSMutableAttributedString(attributedString: NSAttributedString(string: rawTitleString.string, font: titleFont, textColor: item.theme.rootController.navigationBar.primaryTextColor))
|
|
||||||
if let range = rawTitleString.ranges.first {
|
|
||||||
titleStringValue.addAttribute(.foregroundColor, value: item.theme.rootController.navigationBar.accentTextColor, range: range.range)
|
|
||||||
}
|
|
||||||
titleString = titleStringValue
|
|
||||||
|
|
||||||
textString = NSAttributedString(string: item.strings.ChatList_ChatFolderUpdateHintText, font: textFont, textColor: item.theme.rootController.navigationBar.secondaryTextColor)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let titleLayout = makeTitleLayout(TextNodeLayoutArguments(attributedString: titleString, maximumNumberOfLines: 1, truncationType: .end, constrainedSize: CGSize(width: params.width - sideInset - rightInset, height: 100.0)))
|
let titleLayout = makeTitleLayout(TextNodeLayoutArguments(attributedString: titleString, maximumNumberOfLines: 1, truncationType: .end, constrainedSize: CGSize(width: params.width - sideInset - rightInset, height: 100.0)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user