Skip to content

Commit

Permalink
Setup localised strings for transfer consent
Browse files Browse the repository at this point in the history
  • Loading branch information
manhlx3006 committed Jan 14, 2020
1 parent 43368e3 commit 0df2eec
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class KNTransferConsentViewController: KNBaseViewController {

@IBOutlet weak var headerContainerView: UIView!

@IBOutlet weak var navTitleLabel: UILabel!
@IBOutlet weak var yesButton: UIButton!
@IBOutlet weak var noButton: UIButton!
@IBOutlet weak var descriptionTextLabel: UILabel!
Expand All @@ -42,6 +43,7 @@ class KNTransferConsentViewController: KNBaseViewController {

override func viewDidLoad() {
super.viewDidLoad()
self.navTitleLabel.text = "Transfer Consent".toBeLocalised()
self.yesButton.rounded(
color: UIColor.Kyber.border,
width: 1.0,
Expand All @@ -52,8 +54,7 @@ class KNTransferConsentViewController: KNBaseViewController {
self.headerContainerView.applyGradient(with: UIColor.Kyber.headerColors)
self.backButton.isHidden = true

//swiftlint:disable line_length
self.descriptionTextLabel.text = "Please note that in view of business and strategic considerations, Kyber Network International Limited (“Kyber Network”) no longer operates kyberswap.com.\n\nKYRD International Limited (“KYRD International”) now operates kyberswap.com. We assure you that no other change is in place other than that KYRD International is now the entity operating kyberswap.com instead of Kyber Network.\n\nIf you wish, to continue using kyberswap.com without the need of providing your personal data again, Kyber Network can transfer your personal data to KYRD International upon your explicit consent.\n\nPlease do note that KYRD International is a company in British Virgin Islands (\"BVI\") and as such, the country is not subject to an adequacy decision by the EU Commission on the processing of personal data nor are there the appropriate safeguards for data protection purposes that are present in EU jurisdictions.\n\nKindly click:\n\"Yes\" if you wish that Kyber Network transfers your personal data to KYRD International; or\n\"No\" if you do not wish that Kyber Network transfers your personal data to KYRD International Do note that if you click “No”, your personal shall be erased in accordance with the retention periods specified in Kyber Network’s Privacy Policy."
self.descriptionTextLabel.text = NSLocalizedString("transfer_consent_description_labeL", comment: "")
self.scrollView.delegate = self
}

Expand Down Expand Up @@ -81,8 +82,8 @@ class KNTransferConsentViewController: KNBaseViewController {
message: "\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?".toBeLocalised(),
preferredStyle: .alert
)
alert.addAction(UIAlertAction(title: "Go back", style: .cancel, handler: nil))
alert.addAction(UIAlertAction(title: "Continue", style: .destructive, handler: { _ in
alert.addAction(UIAlertAction(title: "Go back".toBeLocalised(), style: .cancel, handler: nil))
alert.addAction(UIAlertAction(title: NSLocalizedString("continue", value: "Continue", comment: ""), style: .destructive, handler: { _ in
self.delegate?.transferConsentViewController(
self,
answer: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<outlet property="backButton" destination="CzQ-RW-z5Y" id="7vG-uh-PJb"/>
<outlet property="descriptionTextLabel" destination="r9q-h3-JpR" id="KEG-Y8-INq"/>
<outlet property="headerContainerView" destination="dKJ-t8-sAQ" id="XOs-4l-ZVx"/>
<outlet property="navTitleLabel" destination="WVd-c5-lJ3" id="BC6-FO-FDa"/>
<outlet property="noButton" destination="sAJ-hD-f1d" id="8gd-7Z-H3U"/>
<outlet property="scrollView" destination="SzK-df-cAb" id="ADR-c6-wac"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
Expand Down Expand Up @@ -67,13 +68,13 @@
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="255" verticalHuggingPriority="255" horizontalCompressionResistancePriority="755" verticalCompressionResistancePriority="755" textAlignment="justified" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r9q-h3-JpR">
<rect key="frame" x="24" y="24" width="366" height="495"/>
<mutableString key="text">Please note that in view of business and strategic considerations, Kyber Network International Limited (“Kyber Network”) no longer operates kyberswap.com.
<string key="text">Please note that in view of business and strategic considerations, Kyber Network International Limited (“Kyber Network”) no longer operates kyberswap.com.
KYRD International Limited (“KYRD International”) now operates kyberswap.com. We assure you that no other change is in place other than that KYRD International is now the entity operating kyberswap.com instead of Kyber Network.
If you wish, to continue using kyberswap.com without the need of providing your personal data again, Kyber Network can transfer your personal data to KYRD International upon your explicit consent.
Please do note that KYRD International is a company in British Virgin Islands (“BVI") and as such, the country is not subject to an adequacy decision by the EU Commission on the processing of personal data nor are there the appropriate safeguards for data protection purposes that are present in EU jurisdictions.
Kindly click:
“Yes” if you wish that Kyber Network transfers your personal data to KYRD International; or
“No” if you do not wish that Kyber Network transfers your personal data to KYRD International Do note that if you click “No”, your personal shall be erased in accordance with the retention periods specified in Kyber Network’s Privacy Policy.</mutableString>
“No” if you do not wish that Kyber Network transfers your personal data to KYRD International Do note that if you click “No”, your personal shall be erased in accordance with the retention periods specified in Kyber Network’s Privacy Policy.</string>
<fontDescription key="fontDescription" name="Montserrat-Medium" family="Montserrat" pointSize="14"/>
<color key="textColor" red="0.078431372550000003" green="0.098039215690000001" blue="0.1529411765" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,14 @@ extension KNProfileHomeCoordinator: KNTransferConsentViewControllerDelegate {
self.showSuccessTopBannerMessage(
with: "",
message: "Thank you, your profile will be surely copied. No futher action needed from you.".toBeLocalised(),
time: 3.0
time: 2.5
)
if isForceLogout {
// if isForceLogout -> user has not been signed in yet
// since user's ans is yes, allow user to login
self.signUserInWithData(authInfoDict: authInfo, userInfo: newUserInfo ?? userInfo)
DispatchQueue.main.asyncAfter(deadline: .now() + 2.5) {
// if isForceLogout -> user has not been signed in yet
// since user's ans is yes, allow user to login
self.signUserInWithData(authInfoDict: authInfo, userInfo: newUserInfo ?? userInfo)
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions KyberNetwork/Localization/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -649,3 +649,10 @@
"Failed!" = "Failed!";
"Transaction error" = "Transaction error";
"Maintenance" = "Maintenance";

// MARK: Transfer Consent
"transfer_consent_description_labeL" = "Please note that in view of business and strategic considerations, Kyber Network International Limited (“Kyber Network”) no longer operates kyberswap.com.\n\nKYRD International Limited (“KYRD International”) now operates kyberswap.com. We assure you that no other change is in place other than that KYRD International is now the entity operating kyberswap.com instead of Kyber Network.\n\nIf you wish, to continue using kyberswap.com without the need of providing your personal data again, Kyber Network can transfer your personal data to KYRD International upon your explicit consent.\n\nPlease do note that KYRD International is a company in British Virgin Islands (\"BVI\") and as such, the country is not subject to an adequacy decision by the EU Commission on the processing of personal data nor are there the appropriate safeguards for data protection purposes that are present in EU jurisdictions.\n\nKindly click:\n\"Yes\" if you wish that Kyber Network transfers your personal data to KYRD International; or\n\"No\" if you do not wish that Kyber Network transfers your personal data to KYRD International Do note that if you click “No”, your personal shall be erased in accordance with the retention periods specified in Kyber Network’s Privacy Policy.";
"Your profile will not be copied" = "Your profile will not be copied";
"\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?" = "\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?";
"Thank you, your profile will be surely copied. No futher action needed from you." = "Thank you, your profile will be surely copied. No futher action needed from you.";
"Transfer Consent" = "Transfer Consent";
7 changes: 7 additions & 0 deletions KyberNetwork/Localization/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -653,3 +653,10 @@
"Failed!" = "실패!";
"Transaction error" = "Transaction error";
"Maintenance" = "정비";

// MARK: Transfer Consent
"transfer_consent_description_labeL" = "Please note that in view of business and strategic considerations, Kyber Network International Limited (“Kyber Network”) no longer operates kyberswap.com.\n\nKYRD International Limited (“KYRD International”) now operates kyberswap.com. We assure you that no other change is in place other than that KYRD International is now the entity operating kyberswap.com instead of Kyber Network.\n\nIf you wish, to continue using kyberswap.com without the need of providing your personal data again, Kyber Network can transfer your personal data to KYRD International upon your explicit consent.\n\nPlease do note that KYRD International is a company in British Virgin Islands (\"BVI\") and as such, the country is not subject to an adequacy decision by the EU Commission on the processing of personal data nor are there the appropriate safeguards for data protection purposes that are present in EU jurisdictions.\n\nKindly click:\n\"Yes\" if you wish that Kyber Network transfers your personal data to KYRD International; or\n\"No\" if you do not wish that Kyber Network transfers your personal data to KYRD International Do note that if you click “No”, your personal shall be erased in accordance with the retention periods specified in Kyber Network’s Privacy Policy.";
"Your profile will not be copied" = "Your profile will not be copied";
"\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?" = "\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?";
"Thank you, your profile will be surely copied. No futher action needed from you." = "Thank you, your profile will be surely copied. No futher action needed from you.";
"Transfer Consent" = "Transfer Consent";
7 changes: 7 additions & 0 deletions KyberNetwork/Localization/vi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -653,3 +653,10 @@
"Failed!" = "Thất bại!";
"Transaction error" = "Giao dịch thất bại";
"Maintenance" = "Đang bảo trì";

// MARK: Transfer Consent
"transfer_consent_description_labeL" = "Please note that in view of business and strategic considerations, Kyber Network International Limited (“Kyber Network”) no longer operates kyberswap.com.\n\nKYRD International Limited (“KYRD International”) now operates kyberswap.com. We assure you that no other change is in place other than that KYRD International is now the entity operating kyberswap.com instead of Kyber Network.\n\nIf you wish, to continue using kyberswap.com without the need of providing your personal data again, Kyber Network can transfer your personal data to KYRD International upon your explicit consent.\n\nPlease do note that KYRD International is a company in British Virgin Islands (\"BVI\") and as such, the country is not subject to an adequacy decision by the EU Commission on the processing of personal data nor are there the appropriate safeguards for data protection purposes that are present in EU jurisdictions.\n\nKindly click:\n\"Yes\" if you wish that Kyber Network transfers your personal data to KYRD International; or\n\"No\" if you do not wish that Kyber Network transfers your personal data to KYRD International Do note that if you click “No”, your personal shall be erased in accordance with the retention periods specified in Kyber Network’s Privacy Policy.";
"Your profile will not be copied" = "Your profile will not be copied";
"\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?" = "\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?";
"Thank you, your profile will be surely copied. No futher action needed from you." = "Thank you, your profile will be surely copied. No futher action needed from you.";
"Transfer Consent" = "Transfer Consent";
7 changes: 7 additions & 0 deletions KyberNetwork/Localization/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -651,3 +651,10 @@
"Failed!" = "已失败!";
"Transaction error" = "Transaction error";
"Maintenance" = "保养";

// MARK: Transfer Consent
"transfer_consent_description_labeL" = "Please note that in view of business and strategic considerations, Kyber Network International Limited (“Kyber Network”) no longer operates kyberswap.com.\n\nKYRD International Limited (“KYRD International”) now operates kyberswap.com. We assure you that no other change is in place other than that KYRD International is now the entity operating kyberswap.com instead of Kyber Network.\n\nIf you wish, to continue using kyberswap.com without the need of providing your personal data again, Kyber Network can transfer your personal data to KYRD International upon your explicit consent.\n\nPlease do note that KYRD International is a company in British Virgin Islands (\"BVI\") and as such, the country is not subject to an adequacy decision by the EU Commission on the processing of personal data nor are there the appropriate safeguards for data protection purposes that are present in EU jurisdictions.\n\nKindly click:\n\"Yes\" if you wish that Kyber Network transfers your personal data to KYRD International; or\n\"No\" if you do not wish that Kyber Network transfers your personal data to KYRD International Do note that if you click “No”, your personal shall be erased in accordance with the retention periods specified in Kyber Network’s Privacy Policy.";
"Your profile will not be copied" = "Your profile will not be copied";
"\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?" = "\nYou would have to create a new profile to use some services like Limit Order, Price Alerts, Notifications, etc. \n\nDo you want to continue?";
"Thank you, your profile will be surely copied. No futher action needed from you." = "Thank you, your profile will be surely copied. No futher action needed from you.";
"Transfer Consent" = "Transfer Consent";

0 comments on commit 0df2eec

Please sign in to comment.