Browse Source

Update localization keys (#1567)

* update some localization keys

* empty untranslated.xml, all of these strings will be translated
cyBerta 3 years ago
parent
commit
6d221cac6a

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

@@ -2188,7 +2188,7 @@ extension ChatViewController: QLPreviewControllerDelegate {
 extension ChatViewController: AudioControllerDelegate {
     func onAudioPlayFailed() {
         let alert = UIAlertController(title: String.localized("error"),
-                                      message: String.localized("cannot_play_unsupported_file_type"),
+                                      message: String.localized("cannot_play_audio_file"),
                                       preferredStyle: .safeActionSheet)
         alert.addAction(UIAlertAction(title: String.localized("ok"), style: .default, handler: nil))
         self.present(alert, animated: true, completion: nil)

+ 3 - 3
deltachat-ios/Controller/NewChatViewController.swift

@@ -167,7 +167,7 @@ class NewChatViewController: UITableViewController {
             } else {
                 let cell = tableView.dequeueReusableCell(withIdentifier: "actionCell", for: indexPath)
                 if let actionCell = cell as? ActionCell {
-                    actionCell.actionTitle = String.localized("import_contacts")
+                    actionCell.actionTitle = String.localized("import_device_contacts")
                 }
                 return cell
             }
@@ -356,8 +356,8 @@ extension NewChatViewController: ContactListDelegate {
 
     private func showSettingsAlert() {
         let alert = UIAlertController(
-            title: String.localized("import_contacts"),
-            message: String.localized("import_contacts_message"),
+            title: String.localized("import_device_contacts"),
+            message: String.localized("import_device_contacts_hint"),
             preferredStyle: .alert
         )
         alert.addAction(UIAlertAction(title: String.localized("menu_settings"), style: .default) { _ in

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

@@ -875,8 +875,3 @@
 "update_1_28_ios_extra_line" = "… and you can select a wallpaper at \"Settings / Background\" now :)";
 "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 🚀";
 
-
-"import_contacts" = "Import device contacts";
-"import_contacts_message" = "To chat with contacts from your device open Settings and enable Contacts.";
-"cannot_play_unsupported_file_type" = "The audio file cannot be played.";
-

+ 0 - 18
scripts/untranslated.xml

@@ -1,22 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
-
     <!-- iOS specific untranslated strings -->
-    <string name="import_contacts">Import device contacts</string>
-    <string name="import_contacts_message">To chat with contacts from your device open Settings and enable Contacts.</string>
-    <string name="stop_sharing_location">Stop sharing location</string>
-    <string name="a11y_voice_message_hint_ios">After recording double-tap to send. To discard the recording scrub left-right with two fingers.</string>
-    <string name="login_error_no_internet_connection">No internet connection, can\'t log in to your server.</string>
-    <string name="share_account_not_configured">Account is not configured.</string>
-    <string name="cannot_play_unsupported_file_type">The audio file cannot be played.</string>
-    
-    <string name="perm_ios_explain_access_to_camera_denied">To take photos, capture videos or use the QR-Code scanner, open the system settings and enable \"Camera\".</string>
-    <string name="open_settings">Open Settings</string>
-    <string name="disabled_in_dc">Disabled in Delta Chat</string>
-    <string name="disabled_in_system_settings">Disabled in system settings</string>
-    <string name="bg_app_refresh_disabled">\"Background App Refresh\" disabled in system settings</string>
-    <string name="delayed">Delayed</string>
-    <string name="notifications_avg_minutes">On average every %1$d minutes</string>
-    <string name="notifications_avg_hours">On average every %1$d hours</string>
-    <string name="last_check_at">Checked at %1$s</string>
 </resources>