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
@@ -245,7 +245,7 @@ ProgressWidget::ProgressWidget(
_about = _body->add(
object_ptr<Ui::FlatLabel>(
this,
lang(lng_export_progress),
tr::lng_export_progress(tr::now),
st::exportAboutLabel),
st::exportAboutPadding);
@@ -307,13 +307,13 @@ void ProgressWidget::updateState(Content &&content) {
void ProgressWidget::showDone() {
_cancel = nullptr;
_about->setText(lang(lng_export_about_done));
_about->setText(tr::lng_export_about_done(tr::now));
_done = base::make_unique_q<Ui::RoundButton>(
this,
tr::lng_export_done(),
st::exportDoneButton);
const auto desired = std::min(
st::exportDoneButton.font->width(lang(lng_export_done).toUpper())
st::exportDoneButton.font->width(tr::lng_export_done(tr::now).toUpper())
+ st::exportDoneButton.height
- st::exportDoneButton.font->height,
st::exportPanelSize.width() - 2 * st::exportCancelBottom);