From 45a7b5ddf5956bf8b61f3706e343b66197f55408 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Wed, 23 Jan 2019 17:30:48 +0900 Subject: [PATCH] localized --- .../View/AddReciepientViewController.swift | 44 +++++++++---------- .../View/EditReciepientViewController.swift | 44 +++++++++---------- .../View/ExchangeRatesViewController.swift | 12 ++--- .../SendMoneyExchangeRateViewController.swift | 6 +-- .../View/SendMoneyParentViewController.swift | 6 +-- .../SendMoneyPaymentModeViewController.swift | 10 ++--- .../View/SendMoneyReceiptViewController.swift | 28 ++++++------ .../SendMoneyVerificationViewController.swift | 10 ++--- .../SideMenu/SideMenuViewController.swift | 20 ++++----- Localizable/en.lproj/Localizable.strings | 1 - 10 files changed, 90 insertions(+), 91 deletions(-) diff --git a/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift b/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift index 0aea061e..f3b225d1 100644 --- a/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift +++ b/GMERemittance/Module/AddReciepient/User Interface/View/AddReciepientViewController.swift @@ -11,29 +11,29 @@ import UIKit class AddReciepientViewController: UIViewController { struct StringConstants { - static let headerText = "Who are you sending money to?" - static let firstNameText = "First Name" - static let middleNameText = "Middle Name (Optional)" - static let lastNameText = "Last Name" - static let countryNameText = "Country" - static let stateText = "State/Province" - static let districtText = "District" - static let addressText = "Address" - static let relationText = "Relation" - static let mobileText = "Mobile No." - static let transferText = "Transfer Reason" - static let saveText = "Save" + static let headerText = "who_to_send_text".localized() + static let firstNameText = "first_name_text".localized() + static let middleNameText = "enter_receiver_middlename_text".localized() + static let lastNameText = "last_name_text".localized() + static let countryNameText = "country_text".localized() + static let stateText = "state_text".localized() + static let districtText = "district_text".localized() + static let addressText = "address_text".localized() + static let relationText = "relation_text".localized() + static let mobileText = "mobile_number_text".localized() + static let transferText = "transfer_reason_text".localized() + static let saveText = "save_text".localized() // placeholder - static let firstnamePlaceholder = "Enter receiver's full name" - static let lastnamePlaceholder = "Enter receiver's middle name" - static let middlenamePlaceholder = "Enter receiver's last name" - static let countryPlaceholder = "Select" - static let statePlaceholder = "Select" - static let districtPlaceholder = "Select" - static let addressPlaceholder = "Enter receiver's Address" - static let relationPlaceholder = "Select" - static let mobilePlaceholder = "Enter receiver's mobile number" - static let transferPlaceholder = "Select" + static let firstnamePlaceholder = "placeholder_enter_receiver_firstname_text".localized() + static let lastnamePlaceholder = "placeholder_enter_receiver_middle_text".localized() + static let middlenamePlaceholder = "placeholder_enter_receiver_lastname_text".localized() + static let countryPlaceholder = "placeholder_select_country_text".localized() + static let statePlaceholder = "state_placeholder_text".localized() + static let districtPlaceholder = "district_placeholder_text".localized() + static let addressPlaceholder = "placeholder_enter_receiver_address_text".localized() + static let relationPlaceholder = "placeholder_select_relation_text".localized() + static let mobilePlaceholder = "placeholder_enter_reciever_mobile_number_text".localized() + static let transferPlaceholder = "placeholder_select_transfer_reason_text".localized() } // MARK: IBOutlets diff --git a/GMERemittance/Module/EditReciepient/User Interface/View/EditReciepientViewController.swift b/GMERemittance/Module/EditReciepient/User Interface/View/EditReciepientViewController.swift index cea9ada9..dfc088f3 100644 --- a/GMERemittance/Module/EditReciepient/User Interface/View/EditReciepientViewController.swift +++ b/GMERemittance/Module/EditReciepient/User Interface/View/EditReciepientViewController.swift @@ -11,29 +11,29 @@ import UIKit class EditReciepientViewController: UIViewController { struct StringConstants { - static let headerText = "Who are you sending money to?" - static let firstNameText = "First Name" - static let middleNameText = "Middle Name (Optional)" - static let lastNameText = "Last Name" - static let countryNameText = "Country" - static let stateText = "State/Province" - static let districtText = "District" - static let addressText = "Address" - static let relationText = "Relation" - static let mobileText = "Mobile No." - static let transferText = "Transfer Reason" - static let saveText = "Save" + static let headerText = "who_to_send_text".localized() + static let firstNameText = "first_name_text".localized() + static let middleNameText = "enter_receiver_middlename_text".localized() + static let lastNameText = "last_name_text".localized() + static let countryNameText = "country_text".localized() + static let stateText = "state_text".localized() + static let districtText = "district_text".localized() + static let addressText = "address_text".localized() + static let relationText = "relation_text".localized() + static let mobileText = "mobile_number_text".localized() + static let transferText = "transfer_reason_text".localized() + static let saveText = "save_text".localized() // placeholder - static let firstnamePlaceholder = "Enter receiver's full name" - static let lastnamePlaceholder = "Enter receiver's middle name" - static let middlenamePlaceholder = "Enter receiver's last name" - static let countryPlaceholder = "Select" - static let statePlaceholder = "Select" - static let districtPlaceholder = "Select" - static let addressPlaceholder = "Enter receiver's Address" - static let relationPlaceholder = "Select" - static let mobilePlaceholder = "Enter receiver's mobile number" - static let transferPlaceholder = "Select" + static let firstnamePlaceholder = "placeholder_enter_receiver_firstname_text".localized() + static let lastnamePlaceholder = "placeholder_enter_receiver_middle_text".localized() + static let middlenamePlaceholder = "placeholder_enter_receiver_lastname_text".localized() + static let countryPlaceholder = "placeholder_select_country_text".localized() + static let statePlaceholder = "state_placeholder_text".localized() + static let districtPlaceholder = "district_placeholder_text".localized() + static let addressPlaceholder = "placeholder_enter_receiver_address_text".localized() + static let relationPlaceholder = "placeholder_select_relation_text".localized() + static let mobilePlaceholder = "placeholder_enter_reciever_mobile_number_text".localized() + static let transferPlaceholder = "placeholder_select_transfer_reason_text".localized() } diff --git a/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift b/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift index 61d9b19f..843f9705 100644 --- a/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift +++ b/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift @@ -31,12 +31,12 @@ class ExchangeRatesViewController: UIViewController { struct StringConstants { static let selectPaymentModeText = "" - static let youSendText = "" - static let recepientGetsText = "" - static let calculate = "" - static let title = "Today's Rate" - static let currentExchangeRateText = "Current Exchange Rate" - static let transferFeeDetailText = "Transfer Fee Included" + static let youSendText = "you_send_text" + static let recepientGetsText = "receipient_gets_text" + static let calculate = "calculate_text" + static let title = "todays_rate_text" + static let currentExchangeRateText = "current_exchange_rate_text" + static let transferFeeDetailText = "transfer_fee_included_text" } struct ApiConstants { diff --git a/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift b/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift index 4ab33add..3bb955bb 100644 --- a/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift +++ b/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift @@ -21,9 +21,9 @@ class SendMoneyExchangeRateViewController: UIViewController { } struct StringConstants { - static let youSendText = "You Send" - static let reciepientGetsText = "Recepient Gets" - static let calculateText = "Calculate" + static let youSendText = "you_send_text".localized() + static let reciepientGetsText = "recepient_gets_text".localized() + static let calculateText = "calculate_text".localized() } // MARK: IBOutlets diff --git a/GMERemittance/Module/SendMoney/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift b/GMERemittance/Module/SendMoney/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift index 55e16f76..583e03d4 100644 --- a/GMERemittance/Module/SendMoney/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift +++ b/GMERemittance/Module/SendMoney/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift @@ -52,9 +52,9 @@ class SendMoneyParentViewController: UIViewController { } struct StringConstants { - static let payoutModeText = "Payout Mode" - static let amountDetailText = "Amount Detail" - static let verificationDetailText = "Verification Detail" + static let payoutModeText = "payout_mode_text".localized() + static let amountDetailText = "amount_detail_text".localized() + static let verificationDetailText = "verification_detail_text".localized() } // MARK: IBOutlets diff --git a/GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift b/GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift index 6a7cc365..4c71ac36 100644 --- a/GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift +++ b/GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift @@ -20,11 +20,11 @@ class SendMoneyPaymentModeViewController: UIViewController { } struct StringConstants { - static let headerTitle = "How would you like to pick your money in Nepal?" - static let bankPlaceholder = "Select Bank" - static let branchPlaceholder = "Select Branch" - static let accountNumber = "Account Number" - static let continueText = "Continue" + static let headerTitle = "How would you like to pick your money in Nepal?".localized() + static let bankPlaceholder = "select_bank_text".localized() + static let branchPlaceholder = "select_branch_text".localized() + static let accountNumber = "account_number_text".localized() + static let continueText = "continue_text".localized() } // MARK: IBOutlets diff --git a/GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceiptViewController.swift b/GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceiptViewController.swift index 394a64f1..115f7772 100644 --- a/GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceiptViewController.swift +++ b/GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceiptViewController.swift @@ -18,20 +18,20 @@ class SendMoneyReceiptViewController: UIViewController { // MARK: IBOutlets struct StringConstants { - static let transferSuccessText = "Transfer Successful" - static let successfullyTransferredText = "You have successfully transferred your money to" - static let concernedPartyText = "Please keep this GME control no. very secure. Share with concerned party only" - static let transactionDateText = "Transaction Date" - static let recieverText = "Receiver" - static let addressText = "Address" - static let mobileNoText = "Mobile No." - static let payoutAgentText = "Payout Agent/Bank" - static let totalSentAmountText = "Total Sent Amount" - static let branchText = "Branch" - static let accountNumberText = "Account Number" - static let serviceFeeText = "Service Fee" - static let exRateText = "Ex Rate" - static let payoutAmountText = "Total Payout Amount" + static let transferSuccessText = "transfer_success_text".localized() + static let successfullyTransferredText = "You have successfully transferred your money to".localized() + static let concernedPartyText = "transfer_success_info_text".localized() + static let transactionDateText = "transaction_date_text".localized() + static let recieverText = "receiver_text".localized() + static let addressText = "email_address_text".localized() + static let mobileNoText = "mobile_number_text".localized() + static let payoutAgentText = "payout_agent_text".localized() + static let totalSentAmountText = "total_sent_amount_text".localized() + static let branchText = "branch_text".localized() + static let accountNumberText = "account_number_text".localized() + static let serviceFeeText = "service_fee_text".localized() + static let exRateText = "ex_rate_text".localized() + static let payoutAmountText = "total_amount_text".localized() } @IBOutlet weak var fullnameLabel: UILabel! diff --git a/GMERemittance/Module/SendMoney/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift b/GMERemittance/Module/SendMoney/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift index 85758849..b14748dc 100644 --- a/GMERemittance/Module/SendMoney/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift +++ b/GMERemittance/Module/SendMoney/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift @@ -11,11 +11,11 @@ import UIKit class SendMoneyVerificationViewController: UITableViewController { struct StringConstants { - static let recieverDetails = "Reciever Details" - static let transactionDetails = "Transaction Details" - static let readNAgreeText = "I have read and agreed to " - static let userAgreementText = "GME Remittance User Agreement" - static let agreeAndSendText = "Agree And Send" + static let recieverDetails = "reciever_details_text".localized() + static let transactionDetails = "transaction_detail_text".localized() + static let readNAgreeText = "i_have_read_to_text".localized() + static let userAgreementText = "gme_user_aggreement_text".localized() + static let agreeAndSendText = "agree_and_send_text".localized() } // MARK: IBOutlets diff --git a/GMERemittance/SideMenu/SideMenuViewController.swift b/GMERemittance/SideMenu/SideMenuViewController.swift index 4b10a8f0..e4869432 100644 --- a/GMERemittance/SideMenu/SideMenuViewController.swift +++ b/GMERemittance/SideMenu/SideMenuViewController.swift @@ -23,16 +23,16 @@ struct SideMenuNavigationNotifications { class SideMenuViewController: UIViewController { struct StringConstants { - static let logoutTitleText = "Logout" - static let logoutConfirmationText = "Are you sure you want to logout?" - static let noText = "No" - static let yesText = "Yes" - static let autoDebitMenuText = "Auto Debit Account" - static let aboutGmeMenuText = "About GMEs" - static let settingMenuText = "Settings" - static let availableBalanceTitleLabelText = "Your Available Balance" - static let withdrawButtonText = "Withdraw" - static let gmeWalletNoTitleText = "GME Wallet No." + static let logoutTitleText = "logout_text" + static let logoutConfirmationText = "logout_confirmation_text" + static let noText = "no_text" + static let yesText = "yes_text" + static let autoDebitMenuText = "auto_debit_account_text" + static let aboutGmeMenuText = "about_gme_text" + static let settingMenuText = "settings_text" + static let availableBalanceTitleLabelText = "available_balance_text" + static let withdrawButtonText = "withdraw_text" + static let gmeWalletNoTitleText = "gme_wallet_no_text" } // @IBOutlets diff --git a/Localizable/en.lproj/Localizable.strings b/Localizable/en.lproj/Localizable.strings index 4a204a87..e6e55d47 100644 --- a/Localizable/en.lproj/Localizable.strings +++ b/Localizable/en.lproj/Localizable.strings @@ -105,7 +105,6 @@ "receiving_amount_error" = "Please specify receiving amount"; "no_currency_selected_error" = "Please select a currency"; "send_money_title_text" = "Send Money"; -"payout_mode_text" = "Payout Mode"; "amount_detail_text" = "Amount Detail"; "verification_detail_text" = "Verification"; "pick_money_text" = "How would you like to pick you money in";