Add admin link count phrase to langpack.

This commit is contained in:
John Preston 2021-02-10 17:43:09 +04:00
parent c9fccc8ea7
commit 107d4aea36
2 changed files with 5 additions and 6 deletions

View file

@ -1207,6 +1207,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_group_invite_add_about" = "You can generate invite links that will expire after they've been used.";
"lng_group_invite_expires_at" = "This link expires {when}.";
"lng_group_invite_created_by" = "Link created by";
"lng_group_invite_links_count#one" = "{count} link";
"lng_group_invite_links_count#other" = "{count} links";
"lng_group_invite_context_copy" = "Copy";
"lng_group_invite_context_share" = "Share";
"lng_group_invite_context_edit" = "Edit";

View file

@ -867,12 +867,9 @@ void ManageInviteLinksBox(
count);
if (!admin->isSelf()) {
auto status = countValue->value() | rpl::map([](int count) {
// #TODO links
return (count == 1)
? "1 link"
: QString::number(count) + " links";
});
auto status = tr::lng_group_invite_links_count(
lt_count,
countValue->value() | tr::to_count());
AddSinglePeerRow(
container,
admin,