Просмотр исходного кода

use new keys and strings for webxdc shortcut PWA page

cyberta 2 лет назад
Родитель
Сommit
e767b49206

+ 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"))");
                  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);

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

@@ -987,8 +987,8 @@
 // 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.";
+"webxdc_selector_empty_hint" = "Private apps received or sent in any chat will appear here. \"Files\" shows private apps just downloaded.";
+"shortcut_step1_tap_share_btn" = "Click the share button";
+"shortcut_step2_tap_add_to_home_screen" = "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\".";

+ 3 - 3
scripts/untranslated.xml

@@ -2,9 +2,9 @@
 <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 ="webxdc_selector_empty_hint">Private apps received or sent in any chat will appear here. \"Files\" shows private apps just downloaded.</string>
+    <string name ="shortcut_step1_tap_share_btn">Click the share button</string>
+    <string name ="shortcut_step2_tap_add_to_home_screen">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>