mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Add admin link count phrase to langpack.
This commit is contained in:
parent
c9fccc8ea7
commit
107d4aea36
2 changed files with 5 additions and 6 deletions
|
@ -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";
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue