Skip to content

Commit 3288cd1

Browse files
committed
bug fixes
1 parent 1a448ba commit 3288cd1

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Telegram-Mac/ChatInterfaceInteraction.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ final class ChatInteraction : InterfaceObserver {
928928
if attribute.timestamp == nil {
929929
let infoText = TextViewLayout(
930930
.initialize(
931-
string: strings().chatSuggestPostPublishInfo(formatted, "\(comission.decemial.string)%"),
931+
string: amount != nil ? strings().chatSuggestPostPublishInfo(formatted, "\(comission.decemial.string)%") : strings().chatSuggestPostPublishInfoFree,
932932
color: theme.colors.text,
933933
font: .normal(.text)
934934
),
@@ -966,7 +966,12 @@ final class ChatInteraction : InterfaceObserver {
966966
)
967967
} else {
968968
let author = keyboardMessage.author?.displayTitle ?? ""
969-
let info = strings().chatSuggestPostPublishConfirmInfo(author, formatted, "\(comission.decemial.string)%")
969+
let info: String
970+
if let amount {
971+
info = strings().chatSuggestPostPublishConfirmInfo(author, formatted, "\(comission.decemial.string)%")
972+
} else {
973+
info = strings().chatSuggestPostPublishConfirmInfoFree(author)
974+
}
970975
verifyAlert(
971976
for: context.window,
972977
header: strings().chatSuggestPostPublishConfirmHeader,
366 Bytes
Binary file not shown.

packages/Localization/Sources/Localization/Localizable.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6551,10 +6551,14 @@ public final class L10n {
65516551
public static var chatSuggestPostPublishConfirmButton: String { return L10n.tr("Localizable", "Chat.SuggestPost.Publish.ConfirmButton") }
65526552
/// Accept Terms
65536553
public static var chatSuggestPostPublishConfirmHeader: String { return L10n.tr("Localizable", "Chat.SuggestPost.Publish.ConfirmHeader") }
6554-
/// Do you really want to publish this post from %1$@? You will receive %2$@ (%3$@%%) for publishing this post. It must remain visible for at least 24 hours after publication.
6554+
/// Do you really want to publish this post from %1$@? You will receive %2$@ (%3$@) for publishing this post. It must remain visible for at least 24 hours after publication.
65556555
public static func chatSuggestPostPublishConfirmInfo(_ p1: String, _ p2: String, _ p3: String) -> String {
65566556
return L10n.tr("Localizable", "Chat.SuggestPost.Publish.ConfirmInfo", p1, p2, p3)
65576557
}
6558+
/// Do you really want to publish this post from %1$@?
6559+
public static func chatSuggestPostPublishConfirmInfoFree(_ p1: String) -> String {
6560+
return L10n.tr("Localizable", "Chat.SuggestPost.Publish.ConfirmInfoFree", p1)
6561+
}
65586562
/// Post at %1$@
65596563
public static func chatSuggestPostPublishDateConfirm(_ p1: String) -> String {
65606564
return L10n.tr("Localizable", "Chat.SuggestPost.Publish.DateConfirm", p1)
@@ -6563,6 +6567,8 @@ public final class L10n {
65636567
public static func chatSuggestPostPublishInfo(_ p1: String, _ p2: String) -> String {
65646568
return L10n.tr("Localizable", "Chat.SuggestPost.Publish.Info", p1, p2)
65656569
}
6570+
/// Select date and time to publish this post.
6571+
public static var chatSuggestPostPublishInfoFree: String { return L10n.tr("Localizable", "Chat.SuggestPost.Publish.InfoFree") }
65666572
/// %d
65676573
public static func chatTitleChatsCountable(_ p1: Int) -> String {
65686574
return L10n.tr("Localizable", "Chat.Title.Chats_countable", p1)

0 commit comments

Comments
 (0)