From fac3913d489ba0f6d41bdb368c4c45a9e31d7a6a Mon Sep 17 00:00:00 2001 From: gme_2 Date: Tue, 22 Jan 2019 18:27:37 +0900 Subject: [PATCH] language fixex --- GMERemittance/AppDelegate.swift | 2 +- GMERemittance/Base/WireframeInput.swift | 2 +- .../View/AddReciepient.storyboard | 17 ++++++++++++++--- .../View/AddReciepientViewController.swift | 18 ++++++++++++++++++ .../Service/AutoDebitService.swift | 2 +- .../View/AutoDebitViewController.swift | 4 ++-- 6 files changed, 37 insertions(+), 8 deletions(-) diff --git a/GMERemittance/AppDelegate.swift b/GMERemittance/AppDelegate.swift index f973bde2..0973d48f 100644 --- a/GMERemittance/AppDelegate.swift +++ b/GMERemittance/AppDelegate.swift @@ -19,7 +19,7 @@ import AlamofireNetworkActivityLogger import IQKeyboardManagerSwift import LGSideMenuController -let server: Server = .uat +let server: Server = .stagging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate { diff --git a/GMERemittance/Base/WireframeInput.swift b/GMERemittance/Base/WireframeInput.swift index b19c5f08..030cc32f 100644 --- a/GMERemittance/Base/WireframeInput.swift +++ b/GMERemittance/Base/WireframeInput.swift @@ -16,7 +16,7 @@ protocol WireframeInput { func pushMainView(on source: UIViewController) func pushMainView(in source: UINavigationController) func getMainView() -> UIViewController - func openMainViewIn(window: UIWindow) + func openMainViewIn(window: UIWindow) func openViewControllerWithNavigation(viewController: UIViewController, source: UIViewController) } diff --git a/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepient.storyboard b/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepient.storyboard index 488c98c8..48599cfa 100644 --- a/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepient.storyboard +++ b/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepient.storyboard @@ -1,11 +1,11 @@ - + - + @@ -21,7 +21,7 @@ - + @@ -350,19 +350,30 @@ + + + + + + + + + + + diff --git a/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift b/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift index 921b41b2..6419bf4e 100644 --- a/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift +++ b/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift @@ -10,6 +10,10 @@ import UIKit class AddReciepientViewController: UIViewController { + struct StringConstants { + + } + // MARK: IBOutlets @IBOutlet weak var firstNameTextField: UITextField! @IBOutlet weak var middleNameTextField: UITextField! @@ -26,6 +30,20 @@ class AddReciepientViewController: UIViewController { @IBOutlet weak var provienceStackView: UIStackView! @IBOutlet weak var districtStackView: UIStackView! + // titles + @IBOutlet weak var headerTItleLabel: UILabel! + @IBOutlet weak var firstNameTitleLabel: UILabel! + @IBOutlet weak var middleNameTitleLabel: UILabel! + @IBOutlet weak var lastNametitleLabel: UILabel! + @IBOutlet weak var countryNameTitleLabel: UILabel! + @IBOutlet weak var stateTitleLabel: UILabel! + @IBOutlet weak var districtTitleLabel: UILabel! + @IBOutlet weak var addressTitleLabel: UILabel! + @IBOutlet weak var relationTitleLabel: UILabel! + @IBOutlet weak var mobileTitleLabel: UILabel! + @IBOutlet weak var transferTitleLabel: UILabel! + + // MARK: Properties var presenter: AddReciepientModuleInterface? var countries: [SendMoneyCountryViewModel]? diff --git a/GMERemittance/Module/AutoDebit/Application Logic/Service/AutoDebitService.swift b/GMERemittance/Module/AutoDebit/Application Logic/Service/AutoDebitService.swift index 644b3d50..e6002d3b 100644 --- a/GMERemittance/Module/AutoDebit/Application Logic/Service/AutoDebitService.swift +++ b/GMERemittance/Module/AutoDebit/Application Logic/Service/AutoDebitService.swift @@ -28,7 +28,7 @@ protocol FetchAccountList: ApiServiceType { extension FetchAccountList { func fetchAccountList(username: String, success: @escaping (KFTCModel?) -> (), failure: @escaping (Error) -> ()) { - let url = "http://gmeuat.gmeremit.com:5012/api/v2/" + "kftc/GetKftcParameters/" + username + let url = "http://gmeuat.gmeremit.com:5022/api/v2/" + "kftc/GetKftcParameters/" + username auth.request(method: .get, url: url, params: nil, encoding: URLEncoding.default, success: { (response: KftcAccountContainer) in if (response.errorCode ?? "") == "1" { diff --git a/GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift b/GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift index 99fc0b97..44ba1807 100644 --- a/GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift +++ b/GMERemittance/Module/AutoDebit/User Interface/View/AutoDebitViewController.swift @@ -185,9 +185,9 @@ extension AutoDebitViewController: UITableViewDelegate,UITableViewDataSource { func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { - let delete = UITableViewRowAction(style: .destructive, title: StringConstants.deleteTitleText) { (action, indexPath) in + let delete = UITableViewRowAction(style: .destructive, title: StringConstants.deleteText) { (action, indexPath) in - self.alertWithOkCancel(message: StringConstants.deleteTitleText, title: StringConstants.confirmationText, okTitle: StringConstants.deleteTitleText ,OkStyle: UIAlertActionStyle.destructive, okAction: { + self.alertWithOkCancel(message: StringConstants.deleteTitleText, title: StringConstants.confirmationText, okTitle: StringConstants.deleteText ,OkStyle: UIAlertActionStyle.destructive, okAction: { let defaults = UserDefaults.standard let myUsername = defaults.string(forKey: "com.gmeremit.username") ?? ""