mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Use tr:: instead of lang().
This commit is contained in:
@@ -708,7 +708,7 @@ void Notification::updateNotifyDisplay() {
|
||||
p.drawText(r.left(), r.top() + st::dialogsTextFont->ascent, lng_forward_messages(lt_count, _forwardedCount));
|
||||
}
|
||||
} else {
|
||||
static QString notifyText = st::dialogsTextFont->elided(lang(lng_notification_preview), itemWidth);
|
||||
static QString notifyText = st::dialogsTextFont->elided(tr::lng_notification_preview(tr::now), itemWidth);
|
||||
p.setFont(st::dialogsTextFont);
|
||||
p.setPen(st::dialogsTextFgService);
|
||||
p.drawText(st::notifyPhotoPos.x() + st::notifyPhotoSize + st::notifyTextLeft, st::notifyItemTop + st::msgNameFont->height + st::dialogsTextFont->ascent, notifyText);
|
||||
@@ -958,7 +958,7 @@ void HideAllButton::paintEvent(QPaintEvent *e) {
|
||||
|
||||
p.setFont(st::defaultLinkButton.font);
|
||||
p.setPen(_mouseOver ? st::lightButtonFgOver : st::lightButtonFg);
|
||||
p.drawText(rect(), lang(lng_notification_hide_all), style::al_center);
|
||||
p.drawText(rect(), tr::lng_notification_hide_all(tr::now), style::al_center);
|
||||
}
|
||||
|
||||
} // namespace internal
|
||||
|
Reference in New Issue
Block a user