2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 17:15:16 +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

@@ -85,10 +85,10 @@ int32 documentColorIndex(DocumentData *document, QString &ext) {
auto name = document
? (document->filename().isEmpty()
? (document->sticker()
? lang(lng_in_dlg_sticker)
? tr::lng_in_dlg_sticker(tr::now)
: qsl("Unknown File"))
: document->filename())
: lang(lng_message_empty);
: tr::lng_message_empty(tr::now);
name = name.toLower();
auto lastDot = name.lastIndexOf('.');
auto mime = document