From 42cb0ebf288ae4d0e42919224c76f23fdfb4cfe7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 22 Sep 2015 22:54:37 +0300 Subject: [PATCH] removed not needed keys --- Telegram/Resources/lang.strings | 3 --- Telegram/SourceFiles/profilewidget.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Telegram/Resources/lang.strings b/Telegram/Resources/lang.strings index fbcc479f9..1d3ed4b01 100644 --- a/Telegram/Resources/lang.strings +++ b/Telegram/Resources/lang.strings @@ -479,7 +479,6 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org "lng_group_invite_link" = "Invite link"; "lng_group_invite_create" = "Create an invite link"; "lng_group_invite_about" = "Telegram users will be able to join\nyour group by following this link."; -"lng_channel_invite_about" = "Telegram users will be able to join\nyour channel by following this link."; "lng_group_invite_create_new" = "Revoke invite link"; "lng_group_invite_about_new" = "Your previous link will be deactivated\nand we'll generate a new invite link for you."; "lng_group_invite_copied" = "Invite link copied to clipboard."; @@ -668,8 +667,6 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org "lng_confirm_contact_data" = "New Contact"; "lng_add_contact" = "Create"; "lng_add_contact_button" = "Add Contact"; -"lng_create_channel_button" = "Create Channel"; -"lng_create_group_button" = "Create Group"; "lng_contacts_header" = "Contacts"; "lng_contact_not_joined" = "Unfortunately {name} did not join Telegram yet, but you can send your friend an invitation.\n\nWe will notify you about any of your contacts who is joining Telegram."; "lng_try_other_contact" = "Try other"; diff --git a/Telegram/SourceFiles/profilewidget.cpp b/Telegram/SourceFiles/profilewidget.cpp index 632da334c..c68a4f71f 100644 --- a/Telegram/SourceFiles/profilewidget.cpp +++ b/Telegram/SourceFiles/profilewidget.cpp @@ -407,7 +407,7 @@ void ProfileInner::onPublicLink() { void ProfileInner::onCreateInvitationLink() { if (!_peerChat && !_peerChannel) return; - ConfirmBox *box = new ConfirmBox(lang(((_peerChat && _peerChat->invitationUrl.isEmpty()) || (_peerChannel && _peerChannel->invitationUrl.isEmpty())) ? (_peerChat ? lng_group_invite_about : lng_channel_invite_about) : lng_group_invite_about_new)); + ConfirmBox *box = new ConfirmBox(lang((_peerChat && _peerChat->invitationUrl.isEmpty()) ? lng_group_invite_about : lng_group_invite_about_new)); connect(box, SIGNAL(confirmed()), this, SLOT(onCreateInvitationLinkSure())); App::wnd()->showLayer(box); }