Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
16154aef
Commit
16154aef
authored
May 16, 2018
by
Davide De Rosa
Browse files
Do not translate gift code placeholder
parent
a1235a0f
Changes
3
Show whitespace changes
Inline
Side-by-side
PIALibrary/Resources/UI/iOS/en.lproj/Welcome.strings
View file @
16154aef
...
...
@@ -32,7 +32,6 @@
"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.email.placeholder" = "Email address";
"redeem.code.placeholder" = "1234-5678-9012-3456";
"redeem.submit" = "SUBMIT";
//"redeem.login.footer" = "Already have an account?";
//"redeem.login.button" = "Sign in!";
...
...
PIALibrary/Sources/UI/iOS/RedeemViewController.swift
View file @
16154aef
...
...
@@ -16,6 +16,8 @@ class RedeemViewController: AutolayoutViewController, WelcomeChild {
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
@IBOutlet
private
weak
var
scrollView
:
UIScrollView
!
...
...
@@ -70,7 +72,7 @@ class RedeemViewController: AutolayoutViewController, WelcomeChild {
labelTitle
.
text
=
L10n
.
Welcome
.
Redeem
.
title
labelSubtitle
.
text
=
L10n
.
Welcome
.
Redeem
.
subtitle
textEmail
.
placeholder
=
L10n
.
Welcome
.
Redeem
.
Email
.
placeholder
textCode
.
placeholder
=
L10n
.
Welcome
.
Redeem
.
Code
.
p
laceholder
textCode
.
placeholder
=
RedeemViewController
.
codeP
laceholder
textAgreement
.
attributedText
=
Theme
.
current
.
agreementText
(
withMessage
:
L10n
.
Welcome
.
Agreement
.
message
,
tos
:
L10n
.
Welcome
.
Agreement
.
Message
.
tos
,
...
...
PIALibrary/Sources/UI/iOS/SwiftGen+Strings.swift
View file @
16154aef
...
...
@@ -145,11 +145,6 @@ enum L10n {
/// Redeem gift card
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
{
/// Email address
static
let
placeholder
=
L10n
.
tr
(
"Welcome"
,
"redeem.email.placeholder"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment