iOS: Fix sending plain text

This commit is contained in:
Leon Böttger committed 2025-08-18 13:46:26 +02:00
1 parent c56c536574
commit 894af06891
3 files changed
+40 -37

No files matched your search

+34 -34
View File
@@ -3747,103 +3747,103 @@
"ar" : { "ar" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "حمل تطبيق QuickDrop من متجر Play لمشاركة الملفات مع أجهزتك." "value" : "قم بتنزيل QuickDrop من App Store أو Play Store لمشاركة الملفات مع أجهزتك."
} }
}, },
"de" : { "de" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Lade QuickDrop im Play Store herunter, um Dateien mit deinen Geräten zu teilen." "value" : "Lade QuickDrop im App Store oder Play Store herunter, um Dateien mit deinen Geräten zu teilen."
} }
}, },
"en" : { "en" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Download QuickDrop on the Play Store to share files with your devices." "value" : "Download QuickDrop on the App Store or the Play Store to share files with your devices."
} }
}, },
"es" : { "es" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Descarga QuickDrop en Play Store para compartir archivos con tus dispositivos." "value" : "Descarga QuickDrop en la App Store o Play Store para compartir archivos con tus dispositivos."
} }
}, },
"fr" : { "fr" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Téléchargez QuickDrop sur le Play Store pour partager des fichiers avec vos appareils." "value" : "Téléchargez QuickDrop sur l'App Store ou le Play Store pour partager des fichiers avec vos appareils."
} }
}, },
"hu" : { "hu" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Töltsd le a QuickDrop-ot a Play Áruházból, hogy fájlokat ossz meg az eszközeiddel." "value" : "Töltse le a QuickDrop alkalmazást az App Store-ból vagy a Play Store-ból, hogy fájlokat osszon meg az eszközeivel."
} }
}, },
"it" : { "it" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Scarica QuickDrop dal Play Store per condividere file con i tuoi dispositivi." "value" : "Scarica QuickDrop dall'App Store o dal Play Store per condividere file con i tuoi dispositivi."
} }
}, },
"ja" : { "ja" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "PlayストアでQuickDropをダウンロードして、デバイス間でファイルを共有しましょう。" "value" : "App Store または Play Store から QuickDrop をダウンロードして、デバイス間でファイルを共有しましょう。"
} }
}, },
"ko" : { "ko" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "기기와 파일을 공유하려면 Play 스토어에서 QuickDrop을 다운로드하세요." "value" : "앱 스토어나 플레이 스토어에서 QuickDrop을 다운로드하여 기기와 파일을 공유하세요."
} }
}, },
"nl" : { "nl" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Download QuickDrop in de Play Store om bestanden met je apparaten te delen." "value" : "Download QuickDrop in de App Store of de Play Store om bestanden met je apparaten te delen."
} }
}, },
"pt-BR" : { "pt-BR" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Baixe o QuickDrop na Play Store para compartilhar arquivos com seus dispositivos." "value" : "Baixe o QuickDrop na App Store ou na Play Store para compartilhar arquivos com seus dispositivos."
} }
}, },
"pt-PT" : { "pt-PT" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Descarregue o QuickDrop na Play Store para partilhar ficheiros com os seus dispositivos." "value" : "Descarregue o QuickDrop na App Store ou na Play Store para partilhar ficheiros com os seus dispositivos."
} }
}, },
"ro" : { "ro" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Descarcă QuickDrop din Play Store pentru a partaja fișiere cu dispozitivele tale." "value" : "Descarcă QuickDrop din App Store sau Play Store pentru a partaja fișiere cu dispozitivele tale."
} }
}, },
"ru" : { "ru" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Скачайте QuickDrop в Play Store, чтобы обмениваться файлами с вашими устройствами." "value" : "Скачайте QuickDrop в App Store или Play Store, чтобы делиться файлами с вашими устройствами."
} }
}, },
"th" : { "th" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "ดาวน์โหลด QuickDrop บน Play Store เพื่อแชร์ไฟล์กับอุปกรณ์ของคุณ" "value" : "ดาวน์โหลด QuickDrop บน App Store หรือ Play Store เพื่อแชร์ไฟล์กับอุปกรณ์ของคุณ"
} }
}, },
"uk" : { "uk" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Завантажте QuickDrop з Play Store, щоб обмінюватися файлами з вашими пристроями." "value" : "Завантажте QuickDrop з App Store або Play Store, щоб обмінюватися файлами між вашими пристроями."
} }
}, },
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "在 Play 商店下载 QuickDrop 与您的设备共享文件。" "value" : "在 App Store 或 Play Store 下载 QuickDrop,与您的设备共享文件。"
} }
} }
} }
@@ -7810,103 +7810,103 @@
"ar" : { "ar" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "جارٍ البحث عن الأجهزة..." "value" : "جارٍ البحث عن الأجهزة عبر الواي فاي..."
} }
}, },
"de" : { "de" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Suche nach Geräten..." "value" : "Suche nach Geräten im WLAN…"
} }
}, },
"en" : { "en" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Searching for devices..." "value" : "Searching for devices on Wi-Fi…"
} }
}, },
"es" : { "es" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Buscando dispositivos..." "value" : "Buscando dispositivos en Wi-Fi…"
} }
}, },
"fr" : { "fr" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Recherche des appareils..." "value" : "Recherche des appareils sur le Wi-Fi…"
} }
}, },
"hu" : { "hu" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Eszközök keresése..." "value" : "Eszközök keresése Wi-Fi-n…"
} }
}, },
"it" : { "it" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Ricerca dei dispositivi..." "value" : "Ricerca di dispositivi su Wi-Fi…"
} }
}, },
"ja" : { "ja" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "デバイスを検索中..." "value" : "Wi-Fiでデバイスを検索中…"
} }
}, },
"ko" : { "ko" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "기기 검색 중..." "value" : "Wi-Fi에서 장치를 검색 중…"
} }
}, },
"nl" : { "nl" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Zoeken naar apparaten..." "value" : "Zoeken naar apparaten op Wi-Fi…"
} }
}, },
"pt-BR" : { "pt-BR" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Procurando por dispositivos..." "value" : "Procurando dispositivos no Wi-Fi…"
} }
}, },
"pt-PT" : { "pt-PT" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "A pesquisar dispositivos..." "value" : "A procurar dispositivos na rede Wi-Fi…"
} }
}, },
"ro" : { "ro" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Căutare dispozitive..." "value" : "Căutare dispozitive prin Wi-Fi…"
} }
}, },
"ru" : { "ru" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Поиск устройств..." "value" : "Поиск устройств по Wi-Fi…"
} }
}, },
"th" : { "th" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "กำลังค้นหาอุปกรณ์..." "value" : "กำลังค้นหาอุปกรณ์บน Wi-Fi…"
} }
}, },
"uk" : { "uk" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "Пошук пристроїв..." "value" : "Пошук пристроїв у Wi-Fi…"
} }
}, },
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "正在搜索设备..." "value" : "正在通过 Wi-Fi 搜索设备…"
} }
} }
} }
+2 -2
View File
@@ -72,8 +72,8 @@ struct DeviceListView: View {
.frame(width: 10, height: 10) .frame(width: 10, height: 10)
} }
Text(attachments?.shortDescription ?? NearbyConnectionManager.shared.deviceInfo.name ?? "Unknown".localized()) LUIText(attachments?.shortDescription ?? NearbyConnectionManager.shared.deviceInfo.name ?? "Unknown".localized(), isBold: true)
.fontWeight(.bold) .lineLimit(1)
} }
.padding(.horizontal, 16) .padding(.horizontal, 16)
.padding(.vertical, 6) .padding(.vertical, 6)
+4 -1
View File
@@ -24,7 +24,10 @@ func loadAttachments(with extensionContext: NSExtensionContext?, loadedItems: @e
let item = extensionContext.inputItems[0] as! NSExtensionItem let item = extensionContext.inputItems[0] as! NSExtensionItem
if let attachments = item.attachments { if let attachments = item.attachments {
if let text = item.attributedContentText?.string, attachments.isEmpty { if let text = item.attributedContentText?.string {
log("Found text content: \(text)")
result.textToSend = text result.textToSend = text
#if os(macOS) #if os(macOS)