2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Use tr:: instead of langFactory and __rich.

This commit is contained in:
John Preston
2019-06-18 18:53:27 +02:00
parent d1d98c3bb1
commit a7c8feaecb
103 changed files with 699 additions and 628 deletions

View File

@@ -400,11 +400,11 @@ void ShareBox::keyPressEvent(QKeyEvent *e) {
void ShareBox::createButtons() {
clearButtons();
if (_hasSelected) {
addButton(langFactory(lng_share_confirm), [=] { submit(); });
addButton(tr::lng_share_confirm(), [=] { submit(); });
} else if (_copyCallback) {
addButton(langFactory(lng_share_copy_link), [=] { copyLink(); });
addButton(tr::lng_share_copy_link(), [=] { copyLink(); });
}
addButton(langFactory(lng_cancel), [=] { closeBox(); });
addButton(tr::lng_cancel(), [=] { closeBox(); });
}
void ShareBox::applyFilterUpdate(const QString &query) {