Add 'MM / YY' and 'CVC' to langpack.

This commit is contained in:
John Preston 2021-04-27 13:55:27 +04:00
parent e26e666135
commit 9fb72e1c3e
2 changed files with 4 additions and 2 deletions

View file

@ -1908,6 +1908,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_payments_shipping_address_title" = "Shipping Information";
"lng_payments_card_title" = "New Card";
"lng_payments_card_number" = "Card Number";
"lng_payments_card_cvc" = "CVC";
"lng_payments_card_expire_date" = "MM / YY";
"lng_payments_card_holder" = "Cardholder name";
"lng_payments_billing_address" = "Billing Information";
"lng_payments_billing_country" = "Country";

View file

@ -303,12 +303,12 @@ not_null<RpWidget*> EditCard::setupContent() {
st::paymentsFieldPadding);
_expire = make(container, {
.type = FieldType::CardExpireDate,
.placeholder = rpl::single(u"MM / YY"_q),
.placeholder = tr::lng_payments_card_expire_date(),
.validator = ExpireDateValidator(),
});
_cvc = make(container, {
.type = FieldType::CardCVC,
.placeholder = rpl::single(u"CVC"_q),
.placeholder = tr::lng_payments_card_cvc(),
.validator = CvcValidator([=] { return _number->value(); }),
});
container->widthValue(