mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-06 17:35:36 +00:00
Use tr:: instead of langFactory and __rich.
This commit is contained in:
@@ -16,8 +16,8 @@ namespace Intro {
|
||||
|
||||
StartWidget::StartWidget(QWidget *parent, Widget::Data *data) : Step(parent, data, true) {
|
||||
setMouseTracking(true);
|
||||
setTitleText([] { return qsl("Telegram Desktop"); });
|
||||
setDescriptionText(langFactory(lng_intro_about));
|
||||
setTitleText(rpl::single(qsl("Telegram Desktop")));
|
||||
setDescriptionText(tr::lng_intro_about());
|
||||
show();
|
||||
}
|
||||
|
||||
@@ -25,8 +25,8 @@ void StartWidget::submit() {
|
||||
goNext(new Intro::PhoneWidget(parentWidget(), getData()));
|
||||
}
|
||||
|
||||
QString StartWidget::nextButtonText() const {
|
||||
return lang(lng_start_msgs);
|
||||
rpl::producer<QString> StartWidget::nextButtonText() const {
|
||||
return tr::lng_start_msgs();
|
||||
}
|
||||
|
||||
} // namespace Intro
|
||||
|
Reference in New Issue
Block a user