Ver Fonte

Merge pull request #461 from OzancanKaratas/master

Info.plist translations
bjoern há 5 anos atrás
pai
commit
27f14b1cf9

+ 4 - 4
deltachat-ios/Info.plist

@@ -39,13 +39,13 @@
 	<key>LSSupportsOpeningDocumentsInPlace</key>
 	<true/>
 	<key>NSCameraUsageDescription</key>
-	<string>Allowing access to the camera lets you take photos and videos.</string>
+	<string>This is used to take photos and videos or scan QR codes.</string>
 	<key>NSContactsUsageDescription</key>
-	<string>Allowing access to your address book lets you chat with contacts from your device</string>
+	<string>This is used to find your contacts who using Delta Chat.</string>
 	<key>NSMicrophoneUsageDescription</key>
-	<string>Allowing access to the microphone lets you record audio.</string>
+	<string>This is used to send your voice.</string>
 	<key>NSPhotoLibraryUsageDescription</key>
-	<string>Allowing access to the photo library allows you to upload images from it.</string>
+	<string>This is used to share your photos and videos or set up a profile picture.</string>
 	<key>UIBackgroundModes</key>
 	<array>
 		<string>fetch</string>

+ 4 - 6
deltachat-ios/en.lproj/InfoPlist.strings

@@ -1,6 +1,4 @@
-"Privacy - Camera Usage Description" = "Allowing access to the camera lets you take photos and videos.";
-"Privacy - Contacts Usage Description" = "Allowing access to your address book lets you chat with contacts from your device.";
-"Privacy - Microphone Usage Description" = "Allowing access to the microphone lets you record audio.";
-"Privacy - Photo Library Usage Description" = "Allowing access to the photo library allows you to upload images from it.";
-"Privacy - Microphone Usage Description" = "Allowing access to the microphone lets you record audio.";
-"Privacy - Photo Library Usage Description" = "Allowing access to the photo library allows you to upload images from it.";
+NSCameraUsageDescription = "Allowing access to the camera lets you take photos and videos.";
+NSContactsUsageDescription = "Allowing access to your address book lets you chat with contacts from your device.";
+NSMicrophoneUsageDescription = "Allowing access to the microphone lets you record audio.";
+NSPhotoLibraryUsageDescription = "Allowing access to the photo library allows you to upload images from it.";

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

@@ -618,9 +618,5 @@
 "a11y_remove_account_btn_label" = "Remove account";
 "a11y_message_context_menu_btn_label" = "Message actions";
 "a11y_background_preview_label" = "Background preview";
-
-// Translators: These strings are only used on iOS
-
 "import_contacts" = "Import device contacts";
-"import_contacts_message" = "To chat with contacts from your device open the settings menu and enable the Contacts option";
-"no_account_setup" = "No account set up";
+"import_contacts_message" = "To chat with contacts from your device open Settings and enable Contacts.";

+ 0 - 4
deltachat-ios/es.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "Al permitir el acceso a la cámara podrás tomar fotos y videos.";
-"Privacy - Contacts Usage Description" = "Al permitir acceder a tu libreta de direcciones podrás chatear con los contactos de tu dispositivo.";
-"Privacy - Microphone Usage Description" = "Al permitir el acceso al micrófono podrás grabar audio.";
-"Privacy - Photo Library Usage Description" = "Al permitir el acceso a la galería de fotos podrás subir tus imágenes desde allí.";

+ 0 - 4
deltachat-ios/eu.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "Kamera atzitzeko baimena emateak argazkiak eta bideoak ateratzea ahalbidetzen dizu.";
-"Privacy - Contacts Usage Description" = "Kontaktuen liburua atzitzeko baimena emateak zure gailuko kontaktuekin txateatzea ahalbidetzen dizu.";
-"Privacy - Microphone Usage Description" = "Mikrofonoa  atzitzeko baimena emateak audioa grabatzea ahalbidetzen dizu.";
-"Privacy - Photo Library Usage Description" = "Argazkien bilduma atzitzeko baimena emateak bertatik argazkiak igotzea ahalbidetzen dizu.";

+ 0 - 4
deltachat-ios/gl.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "Conceder acceso a cámara permíteche tomar fotos e vídeos.";
-"Privacy - Contacts Usage Description" = "Permitir o acceso a libreta de enderezos permíteche conversar con contactos do dispositivo.";
-"Privacy - Microphone Usage Description" = "Permitindo o acceso ao micrófono poderás gravar audio.";
-"Privacy - Photo Library Usage Description" = "Permitindo o acceso a galería de fotos poderás subir imaxes desde ela.";

