mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
Use tr:: instead of langFactory and __rich.
This commit is contained in:
@@ -583,13 +583,13 @@ void EditCaptionBox::createEditMediaButton() {
|
||||
}
|
||||
|
||||
void EditCaptionBox::prepare() {
|
||||
addButton(langFactory(lng_settings_save), [this] { save(); });
|
||||
addButton(tr::lng_settings_save(), [this] { save(); });
|
||||
if (_isAllowedEditMedia) {
|
||||
createEditMediaButton();
|
||||
} else {
|
||||
_preparedList.files.clear();
|
||||
}
|
||||
addButton(langFactory(lng_cancel), [this] { closeBox(); });
|
||||
addButton(tr::lng_cancel(), [this] { closeBox(); });
|
||||
|
||||
updateBoxSize();
|
||||
connect(_field, &Ui::InputField::submitted, [=] { save(); });
|
||||
|
Reference in New Issue
Block a user