fix lang strings

This commit is contained in:
Eduard Kuzmenko 2023-01-07 01:02:52 +04:00
parent 177d274511
commit 82dd2a637d
5 changed files with 161 additions and 21 deletions

View File

@ -1695,13 +1695,12 @@ export default class ChatInput {
this.checkAutocomplete();
});
if(this.chat.type === 'chat' || this.chat.type === 'discussion') {
this.listenerSetter.add(this.messageInput)('focusin', () => {
if(this.chat.bubbles.scrollable.loadedAll.bottom) {
this.managers.appMessagesManager.readAllHistory(this.chat.peerId, this.chat.threadId);
}
});
}
this.listenerSetter.add(this.messageInput)('focusin', () => {
if((this.chat.type === 'chat' || this.chat.type === 'discussion') &&
this.chat.bubbles.scrollable.loadedAll.bottom) {
this.managers.appMessagesManager.readAllHistory(this.chat.peerId, this.chat.threadId);
}
});
}
private prepareDocumentExecute = () => {

View File

@ -21,7 +21,7 @@ const App = {
version: process.env.VERSION,
versionFull: process.env.VERSION_FULL,
build: +process.env.BUILD,
langPackVersion: '0.7.2',
langPackVersion: '0.7.3',
langPack: 'webk',
langPackCode: 'en',
domains: MAIN_DOMAINS,

View File

@ -37,8 +37,8 @@ const lang = {
'Chat.Search.PrivateSearch': 'Private Search',
'Chat.Service.TopicEdited.Mixed': '%1$@ changed the topic name and icon to %2$@',
'Chat.Service.TopicEdited.You.Mixed': 'You changed the topic name and icon to %2$@',
'Chat.Service.TopicEdited.Mixed.IconRemoved': '%1$@ changed the topic name to \"%1$@\" and removed icon',
'Chat.Service.TopicEdited.You.Mixed.IconRemoved': 'You changed the topic name to \"%1$@\" and removed icon',
'Chat.Service.TopicEdited.Mixed.IconRemoved': '%1$@ changed the topic name to "%1$@" and removed icon',
'Chat.Service.TopicEdited.You.Mixed.IconRemoved': 'You changed the topic name to "%1$@" and removed icon',
'ChatList.Main.EmptyPlaceholder.Title': 'Your chats will appear here',
'ChatList.Main.EmptyPlaceholder.Subtitle': 'You have %s on Telegram',
'ChatList.Main.EmptyPlaceholder.SubtitleNoContacts': 'Use Telegram app on your [Android](https://telegram.org/android) or [iOS](https://telegram.org/dl/ios) device to sync your contacts',
@ -942,12 +942,12 @@ const lang = {
'Chat.Service.Group.UpdatedPinnedMessage': '%@ pinned "%@"',
'Chat.Service.Group.TopicEdited.Icon': '%1$@ changed topic icon to %2$@',
'Chat.Service.Group.TopicEdited.Icon.Removed': '%1$@ removed icon',
'Chat.Service.Group.TopicEdited.Title': '%1$@ changed topic name to \"%2$@\"',
'Chat.Service.Group.TopicEdited.Title': '%1$@ changed topic name to "%2$@"',
'Chat.Service.Group.TopicEdited.Paused': '%1$@ closed topic',
'Chat.Service.Group.TopicEdited.Resumed': '%1$@ restarted topic',
'Chat.Service.Group.TopicEdited.You.Icon': 'You changed topic icon to %1$@',
'Chat.Service.Group.TopicEdited.You.Icon.Removed': 'You removed icon',
'Chat.Service.Group.TopicEdited.You.Title': 'You changed topic name to \"%1$@\"',
'Chat.Service.Group.TopicEdited.You.Title': 'You changed topic name to "%1$@"',
'Chat.Service.Group.TopicEdited.You.Paused': 'You closed topic',
'Chat.Service.Group.TopicEdited.You.Resumed': 'You restarted topic',
'Chat.Service.Group.TopicEdited.You.Hided': 'You hid the general topic',
@ -1078,9 +1078,9 @@ const lang = {
'Date.Today': 'Today',
'DeleteChat.DeleteGroupForAll': 'Delete for all members',
'DeleteChannelForAll': 'Delete for all subscribers',
'ForumTopic.Context.Info': 'Group Info"',
'ForumTopic.Context.AddMember': 'Add Members"',
'ForumTopic.Context.ShowAsMessages': 'View as Messages"',
'ForumTopic.Context.Info': 'Group Info',
'ForumTopic.Context.AddMember': 'Add Members',
'ForumTopic.Context.ShowAsMessages': 'View as Messages',
'ForumTopic.Context.New': 'Create Topic',
'ForumTopic.Name.Placeholder': 'Topic Name',
'ForumTopic.Title.Edit': 'Edit Topic',
@ -1122,7 +1122,7 @@ const lang = {
'NewPoll.MultipleChoice': 'Multiple Answers',
'NewPoll.Quiz': 'Quiz Mode',
'Notification.Contact.Reacted': '%1$@ to your "%2$@"',
// "Notification.Group.Reacted": "%1$@: %2$@ to your \"%3$@\"",
// "Notification.Group.Reacted": "%1$@: %2$@ to your "%3$@"",
'Payments.Recurrent.Accept': 'I accept [Terms of Service]() of **%@**.',
'Peer.Activity.User.PlayingGame': 'playing a game',
'Peer.Activity.User.TypingText': 'typing',

View File

@ -18,7 +18,14 @@ let out = '';
['lang', 'langSign'].forEach(part => {
const path = `../${part}.ts`;
let str = fs.readFileSync(path).toString().replace(/\s.+\/\/.+/g, '');
let str = fs.readFileSync(path).toString()
.replace(/\s.+\/\/.+/g, '')
// .replace(/\\'/g, '')
.replace(/"/g, `\\"`)
// .replace(/'/g, '"')
.replace(/([^\\])'/g, '$1"')
.replace(/\\'/g, '\'')
// .replace(/"(.+?)(?:")(.*?)"/g, '"$1\"$2"');
{
const pattern = '= {';
str = str.slice(str.indexOf(pattern) + pattern.length - 1);

View File

@ -32,6 +32,10 @@
"Chat.Search.MessagesFound_other" = "%d messages found";
"Chat.Search.NoMessagesFound" = "No messages found";
"Chat.Search.PrivateSearch" = "Private Search";
"Chat.Service.TopicEdited.Mixed" = "%1$@ changed the topic name and icon to %2$@";
"Chat.Service.TopicEdited.You.Mixed" = "You changed the topic name and icon to %2$@";
"Chat.Service.TopicEdited.Mixed.IconRemoved" = "%1$@ changed the topic name to \"%1$@\" and removed icon";
"Chat.Service.TopicEdited.You.Mixed.IconRemoved" = "You changed the topic name to \"%1$@\" and removed icon";
"ChatList.Main.EmptyPlaceholder.Title" = "Your chats will appear here";
"ChatList.Main.EmptyPlaceholder.Subtitle" = "You have %s on Telegram";
"ChatList.Menu.SwitchTo.Webogram" = "Switch to Old Version";
@ -117,6 +121,8 @@
"PaymentInfo.Done" = "PROCEED TO CHECKOUT";
"PaymentCard.Error.Invalid" = "Invalid card number";
"PaymentCard.Error.Incomplete" = "Incomplete card number";
"LimitReached.Ok" = "OK, GOT IT";
"Username.Purchase" = "**This username is already taken.** However, it is currently available for purchase. [Learn more…]()";
"AccDescrEditing" = "Editing";
"ActionCreateChannel" = "Channel created";
"ActionCreateGroup" = "un1 created the group";
@ -292,6 +298,8 @@
"BioCopied" = "Bio copied to clipboard.";
"UserBio" = "Bio";
"Username" = "Username";
"UsernameAlso" = "also %1$s";
"UsernameHelp" = "You can choose a username on **Telegram**. If you do, people will be able to find you by this username and contact you without needing your phone number.\n\nYou can use **az**, **09** and underscores. Minimum length is **5** characters.";
"Phone" = "Phone";
"Notifications" = "Notifications";
"AreYouSureDeleteContact" = "Are you sure you want to delete this contact?";
@ -430,6 +438,10 @@
"Days_other" = "%1$d days";
"Weeks_one" = "%1$d week";
"Weeks_other" = "%1$d weeks";
"Months_one" = "%1$d month";
"Months_other" = "%1$d months";
"Years_one" = "%1$d year";
"Years_other" = "%1$d years";
"TodayAtFormattedWithToday" = "today at %1$s";
"formatDateAtTime" = "%1$s at %2$s";
"JoinByPeekChannelTitle" = "Join Channel";
@ -623,8 +635,6 @@
"PaymentInvoice" = "INVOICE";
"PaymentTestInvoice" = "TEST INVOICE";
"PaymentReceipt" = "Receipt";
"PaymentSuccessfullyPaid" = "You successfully transferred %1$s to %2$s for %3$s";
"PaymentSuccessfullyPaidNoItem" = "You successfully transferred %1$s to %2$s";
"PaymentCheckout" = "Checkout";
"PaymentTransactionTotal" = "Total";
"PaymentTip" = "Tip";
@ -668,6 +678,88 @@
"Clear" = "Clear";
"Save" = "Save";
"PaymentCheckoutName" = "Name";
"ClearRecentStickersAlertTitle" = "Clear recent stickers";
"ClearRecentStickersAlertMessage" = "Do you want to clear all your recent stickers?";
"PremiumStickersShort" = "Premium";
"FavoriteStickers" = "Favorites";
"AddToFavorites" = "Add to Favorites";
"AddedToFavorites" = "Sticker added to Favorites.";
"RemovedFromFavorites" = "Sticker was removed from Favorites";
"RemovedFromRecent" = "Sticker was removed from Recent";
"DeleteFromFavorites" = "Delete from Favorites";
"DeleteFromRecent" = "Remove from Recent";
"NewChatsFromNonContacts" = "New chats from unknown users";
"ArchiveAndMute" = "Archive and Mute";
"ArchiveAndMuteInfo" = "Automatically archive and mute new chats, groups and channels from non-contacts.";
"PrivacyVoiceMessages" = "Voice Messages";
"PrivacyVoiceMessagesTitle" = "Who can send me voice or video messages?";
"PrivacyVoiceMessagesInfo" = "You can restrict who can send you voice or video messages with granular precision.";
"PrivacyVoiceMessagesPremiumOnly" = "Only subscribers of *Telegram Premium* can restrict receiving voice messages.";
"EmojiCount_other" = "%1$d emoji";
"AddEmojiNotFound" = "Emoji pack not found.";
"MessageContainsEmojiPack" = "This message contains emoji from %s pack.";
"MessageContainsEmojiPacks_other" = "This message contains emoji from **%d Packs**.";
"EmojiPackCount_one" = "%1$d Emoji Pack";
"EmojiPackCount_other" = "%1$d Emoji Packs";
"ReactionsAll" = "All";
"EnableSomeReactionsInfo" = "Members of the group can use only certain approved emoji as reactions to messages.";
"EnableAllReactionsInfo" = "Members of the group can use any emoji as reactions to messages.";
"DisableReactionsInfo" = "Members of the group cant add any reactions to messages.";
"OnlyAllowThisReactions" = "Only allow these reactions";
"AllReactions" = "All reactions";
"SomeReactions" = "Some reactions";
"NoReactions" = "No reactions";
"LimitReached" = "Limit Reached";
"LimitReachedPinDialogs" = "You can't pin more than %1$d chats to the top. Unpin some that are currently pinned or subscribe to **Telegram Premium** to double the limit to **%2$d** chats.";
"LimitReachedPinDialogsPremium" = "Sorry, you can't pin more than %1$d chats to the top. Unpin some that are currently pinned.";
"LimitReachedPinDialogsLocked" = "Sorry, you can't pin more than %1$d chats to the top. Unpin some that are currently pinned. We are working to let you increase this limit in the future.";
"IncreaseLimit" = "Increase Limit";
"LimitFree" = "Free";
"LimitPremium" = "Premium";
"ActionTTLChanged" = "un1 set messages to auto-delete in %1$s";
"ActionTTLYouChanged" = "You set messages to auto-delete in %1$s";
"ActionTTLChannelChanged" = "Messages in this channel will be automatically deleted after %1$s";
"ActionTTLChannelDisabled" = "Messages in this channel will no longer be automatically deleted";
"ActionTTLDisabled" = "un1 disabled the auto-delete timer";
"ActionTTLYouDisabled" = "You disabled the auto-delete timer";
"UsernamesProfileHeader" = "Username order";
"UsernamesProfileHelp" = "Drag and drop links to change the order in which they will be displayed on your info page.";
"UsernamesChannelHelp" = "Drag and drop links to change the order in which they will be displayed on the channel info page.";
"UsernameLinkEditable" = "tap to edit";
"UsernameLinkActive" = "active";
"UsernameLinkInactive" = "not active";
"UsernameActivateLink" = "Activate link";
"UsernameDeactivateLink" = "Deactivate link";
"UsernameActivateLinkProfileMessage" = "Do you want to show this link on your info page?";
"UsernameDeactivateLinkProfileMessage" = "Do you want to hide this link from your info page?";
"UsernameActivateLinkChannelMessage" = "Do you want to show this link on the channel info page?";
"UsernameDeactivateLinkChannelMessage" = "Do you want to hide this link from the channel info page?";
"Hide" = "Hide";
"Show" = "Show";
"UsernameActivateErrorTitle" = "Too many active links";
"UsernameActivateErrorMessage" = "Sorry, you have too many active public links already. Please hide one of your active public links first.";
"ChannelSignMessages" = "Sign Messages";
"TopicWasCreatedAction" = "%s was created";
"Topics" = "Topics";
"ForumToggleDescription" = "The group chat will be divided into topics created by admins or users.";
"AnonymousNumber" = "Anonymous Number";
"Info" = "Info";
"BotSettings" = "Settings";
"OpenMessage" = "VIEW MESSAGE";
"OpenGroup" = "VIEW GROUP";
"CloseTopic" = "Close topic";
"RestartTopic" = "Reopen topic";
"LimitReachedPinnedTopics" = "Sorry, you can't pin more than %d topics to the top.";
"TopicProfileStatus" = "In %s";
"AccDescrTopic" = "Topic";
"DeleteTopics_one" = "Delete topic";
"DeleteTopics_other" = "Delete topics";
"DeleteSelectedTopic" = "Are you sure you want delete %s?";
"NewTopic" = "New Topic";
"CreateTopicTitle" = "Choose a topic name and icon";
"CreateGeneralTopicTitle" = "Choose topic name";
"EditTopicHide" = "Show in Topics";
"EditTopicHideInfo" = "If the 'General' topic is hidden, group members can pull down in the topic list to view it.";
"AccountSettings.Filters" = "Chat Folders";
"AccountSettings.Notifications" = "Notifications and Sounds";
"AccountSettings.PrivacyAndSecurity" = "Privacy and Security";
@ -728,6 +820,8 @@
"Chat.DropQuickDesc" = "in a quick way";
"Chat.DropAsFilesDesc" = "without compression";
"Chat.Edit.Cancel.Text" = "Are you sure you want to discard all changes?";
"Chat.Input.ReplyToAnswer" = "Reply to message in topics";
"Chat.SendVoice.PrivacyError" = "%@ doesn't accept voice and video messages";
"Chat.Service.Call.Cancelled" = "Cancelled";
"Chat.Service.Call.Missed" = "Missed";
"Chat.Service.PeerJoinedTelegram" = "%@ joined Telegram";
@ -737,6 +831,26 @@
"Chat.Service.Channel.UpdatedVideo" = "Channel video updated";
"Chat.Service.BotPermissionAllowed" = "You allowed this bot to message you when you logged in on %@";
"Chat.Service.Group.UpdatedPinnedMessage" = "%@ pinned \"%@\"";
"Chat.Service.Group.TopicEdited.Icon" = "%1$@ changed topic icon to %2$@";
"Chat.Service.Group.TopicEdited.Icon.Removed" = "%1$@ removed icon";
"Chat.Service.Group.TopicEdited.Title" = "%1$@ changed topic name to \"%2$@\"";
"Chat.Service.Group.TopicEdited.Paused" = "%1$@ closed topic";
"Chat.Service.Group.TopicEdited.Resumed" = "%1$@ restarted topic";
"Chat.Service.Group.TopicEdited.You.Icon" = "You changed topic icon to %1$@";
"Chat.Service.Group.TopicEdited.You.Icon.Removed" = "You removed icon";
"Chat.Service.Group.TopicEdited.You.Title" = "You changed topic name to \"%1$@\"";
"Chat.Service.Group.TopicEdited.You.Paused" = "You closed topic";
"Chat.Service.Group.TopicEdited.You.Resumed" = "You restarted topic";
"Chat.Service.Group.TopicEdited.You.Hided" = "You hid the general topic";
"Chat.Service.Group.TopicEdited.You.Unhided" = "You unhid the general topic";
"Chat.Service.Group.TopicEdited.Hided" = "%1$@ hid the general topic";
"Chat.Service.Group.TopicEdited.Unhided" = "%1$@ unhid the general topic";
"Chat.Service.PaymentSent1" = "You have successfully transferred **%1$@** to **%2$@** for **%3$@**";
"Chat.Service.PaymentSent1NoTitle" = "You have successfully transferred **%1$@** to **%2$@**";
"Chat.Service.PaymentSentRecurringInit" = "You successfully transferred **%1$@** to **%2$@** for **%3$@** and allowed future recurring payments";
"Chat.Service.PaymentSentRecurringInitNoTitle" = "You successfully transferred **%1$@** to **%2$@** and allowed future recurring payments";
"Chat.Service.PaymentSentRecurringUsed" = "You have just successfully transferred **%1$@** to **%2$@** for **%3$@** via recurrent payments";
"Chat.Service.PaymentSentRecurringUsedNoTitle" = "You have just successfully transferred **%1$@** to **%2$@** via recurrent payments";
"Chat.Service.VoiceChatStarted" = "%1$@ started a [video chat](open)";
"Chat.Service.VoiceChatStartedYou" = "You started a [video chat](open)";
"Chat.Service.VoiceChatStarted.Channel" = "[Live Stream](open) started";
@ -788,6 +902,7 @@
"Checkout.PasswordEntry.Title" = "Payment Confirmation";
"Checkout.PasswordEntry.Pay" = "Pay";
"Checkout.PasswordEntry.Text" = "Your card %@ is on file. To pay with this card, please enter your 2-Step-Verification password.";
"Checkout.PayPrice" = "Pay %@";
"Checkout.WebConfirmation.Title" = "Complete Payment";
"ChatList.Context.Mute" = "Mute";
"ChatList.Context.Unmute" = "Unmute";
@ -830,10 +945,20 @@
"ChatList.Mute.3Days" = "For 3 Days";
"ChatList.Mute.Forever" = "Forever";
"Channel.DescriptionHolderDescrpiton" = "You can provide an optional description for your channel.";
"ChannelVisibility.Confirm.MakePrivate.Channel" = "If you make this channel private, the name @%@ will be removed. Anyone else will be able to take it for their public groups or channels.";
"ChannelVisibility.Confirm.MakePrivate.Group" = "If you make this group private, the name @%@ will be removed. Anyone else will be able to take it for their public groups or channels.";
"Context.ViewStickerSet" = "View Sticker Set";
"CreateGroup.NameHolder" = "Group Name";
"CustomEmoji.PremiumAlert" = "Subscribe to Telegram Premium to unlock this emoji. [Read More]()";
"Date.Today" = "Today";
"DeleteChat.DeleteGroupForAll" = "Delete for all members";
"DeleteChannelForAll" = "Delete for all subscribers";
"ForumTopic.Context.Info" = "Group Info";
"ForumTopic.Context.AddMember" = "Add Members";
"ForumTopic.Context.ShowAsMessages" = "View as Messages";
"ForumTopic.Context.New" = "Create Topic";
"ForumTopic.Name.Placeholder" = "Topic Name";
"ForumTopic.Title.Edit" = "Edit Topic";
"EditAccount.Username" = "Username";
"EditAccount.Title" = "Edit Profile";
"EditAccount.Logout" = "Log Out";
@ -861,12 +986,15 @@
"Message.ReplyActionButtonShowReceipt" = "Show Receipt";
"MessageContext.CopyMessageLink1" = "Copy Message Link";
"Modal.Send" = "Send";
"NewContact.Exception.ShareMyPhoneNumber" = "Share My Phone Number";
"NewContact.Exception.ShareMyPhoneNumber.Desc" = "You can make your phone visible to %@.";
"NewPoll.Anonymous" = "Anonymous Voting";
"NewPoll.Explanation.Placeholder" = "Add a Comment (Optional)";
"NewPoll.OptionsAddOption" = "Add an Option";
"NewPoll.MultipleChoice" = "Multiple Answers";
"NewPoll.Quiz" = "Quiz Mode";
"Notification.Contact.Reacted" = "%1$@ to your \"%2$@\"";
"Payments.Recurrent.Accept" = "I accept [Terms of Service]() of **%@**.";
"Peer.Activity.User.PlayingGame" = "playing a game";
"Peer.Activity.User.TypingText" = "typing";
"Peer.Activity.User.SendingPhoto" = "sending a photo";
@ -909,12 +1037,12 @@
"PeerInfo.DeleteChannel" = "Delete Channel";
"PeerInfo.Discussion" = "Discussion";
"PeerInfo.Discussion.Add" = "Add";
"PeerInfo.SignMessages" = "Sign Messages";
"PeerInfo.SharedMedia" = "Shared Media";
"PeerInfo.Subscribers" = "Subscribers";
"PeerInfo.DeleteContact" = "Delete Contact";
"PeerInfo.Action.VoiceChat" = "Video Chat";
"PeerInfo.Action.LiveStream" = "Live Stream";
"PeerInfo.Phone.AnonymousInfo" = "This number is not tied to a SIM card and was acquired on [Fragment]().";
"PeerMedia.Members" = "Members";
"PollResults.Title.Poll" = "Poll Results";
"PollResults.Title.Quiz" = "Quiz Results";
@ -964,6 +1092,11 @@
"Telegram.InstalledStickerPacksController" = "Stickers";
"Telegram.NotificationSettingsViewController" = "Notifications";
"Telegram.LanguageViewController" = "Language";
"Text.CopyLabel_About" = "Copy About";
"Text.CopyLabel_Bio" = "Copy Bio";
"Text.CopyLabel_PhoneNumber" = "Copy Phone Number";
"Text.CopyLabel_Username" = "Copy Username";
"Text.CopyLabel_ShareLink" = "Copy Share Link";
"GeneralSettings.BigEmoji" = "Large Emoji";
"GeneralSettings.EmojiPrediction" = "Suggest Emoji";
"GroupPermission.Delete" = "Delete Exception";
@ -975,6 +1108,7 @@
"Schedule.SendToday" = "Send today at %@";
"Schedule.SendDate" = "Send on %@ at %@";
"Schedule.SendWhenOnline" = "Send When Online";
"Sticker.Premium.Click.Info" = "This pack contains premium stickers like this one. [View Pack]()";
"Stickers.Recent" = "Recent";
"StickerSet.DontExist" = "Sorry, this sticker set doesn't seem to exist.";
"Text.Context.Copy.Username" = "Copy Username";
@ -993,7 +1127,6 @@
"TwoStepAuth.RecoveryCodeExpired" = "Code Expired";
"TwoStepAuth.SetupHintTitle" = "Password Hint";
"TwoStepAuth.SetupHintPlaceholder" = "Hint";
"UsernameSettings.ChangeDescription" = "You can choose a username on Telegram. If you do, people will be able to find you by this username and contact you without needing your phone number.\n\n\nYou can use a-z, 0-9 and underscores. Minimum length is 5 characters.";
"VoiceChat.Chat.StartNew" = "Video chat ended. Start a new one?";
"VoiceChat.Chat.StartNew.OK" = "Start";
"VoiceChat.Chat.Ended" = "Video chat ended.";
@ -1053,6 +1186,7 @@
"Login.QR.Help3" = "Point your phone at this screen to confirm login";
"Login.QR.Cancel" = "Log in by phone Number";
"Login.QR.Login" = "Log in by QR Code";
"PhoneNumber.Code.Fragment.Info" = "Get the code in the Anonymous Numbers section on [Fragment](%1$@)";
"PHONE_CODE_INVALID" = "Invalid code";
"PHONE_CODE_EXPIRED" = "Code expired";
"PASSWORD_HASH_INVALID" = "Incorrect password";