+ 0 - 4
deltachat-ios/nl.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "Geef Delta Chat toegang tot je camera om foto\'s en video\'s te maken.";
-"Privacy - Contacts Usage Description" = "Geef Delta Chat toegang tot je adresboek om gesprekken te voeren met contactpersonen.";
-"Privacy - Microphone Usage Description" = "Geet Delta Chat toegang tot je microfoon om audio op te nemen.";
-"Privacy - Photo Library Usage Description" = "Geef Delta Chat toegang tot je foto\'s om afbeeldingen te versturen.";

+ 0 - 4
deltachat-ios/ru.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "Предоставление доступа к камере позволяет снимать фотографии и видео.";
-"Privacy - Contacts Usage Description" = "Предоставление доступа к адресной книге позволяет общаться с имеющимися на устройстве контактами.";
-"Privacy - Microphone Usage Description" = "Предоставление доступа к микрофону позволяет записывать звук.";
-"Privacy - Photo Library Usage Description" = "Предоставление доступа к галерее фотографий позволяет загружать изображения из неё.";

+ 0 - 4
deltachat-ios/sq.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "Lejimi i përdorimi të kamerës ju bën të mundur të bëni foto dhe video.";
-"Privacy - Contacts Usage Description" = "Lejimi i përdorimi të librit tuaj të adresave kamerës ju bën të mundur të bisedoni me kontakte prej pajisjes tuaj.";
-"Privacy - Microphone Usage Description" = "Lejimi i përdorimi të mikrofonit ju bën të mundur të bëni incizoni audio.";
-"Privacy - Photo Library Usage Description" = "Lejimi i përdorimi të fototekës tuaj ju bën të mundur të ngarkoni figura prej saj.";

+ 0 - 4
deltachat-ios/tr.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "Kameraya erişime izin vermek, fotoğraflar ve videolar çekmenize izin verir.";
-"Privacy - Contacts Usage Description" = "Adres defterinize erişime izin vermek, aygıtınızdan gelen kişilerle sohbet etmenize izin verir.";
-"Privacy - Microphone Usage Description" = "Mikrofona erişime izin vermek, ses kaydetmenize izin verir.";
-"Privacy - Photo Library Usage Description" = "Fotoğraf kitaplığına erişime izin vermek, ondan gelen görselleri karşıya yüklemenize izin verir.";

+ 0 - 4
deltachat-ios/zh-Hant.lproj/InfoPlist.strings

@@ -1,4 +0,0 @@
-"Privacy - Camera Usage Description" = "允许访问相机可让您拍摄照片和视频。";
-"Privacy - Contacts Usage Description" = "允许访问您的地址簿可让您与设备上的联系人聊天。";
-"Privacy - Microphone Usage Description" = "允许使用麦克风可让您录制音频。";
-"Privacy - Photo Library Usage Description" = "允许访问照片库可让您从中上传图像。";

+ 2 - 2
tools/convertTranslations.js

@@ -161,8 +161,8 @@ function toInfoPlistStrings(lines) {
         if (!key.startsWith("INFOPLIST.")) {
           continue;
         }
-        key = key.replace('INFOPLIST.', '').replace(/\./gi, ' ').replace(/\_/gi, '-');
-        out += `"${key}" = "${line[1]}";\n`;
+        key = key.replace('INFOPLIST.', '');
+        out += `${key} = "${line[1]}";\n`;
       }
     }
     return out;

+ 5 - 7
tools/untranslated.xml

@@ -3,11 +3,9 @@
 
     <!-- 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 the settings menu and enable the Contacts option</string>
-    <string name="no_account_setup">No account set up</string>
-    <!-- info plist keys need to pre prefixed with INFOPLIST., spaces need to be replaced with dots and dashes need to replaced with underscores -->
-    <string name="INFOPLIST.Privacy._.Camera.Usage.Description">Allowing access to the camera lets you take photos and videos.</string>
-    <string name="INFOPLIST.Privacy._.Contacts.Usage.Description">Allowing access to your address book lets you chat with contacts from your device.</string>
-    <string name="INFOPLIST.Privacy.-.Microphone.Usage.Description">Allowing access to the microphone lets you record audio.</string>
-    <string name="INFOPLIST.Privacy.-.Photo.Library.Usage.Description">Allowing access to the photo library allows you to upload images from it.</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>