Browse Source

search currency pop up string managed

pull/1/head
gme_2 6 years ago
parent
commit
9dca93921b
  1. 14
      GMERemittance/Library/CurrencyPicker/CurrencyPickerViewController.swift

14
GMERemittance/Library/CurrencyPicker/CurrencyPickerViewController.swift

@ -14,7 +14,8 @@ class CurrencyPickerViewController: UIViewController {
struct StringConstants { struct StringConstants {
static let searchPlaceholder = "search_currency_text".localized() static let searchPlaceholder = "search_currency_text".localized()
static let cancelText = "cancel_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 { struct Constants {
@ -68,17 +69,14 @@ class CurrencyPickerViewController: UIViewController {
func configureLanguage() { func configureLanguage() {
// doing doind doingi // doing doind doingi
self.titleLabel.text = StringConstants.titleText
self.searchTextField.placeholder = StringConstants.searchPlaceholder
self.cancleButton.setTitle(StringConstants.cancelText, for: .normal)
} }
private func setNoResultText() { 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() { private func setTitle() {

Loading…
Cancel
Save