2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Added phrases for bot management.

This commit is contained in:
23rd
2023-04-09 20:23:52 +03:00
committed by John Preston
parent ec2299a7e2
commit a0ca3beef8
2 changed files with 26 additions and 2 deletions

View File

@@ -314,11 +314,17 @@ void UsernamesBox(
AddUsernameCheckLabel(container, editor->checkInfoChanged());
auto description = rpl::combine(
tr::lng_username_description1(Ui::Text::RichLangValue),
tr::lng_username_description2(Ui::Text::RichLangValue)
) | rpl::map([](TextWithEntities d1, TextWithEntities d2) {
return d1.append("\n\n").append(std::move(d2));
});
container->add(object_ptr<Ui::DividerLabel>(
container,
object_ptr<Ui::FlatLabel>(
container,
tr::lng_username_description(Ui::Text::RichLangValue),
std::move(description),
st::boxDividerLabel),
st::settingsDividerLabelPadding));