Showing
1 changed file
with
5 additions
and
3 deletions
... | @@ -17,11 +17,13 @@ import UIKit | ... | @@ -17,11 +17,13 @@ import UIKit |
17 | @IBOutlet weak var voucherBannerArrowImage: UIImageView! | 17 | @IBOutlet weak var voucherBannerArrowImage: UIImageView! |
18 | @IBOutlet weak var voucherCountView: UIView! | 18 | @IBOutlet weak var voucherCountView: UIView! |
19 | 19 | ||
20 | + let language = swiftApi().getLanguage() | ||
21 | + | ||
20 | public override func awakeFromNib() { | 22 | public override func awakeFromNib() { |
21 | super.awakeFromNib() | 23 | super.awakeFromNib() |
22 | // Initialization code | 24 | // Initialization code |
23 | 25 | ||
24 | - sectionTitleLabel.text = "Υπόλοιπο επιδότησης" | 26 | + sectionTitleLabel.text = language == "en" ? "Subsidy balance" : "Υπόλοιπο επιδότησης" |
25 | 27 | ||
26 | voucherBannerView.layer.cornerRadius = 16.0 | 28 | voucherBannerView.layer.cornerRadius = 16.0 |
27 | voucherBannerView.layer.borderWidth = 1 | 29 | voucherBannerView.layer.borderWidth = 1 |
... | @@ -62,7 +64,7 @@ import UIKit | ... | @@ -62,7 +64,7 @@ import UIKit |
62 | voucherBannerView.backgroundColor = .white | 64 | voucherBannerView.backgroundColor = .white |
63 | voucherBannerIconImage.image = voucherBannerIconImage.image?.withRenderingMode(.alwaysTemplate) | 65 | voucherBannerIconImage.image = voucherBannerIconImage.image?.withRenderingMode(.alwaysTemplate) |
64 | voucherBannerIconImage.tintColor = UIColor(red: 0.00, green: 0.65, blue: 0.89, alpha: 1.00) | 66 | voucherBannerIconImage.tintColor = UIColor(red: 0.00, green: 0.65, blue: 0.89, alpha: 1.00) |
65 | - voucherBannerLabel.text = "Δες το διαθέσιμο υπόλοιπο" | 67 | + voucherBannerLabel.text = language == "en" ? "Check the available balance" : "Δες το διαθέσιμο υπόλοιπο" |
66 | voucherBannerLabel.textColor = UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00) | 68 | voucherBannerLabel.textColor = UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00) |
67 | voucherBannerLabel.frame.size.width = voucherBannerLabel.intrinsicContentSize.width | 69 | voucherBannerLabel.frame.size.width = voucherBannerLabel.intrinsicContentSize.width |
68 | voucherCountView.isHidden = true | 70 | voucherCountView.isHidden = true |
... | @@ -71,7 +73,7 @@ import UIKit | ... | @@ -71,7 +73,7 @@ import UIKit |
71 | voucherBannerView.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00) | 73 | voucherBannerView.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00) |
72 | voucherBannerIconImage.image = voucherBannerIconImage.image?.withRenderingMode(.alwaysTemplate) | 74 | voucherBannerIconImage.image = voucherBannerIconImage.image?.withRenderingMode(.alwaysTemplate) |
73 | voucherBannerIconImage.tintColor = UIColor(red: 0.52, green: 0.52, blue: 0.52, alpha: 1.00) | 75 | voucherBannerIconImage.tintColor = UIColor(red: 0.52, green: 0.52, blue: 0.52, alpha: 1.00) |
74 | - voucherBannerLabel.text = "Διαθέσιμο υπόλοιπο" | 76 | + voucherBannerLabel.text = language == "en" ? "Available balance" : "Διαθέσιμο υπόλοιπο" |
75 | voucherBannerLabel.textColor = UIColor(red: 0.52, green: 0.52, blue: 0.52, alpha: 1.00) | 77 | voucherBannerLabel.textColor = UIColor(red: 0.52, green: 0.52, blue: 0.52, alpha: 1.00) |
76 | voucherBannerLabel.frame.size.width = voucherBannerLabel.intrinsicContentSize.width | 78 | voucherBannerLabel.frame.size.width = voucherBannerLabel.intrinsicContentSize.width |
77 | voucherCountView.isHidden = false | 79 | voucherCountView.isHidden = false | ... | ... |
-
Please register or login to post a comment