Ver código fonte

Merge pull request #1694 from deltachat/update-translation

Update translations
cyBerta 2 anos atrás
pai
commit
1f73589c8b

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

@@ -44,7 +44,7 @@ class WebxdcSelector: UIViewController {
 
     private lazy var emptyStateView: EmptyStateLabel = {
         let label = EmptyStateLabel()
-        label.text = String.localized("webxdc_empty_hint")
+        label.text = String.localized("webxdc_selector_empty_hint")
         label.isHidden = true
         return label
     }()

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

@@ -236,7 +236,7 @@ public class ShortcutManager {
                  img.src = "data:image/png;base64,\(shareIconBase64)";
                  img.classList.add("iconImage");
                  div.appendChild(img);
-                 var node = document.createTextNode("\(String.localized("shortcut_share_btn"))");
+                 var node = document.createTextNode("\(String.localized("shortcut_step1_tap_share_btn").replacingOccurrences(of: "\"", with: " - "))");
                  div.appendChild(node);
                  document.body.appendChild(div);
 
@@ -246,7 +246,7 @@ public class ShortcutManager {
                  img.src = "data:image/png;base64,\(addToHomeIconBase64)";
                  img.classList.add("iconImage");
                  div.appendChild(img);
-                 var node = document.createTextNode("\(String.localized("shortcut_add_to_home_description"))");
+                 var node = document.createTextNode("\(String.localized("shortcut_step2_tap_add_to_home_screen").replacingOccurrences(of: "\"", with: " - "))");
                  div.appendChild(node);
 
                  document.body.appendChild(div);

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

@@ -987,8 +987,5 @@
 // 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 🚀";
 
-"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.";
 "connectivity_low_data_mode" = "Disabled by system's \"Low Data Mode\".";
 "connectivity_low_power_mode" = "Disabled by system's \"Low Power Mode\".";

+ 0 - 3
scripts/untranslated.xml

@@ -2,9 +2,6 @@
 <resources>
     <!-- iOS specific untranslated strings -->
     <string name ="a11y_connectivity_hint">Double tap to view connectivity details.</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>
     <string name="connectivity_low_data_mode">Disabled by system's \"Low Data Mode\".</string>
     <string name="connectivity_low_power_mode">Disabled by system's \"Low Power Mode\".</string>
 </resources>