mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Add admin link count phrase to langpack.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user