Skip to content
Snippets Groups Projects
Commit 3a52073e authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

iOS: fix translations

Change-Id: I933d59474e674c652c3d23ccfb10151a2136aed3
parent 48b9c4bb
No related branches found
No related tags found
No related merge requests found
......@@ -161,16 +161,14 @@ class ConversationViewController: UIViewController,
}
@objc func imageTapped() {
let alert = UIAlertController.init(title: nil,
message: nil,
preferredStyle: .alert)
let pictureAction = UIAlertAction(title: "Upload photo or movie", style: UIAlertAction.Style.default) {[weak self] _ in
let pictureAction = UIAlertAction(title: L10n.Alerts.uploadPhoto, style: UIAlertAction.Style.default) {[weak self] _ in
self?.checkPhotoLibraryPermission()
}
let recordVideoAction = UIAlertAction(title: "Record a video message", style: UIAlertAction.Style.default) {[weak self] _ in
let recordVideoAction = UIAlertAction(title: L10n.Alerts.recordVideoMessage, style: UIAlertAction.Style.default) {[weak self] _ in
if AVCaptureDevice.authorizationStatus(for: AVMediaType.audio) == AVAuthorizationStatus.authorized {
if AVCaptureDevice.authorizationStatus(for: AVMediaType.video) == AVAuthorizationStatus.authorized {
self?.viewModel.recordVideoFile()
......@@ -204,7 +202,7 @@ class ConversationViewController: UIViewController,
}
}
let recordAudioAction = UIAlertAction(title: "Record an audio message", style: UIAlertAction.Style.default) { [weak self] _ in
let recordAudioAction = UIAlertAction(title: L10n.Alerts.recordAudioMessage, style: UIAlertAction.Style.default) { [weak self] _ in
if AVCaptureDevice.authorizationStatus(for: AVMediaType.audio) == AVAuthorizationStatus.authorized {
self?.viewModel.recordAudioFile()
} else {
......@@ -218,7 +216,7 @@ class ConversationViewController: UIViewController,
}
}
let documentsAction = UIAlertAction(title: "Upload file", style: UIAlertAction.Style.default) { _ in
let documentsAction = UIAlertAction(title: L10n.Alerts.uploadFile, style: UIAlertAction.Style.default) { _ in
self.importDocument()
}
......
......@@ -133,6 +133,10 @@
"alerts.noMediaPermissionsTitle" = "Media permission not granted";
"alerts.noLibraryPermissionsTitle" = "Access to photo library not granted";
"alerts.errorWrongCredentials" = "Cannot connect to provided account manager. Please check your credentials";
"alerts.recordVideoMessage" = "Record a video message";
"alerts.recordAudioMessage" = "Record an audio message";
"alerts.uploadFile" = "Upload file";
"alerts.uploadPhoto" = "Upload photo or movie";
//Actions
"actions.blockAction" = "Block";
......@@ -162,7 +166,7 @@
"accountPage.usernameNotRegistered" = "username: not registered";
"accountPage.credentialsHeader" = "Account Details";
"accountPage.enableProxy" = "Enable Proxy";
"accountPage.blockedContacts" = "Block List";
"accountPage.blockedContacts" = "Blocked contacts";
"accountPage.unblockContact" = "UNBLOCK";
"accountPage.proxyAddressAlert" = "Provide proxy address";
"accountPage.enableProxy" = "Enable Proxy";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment