Commit 16154aef authored by Davide De Rosa's avatar Davide De Rosa
Browse files

Do not translate gift code placeholder

parent a1235a0f
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
"redeem.title" = "Redeem gift card"; "redeem.title" = "Redeem gift card";
"redeem.subtitle" = "Type in your email address and the 16 digit PIN from your gift card or trial card below."; "redeem.subtitle" = "Type in your email address and the 16 digit PIN from your gift card or trial card below.";
"redeem.email.placeholder" = "Email address"; "redeem.email.placeholder" = "Email address";
"redeem.code.placeholder" = "1234-5678-9012-3456";
"redeem.submit" = "SUBMIT"; "redeem.submit" = "SUBMIT";
//"redeem.login.footer" = "Already have an account?"; //"redeem.login.footer" = "Already have an account?";
//"redeem.login.button" = "Sign in!"; //"redeem.login.button" = "Sign in!";
......
...@@ -16,6 +16,8 @@ class RedeemViewController: AutolayoutViewController, WelcomeChild { ...@@ -16,6 +16,8 @@ class RedeemViewController: AutolayoutViewController, WelcomeChild {
private static let rxCodeGrouping: NSRegularExpression = try! NSRegularExpression(pattern: "\\d{4}(?=\\d)", options: []) private static let rxCodeGrouping: NSRegularExpression = try! NSRegularExpression(pattern: "\\d{4}(?=\\d)", options: [])
private static let codePlaceholder = "1234-5678-9012-3456"
private static let maxCodeLength = 16 private static let maxCodeLength = 16
@IBOutlet private weak var scrollView: UIScrollView! @IBOutlet private weak var scrollView: UIScrollView!
...@@ -70,7 +72,7 @@ class RedeemViewController: AutolayoutViewController, WelcomeChild { ...@@ -70,7 +72,7 @@ class RedeemViewController: AutolayoutViewController, WelcomeChild {
labelTitle.text = L10n.Welcome.Redeem.title labelTitle.text = L10n.Welcome.Redeem.title
labelSubtitle.text = L10n.Welcome.Redeem.subtitle labelSubtitle.text = L10n.Welcome.Redeem.subtitle
textEmail.placeholder = L10n.Welcome.Redeem.Email.placeholder textEmail.placeholder = L10n.Welcome.Redeem.Email.placeholder
textCode.placeholder = L10n.Welcome.Redeem.Code.placeholder textCode.placeholder = RedeemViewController.codePlaceholder
textAgreement.attributedText = Theme.current.agreementText( textAgreement.attributedText = Theme.current.agreementText(
withMessage: L10n.Welcome.Agreement.message, withMessage: L10n.Welcome.Agreement.message,
tos: L10n.Welcome.Agreement.Message.tos, tos: L10n.Welcome.Agreement.Message.tos,
......
...@@ -145,11 +145,6 @@ enum L10n { ...@@ -145,11 +145,6 @@ enum L10n {
/// Redeem gift card /// Redeem gift card
static let title = L10n.tr("Welcome", "redeem.title") static let title = L10n.tr("Welcome", "redeem.title")
enum Code {
/// 1234-5678-9012-3456
static let placeholder = L10n.tr("Welcome", "redeem.code.placeholder")
}
enum Email { enum Email {
/// Email address /// Email address
static let placeholder = L10n.tr("Welcome", "redeem.email.placeholder") static let placeholder = L10n.tr("Welcome", "redeem.email.placeholder")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment