Browse Source

fixes on text localization on tab bar

pull/24/head
Ashmita 3 years ago
parent
commit
d2282f8b53
  1. 4
      GME Remit/Modules/GmeContacts/User Interface/View/GmeContactsViewController.swift
  2. 4
      GME Remit/Modules/Profile/ProfileViewController.swift
  3. 10
      GME Remit/Modules/RecipientModules/Recipients/User Interface/View/RecipientsViewController.swift

4
GME Remit/Modules/GmeContacts/User Interface/View/GmeContactsViewController.swift

@ -52,8 +52,8 @@ class GmeContactsViewController: UIViewController {
if self.presentingViewController == nil {
self.navigationItem.leftBarButtonItem = nil
}
let image = UIImage.init(named: "branch")
self.tabBarItem = UITabBarItem(title: "branch_text".localized(), image: image, selectedImage: UIImage(named: "branch_selected"))
// let image = UIImage.init(named: "branch")
// self.tabBarItem = UITabBarItem(title: "branch_text".localized(), image: image, selectedImage: UIImage(named: "branch_selected"))
}
// MARK: IBActions

4
GME Remit/Modules/Profile/ProfileViewController.swift

@ -37,8 +37,8 @@ class ProfileViewController: UIViewController {
self.setupNormalNavigation()
self.navigationItem.title = StringConstants().profileText
show()
let image = UIImage.init(named: "profile")
self.tabBarItem = UITabBarItem(title: "profile_text".localized(), image: image, selectedImage: UIImage(named: "profile_selected"))
// let image = UIImage.init(named: "profile")
// self.tabBarItem = UITabBarItem(title: "profile_text".localized(), image: image, selectedImage: UIImage(named: "profile_selected"))
}
override func viewWillDisappear(_ animated: Bool) {

10
GME Remit/Modules/RecipientModules/Recipients/User Interface/View/RecipientsViewController.swift

@ -48,11 +48,11 @@ class RecipientsViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.navigationItem.title = (self.parentType == .sendmoney) ? "recipient_listing_title_text".localized() : "recipient_text".localized()
let image = UIImage.init(named: "send_money_tab")
self.tabBarItem = UITabBarItem(
title: "send_money_text".localized(),
image: image, selectedImage: UIImage(named: "send_money_selected")
)
// let image = UIImage.init(named: "send_money_tab")
// self.tabBarItem = UITabBarItem(
// title: "send_money_text".localized(),
// image: image, selectedImage: UIImage(named: "send_money_selected")
// )
setupNormalNavigation()
configureLanguage()
}

Loading…
Cancel
Save