Move Send As phrases to the langpack.

This commit is contained in:
John Preston 2021-11-10 11:00:15 +04:00
parent dd7568ed3a
commit fe025e3c44
2 changed files with 4 additions and 2 deletions

View File

@ -1546,6 +1546,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_broadcast_ph" = "Broadcast a message...";
"lng_broadcast_silent_ph" = "Silent broadcast...";
"lng_send_anonymous_ph" = "Send anonymously...";
"lng_send_as_title" = "Send message as...";
"lng_send_as_anonymous_admin" = "Anonymous admin";
"lng_record_cancel" = "Release outside this field to cancel";
"lng_record_lock_cancel_sure" = "Are you sure you want to stop recording and discard your voice message?";
"lng_record_listen_cancel_sure" = "Are you sure you want to discard your recorded voice message?";

View File

@ -64,7 +64,7 @@ std::unique_ptr<PeerListRow> ListController::createRow(
result->setCustomStatus(
tr::lng_group_call_join_as_personal(tr::now));
} else if (peer->isMegagroup()) {
result->setCustomStatus(u"Anonymous admin"_q);
result->setCustomStatus(tr::lng_send_as_anonymous_admin(tr::now));
} else if (const auto channel = peer->asChannel()) {
result->setCustomStatus(tr::lng_chat_status_subscribers(
tr::now,
@ -111,7 +111,7 @@ void ChooseSendAsBox(
Expects(done != nullptr);
box->setWidth(st::groupCallJoinAsWidth);
box->setTitle(rpl::single(u"Send message as..."_q));
box->setTitle(tr::lng_send_as_title());
const auto &labelSt = st::confirmPhoneAboutLabel;
box->addRow(object_ptr<Ui::FlatLabel>(
box,