2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Realtime UI translation in all fields and buttons.

This commit is contained in:
John Preston
2017-05-30 18:21:05 +03:00
parent 5fc4f4ed36
commit b94099e25b
80 changed files with 644 additions and 535 deletions

View File

@@ -212,11 +212,11 @@ void CountryInput::setText(const QString &newText) {
}
CountrySelectBox::CountrySelectBox(QWidget*)
: _select(this, st::contactsMultiSelect, lang(lng_country_ph)) {
: _select(this, st::contactsMultiSelect, langFactory(lng_country_ph)) {
}
void CountrySelectBox::prepare() {
setTitle(lang(lng_country_select));
setTitle(langFactory(lng_country_select));
_select->resizeToWidth(st::boxWidth);
_select->setQueryChangedCallback([this](const QString &query) { onFilterUpdate(query); });
@@ -224,7 +224,7 @@ void CountrySelectBox::prepare() {
_inner = setInnerWidget(object_ptr<Inner>(this), st::countriesScroll, _select->height());
addButton(lang(lng_close), [this] { closeBox(); });
addButton(langFactory(lng_close), [this] { closeBox(); });
setDimensions(st::boxWidth, st::boxMaxListHeight);