Explorar el Código

use new webxdc strings (#1690)

* use new webxdc strings

* remove old 'Apps' string from untranslated.xml

* use the term 'Private App' also somewhere in full view (not otally neccessary, but there is just the room)
bjoern hace 2 años
padre
commit
6658f4c769

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -1343,7 +1343,7 @@ class ChatViewController: UITableViewController {
         let galleryAction = PhotoPickerAlertAction(title: String.localized("gallery"), style: .default, handler: galleryButtonPressed(_:))
         let cameraAction = PhotoPickerAlertAction(title: String.localized("camera"), style: .default, handler: cameraButtonPressed(_:))
         let documentAction = UIAlertAction(title: String.localized("files"), style: .default, handler: documentActionPressed(_:))
-        let webxdcAction = UIAlertAction(title: String.localized("webxdcs"), style: .default, handler: webxdcButtonPressed(_:))
+        let webxdcAction = UIAlertAction(title: String.localized("webxdc_apps"), style: .default, handler: webxdcButtonPressed(_:))
         let voiceMessageAction = UIAlertAction(title: String.localized("voice_message"), style: .default, handler: voiceMessageButtonPressed(_:))
         let isLocationStreaming = dcContext.isSendingLocationsToChat(chatId: chatId)
         let locationStreamingAction = UIAlertAction(title: isLocationStreaming ? String.localized("stop_sharing_location") : String.localized("location"),

+ 1 - 1
deltachat-ios/Chat/Views/FileView.swift

@@ -124,7 +124,7 @@ public class FileView: UIView {
         fileTitle.font = UIFont.preferredBoldFont(for: .body)
         fileSubtitle.font = UIFont.preferredFont(forTextStyle: .body)
         fileTitle.text = document.isEmpty ? name : "\(document) – \(name)"
-        fileSubtitle.text = summary.isEmpty ? "Webxdc" : summary
+        fileSubtitle.text = summary.isEmpty ? String.localized("webxdc_app") : summary
     }
 
     private func configureFile(message: DcMsg) {

+ 1 - 1
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -79,7 +79,7 @@ class ContactDetailViewController: UITableViewController {
 
     private lazy var documentsCell: UITableViewCell = {
         let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
-        cell.textLabel?.text = String.localized("files")
+        cell.textLabel?.text = String.localized("files_and_webxdx_apps")
         cell.accessoryType = .disclosureIndicator
         if viewModel.chatId == 0 {
             cell.isUserInteractionEnabled = false

+ 1 - 1
deltachat-ios/Controller/DocumentGalleryController.swift

@@ -60,7 +60,7 @@ class DocumentGalleryController: UIViewController {
         self.fileMessageIds = fileMessageIds
         self.chatId = chatId
         super.init(nibName: nil, bundle: nil)
-        self.title = String.localized("files")
+        self.title = String.localized("files_and_webxdx_apps")
     }
 
     required init?(coder: NSCoder) {

+ 1 - 1
deltachat-ios/Controller/GroupChatDetailViewController.swift

@@ -134,7 +134,7 @@ class GroupChatDetailViewController: UIViewController {
 
     private lazy var documentsCell: UITableViewCell = {
         let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
-        cell.textLabel?.text = String.localized("files")
+        cell.textLabel?.text = String.localized("files_and_webxdx_apps")
         cell.accessoryType = .disclosureIndicator
         return cell
     }()

+ 1 - 1
deltachat-ios/Controller/WebxdcSelector.swift

@@ -87,7 +87,7 @@ class WebxdcSelector: UIViewController {
     override func viewDidLoad() {
         super.viewDidLoad()
         setupSubviews()
-        title = String.localized("webxdcs")
+        title = String.localized("webxdc_apps")
         navigationItem.setLeftBarButton(leftBarBtn, animated: false)
         navigationItem.setRightBarButton(rightBarBtn, animated: false)
         if mediaMessageIds.isEmpty {

+ 1 - 1
deltachat-ios/Controller/WebxdcViewController.swift

@@ -276,7 +276,7 @@ class WebxdcViewController: WebViewViewController {
     }
 
     @objc private func moreButtonPressed() {
-        let alert = UIAlertController(title: webxdcName,
+        let alert = UIAlertController(title: webxdcName + " – " + String.localized("webxdc_app"),
                                       message: nil,
                                       preferredStyle: .safeActionSheet)
         let addToHomescreenAction = UIAlertAction(title: String.localized("add_to_home_screen"), style: .default, handler: addToHomeScreen(_:))

+ 1 - 1
deltachat-ios/View/Cell/DocumentGalleryFileCell.swift

@@ -105,7 +105,7 @@ class DocumentGalleryFileCell: UITableViewCell {
         let name = dict["name"] as? String ?? "ErrName" // name should not be empty
 
         title.text = document.isEmpty ? name : "\(document) – \(name)"
-        subtitle.text = summary.isEmpty ? "Webxdc" : summary
+        subtitle.text = summary.isEmpty ? String.localized("webxdc_app") : summary
     }
 
     private func generateThumbnailFor(url: URL, placeholder: UIImage?) {

+ 0 - 1
deltachat-ios/en.lproj/Localizable.strings

@@ -982,7 +982,6 @@
 // device messages for updates
 "update_1_30" = "Faster. More stable.\n\nFor 1.30 releases, we focused on speed and reliability, fixing dozens of bugs. Check our changelogs if your favorite one is fixed: https://get.delta.chat/#changelogs 🚀";
 
-"webxdcs" = "Apps";
 "webxdc_empty_hint" = "Received or sent apps will appear here. Tap \"Files\" to select downloaded apps.";
 "shortcut_share_btn" = "Click the share button";
 "shortcut_add_to_home_description" = "Select - Add to Home Screen - to add the app to your home screen.";

+ 0 - 1
scripts/untranslated.xml

@@ -2,7 +2,6 @@
 <resources>
     <!-- iOS specific untranslated strings -->
     <string name ="a11y_connectivity_hint">Double tap to view connectivity details.</string>
-    <string name ="webxdcs">Apps</string>
     <string name ="webxdc_empty_hint">Received or sent apps will appear here. Tap \"Files\" to select downloaded apps.</string>
     <string name ="shortcut_share_btn">Click the share button</string>
     <string name ="shortcut_add_to_home_description">Select - Add to Home Screen - to add the app to your home screen.</string>