|
|
@ -14,7 +14,8 @@ class CurrencyPickerViewController: UIViewController { |
|
|
|
struct StringConstants { |
|
|
|
static let searchPlaceholder = "search_currency_text".localized() |
|
|
|
static let cancelText = "cancel_text".localized() |
|
|
|
static let titleText = "".localized() |
|
|
|
static let titleText = "select_currency_text".localized() |
|
|
|
static let emptyText = "no_currency_found_text".localized() |
|
|
|
} |
|
|
|
|
|
|
|
struct Constants { |
|
|
@ -68,17 +69,14 @@ class CurrencyPickerViewController: UIViewController { |
|
|
|
|
|
|
|
func configureLanguage() { |
|
|
|
// doing doind doingi |
|
|
|
self.titleLabel.text = StringConstants.titleText |
|
|
|
self.searchTextField.placeholder = StringConstants.searchPlaceholder |
|
|
|
self.cancleButton.setTitle(StringConstants.cancelText, for: .normal) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private func setNoResultText() { |
|
|
|
var text = "" |
|
|
|
if let type = self.type { |
|
|
|
text = "No matching \(type.rawValue) found for " |
|
|
|
} else { |
|
|
|
text = "No matching result found for " |
|
|
|
} |
|
|
|
self.noResultFoundLabel.text = text + "'\(searchText)'" |
|
|
|
self.noResultFoundLabel.text = StringConstants.emptyText |
|
|
|
} |
|
|
|
|
|
|
|
private func setTitle() { |
|
|
|