2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +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

@@ -67,7 +67,7 @@ void ApplyArchivedResult(const MTPDmessages_stickerSetInstallResultArchive &d) {
Local::writeArchivedStickers();
Ui::Toast::Config toast;
toast.text = lang(lng_stickers_packs_archived);
toast.text = tr::lng_stickers_packs_archived(tr::now);
toast.maxWidth = st::stickersToastMaxWidth;
toast.padding = st::stickersToastPadding;
Ui::Toast::Show(toast);
@@ -175,7 +175,7 @@ void UndoInstallLocally(uint64 setId) {
Auth().data().notifyStickersUpdated();
Ui::show(
Box<InformBox>(lang(lng_stickers_not_found)),
Box<InformBox>(tr::lng_stickers_not_found(tr::now)),
LayerOption::KeepOther);
}
@@ -1064,7 +1064,7 @@ void NewSetReceived(const MTPmessages_StickerSet &data) {
QString GetSetTitle(const MTPDstickerSet &s) {
auto title = qs(s.vtitle);
if ((s.vflags.v & MTPDstickerSet::Flag::f_official) && !title.compare(qstr("Great Minds"), Qt::CaseInsensitive)) {
return lang(lng_stickers_default_set);
return tr::lng_stickers_default_set(tr::now);
}
return title;
}