Browse Source

fix 'Add to Home Screen' key (#1686)

bjoern 2 năm trước cách đây
mục cha
commit
89d1d2938d

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

@@ -279,7 +279,7 @@ class WebxdcViewController: WebViewViewController {
         let alert = UIAlertController(title: webxdcName,
                                       message: nil,
                                       preferredStyle: .safeActionSheet)
-        let addToHomescreenAction = UIAlertAction(title: String.localized("add_to_home"), style: .default, handler: addToHomeScreen(_:))
+        let addToHomescreenAction = UIAlertAction(title: String.localized("add_to_home_screen"), style: .default, handler: addToHomeScreen(_:))
         alert.addAction(addToHomescreenAction)
         if sourceCodeUrl != nil {
             let sourceCodeAction = UIAlertAction(title: String.localized("source_code"), style: .default, handler: openUrl(_:))

+ 1 - 1
deltachat-ios/Helper/ShortcutManager.swift

@@ -214,7 +214,7 @@ public class ShortcutManager {
             } else {
                  var div = document.createElement('div');
                  var header = document.createElement('h2');
-                 header.append('\(String.localized("add_to_home"))');
+                 header.append('\(String.localized("add_to_home_screen"))');
                  div.appendChild(header);
                  document.body.appendChild(div);