mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Use tr:: instead of lang().
This commit is contained in:
@@ -515,7 +515,7 @@ void Generator::paintComposeArea() {
|
||||
field.y() + st::historyComposeField.textMargins.top() + st::historyComposeField.placeholderMargins.top(),
|
||||
field.width() - st::historyComposeField.textMargins.left() - st::historyComposeField.textMargins.right(),
|
||||
field.height() - st::historyComposeField.textMargins.top() - st::historyComposeField.textMargins.bottom());
|
||||
_p->drawText(placeholderRect, lang(lng_message_ph), QTextOption(st::historyComposeField.placeholderAlign));
|
||||
_p->drawText(placeholderRect, tr::lng_message_ph(tr::now), QTextOption(st::historyComposeField.placeholderAlign));
|
||||
|
||||
_p->restore();
|
||||
_p->setClipping(false);
|
||||
@@ -551,7 +551,7 @@ void Generator::paintDialogs() {
|
||||
auto phRect = QRect(filter.x() + st::dialogsFilter.textMrg.left() + st::dialogsFilter.phPos.x(), filter.y() + st::dialogsFilter.textMrg.top() + st::dialogsFilter.phPos.y(), filter.width() - st::dialogsFilter.textMrg.left() - st::dialogsFilter.textMrg.right(), filter.height() - st::dialogsFilter.textMrg.top() - st::dialogsFilter.textMrg.bottom());;
|
||||
_p->setFont(st::dialogsFilter.font);
|
||||
_p->setPen(st::dialogsFilter.phColor[_palette]);
|
||||
_p->drawText(phRect, lang(lng_dlg_filter), QTextOption(st::dialogsFilter.phAlign));
|
||||
_p->drawText(phRect, tr::lng_dlg_filter(tr::now), QTextOption(st::dialogsFilter.phAlign));
|
||||
_p->restore();
|
||||
_p->setClipping(false);
|
||||
|
||||
|
Reference in New Issue
Block a user