Skip to content

Commit

Permalink
fix: handle permission error when picking files
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Aug 24, 2023
1 parent 0f52e98 commit 5129bc9
Show file tree
Hide file tree
Showing 33 changed files with 191 additions and 61 deletions.
6 changes: 5 additions & 1 deletion assets/i18n/_missing_translations_bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,14 @@
"time": "Time:"
},
"localNetworkUnauthorized": {
"title": "No permission",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend can't find other devices without having the permission to scan the local network. Please grant this permission in the settings.",
"gotoSettings": "Settings"
},
"noPermission": {
"title": "No permission",
"content": "You have not granted the necessary permissions. Please grant them in the settings."
},
"notAvailableOnPlatform": {
"title": "Not available",
"content": "This feature is only available on:"
Expand Down
3 changes: 3 additions & 0 deletions assets/i18n/_unused_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"dialogs": {
"messageInput": {
"multiline": "Multiline"
},
"noPermission": {
"content": "You have not granted the necessary permissions. Please grant them in the settings."
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"original": "Original: {original}"
},
"localNetworkUnauthorized": {
"title": "No permission",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend can't find other devices without having the permission to scan the local network. Please grant this permission in the settings.",
"gotoSettings": "Settings"
},
Expand All @@ -336,6 +336,10 @@
"title": "No file selected",
"content": "Please select at least one file."
},
"noPermission": {
"title": "No permission",
"content": "You have not granted the necessary permissions. Please grant them in the settings."
},
"notAvailableOnPlatform": {
"title": "Not available",
"content": "This feature is only available on:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_ar.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"original": "أصلي: {original}"
},
"localNetworkUnauthorized": {
"title": "بدون إذن",
"title": "@:dialogs.noPermission.title",
"description": "لا يمكن ل LocalSend العثور على الأجهزة الأخرى بدون الإذن بفحص الشبكة المحلية. يرجى منح هذا الإذن في الإعدادات.",
"gotoSettings": "الإعدادات"
},
Expand All @@ -336,6 +336,10 @@
"title": "لم يتم اختيار اي ملف",
"content": "الرجاء تحديد ملف واحد على الأقل."
},
"noPermission": {
"title": "بدون إذن",
"content": "لم تقم بمنح الأذونات اللازمة. يرجى منحها من الإعدادات."
},
"notAvailableOnPlatform": {
"title": "غير متاح",
"content": "هذه الميزة متاحة فقط على:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_ca.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"original": "Original: {original}"
},
"localNetworkUnauthorized": {
"title": "Sense permisos",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend no pot trobar altres dispositius sense tenir el permís per escanejar la xarxa local. Concediu aquest permís a la configuració.",
"gotoSettings": "Configuració"
},
Expand All @@ -336,6 +336,10 @@
"title": "Fitxer no seleccionat",
"content": "Si us plau, seleccioni un fitxer com a mínim."
},
"noPermission": {
"title": "Sense permisos",
"content": "No has concedit els permisos necessaris. Concediu-los a la configuració."
},
"notAvailableOnPlatform": {
"title": "No disponible",
"content": "Aquesta característica només està disponible a:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_cs.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Původní: {original}"
},
"localNetworkUnauthorized": {
"title": "Žádné oprávnění",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend nemůže najít jiná zařízení, aniž by měl oprávnění skenovat místní síť. Udělte prosím toto oprávnění v nastavení.",
"gotoSettings": "Nastavení"
},
Expand All @@ -266,6 +266,10 @@
"title": "Žádný soubor nevybrán",
"content": "Vyberte prosím alespoň jeden soubor."
},
"noPermission": {
"title": "Žádné oprávnění",
"content": "Neposkytli jste potřebná oprávnění. Prosím, udělte je v nastavení."
},
"notAvailableOnPlatform": {
"title": "Není k dispozici",
"content": "Tato funkce je dostupná pouze na:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_de.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Original: {original}"
},
"localNetworkUnauthorized": {
"title": "Keine Berechtigung",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend kann nicht auf das lokale Netzwerk zugreifen. Bitte erlaube LocalSend den Zugriff auf das lokale Netzwerk in den Einstellungen.",
"gotoSettings": "Einstellungen"
},
Expand All @@ -266,6 +266,10 @@
"title": "Keine Datei ausgewählt",
"content": "Bitte wähle mindestens eine Datei aus."
},
"noPermission": {
"title": "Keine Berechtigung",
"content": "Sie haben die erforderlichen Berechtigungen nicht gewährt. Bitte gewähren Sie sie in den Einstellungen."
},
"notAvailableOnPlatform": {
"title": "Nicht verfügbar",
"content": "Diese Funktion ist nur verfügbar auf:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_es-ES.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Original: {original}"
},
"localNetworkUnauthorized": {
"title": "Sin autorización",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend no puede encontrar otros dispositivos sin tener permiso para escanear la red local. Por favor, concede este permiso en los ajustes.",
"gotoSettings": "Ajustes"
},
Expand All @@ -266,6 +266,10 @@
"title": "Ningún fichero seleccionado",
"content": "Por favor selecciona al menos un fichero."
},
"noPermission": {
"title": "Sin autorización",
"content": "No has otorgado los permisos necesarios. Por favor, otórgalos en la configuración."
},
"notAvailableOnPlatform": {
"title": "No disponible",
"content": "Esta característica solo está disponible en:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_fa.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"original": "اصلی: {original}"
},
"localNetworkUnauthorized": {
"title": "بدون مجوز",
"title": "@:dialogs.noPermission.title",
"description": "لوکال سند نمی تواند دستگاه های دیگر را بدون داشتن مجوز اسکن شبکه محلی پیدا کند. لطفاً این مجوز را در تنظیمات به برنامه بدهید",
"gotoSettings": "تنظیمات"
},
Expand All @@ -336,6 +336,10 @@
"title": "فایلی انتخاب نشده",
"content": "لطفا حداقل یک فایل را انتخاب کنید"
},
"noPermission": {
"title": "بدون مجوز",
"content": "شما مجوزهای مورد نیاز را اعطا نکرده‌اید. لطفاً آنها را در تنظیمات مجوزدهی کنید."
},
"notAvailableOnPlatform": {
"title": "در دسترس نیست",
"content": "این ویژگی فقط در دسترس است در:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_fr-FR.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Original: {original}"
},
"localNetworkUnauthorized": {
"title": "Pas la permission",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend ne peut pas trouver d'autres appareils sans la permission de scanner votre réseau local. Veuillez autoriser cette permission à LocalSend dans les paramètres.",
"gotoSettings": "Paramètres"
},
Expand All @@ -266,6 +266,10 @@
"title": "Aucun fichier sélectionné",
"content": "Veuillez sélectionner au moins un fichier."
},
"noPermission": {
"title": "Pas la permission",
"content": "Vous n'avez pas accordé les autorisations nécessaires. Veuillez les accorder dans les paramètres."
},
"notAvailableOnPlatform": {
"title": "Non disponible",
"content": "Cette fonctionalité est disponible uniquement sur:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_hu.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Eredeti: {original}"
},
"localNetworkUnauthorized": {
"title": "Nem engedélyezett",
"title": "@:dialogs.noPermission.title",
"description": "A LocalSend nem találhat más eszközöket a helyi hálózat vizsgálatára vonatkozó engedély nélkül. Adja meg ezt az engedélyt a beállításokban.",
"gotoSettings": "Beállítások"
},
Expand All @@ -266,6 +266,10 @@
"title": "Nincs fájl kiválasztva",
"content": "Kérjük válasszon legalább egy fájlt."
},
"noPermission": {
"title": "Nem engedélyezett",
"content": "Nem adtál megfelelő engedélyeket. Kérlek engedélyezd őket a beállításokban."
},
"notAvailableOnPlatform": {
"title": "Nem érhető el",
"content": "Ez a funkció csak itt érhető el:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_in.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"original": "Asli: {original}"
},
"localNetworkUnauthorized": {
"title": "Tidak ada izin",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend tidak dapat menemukan perangkat lain tanpa izin untuk memindai jaringan lokal. Mohon berikan izin ini di pengaturan.",
"gotoSettings": "Pengaturan"
},
Expand All @@ -336,6 +336,10 @@
"title": "Tidak ada file yang dipilih",
"content": "Pilih setidaknya satu file."
},
"noPermission": {
"title": "Tidak ada izin",
"content": "Anda belum memberikan izin yang diperlukan. Harap berikan izin tersebut di pengaturan."
},
"notAvailableOnPlatform": {
"title": "Tidak tersedia",
"content": "Fitur ini hanya tersedia di:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_it.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Originale: {original}"
},
"localNetworkUnauthorized": {
"title": "Nessun permesso",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend non può trovare altri dispositivi senza avere il permesso di eseguire la scansione della rete locale. Si prega di concedere questo permesso nelle impostazioni.",
"gotoSettings": "Impostazioni"
},
Expand All @@ -266,6 +266,10 @@
"title": "Nessun file selezionato",
"content": "Seleziona almeno un file."
},
"noPermission": {
"title": "Nessun permesso",
"content": "Non hai concesso le autorizzazioni necessarie. Per favore, concedile nelle impostazioni."
},
"notAvailableOnPlatform": {
"title": "Non disponibile",
"content": "Questa funzione è disponibile solo su:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_iw.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "מקורי: {original}"
},
"localNetworkUnauthorized": {
"title": "אין הרשאה",
"title": "@:dialogs.noPermission.title",
"description": "ל־LocalSend אין אפשרות למצוא מכשירים אחרים ללא הרשאה לסריקת הרשת המקומית. בבקשה הענק את ההרשאה הזו בהגדרות.",
"gotoSettings": "הגדרות"
},
Expand All @@ -266,6 +266,10 @@
"title": "אף קובץ לא נבחר",
"content": "אנא בחר קובץ אחד לפחות."
},
"noPermission": {
"title": "אין הרשאה",
"content": "אתה לא נתת הרשאות הנדרשות. אנא הענק את הרשאות בהגדרות."
},
"notAvailableOnPlatform": {
"title": "לא זמין",
"content": "תכונה זו זמינה רק במערכות הבאות:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_ja.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "元の名前: {original}"
},
"localNetworkUnauthorized": {
"title": "権限がありません",
"title": "@:dialogs.noPermission.title",
"description": "ローカルネットワークをスキャンする権限がないと、LocalSendは他のデバイスを見つけることができません。設定でこの権限を付与してください。",
"gotoSettings": "設定"
},
Expand All @@ -266,6 +266,10 @@
"title": "ファイルが選択されていません",
"content": "少なくとも1つのファイルを選択してください。"
},
"noPermission": {
"title": "権限がありません",
"content": "必要な権限を許可していません。設定で許可してください。"
},
"notAvailableOnPlatform": {
"title": "利用不可",
"content": "この機能は次のプラットフォームでのみ利用できます:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_ko.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "기존 이름: {original}"
},
"localNetworkUnauthorized": {
"title": "권한 없음",
"title": "@:dialogs.noPermission.title",
"description": "로컬 네트워크를 스캔할 권한이 없어 LocalSend가 다른 기기를 찾을 수 없습니다. 설정에서 권한을 부여해주세요.",
"gotoSettings": "설정"
},
Expand All @@ -266,6 +266,10 @@
"title": "파일이 선택되지 않았습니다",
"content": "적어도 하나 이상의 파일을 선택해주세요"
},
"noPermission": {
"title": "권한 없음",
"content": "필요한 권한을 허용하지 않았습니다. 설정에서 허용해주세요."
},
"notAvailableOnPlatform": {
"title": "사용 불가",
"content": "이 기능은 다음 플랫폼에서만 사용 가능합니다:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_ne.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"original": "मूल: {original}"
},
"localNetworkUnauthorized": {
"title": "अनुमति नहीं है",
"title": "@:dialogs.noPermission.title",
"description": " LocalSend बिना निजी नेटवर्क स्कैन की अनुमति के बिना अन्य उपकरणों को नहीं खोज सकता है। कृपया सेटिंग्स में इस अनुमति को प्रदान करें।",
"gotoSettings": "सेटिंग्स"
},
Expand All @@ -336,6 +336,10 @@
"title": "कुनै फाइल चयन गरिएको छैन",
"content": "कृपया कम्तिमा एउटा फाइल चयन गर्नुहोस्।"
},
"noPermission": {
"title": "अनुमति नहीं है",
"content": "तपाईंले आवश्यक अनुमतिहरूको प्रदान गर्न दिएको छैन। कृपया सेटिङहरूमा तिनीहरूलाई प्रदान गर्नुहोस्।"
},
"notAvailableOnPlatform": {
"title": "उपलब्ध नहीं है",
"content": "यह सुविधा केवल निम्नलिखित में उपलब्ध है:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_nl.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Origineel: {original}"
},
"localNetworkUnauthorized": {
"title": "Geen permissie",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend kan geen andere apparaten op uw netwerk vinden zonder de juiste permissies voor netwerktoegang te hebben verkregen. Stel deze correct in in het instellingen menu.",
"gotoSettings": "Instellingen"
},
Expand All @@ -266,6 +266,10 @@
"title": "Geen bestand geselecteerd",
"content": "Selecteer minstens één bestand."
},
"noPermission": {
"title": "Geen permissie",
"content": "U heeft de benodigde rechten niet verleend. Verleen deze alstublieft in de instellingen."
},
"notAvailableOnPlatform": {
"title": "Niet beschikbaar",
"content": "Deze functie is enkel beschikbaar op:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_pl.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"original": "Oryginalny: {original}"
},
"localNetworkUnauthorized": {
"title": "Brak uprawnień",
"title": "@:dialogs.noPermission.title",
"description": "LocalSend nie może znaleźć innych urządzeń bez uprawnienia do skanowania sieci lokalnej. Udziel tego uprawnienia w ustawieniach.",
"gotoSettings": "Ustawienia"
},
Expand All @@ -266,6 +266,10 @@
"title": "Nie wybrano pliku",
"content": "Proszę wybierz jeden plik."
},
"noPermission": {
"title": "Brak uprawnień",
"content": "Nie udzieliłeś wymaganych uprawnień. Proszę udziel ich w ustawieniach."
},
"notAvailableOnPlatform": {
"title": "Niedostępne",
"content": "Ta funkcja jest dostępna tylko na:"
Expand Down
6 changes: 5 additions & 1 deletion assets/i18n/strings_pt-BR.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
"original": "Original: {original}"
},
"localNetworkUnauthorized": {
"title": "Sem permissão",
"title": "@:dialogs.noPermission.title",
"description": "O LocalSend não consegue encontrar outros dispositivos sem ter a permissão para escanear a rede local. Por favor, conceda esta permissão nas configurações.",
"gotoSettings": "Configurações"
},
Expand All @@ -326,6 +326,10 @@
"title": "Nenhum arquivo selecionado",
"content": "Por favor, selecione ao menos um arquivo."
},
"noPermission": {
"title": "Sem permissão",
"content": "Você não concedeu as permissões necessárias. Por favor, conceda-as nas configurações."
},
"notAvailableOnPlatform": {
"title": "Indisponível",
"content": "Essa função está disponível somente no: "
Expand Down
Loading

0 comments on commit 5129bc9

Please sign in to comment.