Skip to content

Commit 7aaf95e

Browse files
author
Isaac
committed
Stars ref
1 parent ef3b593 commit 7aaf95e

File tree

9 files changed

+264
-138
lines changed

9 files changed

+264
-138
lines changed

Telegram/Telegram-iOS/en.lproj/Localizable.strings

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13299,3 +13299,131 @@ Sorry for the inconvenience.";
1329913299
"WebApp.ShareMessage.Share" = "Share With...";
1330013300

1330113301
"Notification.Gift" = "Gift";
13302+
13303+
"AffiliateSetup.AlertTerminate.Title" = "Warning";
13304+
"AffiliateSetup.AlertTerminate.Text" = "If you end your affiliate program:\n\n• Any referral links already shared will be disabled in 24 hours.\n\n• All participating affiliates will be notified.\n\n• You will be able to start a new affiliate program only in 24 hours.";
13305+
"AffiliateSetup.AlertTerminate.Action" = "End Anyway";
13306+
"AffiliateSetup.AlertApply.Title" = "Warning";
13307+
"AffiliateSetup.AlertApply.Text" = "Once you start the affiliate program, you won't be able to decrease its commission or duration. You can only increase these parameters or end the program, whuch will disable all previously distributed referral links.";
13308+
"AffiliateSetup.AlertApply.SectionCommission" = "Commission";
13309+
"AffiliateSetup.AlertApply.SectionDuration" = "Duration";
13310+
"AffiliateSetup.AlertApply.Action" = "Start";
13311+
13312+
"AffiliateSetup.ToastTerminated.Title" = "Affiliate Program Ended";
13313+
"AffiliateSetup.ToastTerminated.Text" = "Participating affiliates have been notified. All referral links will be disabled in 24 hours.";
13314+
13315+
"AffiliateSetup.SectionDuration" = "DURATION";
13316+
"AffiliateSetup.SectionDurationFooter" = "Set the duration for which affiliates will earn commissions from referred users.";
13317+
13318+
"AffiliateSetup.SectionCommission" = "COMMISSION";
13319+
"AffiliateSetup.SectionCommissionFooter" = "Define the percentage of star revenue your affiliates earn for referring users to your bot.";
13320+
13321+
"AffiliateSetup.ExistingPrograms.Action" = "View Existing Programs";
13322+
"AffiliateSetup.ExistingPrograms.Footer" = "Explore what other mini apps offer.";
13323+
13324+
"AffiliateSetup.EndAction" = "End Affiliate Program";
13325+
13326+
"AffiliateSetup.StartTitle" = "Start Affiliate Program";
13327+
"AffiliateSetup.UpdateTitle" = "Update Affiliate Program";
13328+
13329+
"AffiliateSetup.TermsFooter" = "By creating an affiliate program, you afree to the [terms and conditions](https://telegram.org/terms) of Affiliate Programs.";
13330+
13331+
"AffiliateSetup.ProgramMenu.OpenBot" = "Open Bot";
13332+
"AffiliateSetup.ProgramMenu.OpenApp" = "Open App";
13333+
"AffiliateSetup.ProgramMenu.CopyLink" = "Copy Link";
13334+
"AffiliateSetup.ProgramMenu.Leave" = "Leave";
13335+
"AffiliateSetup.ProgramLeave" = "Leave";
13336+
13337+
"AffiliateSetup.ConnectedSectionTitle" = "MY PROGRAMS";
13338+
"AffiliateSetup.SuggestedSectionTitle" = "PROGRAMS";
13339+
"AffiliateSetup.SuggestedSectionEmpty" = "No available programs yet.\nPlease check the page later.";
13340+
13341+
"AffiliateSetup.TitleNew" = "Affiliate Program";
13342+
"AffiliateSetup.TextNew" = "Affiliate Program";
13343+
"AffiliateSetup.TitleJoin" = "Affiliate Programs";
13344+
"AffiliateSetup.TextJoin" = "Earn a commission each time a user who first accessed a mini app through your referral link spends **Stars** within it.";
13345+
13346+
"AffiliateSetup.IntroNew.Title1" = "Share revenue with affiliates";
13347+
"AffiliateSetup.IntroNew.Text1" = "Set the commission for revenue generated by users referred to you.";
13348+
"AffiliateSetup.IntroNew.Title2" = "Launch your affiliate program";
13349+
"AffiliateSetup.IntroNew.Text2" = "Telegram will feature your program for millions of potential affiliates.";
13350+
"AffiliateSetup.IntroNew.Title3" = "Let affiliates promote you";
13351+
"AffiliateSetup.IntroNew.Text3" = "Affiliates will share your referral link with their audience.";
13352+
13353+
"AffiliateSetup.IntroJoin.Title1" = "Reliable";
13354+
"AffiliateSetup.IntroJoin.Text1" = "Receive guaranteed commissions for spending by users you refer.";
13355+
"AffiliateSetup.IntroJoin.Title2" = "Transparent";
13356+
"AffiliateSetup.IntroJoin.Text2" = "Track your commissions from referred users in real time.";
13357+
"AffiliateSetup.IntroJoin.Title3" = "Simple";
13358+
"AffiliateSetup.IntroJoin.Text3" = "Choose a mini app below, get your referral link, and start earning Stars.";
13359+
13360+
"AffiliateProgram.ToastLinkCopied.Title" = "Link copied to clipboard";
13361+
"AffiliateProgram.ToastLinkCopied.Text" = "Share this link and earn **%1$@** of what people who use it spend in **%2$@!";
13362+
13363+
"AffiliateProgram.DurationLifetime" = "Lifetime";
13364+
13365+
"AffiliateProgram.SortSelectorProfitability" = "Profitability";
13366+
"AffiliateProgram.SortSelectorRevenue" = "Revenue";
13367+
"AffiliateProgram.SortSelectorDate" = "Date";
13368+
13369+
"AffiliateProgram.ValueShortMonths_1" = "%@m";
13370+
"AffiliateProgram.ValueShortMonths_any" = "%@m";
13371+
"AffiliateProgram.ValueShortYears_1" = "%@y";
13372+
"AffiliateProgram.ValueShortYears_any" = "%@y";
13373+
13374+
"AffiliateProgram.ValueLongMonths_1" = "%@ MONTH";
13375+
"AffiliateProgram.ValueLongMonths_any" = "%@ MONTHS";
13376+
"AffiliateProgram.ValueLongYears_1" = "%@ YEAR";
13377+
"AffiliateProgram.ValueLongYears_any" = "%@ YEARS";
13378+
13379+
"AffiliateProgram.PeerTypeSelf" = "personal account";
13380+
13381+
"AffiliateProgram.JoinTitle" = "Affiliate Program";
13382+
"AffiliateProgram.JoinTerms" = "By joining this program, you afree to the [terms and conditions](https://telegram.org/terms) of Affiliate Programs.";
13383+
"AffiliateProgram.DailyRevenueText" = "The average daily revenue per user: #**%@**";
13384+
13385+
"AffiliateProgram.LinkTitle" = "Referral Link";
13386+
"AffiliateProgram.LinkSubtitleLifetime" = "Share this link with your users to earn a **{commission}** commission on their spending in **{bot}** **forever** after they follow your link.";
13387+
"AffiliateProgram.LinkSubtitleMonths_1" = "Share this link with your users to earn a **{commission}** commission on their spending in **{bot}** for **1 month** after they follow your link.";
13388+
"AffiliateProgram.LinkSubtitleMonths_any" = "Share this link with your users to earn a **{commission}** commission on their spending in **{bot}** for **%d months** after they follow your link.";
13389+
"AffiliateProgram.LinkSubtitleYears_1" = "Share this link with your users to earn a **{commission}** commission on their spending in **{bot}** for **1 year** after they follow your link.";
13390+
"AffiliateProgram.LinkSubtitleYears_any" = "Share this link with your users to earn a **{commission}** commission on their spending in **{bot}** for **%d years** after they follow your link.";
13391+
13392+
"AffiliateProgram.JoinSubtitleLifetime" = "**{bot}** will share **{commission}** of the revenue from each user you refer to it **forever**.";
13393+
"AffiliateProgram.JoinSubtitleMonths_1" = "**{bot}** will share **{commission}** of the revenue from each user you refer to it for **1 month.**";
13394+
"AffiliateProgram.JoinSubtitleMonths_any" = "**{bot}** will share **{commission}** of the revenue from each user you refer to it for **%d months.**";
13395+
"AffiliateProgram.JoinSubtitleYears_1" = "**{bot}** will share **{commission}** of the revenue from each user you refer to it for **1 month.**";
13396+
"AffiliateProgram.JoinSubtitleYears_any" = "**{bot}** will share **{commission}** of the revenue from each user you refer to it for **%d months.**";
13397+
13398+
"AffiliateProgram.CommistionDestinationText" = "Commission will be sent to:";
13399+
13400+
"AffiliateProgram.ActionJoin" = "Join Program";
13401+
"AffiliateProgram.ActionCopyLink" = "Copy Link";
13402+
13403+
"AffiliateProgram.ToastJoined.Title" = "Program joined";
13404+
"AffiliateProgram.ToastJoined.Text" = "You can now copy the referral link.";
13405+
13406+
"AffiliateSetup.SortSectionHeader.Date" = "SORT BY [DATE]()";
13407+
"AffiliateSetup.SortSectionHeader.Profitability" = "SORT BY [PROFITABILITY]()";
13408+
"AffiliateSetup.SortSectionHeader.Revenue" = "SORT BY [REVENUE]()";
13409+
13410+
"AffiliateProgram.UserCountFooter_0" = "No one opened {bot} through this link yet.";
13411+
"AffiliateProgram.UserCountFooter_1" = "1 user opened {bot} through this link.";
13412+
"AffiliateProgram.UserCountFooter_any" = "%d users opened {bot} through this link.";
13413+
13414+
"ChatList.InlineButtonOpenApp" = "OPEN";
13415+
13416+
"Monetization.EarnStarsInfo.Title" = "Earn Stars";
13417+
"Monetization.EarnStarsInfo.Text" = "Distribute links to mini apps and earn a share of their revenue in Stars.";
13418+
13419+
"PeerInfo.ItemAffiliateProgram.Title" = "Affiliate Program";
13420+
"PeerInfo.ItemAffiliatePrograms.Title" = "Affiliate Programs";
13421+
"PeerInfo.ItemAffiliateProgram.Footer" = "Share a link to %1$@ with your friends and and earn %2$@% of their spending there.";
13422+
"PeerInfo.ItemAffiliateProgram.ValueOff" = "Off";
13423+
13424+
"StarsTransaction.TitleCommission" = "%@% Commission";
13425+
"StarsTransaction.StarRefReason.Title" = "Reason";
13426+
"StarsTransaction.StarRefReason.Program" = "Affiliate Program";
13427+
"StarsTransaction.StarRefReason.Miniapp" = "Mini App";
13428+
"StarsTransaction.StarRefReason.Affiliate" = "Affiliate";
13429+
"StarsTransaction.StarRefReason.Referred" = "Referred User";

