From 9fb72e1c3ee7e134a5805ec3b42237eea89fe2bd Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 27 Apr 2021 13:55:27 +0400 Subject: [PATCH] Add 'MM / YY' and 'CVC' to langpack. --- Telegram/Resources/langs/lang.strings | 2 ++ Telegram/SourceFiles/payments/ui/payments_edit_card.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 21b66bbe73..d7f6149859 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -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"; diff --git a/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp b/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp index 95200b504b..d09b6da23c 100644 --- a/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp +++ b/Telegram/SourceFiles/payments/ui/payments_edit_card.cpp @@ -303,12 +303,12 @@ not_null 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(