2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -518,9 +518,9 @@ void NativeManager::doShowNotification(HistoryItem *item, int forwardedCount) {
const auto title = options.hideNameAndPhoto ? qsl("Telegram Desktop") : item->history()->peer->name;
const auto subtitle = options.hideNameAndPhoto ? QString() : item->notificationHeader();
const auto text = options.hideMessageText
? lang(lng_notification_preview)
? tr::lng_notification_preview(tr::now)
: (forwardedCount < 2
? (item->groupId() ? lang(lng_in_dlg_album) : item->notificationText())
? (item->groupId() ? tr::lng_in_dlg_album(tr::now) : item->notificationText())
: lng_forward_messages(lt_count, forwardedCount));
doShowNativeNotification(