Browse Source

lanugage added

pull/1/head
gme_2 6 years ago
parent
commit
400dab9060
  1. 14
      GMERemittance/Module/MessageCompose/User Interface/View/MessageComposeViewController.swift
  2. 2
      GMERemittance/Module/Resend/User Interface/View/ResendViewController.swift
  3. 11
      en.lproj/Localizable.strings

14
GMERemittance/Module/MessageCompose/User Interface/View/MessageComposeViewController.swift

@ -11,12 +11,12 @@ import UIKit
class MessageComposeViewController: UIViewController { class MessageComposeViewController: UIViewController {
struct StringConstants { struct StringConstants {
let headerText = "We are always there to help you."
let headerText = "support_description_text".localized()
let submitText = "submit_text".localized() let submitText = "submit_text".localized()
let cancelText = "cancel_text".localized() let cancelText = "cancel_text".localized()
let subjectAmendmentText = "Request For Amendment"
let subjectCancelText = "Request For Cancellation"
let requestMessagePlaceHolderText = "Your request here"
let subjectAmendmentText = "request_for_amendment_text".localized()
let subjectCancelText = "request_for_cancellation_text".localized()
let requestMessagePlaceHolderText = "your_request_text".localized()
} }
// MARK: IBOutlets // MARK: IBOutlets
@ -85,7 +85,7 @@ class MessageComposeViewController: UIViewController {
case .cancel: case .cancel:
self.textFieldSubject.text = "request_for_cancellation_text".localized() self.textFieldSubject.text = "request_for_cancellation_text".localized()
case .edit: case .edit:
self.textFieldSubject.text = "Request for amendment".localized()
self.textFieldSubject.text = "request_for_amendment_text".localized()
} }
} }
@ -114,7 +114,7 @@ class MessageComposeViewController: UIViewController {
// MARK: MessageComposeViewInterface // MARK: MessageComposeViewInterface
extension MessageComposeViewController: MessageComposeViewInterface { extension MessageComposeViewController: MessageComposeViewInterface {
func show(model: SuccessMessage) { func show(model: SuccessMessage) {
self.alert(message: model.message, title: "Success") {
self.alert(message: model.message, title: "success_text".localized()) {
self.presenter?.dismiss() self.presenter?.dismiss()
} }
} }
@ -134,7 +134,7 @@ extension MessageComposeViewController: UITextViewDelegate {
func textViewDidEndEditing(_ textView: UITextView) { func textViewDidEndEditing(_ textView: UITextView) {
if textViewMessage.text.isEmpty { if textViewMessage.text.isEmpty {
textViewMessage.text = "Your request here"
textViewMessage.text = "your_request_text".localized()
textViewMessage.textColor = UIColor.lightGray textViewMessage.textColor = UIColor.lightGray
} }
} }

2
GMERemittance/Module/Resend/User Interface/View/ResendViewController.swift

@ -106,7 +106,7 @@ class ResendViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated) super.viewWillAppear(animated)
self.navigationItem.title = "resend_text".localized()
self.navigationItem.title = "resend_money_text".localized()
} }
override func viewWillDisappear(_ animated: Bool) { override func viewWillDisappear(_ animated: Bool) {

11
en.lproj/Localizable.strings

@ -399,3 +399,14 @@
"resend_text" = "Resend Money"; "resend_text" = "Resend Money";
"resend_search_hint_text" = "GME No/Receiver Name/Bank Name"; "resend_search_hint_text" = "GME No/Receiver Name/Bank Name";
"your_request_text" = "Your request here";
"request_for_cancellation_text" = "Request for cancellation";
"request_for_amendment_text" = "Request for amendment";
"no_subject_error_text" = "Please write a subject";
"no_message_body_text" = "Please write a message body";
"no_control_id_error_text" = "Gme Number Not found";
"no_transaction_id_error_text" = "Transaction ID Not Found";
"support_description_text" = "We are always here to help you.";
Loading…
Cancel
Save