submodules/ChatListUI/Sources/ChatListController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,6 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
11861186
guard let self else {
11871187
return
11881188
}
1189-
//TODO:localize
11901189
self.context.sharedContext.openWebApp(
11911190
context: self.context,
11921191
parentController: self,

submodules/ChatListUI/Sources/Node/ChatListItem.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3098,8 +3098,7 @@ public class ChatListItemNode: ItemListRevealOptionsItemNode {
30983098

30993099
var actionButtonTitleNodeLayoutAndApply: (TextNodeLayout, () -> TextNode)?
31003100
if case .none = badgeContent, case .none = mentionBadgeContent, case let .chat(itemPeer) = contentPeer, case let .user(user) = itemPeer.chatMainPeer, let botInfo = user.botInfo, botInfo.flags.contains(.hasWebApp) {
3101-
//TODO:localize
3102-
actionButtonTitleNodeLayoutAndApply = makeActionButtonTitleNodeLayout(TextNodeLayoutArguments(attributedString: NSAttributedString(string: "OPEN", font: Font.semibold(15.0), textColor: theme.unreadBadgeActiveTextColor), backgroundColor: nil, maximumNumberOfLines: 1, truncationType: .end, constrainedSize: CGSize(width: rawContentWidth, height: CGFloat.greatestFiniteMagnitude), alignment: .natural, cutout: nil, insets: UIEdgeInsets()))
3101+
actionButtonTitleNodeLayoutAndApply = makeActionButtonTitleNodeLayout(TextNodeLayoutArguments(attributedString: NSAttributedString(string: item.presentationData.strings.ChatList_InlineButtonOpenApp, font: Font.semibold(15.0), textColor: theme.unreadBadgeActiveTextColor), backgroundColor: nil, maximumNumberOfLines: 1, truncationType: .end, constrainedSize: CGSize(width: rawContentWidth, height: CGFloat.greatestFiniteMagnitude), alignment: .natural, cutout: nil, insets: UIEdgeInsets()))
31033102
}
31043103

31053104
var badgeSize: CGFloat = 0.0

submodules/StatisticsUI/Sources/ChannelStatsController.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,8 +1219,7 @@ private enum StatsEntry: ItemListNodeEntry {
12191219
arguments.presentCpmLocked()
12201220
})
12211221
case .earnStarsInfo:
1222-
//TODO:localize
1223-
return ItemListDisclosureItem(presentationData: presentationData, icon: PresentationResourcesSettings.earnStars, title: "Earn Stars", titleBadge: presentationData.strings.Settings_New, label: "Distribute links to mini apps and earn a share of their revenue in Stars.", labelStyle: .multilineDetailText, sectionId: self.section, style: .blocks, action: {
1222+
return ItemListDisclosureItem(presentationData: presentationData, icon: PresentationResourcesSettings.earnStars, title: presentationData.strings.Monetization_EarnStarsInfo_Title, titleBadge: presentationData.strings.Settings_New, label: presentationData.strings.Monetization_EarnStarsInfo_Text, labelStyle: .multilineDetailText, sectionId: self.section, style: .blocks, action: {
12241223
arguments.openEarnStars()
12251224
})
12261225
}
@@ -1702,7 +1701,6 @@ private func monetizationEntries(
17021701
if displayStarsTransactions {
17031702
if !addedTransactionsTabs {
17041703
if canJoinRefPrograms {
1705-
//TODO:localize
17061704
entries.append(.earnStarsInfo)
17071705
}
17081706

0 commit comments

Comments
 (0)