Browse Source

string managed

pull/1/head
gme_2 6 years ago
parent
commit
5da2b85363
  1. 2
      GMERemittance/Library/ImageCroper.swift
  2. 10
      GMERemittance/Library/MultiMediaManager.swift
  3. 4
      GMERemittance/Library/WebLinks/WebLinksViewController.swift

2
GMERemittance/Library/ImageCroper.swift

@ -33,7 +33,7 @@ class ImageCroper: NSObject {
func cropImage(image: UIImage, ratio: CGFloat = 1) {
self.cropRatio = ratio
self.imageCropper = RSKImageCropViewController(image: image, cropMode: .custom)
imageCropper.chooseButton.setTitle("Done", for: .normal)
imageCropper.chooseButton.setTitle("done_text", for: .normal)
self.imageCropper.delegate = self
self.imageCropper.dataSource = self
self.presentingViewController?.present(imageCropper, animated: true, completion: nil)

10
GMERemittance/Library/MultiMediaManager.swift

@ -42,15 +42,15 @@ class MultiMediaManager: NSObject {
}
//
let alertController = UIAlertController(title: nil, message: "Gme would like to access your camera", preferredStyle: presentationStyle)
let cameraAction = UIAlertAction(title: "Camera", style: UIAlertActionStyle.default) { (action) in
let cameraAction = UIAlertAction(title: "camera_text".localized(), style: UIAlertActionStyle.default) { (action) in
self.openCamera(mode: .photo)
}
let galleryAction = UIAlertAction(title: "Gallery", style: UIAlertActionStyle.default) { (action) in
let galleryAction = UIAlertAction(title: "gallery_text".localized(), style: UIAlertActionStyle.default) { (action) in
self.showPhotoGallery(mode: mode)
}
let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)
let cancelAction = UIAlertAction(title: "cancel_text".localized(), style: .cancel, handler: nil)
alertController.addAction(cameraAction)
alertController.addAction(galleryAction)
alertController.addAction(cancelAction)
@ -77,7 +77,7 @@ class MultiMediaManager: NSObject {
if isAllowed {
openPicker()
}else {
self.presenter?.presenting().alert(message: "Camera access denied. Do you want to change the permission from settings?", okAction: {
self.presenter?.presenting().alert(message: "camera_access_denied_text", okAction: {
let url = URL(string: UIApplicationOpenSettingsURLString)!
UIApplication.shared.open(url, options: [:], completionHandler: nil)
})
@ -94,7 +94,7 @@ class MultiMediaManager: NSObject {
self.imagePicker.mediaTypes = mediaTypes
self.presentViewController(viewController: self.imagePicker, animated: true, completion: nil)
}else {
self.presenter?.presenting().alert(message: "Gallery access denied. Do you want to change the permission from settings?", okAction: {
self.presenter?.presenting().alert(message: "galery_access_denied_text".localized(), okAction: {
let url = URL(string: UIApplicationOpenSettingsURLString)!
UIApplication.shared.open(url, options: [:], completionHandler: nil)
})

4
GMERemittance/Library/WebLinks/WebLinksViewController.swift

@ -32,7 +32,7 @@ class WebLinksViewController: UIViewController {
override func viewDidLoad() {
UIApplication.shared.statusBarStyle = .lightContent
super.viewDidLoad()
let barButton = UIBarButtonItem.init(title: "Close", style: UIBarButtonItemStyle.plain, target: self, action: #selector(self.cancel))
let barButton = UIBarButtonItem.init(title: "penny_test_close_text".localized(), style: UIBarButtonItemStyle.plain, target: self, action: #selector(self.cancel))
self.navigationItem.rightBarButtonItem = barButton
webView = UIWebView(frame: self.view.frame)
webView?.delegate = self
@ -67,7 +67,7 @@ class WebLinksViewController: UIViewController {
webView?.loadRequest(request)
}
}else {
self.alert(message: "Please check your internet connection", title: "")
self.alert(message: "no_internet_connection_error".localized(), title: "")
}
}
}

Loading…
Cancel
Save