Procházet zdrojové kódy

remove INFOPLIST.NS* from untransated.xml, check forInfoPlist_* prefix on converting translations

B. Petersen před 5 roky
rodič
revize
1325615b44
2 změnil soubory, kde provedl 3 přidání a 7 odebrání
  1. 3 3
      tools/convertTranslations.js
  2. 0 4
      tools/untranslated.xml

+ 3 - 3
tools/convertTranslations.js

@@ -158,10 +158,10 @@ function toInfoPlistStrings(lines) {
         continue;
       } else {
         let key = line[0];
-        if (!key.startsWith("INFOPLIST.")) {
+        if (!key.startsWith("InfoPlist_")) {
           continue;
         }
-        key = key.replace('INFOPLIST.', '');
+        key = key.replace('InfoPlist_', '');
         out += `${key} = "${line[1]}";\n`;
       }
     }
@@ -183,7 +183,7 @@ function toLocalizableStrings(lines) {
               out += '// ' + line;
     } else {
       let key = line[0];
-      if (key.startsWith("INFOPLIST.")) {
+      if (key.startsWith("InfoPlist_")) {
         continue;
       }
       out += `"${key}" = "${line[1]}";`;

+ 0 - 4
tools/untranslated.xml

@@ -4,8 +4,4 @@
     <!-- 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="INFOPLIST.NSCameraUsageDescription">This is used to take photos and videos or scan QR codes.</string>
-    <string name="INFOPLIST.NSContactsUsageDescription">This is used to find your contacts who using Delta Chat.</string>
-    <string name="INFOPLIST.NSMicrophoneUsageDescription">This is used to send your voice.</string>
-    <string name="INFOPLIST.NSPhotoLibraryUsageDescription">This is used to share your photos and videos or set up a profile picture.</string>
 </resources>