2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Use tr:: instead of lang().

This commit is contained in:
John Preston
2019-06-19 17:09:03 +02:00
parent d3ca6b96a1
commit 87fc066e67
168 changed files with 1905 additions and 1744 deletions

View File

@@ -1296,16 +1296,16 @@ void Controller::deleteWithConfirmation() {
const auto channel = _peer->asChannel();
Assert(channel != nullptr);
const auto text = lang(_isGroup
? lng_sure_delete_group
: lng_sure_delete_channel);
const auto text = (_isGroup
? tr::lng_sure_delete_group
: tr::lng_sure_delete_channel)(tr::now);
const auto deleteCallback = crl::guard(this, [=] {
deleteChannel();
});
Ui::show(
Box<ConfirmBox>(
text,
lang(lng_box_delete),
tr::lng_box_delete(tr::now),
st::attentionBoxButton,
deleteCallback),
LayerOption::KeepOther);