Merge dev; fix share-location and discovered-contact import/export; update docs

Merge dev (#588 share location, #436 discovered-contact import/export)
into fix/review-fixes-and-issue-batch. Conflicts: keep the node-scan
button alongside dev's import/export menu; take dev's marker label
prompt.

Share location (#588):
- Never share a missing or 0,0 radio position; hide the chat action and
  show "Your radio has no location set"
- Sanitise marker labels ('|' -> '/', newlines -> spaces) on every path
- One shared MarkerLabelDialog owning its controller/focus node, with
  keyboard submit, replacing three copies
- Map pins default to "Point of interest" again; "Share my location"
  uses the node name
- Location shares honour the send cooldown and handle send errors

Discovered-contact import/export (#436):
- Per-entry decoding with imported/skipped/invalid counts; reject keys
  that are not 32 bytes; skip in-file duplicates and the radio's own key
- Strip routing paths on import and stop exporting them; clamp future
  timestamps; enforce the discovered-contact cap; require a connection;
  2 MB file limit
- Export via in-memory XFile (fixes web); pass sharePositionOrigin for
  iPad (also GPX export and image save); macOS user-selected read-write
  entitlement for save dialogs

Docs: cover share location, import/export, node scan, TCP reconnect,
channel auto-resend options, arrival ordering, badge, password length
and image limits.

Translations for all new strings in every locale.
This commit is contained in:
zjs81 committed 2026-10-11 01:54:07 -07:00
commit 5fb67abdde
66 files changed
+3118 -168

No files matched your search

+28
View File
@@ -556,6 +556,34 @@ class MeshCoreConnector extends ChangeNotifier {
return List.unmodifiable(_discoveredContacts);
}
String exportDiscoveredContactsJson() {
return _discoveryContactStore.exportContactsJson(_discoveredContacts);
}
/// Imports an export file into this radio's discovered contacts. Throws
/// [FormatException] when the file is not a contacts list.
Future<DiscoveredContactsImportResult> importDiscoveredContactsJson(
String json,
) async {
// The store is scoped to the connected radio; importing while
// disconnected would overwrite its saved list with only the import.
if (!isConnected) return DiscoveredContactsImportResult.empty;
final result = _discoveryContactStore.importContactsJson(
json: json,
existingContacts: _discoveredContacts,
knownContactKeys: _knownContactKeys,
selfPublicKeyHex: selfPublicKeyHex,
);
if (result.imported == 0) return result;
if (_evictDiscoveredContactsEnabled) {
_trimDiscoveredContactsToLimit(_discoveredContacts);
}
await _persistDiscoveredContacts();
notifyListeners();
return result;
}
List<Channel> get channels => List.unmodifiable(_channels);
bool get isConnected => _state == MeshCoreConnectionState.connected;
bool get isLoadingContacts => _isLoadingContacts;
+41
View File
@@ -454,6 +454,8 @@
}
},
"chat_location": "Местоположение",
"chat_noRadioLocation": "Радиото ви няма зададено местоположение",
"chat_shareMyLocation": "Споделяне на моето местоположение",
"chat_sendMessageTo": "Изпрати съобщение на {contactName}",
"@chat_sendMessageTo": {
"placeholders": {
@@ -689,6 +691,7 @@
"map_shareMarkerHere": "Споделете маркер тук",
"map_pinLabel": "Етикет на пина",
"map_label": "Етикет",
"map_labelUpdateHint": "Ако използвате същия етикет като преди, маркерът ще се обнови за получателите с MeshCore Open.",
"map_pointOfInterest": "Точка на интерес",
"map_sendToContact": "Изпрати на контакт",
"map_sendToChannel": "Изпрати в канала",
@@ -2017,6 +2020,44 @@
"discoveredContacts_copyContact": "Копирай контакт в клипборда",
"discoveredContacts_deleteContact": "Изтрий контакт",
"discoveredContacts_addContact": "Добави контакт",
"discoveredContacts_export": "Експортирай откритите контакти",
"discoveredContacts_import": "Импортирай откритите контакти",
"discoveredContacts_exported": "Откритите контакти са експортирани в {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Неуспешно експортиране на откритите контакти: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Импортирани са {count} открити контакта.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Във файла за импортиране не са намерени контакти.",
"discoveredContacts_importFailed": "Неуспешно импортиране на откритите контакти: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_importInvalidFile": "Файлът не е експорт на открити контакти.",
"discoveredContacts_importSummary": "Импортирани: {imported}, пропуснати вече известни: {skipped}, нечетими записи: {invalid}.",
"discoveredContacts_importTooLarge": "Файлът за импортиране е твърде голям (максимум {maxMb} MB).",
"contactsSettings_overwriteOldestSubtitle": "Когато списъкът с контакти е пълен, най-старият неключов контакт ще бъде заменен.",
"contactsSettings_evictDiscoveredContactsTitle": "Премахване на открити контакти",
"contactsSettings_evictDiscoveredContactsSubtitle": "Когато е включено, приложението премахва най-старите открити контакти, щом списъкът с открити контакти достигне лимита си от {limit} записа.",
+41
View File
@@ -475,6 +475,8 @@
}
}
},
"chat_noRadioLocation": "Ihr Funkgerät hat keinen Standort festgelegt",
"chat_shareMyLocation": "Meinen Standort teilen",
"chat_location": "Ort",
"chat_sendMessageTo": "Nachricht an {contactName} senden",
"@chat_sendMessageTo": {
@@ -711,6 +713,7 @@
"map_shareMarkerHere": "Marker hier teilen",
"map_pinLabel": "Pin-Beschriftung",
"map_label": "Beschriftung",
"map_labelUpdateHint": "Wenn Sie denselben Namen verwenden wie zuvor, wird die Markierung bei MeshCore Open-Empfängern aktualisiert.",
"map_pointOfInterest": "Punkt von Interesse",
"map_sendToContact": "An Kontakt senden",
"map_sendToChannel": "An Kanal senden",
@@ -2157,6 +2160,44 @@
"common_deleteAll": "Alles löschen",
"discoveredContacts_deleteContactAllContent": "Sind Sie sicher, dass Sie alle gefundenen Kontakte löschen möchten?",
"discoveredContacts_deleteContactAll": "Alle entdeckten Kontakte löschen",
"discoveredContacts_export": "Entdeckte Kontakte exportieren",
"discoveredContacts_import": "Entdeckte Kontakte importieren",
"discoveredContacts_exported": "Entdeckte Kontakte exportiert nach {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Export von entdeckten Kontakten fehlgeschlagen: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "{count} entdeckte Kontakte importiert.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Keine Kontakte in Importdatei gefunden.",
"discoveredContacts_importInvalidFile": "Die Datei ist kein Export entdeckter Kontakte.",
"discoveredContacts_importSummary": "{imported} entdeckte Kontakte importiert. {skipped} bereits bekannte und {invalid} unlesbare Einträge übersprungen.",
"discoveredContacts_importTooLarge": "Die Importdatei ist zu groß (maximal {maxMb} MB).",
"discoveredContacts_importFailed": "Import von entdeckten Kontakten fehlgeschlagen: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"map_showGuessedLocations": "Vermutete Knotenstandorte anzeigen",
"map_guessedLocation": "Vermuteter Standort",
"usbScreenSubtitle": "Wählen Sie ein erkanntes serielles Gerät aus und verbinden Sie es direkt mit Ihrem MeshCore-Knoten.",
+67
View File
@@ -899,6 +899,14 @@
},
"chat_selectSendAction": "Select send action",
"chat_sendGif": "Send GIF",
"chat_shareMyLocation": "Share my location",
"@chat_shareMyLocation": {
"description": "Chat input menu action that shares the radio's own position as a map marker"
},
"chat_noRadioLocation": "Your radio has no location set",
"@chat_noRadioLocation": {
"description": "Shown when sharing a location but the radio reports no usable position"
},
"chat_removeGif": "Remove GIF",
"chat_cancelReply": "Cancel reply",
"chat_sendImageLora": "Send low-res image over radio",
@@ -1179,6 +1187,7 @@
"map_setAsMyLocation": "Set as my location",
"map_pinLabel": "Pin label",
"map_label": "Label",
"map_labelUpdateHint": "Using the same label as before will update the marker for MeshCore Open recipients.",
"map_pointOfInterest": "Point of interest",
"map_sendToContact": "Send to contact",
"map_sendToChannel": "Send to channel",
@@ -2591,6 +2600,64 @@
"contacts_invalidAdvertFormat": "Invalid contact data",
"contacts_contactImported": "Contact has been imported.",
"contacts_contactImportFailed": "Failed to import contact.",
"discoveredContacts_export": "Export discovered contacts",
"discoveredContacts_import": "Import discovered contacts",
"discoveredContacts_exported": "Exported discovered contacts to {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Failed to export discovered contacts: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Imported {count} discovered contacts.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "No contacts found in import file.",
"discoveredContacts_importSummary": "Imported {imported} discovered contacts. Skipped {skipped} already known and {invalid} unreadable entries.",
"@discoveredContacts_importSummary": {
"placeholders": {
"imported": {
"type": "int"
},
"skipped": {
"type": "int"
},
"invalid": {
"type": "int"
}
}
},
"discoveredContacts_importInvalidFile": "The file is not a discovered contacts export.",
"discoveredContacts_importTooLarge": "The import file is too large (maximum {maxMb} MB).",
"@discoveredContacts_importTooLarge": {
"placeholders": {
"maxMb": {
"type": "int"
}
}
},
"discoveredContacts_importFailed": "Failed to import discovered contacts: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"contacts_zeroHopAdvert": "Zero Hop Advert",
"contacts_floodAdvert": "Flood Advert",
"contacts_copyAdvertToClipboard": "Copy Advert to Clipboard",
+41
View File
@@ -475,6 +475,8 @@
}
}
},
"chat_noRadioLocation": "Tu radio no tiene una ubicación definida",
"chat_shareMyLocation": "Compartir mi ubicación",
"chat_location": "Ubicación",
"chat_sendMessageTo": "Enviar un mensaje a {contactName}",
"@chat_sendMessageTo": {
@@ -711,6 +713,7 @@
"map_shareMarkerHere": "Compartir marcador aquí",
"map_pinLabel": "Etiqueta del pin",
"map_label": "Etiqueta",
"map_labelUpdateHint": "Si usas la misma etiqueta que antes, el marcador se actualizará para los destinatarios de MeshCore Open.",
"map_pointOfInterest": "Punto de interés",
"map_sendToContact": "Enviar a contacto",
"map_sendToChannel": "Enviar a canal",
@@ -2157,6 +2160,44 @@
"common_deleteAll": "Eliminar todo",
"discoveredContacts_deleteContactAll": "Eliminar Todos los Contactos Descubiertos",
"discoveredContacts_deleteContactAllContent": "¿Está seguro de que desea eliminar todos los contactos descubiertos!",
"discoveredContacts_export": "Exportar contactos descubiertos",
"discoveredContacts_import": "Importar contactos descubiertos",
"discoveredContacts_exported": "Contactos descubiertos exportados a {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Error al exportar contactos descubiertos: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "{count} contactos descubiertos importados.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "No se encontraron contactos en el archivo de importación.",
"discoveredContacts_importInvalidFile": "El archivo no es una exportación de contactos descubiertos.",
"discoveredContacts_importSummary": "Se importaron {imported} contactos descubiertos. Se omitieron {skipped} ya conocidos y {invalid} entradas ilegibles.",
"discoveredContacts_importTooLarge": "El archivo de importación es demasiado grande (máximo {maxMb} MB).",
"discoveredContacts_importFailed": "Error al importar contactos descubiertos: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"map_guessedLocation": "Ubicación estimada",
"map_showGuessedLocations": "Mostrar las ubicaciones estimadas de los nodos.",
"usbScreenTitle": "Conecte mediante USB",
+41
View File
@@ -475,6 +475,8 @@
}
}
},
"chat_noRadioLocation": "Votre radio n'a pas de position définie",
"chat_shareMyLocation": "Partager ma position",
"chat_location": "Emplacement",
"chat_sendMessageTo": "Envoyer un message à {contactName}",
"@chat_sendMessageTo": {
@@ -711,6 +713,7 @@
"map_shareMarkerHere": "Partager le marqueur ici",
"map_pinLabel": "Libellé de l'épingle",
"map_label": "Étiquette",
"map_labelUpdateHint": "Utiliser la même étiquette qu’avant mettra à jour le marqueur pour les destinataires utilisant MeshCore Open.",
"map_pointOfInterest": "Point d'intérêt",
"map_sendToContact": "Envoyer au contact",
"map_sendToChannel": "Envoyer sur le canal",
@@ -2150,6 +2153,44 @@
"common_deleteAll": "Tout supprimer",
"discoveredContacts_deleteContactAll": "Supprimer tous les contacts découverts",
"discoveredContacts_deleteContactAllContent": "Êtes-vous sûr de vouloir supprimer tous les contacts découverts ?",
"discoveredContacts_export": "Exporter les contacts découverts",
"discoveredContacts_import": "Importer les contacts découverts",
"discoveredContacts_exported": "Contacts découverts exportés vers {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Impossible d'exporter les contacts découverts: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "{count} contacts découverts importés.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Aucun contact trouvé dans le fichier d'importation.",
"discoveredContacts_importInvalidFile": "Le fichier n'est pas un export de contacts découverts.",
"discoveredContacts_importSummary": "{imported} contacts découverts importés. {skipped} déjà connus et {invalid} entrées illisibles ignorés.",
"discoveredContacts_importTooLarge": "Le fichier d'importation est trop volumineux (maximum {maxMb} Mo).",
"discoveredContacts_importFailed": "Impossible d'importer les contacts découverts: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"map_showGuessedLocations": "Afficher les emplacements estimés des nœuds",
"map_guessedLocation": "Localisation estimée",
"connectionChoiceUsbLabel": "USB",
+41
View File
@@ -626,6 +626,8 @@
}
},
"chat_location": "hely",
"chat_noRadioLocation": "A rádiónak nincs beállított helye",
"chat_shareMyLocation": "Saját helyem megosztása",
"chat_sendMessageTo": "Üzenet küldése a következő címre: {contactName}",
"@chat_sendMessageTo": {
"placeholders": {
@@ -865,6 +867,7 @@
"map_setAsMyLocation": "Beállítás helyemként",
"map_pinLabel": "Kitűzött címke",
"map_label": "Címke",
"map_labelUpdateHint": "Ha ugyanazt a címkét használja, mint korábban, a jelölő frissül a MeshCore Open-t használó címzetteknél.",
"map_pointOfInterest": "Érdekes pont",
"map_sendToContact": "Elküldés a kapcsolattartónak",
"map_sendToChannel": "Küldés a csatornára",
@@ -2151,6 +2154,44 @@
"discoveredContacts_deleteContact": "A felfedezett névjegy törlése",
"discoveredContacts_deleteContactAll": "Törölje az összes felfedezett névjegyet",
"discoveredContacts_deleteContactAllContent": "Biztosan törli az összes felfedezett névjegyet?",
"discoveredContacts_export": "Felfedezett kapcsolatok exportálása",
"discoveredContacts_import": "Felfedezett kapcsolatok importálása",
"discoveredContacts_exported": "A felfedezett kapcsolatok exportálva ide: {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "A felfedezett kapcsolatok exportálása nem sikerült: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "{count} felfedezett kapcsolat importálva.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Az importfájlban nem találhatók kapcsolatok.",
"discoveredContacts_importFailed": "A felfedezett kapcsolatok importálása nem sikerült: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_importInvalidFile": "A fájl nem felfedezett kapcsolatok exportja.",
"discoveredContacts_importSummary": "Importálva: {imported}, kihagyva már ismert: {skipped}, olvashatatlan bejegyzés: {invalid}.",
"discoveredContacts_importTooLarge": "Az importfájl túl nagy (legfeljebb {maxMb} MB).",
"chat_sendCooldown": "Kérjük, várjon egy pillanatot, mielőtt újra elküldi.",
"appSettings_jumpToOldestUnread": "Ugrás a legrégebbi olvasatlanra",
"appSettings_jumpToOldestUnreadSubtitle": "Ha olvasatlan üzeneteket tartalmazó csevegést nyit meg, görgessen az első olvasatlanra a legutóbbi helyett.",
+41
View File
@@ -520,6 +520,8 @@
}
}
},
"chat_noRadioLocation": "La tua radio non ha una posizione impostata",
"chat_shareMyLocation": "Condividi la mia posizione",
"chat_location": "Posizione",
"chat_sendMessageTo": "Invia un messaggio a {contactName}",
"@chat_sendMessageTo": {
@@ -756,6 +758,7 @@
"map_shareMarkerHere": "Condividi segnaposto qui",
"map_pinLabel": "Etichetta pin",
"map_label": "Etichetta",
"map_labelUpdateHint": "Usando la stessa etichetta di prima, il segnaposto verrà aggiornato per i destinatari che usano MeshCore Open.",
"map_pointOfInterest": "Punto di interesse",
"map_sendToContact": "Invia a contatto",
"map_sendToChannel": "Invia al canale",
@@ -2148,6 +2151,44 @@
"discoveredContacts_contactAdded": "Contatto aggiunto",
"discoveredContacts_deleteContact": "Elimina Contatto",
"discoveredContacts_copyContact": "Copia contatto negli appunti",
"discoveredContacts_export": "Esporta contatti scoperti",
"discoveredContacts_import": "Importa contatti scoperti",
"discoveredContacts_exported": "Contatti scoperti esportati in {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Esportazione dei contatti scoperti non riuscita: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Importati {count} contatti scoperti.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Nessun contatto trovato nel file di importazione.",
"discoveredContacts_importInvalidFile": "Il file non è un'esportazione di contatti scoperti.",
"discoveredContacts_importSummary": "Importati {imported} contatti scoperti. Saltati {skipped} già noti e {invalid} voci illeggibili.",
"discoveredContacts_importTooLarge": "Il file di importazione è troppo grande (massimo {maxMb} MB).",
"discoveredContacts_importFailed": "Importazione dei contatti scoperti non riuscita: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"contactsSettings_overwriteOldestSubtitle": "Quando l'elenco dei contatti è pieno, il contatto più vecchio non tra i preferiti verrà sostituito.",
"contactsSettings_evictDiscoveredContactsTitle": "Rimuovi i contatti scoperti",
"contactsSettings_evictDiscoveredContactsSubtitle": "Se abilitato, l'app rimuove i contatti scoperti più vecchi quando l'elenco dei contatti scoperti raggiunge il limite di {limit} voci.",
+41
View File
@@ -624,6 +624,8 @@
"channels_scanQrCodeComingSoon": "近日公開",
"channels_enterHashtag": "ハッシュタグを入力してください",
"channels_hashtagHint": "例:#チーム",
"chat_noRadioLocation": "無線機に位置情報が設定されていません",
"chat_shareMyLocation": "自分の位置情報を共有",
"chat_noMessages": "まだメッセージは届いていません",
"chat_sendMessageToStart": "開始するためにメッセージを送信してください",
"chat_originalMessageNotFound": "元のメッセージが見つかりませんでした",
@@ -883,6 +885,7 @@
"map_setAsMyLocation": "現在地として設定",
"map_pinLabel": "ピンラベル",
"map_label": "ラベル",
"map_labelUpdateHint": "以前と同じラベルを使うと、MeshCore Open の受信者側でマーカーが更新されます。",
"map_pointOfInterest": "興味地点",
"map_sendToContact": "連絡先へ送信",
"map_sendToChannel": "チャンネルへ送信",
@@ -2246,6 +2249,44 @@
"discoveredContacts_deleteContact": "発見された連絡先を削除",
"discoveredContacts_deleteContactAll": "発見されたすべての連絡先を削除",
"discoveredContacts_deleteContactAllContent": "本当に、見つけたすべての連絡先を削除してもよろしいですか?",
"discoveredContacts_export": "発見済みの連絡先をエクスポート",
"discoveredContacts_import": "発見済みの連絡先をインポート",
"discoveredContacts_exported": "発見済みの連絡先を {path} にエクスポートしました。",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "発見済みの連絡先のエクスポートに失敗しました: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "{count} 件の発見済み連絡先をインポートしました。",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "インポートファイルに連絡先が見つかりませんでした。",
"discoveredContacts_importInvalidFile": "このファイルは発見済み連絡先のエクスポートではありません。",
"discoveredContacts_importSummary": "インポート: {imported} 件、スキップ(既知): {skipped} 件、読み取れないエントリ: {invalid} 件。",
"discoveredContacts_importTooLarge": "インポートファイルが大きすぎます(最大 {maxMb} MB)。",
"discoveredContacts_importFailed": "発見済みの連絡先のインポートに失敗しました: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"chat_sendCooldown": "再度送信する前に、しばらくお待ちください。",
"appSettings_jumpToOldestUnread": "最も古い未読のメッセージへ移動",
"appSettings_jumpToOldestUnreadSubtitle": "未読メッセージがあるチャットを開く際、「最新のメッセージ」ではなく、最初に未読のメッセージまでスクロールしてください。",
+41
View File
@@ -606,6 +606,8 @@
"channels_scanQrCodeComingSoon": "곧 출시",
"channels_enterHashtag": "해시태그 입력",
"channels_hashtagHint": "예: #팀",
"chat_noRadioLocation": "무전기에 위치가 설정되어 있지 않습니다",
"chat_shareMyLocation": "내 위치 공유",
"chat_noMessages": "아직 메시지가 없습니다.",
"chat_sendMessageToStart": "시작하려면 메시지를 보내세요.",
"chat_originalMessageNotFound": "원래 메시지를 찾을 수 없음",
@@ -865,6 +867,7 @@
"map_setAsMyLocation": "내 위치로 설정",
"map_pinLabel": "핀 라벨",
"map_label": "레이블",
"map_labelUpdateHint": "이전과 같은 레이블을 사용하면 MeshCore Open 수신자에게 표시된 마커가 업데이트됩니다.",
"map_pointOfInterest": "관심 지점",
"map_sendToContact": "연락처로 보내기",
"map_sendToChannel": "채널로 전송",
@@ -2151,6 +2154,44 @@
"discoveredContacts_deleteContact": "발견된 연락처 삭제",
"discoveredContacts_deleteContactAll": "발견된 모든 연락처 삭제",
"discoveredContacts_deleteContactAllContent": "정말로 모든 검색된 연락처를 삭제하시겠습니까?",
"discoveredContacts_export": "발견된 연락처 내보내기",
"discoveredContacts_import": "발견된 연락처 가져오기",
"discoveredContacts_exported": "발견된 연락처를 {path}(으)로 내보냈습니다.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "발견된 연락처 내보내기에 실패했습니다: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "발견된 연락처 {count}개를 가져왔습니다.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "가져오기 파일에서 연락처를 찾을 수 없습니다.",
"discoveredContacts_importInvalidFile": "이 파일은 발견된 연락처 내보내기 파일이 아닙니다.",
"discoveredContacts_importSummary": "가져옴: {imported}개, 건너뜀(이미 등록됨): {skipped}개, 읽을 수 없는 항목: {invalid}개.",
"discoveredContacts_importTooLarge": "가져오기 파일이 너무 큽니다(최대 {maxMb}MB).",
"discoveredContacts_importFailed": "발견된 연락처 가져오기에 실패했습니다: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"chat_sendCooldown": "다시 보내기 전에 잠시 기다려 주시기 바랍니다.",
"appSettings_jumpToOldestUnread": "가장 오래된, 아직 읽지 않은 항목으로 이동",
"appSettings_jumpToOldestUnreadSubtitle": "새로운 메시지가 없는 채팅을 열 때, 최신 메시지가 아닌 첫 번째 읽지 않은 메시지로 스크롤하세요.",
+82
View File
@@ -3082,6 +3082,18 @@ abstract class AppLocalizations {
/// **'Send GIF'**
String get chat_sendGif;
/// Chat input menu action that shares the radio's own position as a map marker
///
/// In en, this message translates to:
/// **'Share my location'**
String get chat_shareMyLocation;
/// Shown when sharing a location but the radio reports no usable position
///
/// In en, this message translates to:
/// **'Your radio has no location set'**
String get chat_noRadioLocation;
/// No description provided for @chat_removeGif.
///
/// In en, this message translates to:
@@ -3994,6 +4006,12 @@ abstract class AppLocalizations {
/// **'Label'**
String get map_label;
/// No description provided for @map_labelUpdateHint.
///
/// In en, this message translates to:
/// **'Using the same label as before will update the marker for MeshCore Open recipients.'**
String get map_labelUpdateHint;
/// No description provided for @map_pointOfInterest.
///
/// In en, this message translates to:
@@ -7906,6 +7924,70 @@ abstract class AppLocalizations {
/// **'Failed to import contact.'**
String get contacts_contactImportFailed;
/// No description provided for @discoveredContacts_export.
///
/// In en, this message translates to:
/// **'Export discovered contacts'**
String get discoveredContacts_export;
/// No description provided for @discoveredContacts_import.
///
/// In en, this message translates to:
/// **'Import discovered contacts'**
String get discoveredContacts_import;
/// No description provided for @discoveredContacts_exported.
///
/// In en, this message translates to:
/// **'Exported discovered contacts to {path}.'**
String discoveredContacts_exported(String path);
/// No description provided for @discoveredContacts_exportFailed.
///
/// In en, this message translates to:
/// **'Failed to export discovered contacts: {error}'**
String discoveredContacts_exportFailed(String error);
/// No description provided for @discoveredContacts_imported.
///
/// In en, this message translates to:
/// **'Imported {count} discovered contacts.'**
String discoveredContacts_imported(int count);
/// No description provided for @discoveredContacts_importNoContacts.
///
/// In en, this message translates to:
/// **'No contacts found in import file.'**
String get discoveredContacts_importNoContacts;
/// No description provided for @discoveredContacts_importSummary.
///
/// In en, this message translates to:
/// **'Imported {imported} discovered contacts. Skipped {skipped} already known and {invalid} unreadable entries.'**
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
);
/// No description provided for @discoveredContacts_importInvalidFile.
///
/// In en, this message translates to:
/// **'The file is not a discovered contacts export.'**
String get discoveredContacts_importInvalidFile;
/// No description provided for @discoveredContacts_importTooLarge.
///
/// In en, this message translates to:
/// **'The import file is too large (maximum {maxMb} MB).'**
String discoveredContacts_importTooLarge(int maxMb);
/// No description provided for @discoveredContacts_importFailed.
///
/// In en, this message translates to:
/// **'Failed to import discovered contacts: {error}'**
String discoveredContacts_importFailed(String error);
/// No description provided for @contacts_zeroHopAdvert.
///
/// In en, this message translates to:
+58
View File
@@ -1734,6 +1734,12 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get chat_sendGif => 'Изпрати GIF';
@override
String get chat_shareMyLocation => 'Споделяне на моето местоположение';
@override
String get chat_noRadioLocation => 'Радиото ви няма зададено местоположение';
@override
String get chat_removeGif => 'Премахни GIF';
@@ -2248,6 +2254,10 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get map_label => 'Етикет';
@override
String get map_labelUpdateHint =>
'Ако използвате същия етикет като преди, маркерът ще се обнови за получателите с MeshCore Open.';
@override
String get map_pointOfInterest => 'Точка на интерес';
@@ -4603,6 +4613,54 @@ class AppLocalizationsBg extends AppLocalizations {
String get contacts_contactImportFailed =>
'Контактът не е успешно импортиран.';
@override
String get discoveredContacts_export => 'Експортирай откритите контакти';
@override
String get discoveredContacts_import => 'Импортирай откритите контакти';
@override
String discoveredContacts_exported(String path) {
return 'Откритите контакти са експортирани в $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Неуспешно експортиране на откритите контакти: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Импортирани са $count открити контакта.';
}
@override
String get discoveredContacts_importNoContacts =>
'Във файла за импортиране не са намерени контакти.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Импортирани: $imported, пропуснати вече известни: $skipped, нечетими записи: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Файлът не е експорт на открити контакти.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Файлът за импортиране е твърде голям (максимум $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Неуспешно импортиране на откритите контакти: $error';
}
@override
String get contacts_zeroHopAdvert => 'Обява без скок';
+59
View File
@@ -1732,6 +1732,13 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get chat_sendGif => 'GIF senden';
@override
String get chat_shareMyLocation => 'Meinen Standort teilen';
@override
String get chat_noRadioLocation =>
'Ihr Funkgerät hat keinen Standort festgelegt';
@override
String get chat_removeGif => 'GIF entfernen';
@@ -2244,6 +2251,10 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get map_label => 'Beschriftung';
@override
String get map_labelUpdateHint =>
'Wenn Sie denselben Namen verwenden wie zuvor, wird die Markierung bei MeshCore Open-Empfängern aktualisiert.';
@override
String get map_pointOfInterest => 'Punkt von Interesse';
@@ -4608,6 +4619,54 @@ class AppLocalizationsDe extends AppLocalizations {
String get contacts_contactImportFailed =>
'Kontakt konnte nicht importiert werden';
@override
String get discoveredContacts_export => 'Entdeckte Kontakte exportieren';
@override
String get discoveredContacts_import => 'Entdeckte Kontakte importieren';
@override
String discoveredContacts_exported(String path) {
return 'Entdeckte Kontakte exportiert nach $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Export von entdeckten Kontakten fehlgeschlagen: $error';
}
@override
String discoveredContacts_imported(int count) {
return '$count entdeckte Kontakte importiert.';
}
@override
String get discoveredContacts_importNoContacts =>
'Keine Kontakte in Importdatei gefunden.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return '$imported entdeckte Kontakte importiert. $skipped bereits bekannte und $invalid unlesbare Einträge übersprungen.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Die Datei ist kein Export entdeckter Kontakte.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Die Importdatei ist zu groß (maximal $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Import von entdeckten Kontakten fehlgeschlagen: $error';
}
@override
String get contacts_zeroHopAdvert => 'Zero-Hop-Ankündigung';
+58
View File
@@ -1702,6 +1702,12 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get chat_sendGif => 'Send GIF';
@override
String get chat_shareMyLocation => 'Share my location';
@override
String get chat_noRadioLocation => 'Your radio has no location set';
@override
String get chat_removeGif => 'Remove GIF';
@@ -2211,6 +2217,10 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get map_label => 'Label';
@override
String get map_labelUpdateHint =>
'Using the same label as before will update the marker for MeshCore Open recipients.';
@override
String get map_pointOfInterest => 'Point of interest';
@@ -4539,6 +4549,54 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get contacts_contactImportFailed => 'Failed to import contact.';
@override
String get discoveredContacts_export => 'Export discovered contacts';
@override
String get discoveredContacts_import => 'Import discovered contacts';
@override
String discoveredContacts_exported(String path) {
return 'Exported discovered contacts to $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Failed to export discovered contacts: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Imported $count discovered contacts.';
}
@override
String get discoveredContacts_importNoContacts =>
'No contacts found in import file.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Imported $imported discovered contacts. Skipped $skipped already known and $invalid unreadable entries.';
}
@override
String get discoveredContacts_importInvalidFile =>
'The file is not a discovered contacts export.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'The import file is too large (maximum $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Failed to import discovered contacts: $error';
}
@override
String get contacts_zeroHopAdvert => 'Zero Hop Advert';
+58
View File
@@ -1729,6 +1729,12 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get chat_sendGif => 'Enviar GIF';
@override
String get chat_shareMyLocation => 'Compartir mi ubicación';
@override
String get chat_noRadioLocation => 'Tu radio no tiene una ubicación definida';
@override
String get chat_removeGif => 'Quitar GIF';
@@ -2240,6 +2246,10 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get map_label => 'Etiqueta';
@override
String get map_labelUpdateHint =>
'Si usas la misma etiqueta que antes, el marcador se actualizará para los destinatarios de MeshCore Open.';
@override
String get map_pointOfInterest => 'Punto de interés';
@@ -4602,6 +4612,54 @@ class AppLocalizationsEs extends AppLocalizations {
String get contacts_contactImportFailed =>
'Contacto no se importó correctamente.';
@override
String get discoveredContacts_export => 'Exportar contactos descubiertos';
@override
String get discoveredContacts_import => 'Importar contactos descubiertos';
@override
String discoveredContacts_exported(String path) {
return 'Contactos descubiertos exportados a $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Error al exportar contactos descubiertos: $error';
}
@override
String discoveredContacts_imported(int count) {
return '$count contactos descubiertos importados.';
}
@override
String get discoveredContacts_importNoContacts =>
'No se encontraron contactos en el archivo de importación.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Se importaron $imported contactos descubiertos. Se omitieron $skipped ya conocidos y $invalid entradas ilegibles.';
}
@override
String get discoveredContacts_importInvalidFile =>
'El archivo no es una exportación de contactos descubiertos.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'El archivo de importación es demasiado grande (máximo $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Error al importar contactos descubiertos: $error';
}
@override
String get contacts_zeroHopAdvert => 'Anuncio de un solo salto';
+58
View File
@@ -1733,6 +1733,12 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get chat_sendGif => 'Envoyer un GIF';
@override
String get chat_shareMyLocation => 'Partager ma position';
@override
String get chat_noRadioLocation => 'Votre radio n\'a pas de position définie';
@override
String get chat_removeGif => 'Supprimer le GIF';
@@ -2247,6 +2253,10 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get map_label => 'Étiquette';
@override
String get map_labelUpdateHint =>
'Utiliser la même étiquette qu’avant mettra à jour le marqueur pour les destinataires utilisant MeshCore Open.';
@override
String get map_pointOfInterest => 'Point d\'intérêt';
@@ -4619,6 +4629,54 @@ class AppLocalizationsFr extends AppLocalizations {
String get contacts_contactImportFailed =>
'Échec de l\'importation du contact.';
@override
String get discoveredContacts_export => 'Exporter les contacts découverts';
@override
String get discoveredContacts_import => 'Importer les contacts découverts';
@override
String discoveredContacts_exported(String path) {
return 'Contacts découverts exportés vers $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Impossible d\'exporter les contacts découverts: $error';
}
@override
String discoveredContacts_imported(int count) {
return '$count contacts découverts importés.';
}
@override
String get discoveredContacts_importNoContacts =>
'Aucun contact trouvé dans le fichier d\'importation.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return '$imported contacts découverts importés. $skipped déjà connus et $invalid entrées illisibles ignorés.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Le fichier n\'est pas un export de contacts découverts.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Le fichier d\'importation est trop volumineux (maximum $maxMb Mo).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Impossible d\'importer les contacts découverts: $error';
}
@override
String get contacts_zeroHopAdvert => 'Annonce Zero saut';
+58
View File
@@ -1723,6 +1723,12 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get chat_sendGif => 'GIF küldése';
@override
String get chat_shareMyLocation => 'Saját helyem megosztása';
@override
String get chat_noRadioLocation => 'A rádiónak nincs beállított helye';
@override
String get chat_removeGif => 'GIF eltávolítása';
@@ -2236,6 +2242,10 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get map_label => 'Címke';
@override
String get map_labelUpdateHint =>
'Ha ugyanazt a címkét használja, mint korábban, a jelölő frissül a MeshCore Open-t használó címzetteknél.';
@override
String get map_pointOfInterest => 'Érdekes pont';
@@ -4600,6 +4610,54 @@ class AppLocalizationsHu extends AppLocalizations {
String get contacts_contactImportFailed =>
'Nem sikerült importálni a névjegyet.';
@override
String get discoveredContacts_export => 'Felfedezett kapcsolatok exportálása';
@override
String get discoveredContacts_import => 'Felfedezett kapcsolatok importálása';
@override
String discoveredContacts_exported(String path) {
return 'A felfedezett kapcsolatok exportálva ide: $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'A felfedezett kapcsolatok exportálása nem sikerült: $error';
}
@override
String discoveredContacts_imported(int count) {
return '$count felfedezett kapcsolat importálva.';
}
@override
String get discoveredContacts_importNoContacts =>
'Az importfájlban nem találhatók kapcsolatok.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Importálva: $imported, kihagyva már ismert: $skipped, olvashatatlan bejegyzés: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'A fájl nem felfedezett kapcsolatok exportja.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Az importfájl túl nagy (legfeljebb $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'A felfedezett kapcsolatok importálása nem sikerült: $error';
}
@override
String get contacts_zeroHopAdvert => 'Zero Hop hirdetés';
+59
View File
@@ -1732,6 +1732,13 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get chat_sendGif => 'Invia GIF';
@override
String get chat_shareMyLocation => 'Condividi la mia posizione';
@override
String get chat_noRadioLocation =>
'La tua radio non ha una posizione impostata';
@override
String get chat_removeGif => 'Rimuovi GIF';
@@ -2246,6 +2253,10 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get map_label => 'Etichetta';
@override
String get map_labelUpdateHint =>
'Usando la stessa etichetta di prima, il segnaposto verrà aggiornato per i destinatari che usano MeshCore Open.';
@override
String get map_pointOfInterest => 'Punto di interesse';
@@ -4607,6 +4618,54 @@ class AppLocalizationsIt extends AppLocalizations {
String get contacts_contactImportFailed =>
'Contatto non importato con successo.';
@override
String get discoveredContacts_export => 'Esporta contatti scoperti';
@override
String get discoveredContacts_import => 'Importa contatti scoperti';
@override
String discoveredContacts_exported(String path) {
return 'Contatti scoperti esportati in $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Esportazione dei contatti scoperti non riuscita: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Importati $count contatti scoperti.';
}
@override
String get discoveredContacts_importNoContacts =>
'Nessun contatto trovato nel file di importazione.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Importati $imported contatti scoperti. Saltati $skipped già noti e $invalid voci illeggibili.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Il file non è un\'esportazione di contatti scoperti.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Il file di importazione è troppo grande (massimo $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Importazione dei contatti scoperti non riuscita: $error';
}
@override
String get contacts_zeroHopAdvert => 'Annuncio Zero Hop';
+57
View File
@@ -1646,6 +1646,12 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get chat_sendGif => 'GIF を送信';
@override
String get chat_shareMyLocation => '自分の位置情報を共有';
@override
String get chat_noRadioLocation => '無線機に位置情報が設定されていません';
@override
String get chat_removeGif => 'GIFを削除';
@@ -2145,6 +2151,10 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get map_label => 'ラベル';
@override
String get map_labelUpdateHint =>
'以前と同じラベルを使うと、MeshCore Open の受信者側でマーカーが更新されます。';
@override
String get map_pointOfInterest => '興味地点';
@@ -4378,6 +4388,53 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get contacts_contactImportFailed => '連絡先のインポートに失敗しました。';
@override
String get discoveredContacts_export => '発見済みの連絡先をエクスポート';
@override
String get discoveredContacts_import => '発見済みの連絡先をインポート';
@override
String discoveredContacts_exported(String path) {
return '発見済みの連絡先を $path にエクスポートしました。';
}
@override
String discoveredContacts_exportFailed(String error) {
return '発見済みの連絡先のエクスポートに失敗しました: $error';
}
@override
String discoveredContacts_imported(int count) {
return '$count 件の発見済み連絡先をインポートしました。';
}
@override
String get discoveredContacts_importNoContacts => 'インポートファイルに連絡先が見つかりませんでした。';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'インポート: $imported 件、スキップ(既知): $skipped 件、読み取れないエントリ: $invalid 件。';
}
@override
String get discoveredContacts_importInvalidFile =>
'このファイルは発見済み連絡先のエクスポートではありません。';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'インポートファイルが大きすぎます(最大 $maxMb MB)。';
}
@override
String discoveredContacts_importFailed(String error) {
return '発見済みの連絡先のインポートに失敗しました: $error';
}
@override
String get contacts_zeroHopAdvert => 'ゼロホップアドバート';
+57
View File
@@ -1651,6 +1651,12 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get chat_sendGif => 'GIF 보내기';
@override
String get chat_shareMyLocation => '내 위치 공유';
@override
String get chat_noRadioLocation => '무전기에 위치가 설정되어 있지 않습니다';
@override
String get chat_removeGif => 'GIF 제거';
@@ -2151,6 +2157,10 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get map_label => '레이블';
@override
String get map_labelUpdateHint =>
'이전과 같은 레이블을 사용하면 MeshCore Open 수신자에게 표시된 마커가 업데이트됩니다.';
@override
String get map_pointOfInterest => '관심 지점';
@@ -4390,6 +4400,53 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get contacts_contactImportFailed => '연락처를 가져오지 못했습니다.';
@override
String get discoveredContacts_export => '발견된 연락처 내보내기';
@override
String get discoveredContacts_import => '발견된 연락처 가져오기';
@override
String discoveredContacts_exported(String path) {
return '발견된 연락처를 $path(으)로 내보냈습니다.';
}
@override
String discoveredContacts_exportFailed(String error) {
return '발견된 연락처 내보내기에 실패했습니다: $error';
}
@override
String discoveredContacts_imported(int count) {
return '발견된 연락처 $count개를 가져왔습니다.';
}
@override
String get discoveredContacts_importNoContacts => '가져오기 파일에서 연락처를 찾을 수 없습니다.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return '가져옴: $imported개, 건너뜀(이미 등록됨): $skipped개, 읽을 수 없는 항목: $invalid개.';
}
@override
String get discoveredContacts_importInvalidFile =>
'이 파일은 발견된 연락처 내보내기 파일이 아닙니다.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return '가져오기 파일이 너무 큽니다(최대 ${maxMb}MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return '발견된 연락처 가져오기에 실패했습니다: $error';
}
@override
String get contacts_zeroHopAdvert => '제로 홉 어드버트';
+58
View File
@@ -1718,6 +1718,12 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get chat_sendGif => 'GIF verzenden';
@override
String get chat_shareMyLocation => 'Mijn locatie delen';
@override
String get chat_noRadioLocation => 'Je radio heeft geen locatie ingesteld';
@override
String get chat_removeGif => 'GIF verwijderen';
@@ -2230,6 +2236,10 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get map_label => 'Label';
@override
String get map_labelUpdateHint =>
'Als je hetzelfde label als eerder gebruikt, wordt de markering bijgewerkt voor ontvangers met MeshCore Open.';
@override
String get map_pointOfInterest => 'Interessepunt';
@@ -4578,6 +4588,54 @@ class AppLocalizationsNl extends AppLocalizations {
String get contacts_contactImportFailed =>
'Contact kon niet geïmporteerd worden.';
@override
String get discoveredContacts_export => 'Ontdekte contacten exporteren';
@override
String get discoveredContacts_import => 'Ontdekte contacten importeren';
@override
String discoveredContacts_exported(String path) {
return 'Ontdekte contacten geëxporteerd naar $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Exporteren van ontdekte contacten mislukt: $error';
}
@override
String discoveredContacts_imported(int count) {
return '$count ontdekte contacten geïmporteerd.';
}
@override
String get discoveredContacts_importNoContacts =>
'Geen contacten gevonden in het importbestand.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return '$imported ontdekte contacten geïmporteerd. $skipped al bekende en $invalid onleesbare items overgeslagen.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Het bestand is geen export van ontdekte contacten.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Het importbestand is te groot (maximaal $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Importeren van ontdekte contacten mislukt: $error';
}
@override
String get contacts_zeroHopAdvert => 'Zero-hop-advert';
+59
View File
@@ -1747,6 +1747,13 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get chat_sendGif => 'Wyślij GIF';
@override
String get chat_shareMyLocation => 'Udostępnij moją lokalizację';
@override
String get chat_noRadioLocation =>
'Twoje radio nie ma ustawionej lokalizacji';
@override
String get chat_removeGif => 'Usuń GIF';
@@ -2264,6 +2271,10 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get map_label => 'Etykieta';
@override
String get map_labelUpdateHint =>
'Użycie tej samej etykiety co wcześniej zaktualizuje znacznik u odbiorców korzystających z MeshCore Open.';
@override
String get map_pointOfInterest => 'Punkt zainteresowań';
@@ -4627,6 +4638,54 @@ class AppLocalizationsPl extends AppLocalizations {
String get contacts_contactImportFailed =>
'Kontakt nie został zaimportowany.';
@override
String get discoveredContacts_export => 'Eksportuj odkryte kontakty';
@override
String get discoveredContacts_import => 'Importuj odkryte kontakty';
@override
String discoveredContacts_exported(String path) {
return 'Wyeksportowano odkryte kontakty do $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Nie udało się wyeksportować odkrytych kontaktów: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Zaimportowano $count odkrytych kontaktów.';
}
@override
String get discoveredContacts_importNoContacts =>
'Nie znaleziono kontaktów w pliku importu.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Zaimportowano: $imported, pominięto już znane: $skipped, nieczytelne wpisy: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Ten plik nie jest eksportem odkrytych kontaktów.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Plik importu jest zbyt duży (maksymalnie $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Nie udało się zaimportować odkrytych kontaktów: $error';
}
@override
String get contacts_zeroHopAdvert => 'Rozgłoszenie zero-hop';
+58
View File
@@ -1729,6 +1729,12 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get chat_sendGif => 'Enviar GIF';
@override
String get chat_shareMyLocation => 'Compartilhar minha localização';
@override
String get chat_noRadioLocation => 'O seu rádio não tem localização definida';
@override
String get chat_removeGif => 'Remover GIF';
@@ -2244,6 +2250,10 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get map_label => 'Rótulo';
@override
String get map_labelUpdateHint =>
'Usar o mesmo rótulo de antes atualizará o marcador para os destinatários do MeshCore Open.';
@override
String get map_pointOfInterest => 'Ponto de interesse';
@@ -4604,6 +4614,54 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get contacts_contactImportFailed => 'Contato falhou ao ser importado.';
@override
String get discoveredContacts_export => 'Exportar contatos descobertos';
@override
String get discoveredContacts_import => 'Importar contatos descobertos';
@override
String discoveredContacts_exported(String path) {
return 'Contatos descobertos exportados para $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Falha ao exportar contatos descobertos: $error';
}
@override
String discoveredContacts_imported(int count) {
return '$count contatos descobertos importados.';
}
@override
String get discoveredContacts_importNoContacts =>
'Nenhum contato encontrado no arquivo de importação.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return '$imported contatos descobertos importados. $skipped já conhecidos e $invalid entradas ilegíveis foram ignorados.';
}
@override
String get discoveredContacts_importInvalidFile =>
'O arquivo não é uma exportação de contatos descobertos.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'O arquivo de importação é grande demais (máximo $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Falha ao importar contatos descobertos: $error';
}
@override
String get contacts_zeroHopAdvert => 'Anúncio Zero Hop';
+59
View File
@@ -1733,6 +1733,12 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get chat_sendGif => 'Отправить GIF';
@override
String get chat_shareMyLocation => 'Поделиться моим местоположением';
@override
String get chat_noRadioLocation => 'В вашем радио не задано местоположение';
@override
String get chat_removeGif => 'Удалить GIF';
@@ -2250,6 +2256,10 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get map_label => 'Подпись';
@override
String get map_labelUpdateHint =>
'Если использовать ту же подпись, что и раньше, метка обновится у получателей MeshCore Open.';
@override
String get map_pointOfInterest => 'Точка интереса';
@@ -4612,6 +4622,55 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get contacts_contactImportFailed => 'Контакт не удалось импортировать';
@override
String get discoveredContacts_export =>
'Экспортировать обнаруженные контакты';
@override
String get discoveredContacts_import => 'Импортировать обнаруженные контакты';
@override
String discoveredContacts_exported(String path) {
return 'Обнаруженные контакты экспортированы в $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Не удалось экспортировать обнаруженные контакты: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Импортировано $count обнаруженных контактов.';
}
@override
String get discoveredContacts_importNoContacts =>
'В файле импорта не найдены контакты.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Импортировано: $imported, пропущено уже известных: $skipped, нечитаемых записей: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Файл не является экспортом обнаруженных контактов.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Файл импорта слишком большой (максимум $maxMb МБ).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Не удалось импортировать обнаруженные контакты: $error';
}
@override
String get contacts_zeroHopAdvert => 'Анонс без хопов';
+58
View File
@@ -1721,6 +1721,12 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get chat_sendGif => 'Odoslať GIF';
@override
String get chat_shareMyLocation => 'Zdieľať moju polohu';
@override
String get chat_noRadioLocation => 'Vaše rádio nemá nastavenú polohu';
@override
String get chat_removeGif => 'Odstrániť GIF';
@@ -2237,6 +2243,10 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get map_label => 'Značka';
@override
String get map_labelUpdateHint =>
'Ak použijete rovnaký štítok ako predtým, značka sa aktualizuje u príjemcov MeshCore Open.';
@override
String get map_pointOfInterest => 'Bod záujmu';
@@ -4587,6 +4597,54 @@ class AppLocalizationsSk extends AppLocalizations {
String get contacts_contactImportFailed =>
'Kontakt sa nepodarilo importovať.';
@override
String get discoveredContacts_export => 'Exportovať objavené kontakty';
@override
String get discoveredContacts_import => 'Importovať objavené kontakty';
@override
String discoveredContacts_exported(String path) {
return 'Objavené kontakty boli exportované do $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Export objavených kontaktov zlyhal: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Bolo importovaných $count objavených kontaktov.';
}
@override
String get discoveredContacts_importNoContacts =>
'V importovanom súbore sa nenašli žiadne kontakty.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Importované: $imported, preskočené (už známe): $skipped, nečitateľné záznamy: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Súbor nie je exportom objavených kontaktov.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Importovaný súbor je príliš veľký (maximum $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Import objavených kontaktov zlyhal: $error';
}
@override
String get contacts_zeroHopAdvert => 'Inzerát Zero Hop';
+58
View File
@@ -1720,6 +1720,12 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get chat_sendGif => 'Pošlji GIF';
@override
String get chat_shareMyLocation => 'Deli mojo lokacijo';
@override
String get chat_noRadioLocation => 'Vaš radio nima nastavljene lokacije';
@override
String get chat_removeGif => 'Odstrani GIF';
@@ -2231,6 +2237,10 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get map_label => 'Oznaka';
@override
String get map_labelUpdateHint =>
'Če uporabite enako oznako kot prej, se oznaka na zemljevidu posodobi pri prejemnikih MeshCore Open.';
@override
String get map_pointOfInterest => 'Točka zanimivosti';
@@ -4585,6 +4595,54 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get contacts_contactImportFailed => 'Kontakt ni bil uspešno uvožen.';
@override
String get discoveredContacts_export => 'Izvozi odkrite stike';
@override
String get discoveredContacts_import => 'Uvozi odkrite stike';
@override
String discoveredContacts_exported(String path) {
return 'Odkriti stiki so izvoženi v $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Izvoz odkritih stikov ni uspel: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Uvoženih je bilo $count odkritih stikov.';
}
@override
String get discoveredContacts_importNoContacts =>
'V uvozni datoteki ni bilo najdenih stikov.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Uvoženo: $imported, preskočeno (že znani): $skipped, neberljivi vnosi: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Datoteka ni izvoz odkritih stikov.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Uvozna datoteka je prevelika (največ $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Uvoz odkritih stikov ni uspel: $error';
}
@override
String get contacts_zeroHopAdvert => 'Oglas brez posrednikov';
+58
View File
@@ -1708,6 +1708,12 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get chat_sendGif => 'Skicka GIF';
@override
String get chat_shareMyLocation => 'Dela min plats';
@override
String get chat_noRadioLocation => 'Din radio har ingen plats inställd';
@override
String get chat_removeGif => 'Ta bort GIF';
@@ -2219,6 +2225,10 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get map_label => 'Etikett';
@override
String get map_labelUpdateHint =>
'Om du använder samma etikett som tidigare uppdateras markören för mottagare med MeshCore Open.';
@override
String get map_pointOfInterest => 'Plats av intresse';
@@ -4561,6 +4571,54 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get contacts_contactImportFailed => 'Kontakt kunde inte importeras.';
@override
String get discoveredContacts_export => 'Exportera upptäckta kontakter';
@override
String get discoveredContacts_import => 'Importera upptäckta kontakter';
@override
String discoveredContacts_exported(String path) {
return 'Upptäckta kontakter exporterades till $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Det gick inte att exportera upptäckta kontakter: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Importerade $count upptäckta kontakter.';
}
@override
String get discoveredContacts_importNoContacts =>
'Inga kontakter hittades i importfilen.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Importerade: $imported, hoppade över redan kända: $skipped, oläsliga poster: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Filen är inte en export av upptäckta kontakter.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Importfilen är för stor (högst $maxMb MB).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Det gick inte att importera upptäckta kontakter: $error';
}
@override
String get contacts_zeroHopAdvert => 'Nollhoppsannons';
+58
View File
@@ -1723,6 +1723,12 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get chat_sendGif => 'Надіслати GIF';
@override
String get chat_shareMyLocation => 'Поділитися моєю геопозицією';
@override
String get chat_noRadioLocation => 'У вашому радіо не задано геопозицію';
@override
String get chat_removeGif => 'Видалити GIF';
@@ -2240,6 +2246,10 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get map_label => 'Мітка';
@override
String get map_labelUpdateHint =>
'Якщо використати ту саму мітку, що й раніше, маркер оновиться в одержувачів MeshCore Open.';
@override
String get map_pointOfInterest => 'Точка інтересу';
@@ -4611,6 +4621,54 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get contacts_contactImportFailed => 'Контакт не вдалось імпортувати';
@override
String get discoveredContacts_export => 'Експортувати виявлені контакти';
@override
String get discoveredContacts_import => 'Імпортувати виявлені контакти';
@override
String discoveredContacts_exported(String path) {
return 'Виявлені контакти експортовано до $path.';
}
@override
String discoveredContacts_exportFailed(String error) {
return 'Не вдалося експортувати виявлені контакти: $error';
}
@override
String discoveredContacts_imported(int count) {
return 'Імпортовано $count виявлених контактів.';
}
@override
String get discoveredContacts_importNoContacts =>
'У файлі імпорту не знайдено контактів.';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return 'Імпортовано: $imported, пропущено вже відомих: $skipped, нечитабельних записів: $invalid.';
}
@override
String get discoveredContacts_importInvalidFile =>
'Файл не є експортом виявлених контактів.';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return 'Файл імпорту завеликий (максимум $maxMb МБ).';
}
@override
String discoveredContacts_importFailed(String error) {
return 'Не вдалося імпортувати виявлені контакти: $error';
}
@override
String get contacts_zeroHopAdvert => 'Оголошення без ретрансляції';
+55
View File
@@ -1628,6 +1628,12 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get chat_sendGif => '发送 GIF';
@override
String get chat_shareMyLocation => '分享我的位置';
@override
String get chat_noRadioLocation => '您的电台未设置位置';
@override
String get chat_removeGif => '移除 GIF';
@@ -2119,6 +2125,9 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get map_label => '标签';
@override
String get map_labelUpdateHint => '使用与之前相同的标签,将为 MeshCore Open 接收者更新该标记。';
@override
String get map_pointOfInterest => '兴趣点';
@@ -4291,6 +4300,52 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get contacts_contactImportFailed => '导入联系人失败。';
@override
String get discoveredContacts_export => '导出已发现的联系人';
@override
String get discoveredContacts_import => '导入已发现的联系人';
@override
String discoveredContacts_exported(String path) {
return '已将已发现的联系人导出到$path。';
}
@override
String discoveredContacts_exportFailed(String error) {
return '导出已发现的联系人失败:$error';
}
@override
String discoveredContacts_imported(int count) {
return '已导入$count个已发现的联系人。';
}
@override
String get discoveredContacts_importNoContacts => '在导入文件中未找到联系人。';
@override
String discoveredContacts_importSummary(
int imported,
int skipped,
int invalid,
) {
return '已导入:$imported,已跳过(已存在):$skipped,无法读取的条目:$invalid。';
}
@override
String get discoveredContacts_importInvalidFile => '该文件不是已发现联系人的导出文件。';
@override
String discoveredContacts_importTooLarge(int maxMb) {
return '导入文件过大(最大 $maxMb MB)。';
}
@override
String discoveredContacts_importFailed(String error) {
return '导入已发现的联系人失败:$error';
}
@override
String get contacts_zeroHopAdvert => '发送零跳广播';
+41
View File
@@ -469,6 +469,8 @@
}
}
},
"chat_noRadioLocation": "Je radio heeft geen locatie ingesteld",
"chat_shareMyLocation": "Mijn locatie delen",
"chat_location": "Locatie",
"chat_sendMessageTo": "Verstuur een bericht naar {contactName}",
"@chat_sendMessageTo": {
@@ -709,6 +711,7 @@
"map_shareMarkerHere": "Deel marker hier",
"map_pinLabel": "Pinlabel",
"map_label": "Label",
"map_labelUpdateHint": "Als je hetzelfde label als eerder gebruikt, wordt de markering bijgewerkt voor ontvangers met MeshCore Open.",
"map_pointOfInterest": "Interessepunt",
"map_sendToContact": "Verzenden naar contact",
"map_sendToChannel": "Verzenden naar kanaal",
@@ -2052,6 +2055,44 @@
"discoveredContacts_Title": "Ontdekte contacten",
"discoveredContacts_contactAdded": "Contact toegevoegd",
"discoveredContacts_searchHint": "Ontdekte contacten zoeken",
"discoveredContacts_export": "Ontdekte contacten exporteren",
"discoveredContacts_import": "Ontdekte contacten importeren",
"discoveredContacts_exported": "Ontdekte contacten geëxporteerd naar {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Exporteren van ontdekte contacten mislukt: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "{count} ontdekte contacten geïmporteerd.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Geen contacten gevonden in het importbestand.",
"discoveredContacts_importInvalidFile": "Het bestand is geen export van ontdekte contacten.",
"discoveredContacts_importSummary": "{imported} ontdekte contacten geïmporteerd. {skipped} al bekende en {invalid} onleesbare items overgeslagen.",
"discoveredContacts_importTooLarge": "Het importbestand is te groot (maximaal {maxMb} MB).",
"discoveredContacts_importFailed": "Importeren van ontdekte contacten mislukt: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"contactsSettings_overwriteOldestSubtitle": "Wanneer de contactenlijst vol is, wordt de oudste niet-favoriete contactpersoon vervangen.",
"contactsSettings_evictDiscoveredContactsTitle": "Ontdekte contacten verwijderen",
"contactsSettings_evictDiscoveredContactsSubtitle": "Indien ingeschakeld verwijdert de app de oudste ontdekte contacten zodra de lijst met ontdekte contacten de limiet van {limit} items bereikt.",
+41 -6
View File
@@ -464,6 +464,8 @@
}
},
"chat_location": "Lokalizacja",
"chat_noRadioLocation": "Twoje radio nie ma ustawionej lokalizacji",
"chat_shareMyLocation": "Udostępnij moją lokalizację",
"chat_sendMessageTo": "Wyślij wiadomość do {contactName}",
"@chat_sendMessageTo": {
"placeholders": {
@@ -699,6 +701,7 @@
"map_shareMarkerHere": "Udostępnij znacznik tutaj",
"map_pinLabel": "Etykieta pinezki",
"map_label": "Etykieta",
"map_labelUpdateHint": "Użycie tej samej etykiety co wcześniej zaktualizuje znacznik u odbiorców korzystających z MeshCore Open.",
"map_pointOfInterest": "Punkt zainteresowań",
"map_sendToContact": "Wyślij do kontaktu",
"map_sendToChannel": "Wyślij do kanału",
@@ -2055,6 +2058,44 @@
"contactsSettings_autoAddSensorsSubtitle": "Zezwól towarzyszowi na automatyczne dodawanie wykrytych czujników.",
"discoveredContacts_noMatching": "Brak pasujących kontaktów",
"discoveredContacts_deleteContact": "Usuń kontakt",
"discoveredContacts_export": "Eksportuj odkryte kontakty",
"discoveredContacts_import": "Importuj odkryte kontakty",
"discoveredContacts_exported": "Wyeksportowano odkryte kontakty do {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Nie udało się wyeksportować odkrytych kontaktów: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Zaimportowano {count} odkrytych kontaktów.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Nie znaleziono kontaktów w pliku importu.",
"discoveredContacts_importFailed": "Nie udało się zaimportować odkrytych kontaktów: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_importInvalidFile": "Ten plik nie jest eksportem odkrytych kontaktów.",
"discoveredContacts_importSummary": "Zaimportowano: {imported}, pominięto już znane: {skipped}, nieczytelne wpisy: {invalid}.",
"discoveredContacts_importTooLarge": "Plik importu jest zbyt duży (maksymalnie {maxMb} MB).",
"contactsSettings_overwriteOldestSubtitle": "Gdy lista kontaktów jest pełna, najstarszy nieulubiony kontakt zostanie zastąpiony.",
"contactsSettings_evictDiscoveredContactsTitle": "Usuwaj odkryte kontakty",
"contactsSettings_evictDiscoveredContactsSubtitle": "Gdy ta opcja jest włączona, aplikacja usuwa najstarsze odkryte kontakty, gdy lista odkrytych osiągnie limit {limit} wpisów.",
@@ -2297,12 +2338,6 @@
"scanner_linuxPairingPinTitle": "Kod PIN parowania Bluetooth",
"repeater_cliQuickClockSync": "Synchronizacja zegara",
"repeater_cliQuickDiscovery": "Odkryj Sąsiadów",
"@repeater_clockSyncAfterLogin": {
"description": "Repeater setting: auto sync device clock after successful login"
},
"@repeater_clockSyncAfterLoginSubtitle": {
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
},
"repeater_clockSyncAfterLogin": "Synchronizacja zegara po zalogowaniu",
"repeater_clockSyncAfterLoginSubtitle": "Automatycznie wysyłaj powiadomienie \"synchronizacja zegara\" po pomyślnym zalogowaniu.",
"chat_sendMessage": "Wyślij wiadomość",
+41
View File
@@ -453,6 +453,8 @@
}
}
},
"chat_noRadioLocation": "O seu rádio não tem localização definida",
"chat_shareMyLocation": "Compartilhar minha localização",
"chat_location": "Localização",
"chat_sendMessageTo": "Enviar uma mensagem para {contactName}",
"@chat_sendMessageTo": {
@@ -689,6 +691,7 @@
"map_shareMarkerHere": "Compartilhar marcador aqui",
"map_pinLabel": "Rótulo de marcador",
"map_label": "Rótulo",
"map_labelUpdateHint": "Usar o mesmo rótulo de antes atualizará o marcador para os destinatários do MeshCore Open.",
"map_pointOfInterest": "Ponto de interesse",
"map_sendToContact": "Enviar para o contato",
"map_sendToChannel": "Enviar para o canal",
@@ -2017,6 +2020,44 @@
"discoveredContacts_deleteContact": "Excluir Contato",
"discoveredContacts_contactAdded": "Contato adicionado",
"discoveredContacts_addContact": "Adicionar Contato",
"discoveredContacts_export": "Exportar contatos descobertos",
"discoveredContacts_import": "Importar contatos descobertos",
"discoveredContacts_exported": "Contatos descobertos exportados para {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Falha ao exportar contatos descobertos: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "{count} contatos descobertos importados.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Nenhum contato encontrado no arquivo de importação.",
"discoveredContacts_importInvalidFile": "O arquivo não é uma exportação de contatos descobertos.",
"discoveredContacts_importSummary": "{imported} contatos descobertos importados. {skipped} já conhecidos e {invalid} entradas ilegíveis foram ignorados.",
"discoveredContacts_importTooLarge": "O arquivo de importação é grande demais (máximo {maxMb} MB).",
"discoveredContacts_importFailed": "Falha ao importar contatos descobertos: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"contactsSettings_overwriteOldestSubtitle": "Quando a lista de contatos estiver cheia, o contato mais antigo não favoritado será substituído.",
"contactsSettings_evictDiscoveredContactsTitle": "Remover contatos descobertos",
"contactsSettings_evictDiscoveredContactsSubtitle": "Quando ativado, o aplicativo remove os contatos descobertos mais antigos assim que a lista de descobertos atingir o limite de {limit} entradas.",
+41 -6
View File
@@ -309,6 +309,8 @@
"chat_replyingTo": "Ответ для {name}",
"chat_replyTo": "Ответить {name}",
"chat_location": "Местоположение",
"chat_noRadioLocation": "В вашем радио не задано местоположение",
"chat_shareMyLocation": "Поделиться моим местоположением",
"chat_sendMessageTo": "Отправить сообщение {contactName}",
"chat_typeMessage": "Напишите сообщение...",
"chat_messageTooLong": "Сообщение слишком длинное (макс. {maxBytes} байт).",
@@ -413,6 +415,7 @@
"map_shareMarkerHere": "Поделиться меткой здесь",
"map_pinLabel": "Метка",
"map_label": "Подпись",
"map_labelUpdateHint": "Если использовать ту же подпись, что и раньше, метка обновится у получателей MeshCore Open.",
"map_pointOfInterest": "Точка интереса",
"map_sendToContact": "Отправить контакту",
"map_sendToChannel": "Отправить в канал",
@@ -1186,6 +1189,44 @@
"discoveredContacts_addContact": "Добавить контакт",
"discoveredContacts_Title": "Обнаруженные контакты",
"discoveredContacts_deleteContact": "Удалить контакт",
"discoveredContacts_export": "Экспортировать обнаруженные контакты",
"discoveredContacts_import": "Импортировать обнаруженные контакты",
"discoveredContacts_exported": "Обнаруженные контакты экспортированы в {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Не удалось экспортировать обнаруженные контакты: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Импортировано {count} обнаруженных контактов.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "В файле импорта не найдены контакты.",
"discoveredContacts_importFailed": "Не удалось импортировать обнаруженные контакты: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_importInvalidFile": "Файл не является экспортом обнаруженных контактов.",
"discoveredContacts_importSummary": "Импортировано: {imported}, пропущено уже известных: {skipped}, нечитаемых записей: {invalid}.",
"discoveredContacts_importTooLarge": "Файл импорта слишком большой (максимум {maxMb} МБ).",
"contactsSettings_overwriteOldestSubtitle": "Когда список контактов заполнен, будет заменен самый старый контакт, который не находится в избранном.",
"contactsSettings_evictDiscoveredContactsTitle": "Удалять обнаруженные контакты",
"contactsSettings_evictDiscoveredContactsSubtitle": "Если включено, приложение удаляет самые старые обнаруженные контакты, когда список обнаруженных достигает лимита в {limit} записей.",
@@ -1428,12 +1469,6 @@
"scanner_linuxPairingPinTitle": "PIN‑код сопряжения Bluetooth",
"repeater_cliQuickDiscovery": "Обнаружить Соседей",
"repeater_cliQuickClockSync": "Синхронизация часов",
"@repeater_clockSyncAfterLogin": {
"description": "Repeater setting: auto sync device clock after successful login"
},
"@repeater_clockSyncAfterLoginSubtitle": {
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
},
"repeater_clockSyncAfterLogin": "Синхронизация часов после входа в систему",
"repeater_clockSyncAfterLoginSubtitle": "Автоматически отправлять сообщение \"синхронизация времени\" после успешной авторизации.",
"chat_sendMessage": "Отправить сообщение",
+41
View File
@@ -434,6 +434,8 @@
"channels_sortAZ": "Od A po Z",
"channels_sortLatestMessages": "Posledné správy",
"channels_sortUnread": "Nezriadené",
"chat_noRadioLocation": "Vaše rádio nemá nastavenú polohu",
"chat_shareMyLocation": "Zdieľať moju polohu",
"chat_noMessages": "Zatiaľ žiadne správy.",
"chat_sendMessageToStart": "Pošlite správu na začiatok",
"chat_originalMessageNotFound": "Neznámy pôvodný odkaz.",
@@ -689,6 +691,7 @@
"map_shareMarkerHere": "Zdieľte značku tu",
"map_pinLabel": "Označka upozornenia",
"map_label": "Značka",
"map_labelUpdateHint": "Ak použijete rovnaký štítok ako predtým, značka sa aktualizuje u príjemcov MeshCore Open.",
"map_pointOfInterest": "Bod záujmu",
"map_sendToContact": "Pošleť na kontakt",
"map_sendToChannel": "Poslať do kanálu",
@@ -2017,6 +2020,44 @@
"discoveredContacts_Title": "Objavené kontakty",
"contactsSettings_overwriteOldestTitle": "Prepísať najstaršie",
"discoveredContacts_addContact": "Pridať kontakt",
"discoveredContacts_export": "Exportovať objavené kontakty",
"discoveredContacts_import": "Importovať objavené kontakty",
"discoveredContacts_exported": "Objavené kontakty boli exportované do {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Export objavených kontaktov zlyhal: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Bolo importovaných {count} objavených kontaktov.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "V importovanom súbore sa nenašli žiadne kontakty.",
"discoveredContacts_importInvalidFile": "Súbor nie je exportom objavených kontaktov.",
"discoveredContacts_importSummary": "Importované: {imported}, preskočené (už známe): {skipped}, nečitateľné záznamy: {invalid}.",
"discoveredContacts_importTooLarge": "Importovaný súbor je príliš veľký (maximum {maxMb} MB).",
"discoveredContacts_importFailed": "Import objavených kontaktov zlyhal: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"contactsSettings_overwriteOldestSubtitle": "Keď je zoznam kontaktov plný, bude nahradený najstarší neoznačený kontakt.",
"contactsSettings_evictDiscoveredContactsTitle": "Odstraňovať objavené kontakty",
"contactsSettings_evictDiscoveredContactsSubtitle": "Keď je táto možnosť zapnutá, aplikácia odstráni najstaršie objavené kontakty, keď zoznam objavených dosiahne limit {limit} záznamov.",
+41
View File
@@ -434,6 +434,8 @@
"channels_sortAZ": "A do Z",
"channels_sortLatestMessages": "Najnovejše sporočilo",
"channels_sortUnread": "Nerešeno",
"chat_noRadioLocation": "Vaš radio nima nastavljene lokacije",
"chat_shareMyLocation": "Deli mojo lokacijo",
"chat_noMessages": "Še ni sporočil.",
"chat_sendMessageToStart": "Pošlji sporočilo za začetek.",
"chat_originalMessageNotFound": "Opozorilo: Sporočilo ni bilo najdeno",
@@ -689,6 +691,7 @@
"map_shareMarkerHere": "Delite točke tukaj.",
"map_pinLabel": "Oznaka za pritrditev",
"map_label": "Oznaka",
"map_labelUpdateHint": "Če uporabite enako oznako kot prej, se oznaka na zemljevidu posodobi pri prejemnikih MeshCore Open.",
"map_pointOfInterest": "Točka zanimivosti",
"map_sendToContact": "Pošlji v kontakt",
"map_sendToChannel": "Pošlji v kanal",
@@ -2017,6 +2020,44 @@
"discoveredContacts_Title": "Odkriti stiki",
"discoveredContacts_searchHint": "Najdeni stiki po iskanju",
"discoveredContacts_deleteContact": "Izbriši stik",
"discoveredContacts_export": "Izvozi odkrite stike",
"discoveredContacts_import": "Uvozi odkrite stike",
"discoveredContacts_exported": "Odkriti stiki so izvoženi v {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Izvoz odkritih stikov ni uspel: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Uvoženih je bilo {count} odkritih stikov.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "V uvozni datoteki ni bilo najdenih stikov.",
"discoveredContacts_importInvalidFile": "Datoteka ni izvoz odkritih stikov.",
"discoveredContacts_importSummary": "Uvoženo: {imported}, preskočeno (že znani): {skipped}, neberljivi vnosi: {invalid}.",
"discoveredContacts_importTooLarge": "Uvozna datoteka je prevelika (največ {maxMb} MB).",
"discoveredContacts_importFailed": "Uvoz odkritih stikov ni uspel: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"contactsSettings_overwriteOldestSubtitle": "Ko je seznam stikov poln, bo najstarejši nestarševski stik zamenjan.",
"contactsSettings_evictDiscoveredContactsTitle": "Odstrani odkrite stike",
"contactsSettings_evictDiscoveredContactsSubtitle": "Ko je ta možnost vklopljena, aplikacija odstrani najstarejše odkrite stike, ko seznam odkritih stikov doseže omejitev {limit} vnosov.",
+41 -6
View File
@@ -454,6 +454,8 @@
}
},
"chat_location": "Plats",
"chat_noRadioLocation": "Din radio har ingen plats inställd",
"chat_shareMyLocation": "Dela min plats",
"chat_sendMessageTo": "Skicka ett meddelande till {contactName}",
"@chat_sendMessageTo": {
"placeholders": {
@@ -690,6 +692,7 @@
"map_shareMarkerHere": "Dela markeringen här",
"map_pinLabel": "Fästetikett",
"map_label": "Etikett",
"map_labelUpdateHint": "Om du använder samma etikett som tidigare uppdateras markören för mottagare med MeshCore Open.",
"map_pointOfInterest": "Plats av intresse",
"map_sendToContact": "Skicka till kontakt",
"map_sendToChannel": "Skicka till kanal",
@@ -2018,6 +2021,44 @@
"discoveredContacts_contactAdded": "Kontakt tillagd",
"discoveredContacts_addContact": "Lägg till kontakt",
"discoveredContacts_copyContact": "Kopiera kontakt till urklipp",
"discoveredContacts_export": "Exportera upptäckta kontakter",
"discoveredContacts_import": "Importera upptäckta kontakter",
"discoveredContacts_exported": "Upptäckta kontakter exporterades till {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Det gick inte att exportera upptäckta kontakter: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Importerade {count} upptäckta kontakter.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "Inga kontakter hittades i importfilen.",
"discoveredContacts_importFailed": "Det gick inte att importera upptäckta kontakter: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_importInvalidFile": "Filen är inte en export av upptäckta kontakter.",
"discoveredContacts_importSummary": "Importerade: {imported}, hoppade över redan kända: {skipped}, oläsliga poster: {invalid}.",
"discoveredContacts_importTooLarge": "Importfilen är för stor (högst {maxMb} MB).",
"contactsSettings_overwriteOldestSubtitle": "När kontaktlistan är full ersätts den äldsta icke-favoriterade kontakten.",
"contactsSettings_evictDiscoveredContactsTitle": "Rensa upptäckta kontakter",
"contactsSettings_evictDiscoveredContactsSubtitle": "När detta är aktiverat tar appen bort de äldsta upptäckta kontakterna när listan över upptäckta kontakter når sin gräns på {limit} poster.",
@@ -2254,12 +2295,6 @@
"scanner_linuxPairingHidePin": "Dölj PIN",
"repeater_cliQuickDiscovery": "Upptäck grannar",
"repeater_cliQuickClockSync": "Synkronisera klocka",
"@repeater_clockSyncAfterLogin": {
"description": "Repeater setting: auto sync device clock after successful login"
},
"@repeater_clockSyncAfterLoginSubtitle": {
"description": "Repeater setting subtitle: describes the clock sync after login behavior"
},
"repeater_clockSyncAfterLoginSubtitle": "Automatiskt skicka \"klocksynkronisering\" efter en lyckad inloggning.",
"repeater_clockSyncAfterLogin": "Synkronisera klockan efter inloggning",
"repeater_guest": "Repeaterinformation",
+41
View File
@@ -457,6 +457,8 @@
}
},
"chat_location": "Геопозиція",
"chat_noRadioLocation": "У вашому радіо не задано геопозицію",
"chat_shareMyLocation": "Поділитися моєю геопозицією",
"chat_sendMessageTo": "Надіслати повідомлення {contactName}",
"@chat_sendMessageTo": {
"placeholders": {
@@ -699,6 +701,7 @@
"map_shareMarkerHere": "Поділитись маркером тут",
"map_pinLabel": "Мітка піна",
"map_label": "Мітка",
"map_labelUpdateHint": "Якщо використати ту саму мітку, що й раніше, маркер оновиться в одержувачів MeshCore Open.",
"map_pointOfInterest": "Точка інтересу",
"map_sendToContact": "Надіслати контакту",
"map_sendToChannel": "Надіслати в канал",
@@ -2027,6 +2030,44 @@
"discoveredContacts_deleteContact": "Видалити контакт",
"discoveredContacts_copyContact": "Копіювати контакт у буфер обміну",
"discoveredContacts_addContact": "Додати контакт",
"discoveredContacts_export": "Експортувати виявлені контакти",
"discoveredContacts_import": "Імпортувати виявлені контакти",
"discoveredContacts_exported": "Виявлені контакти експортовано до {path}.",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "Не вдалося експортувати виявлені контакти: {error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "Імпортовано {count} виявлених контактів.",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "У файлі імпорту не знайдено контактів.",
"discoveredContacts_importFailed": "Не вдалося імпортувати виявлені контакти: {error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_importInvalidFile": "Файл не є експортом виявлених контактів.",
"discoveredContacts_importSummary": "Імпортовано: {imported}, пропущено вже відомих: {skipped}, нечитабельних записів: {invalid}.",
"discoveredContacts_importTooLarge": "Файл імпорту завеликий (максимум {maxMb} МБ).",
"contactsSettings_overwriteOldestSubtitle": "Коли список контактів заповнений, найстарший контакт без позначки улюбленого буде замінений.",
"contactsSettings_evictDiscoveredContactsTitle": "Видаляти виявлені контакти",
"contactsSettings_evictDiscoveredContactsSubtitle": "Якщо ввімкнено, застосунок видаляє найстаріші виявлені контакти, коли список виявлених контактів досягає ліміту в {limit} записів.",
+41
View File
@@ -461,6 +461,8 @@
"channels_scanQrCodeComingSoon": "即将推出",
"channels_enterHashtag": "输入标签",
"channels_hashtagHint": "例如:#团队",
"chat_noRadioLocation": "您的电台未设置位置",
"chat_shareMyLocation": "分享我的位置",
"chat_noMessages": "暂无消息",
"chat_sendMessageToStart": "发送消息开始对话",
"chat_originalMessageNotFound": "找不到原始消息",
@@ -716,6 +718,7 @@
"map_shareMarkerHere": "在此分享标记",
"map_pinLabel": "标签",
"map_label": "标签",
"map_labelUpdateHint": "使用与之前相同的标签,将为 MeshCore Open 接收者更新该标记。",
"map_pointOfInterest": "兴趣点",
"map_sendToContact": "发送给联系人",
"map_sendToChannel": "发送到频道",
@@ -2022,6 +2025,44 @@
"discoveredContacts_noMatching": "没有匹配的联系人",
"discoveredContacts_Title": "已发现的联系人",
"discoveredContacts_copyContact": "复制联系人到剪贴板",
"discoveredContacts_export": "导出已发现的联系人",
"discoveredContacts_import": "导入已发现的联系人",
"discoveredContacts_exported": "已将已发现的联系人导出到{path}。",
"@discoveredContacts_exported": {
"placeholders": {
"path": {
"type": "String"
}
}
},
"discoveredContacts_exportFailed": "导出已发现的联系人失败:{error}",
"@discoveredContacts_exportFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"discoveredContacts_imported": "已导入{count}个已发现的联系人。",
"@discoveredContacts_imported": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"discoveredContacts_importNoContacts": "在导入文件中未找到联系人。",
"discoveredContacts_importInvalidFile": "该文件不是已发现联系人的导出文件。",
"discoveredContacts_importSummary": "已导入:{imported},已跳过(已存在):{skipped},无法读取的条目:{invalid}。",
"discoveredContacts_importTooLarge": "导入文件过大(最大 {maxMb} MB)。",
"discoveredContacts_importFailed": "导入已发现的联系人失败:{error}",
"@discoveredContacts_importFailed": {
"placeholders": {
"error": {
"type": "String"
}
}
},
"contactsSettings_overwriteOldestSubtitle": "当联系人列表已满时,将替换最老的非收藏联系人。",
"contactsSettings_evictDiscoveredContactsTitle": "清除已发现的联系人",
"contactsSettings_evictDiscoveredContactsSubtitle": "启用后,当已发现联系人列表达到 {limit} 条的上限时,应用会移除最旧的已发现联系人。",
-2
View File
@@ -20,7 +20,6 @@ class Contact {
final DateTime lastMessageAt;
final DateTime? lastModified;
final bool isActive;
final bool wasPulled;
final Uint8List? rawPacket;
Contact({
@@ -39,7 +38,6 @@ class Contact {
this.lastModified,
DateTime? lastMessageAt,
this.isActive = true,
this.wasPulled = false,
this.rawPacket,
}) : lastMessageAt = lastMessageAt ?? lastSeen;
+160 -38
View File
@@ -12,6 +12,7 @@ import 'package:provider/provider.dart';
import '../connector/meshcore_connector.dart';
import '../models/community.dart';
import '../storage/community_store.dart';
import '../utils/app_logger.dart';
import '../utils/platform_info.dart';
import '../helpers/chat_scroll_controller.dart';
import '../connector/meshcore_protocol.dart';
@@ -34,10 +35,12 @@ import '../services/received_image_store.dart';
import '../services/translation_service.dart';
import '../utils/image_save.dart';
import '../utils/lora_airtime.dart';
import '../widgets/marker_label_dialog.dart';
import '../widgets/received_image_message.dart';
import '../widgets/byte_count_input.dart';
import '../widgets/chat_day_separator.dart';
import '../widgets/empty_state.dart';
import '../widgets/chat_zoom_wrapper.dart';
import '../widgets/emoji_picker.dart';
import '../widgets/gif_message.dart';
@@ -59,6 +62,7 @@ import 'channel_message_path_screen.dart';
import 'map_screen.dart';
import 'region_management_screen.dart';
import '../storage/region_store.dart';
import '../utils/share_origin.dart';
class ChannelChatScreen extends StatefulWidget {
final Channel channel;
@@ -1822,12 +1826,19 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
Future<void> _saveImage(ReceivedImageEntry entry) async {
final l10n = context.l10n;
final shareOrigin = shareOriginOf(context);
final png = await context.read<ReceivedImageStore>().ensurePng(
entry.streamId,
);
if (!mounted) return;
final shareText = l10n.receivedImage_shareCaption(entry.bitstreamByteCount);
if (png == null || !await saveImagePng(png, entry, shareText: shareText)) {
if (png == null ||
!await saveImagePng(
png,
entry,
shareText: shareText,
sharePositionOrigin: shareOrigin,
)) {
if (!mounted) return;
showDismissibleSnackBar(
context,
@@ -2058,44 +2069,105 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
PopupMenuButton<String>(
icon: const Icon(Icons.add_circle_outline),
position: PopupMenuPosition.over,
offset: Offset(0, showImageAction ? -112 : -64),
tooltip: context.l10n.chat_selectSendAction,
onSelected: (action) {
switch (action) {
case 'gif':
_showGifPicker(context);
break;
case 'meshcore-image':
_showImageSendPreview();
break;
}
Builder(
builder: (menuContext) {
return IconButton(
icon: const Icon(Icons.add_circle_outline),
tooltip: context.l10n.chat_selectSendAction,
onPressed: () async {
final RenderBox button =
menuContext.findRenderObject() as RenderBox;
final RenderBox overlay =
Overlay.of(menuContext).context.findRenderObject()
as RenderBox;
final Offset buttonOffset = button.localToGlobal(
Offset.zero,
ancestor: overlay,
);
final items = <PopupMenuEntry<String>>[
PopupMenuItem(
value: 'gif',
child: Row(
children: [
const Icon(Icons.gif_box),
const SizedBox(width: 12),
Text(context.l10n.chat_sendGif),
],
),
),
];
if (showImageAction) {
items.add(
PopupMenuItem(
value: 'meshcore-image',
child: Row(
children: [
const Icon(Icons.image_outlined),
const SizedBox(width: 12),
Text(context.l10n.chat_sendImageLora),
],
),
),
);
}
final selfConnector = context
.read<MeshCoreConnector>();
if (hasShareableLocation(
selfConnector.selfLatitude,
selfConnector.selfLongitude,
)) {
items.add(
PopupMenuItem(
value: 'send-my-location',
child: Row(
children: [
const Icon(Icons.my_location),
const SizedBox(width: 12),
Text(context.l10n.chat_shareMyLocation),
],
),
),
);
}
final menuHeight =
items.length * kMinInteractiveDimension + 16;
final menuTop = (buttonOffset.dy - menuHeight).clamp(
8.0,
overlay.size.height,
);
final position = RelativeRect.fromLTRB(
buttonOffset.dx,
menuTop,
overlay.size.width -
buttonOffset.dx -
button.size.width,
overlay.size.height - buttonOffset.dy,
);
final selected = await showMenu<String>(
context: menuContext,
position: position,
items: items,
);
if (!mounted || !menuContext.mounted) return;
if (selected == null) return;
switch (selected) {
case 'gif':
_showGifPicker(context);
break;
case 'meshcore-image':
_showImageSendPreview();
break;
case 'send-my-location':
await _shareMyLocation(
context.read<MeshCoreConnector>(),
);
break;
}
},
);
},
itemBuilder: (context) => [
PopupMenuItem(
value: 'gif',
child: Row(
children: [
const Icon(Icons.gif_box),
const SizedBox(width: 12),
Text(context.l10n.chat_sendGif),
],
),
),
if (showImageAction)
PopupMenuItem(
value: 'meshcore-image',
child: Row(
children: [
const Icon(Icons.image_outlined),
const SizedBox(width: 12),
Text(context.l10n.chat_sendImageLora),
],
),
),
],
),
if (settings.translationEnabled)
MessageTranslationButton(
@@ -2253,6 +2325,56 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
);
}
/// Shares the radio's own position as a map marker on this channel. It is
/// not a reply, so any reply in progress stays open for the next message;
/// it shares the text send guard and cooldown.
Future<void> _shareMyLocation(MeshCoreConnector connector) async {
final lat = connector.selfLatitude;
final lon = connector.selfLongitude;
if (!hasShareableLocation(lat, lon)) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.chat_noRadioLocation),
);
return;
}
final selfName = connector.selfName;
final label = await showMarkerLabelDialog(
context,
lat: lat!,
lon: lon!,
defaultLabel: selfName != null && selfName.isNotEmpty
? selfName
: context.l10n.map_sharedPin,
flags: 'poi',
confirmText: context.l10n.common_share,
);
if (label == null || label.isEmpty || !mounted || _isSendingText) return;
final now = DateTime.now();
if (_lastChannelSendAt != null &&
now.difference(_lastChannelSendAt!) < const Duration(seconds: 1)) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.chat_sendCooldown),
);
return;
}
_lastChannelSendAt = now;
_isSendingText = true;
try {
await connector.sendChannelMessage(
widget.channel,
formatMarkerText(lat, lon, label, 'poi'),
);
} catch (e) {
// A failed send (e.g. region scope rejected) is already marked failed
// on the message itself.
appLogger.warn('Sharing location failed: $e', tag: 'ChannelChat');
} finally {
_isSendingText = false;
}
}
Future<void> _sendMessage() async {
if (_isSendingText) return;
_isSendingText = true;
+118 -4
View File
@@ -31,6 +31,7 @@ import '../services/path_history_service.dart';
import '../services/translation_service.dart';
import '../widgets/chat_zoom_wrapper.dart';
import '../widgets/byte_count_input.dart';
import '../widgets/marker_label_dialog.dart';
import '../widgets/chat_day_separator.dart';
import 'channel_message_path_screen.dart';
import 'map_screen.dart';
@@ -491,10 +492,76 @@ class _ChatScreenState extends State<ChatScreen> {
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
IconButton(
icon: const Icon(Icons.gif_box_outlined),
tooltip: context.l10n.chat_sendGif,
onPressed: () => _showGifPicker(context),
Builder(
builder: (menuContext) {
return IconButton(
icon: const Icon(Icons.add_circle_outline),
tooltip: context.l10n.chat_selectSendAction,
onPressed: () async {
final RenderBox button =
menuContext.findRenderObject() as RenderBox;
final RenderBox overlay =
Overlay.of(menuContext).context.findRenderObject()
as RenderBox;
final Offset buttonOffset = button.localToGlobal(
Offset.zero,
ancestor: overlay,
);
const menuHeight = 2 * kMinInteractiveDimension + 16;
final menuTop = (buttonOffset.dy - menuHeight).clamp(
8.0,
overlay.size.height,
);
final position = RelativeRect.fromLTRB(
buttonOffset.dx,
menuTop,
overlay.size.width -
buttonOffset.dx -
button.size.width,
overlay.size.height - buttonOffset.dy,
);
final selected = await showMenu<String>(
context: menuContext,
position: position,
items: [
PopupMenuItem(
value: 'gif',
child: Row(
children: [
const Icon(Icons.gif_box),
const SizedBox(width: 12),
Text(context.l10n.chat_sendGif),
],
),
),
PopupMenuItem(
value: 'send-my-location',
child: Row(
children: [
const Icon(Icons.my_location),
const SizedBox(width: 12),
Text(context.l10n.chat_shareMyLocation),
],
),
),
],
);
if (!mounted || !menuContext.mounted) return;
if (selected == null) return;
switch (selected) {
case 'gif':
_showGifPicker(context);
break;
case 'send-my-location':
await _shareMyLocation(
context.read<MeshCoreConnector>(),
);
break;
}
},
);
},
),
if (settings.translationEnabled)
MessageTranslationButton(
@@ -667,6 +734,53 @@ class _ChatScreenState extends State<ChatScreen> {
);
}
/// Shares the radio's own position as a map marker. Shares the text send
/// guard and cooldown so it can't race or flood alongside typed messages.
Future<void> _shareMyLocation(MeshCoreConnector connector) async {
final lat = connector.selfLatitude;
final lon = connector.selfLongitude;
if (!hasShareableLocation(lat, lon)) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.chat_noRadioLocation),
);
return;
}
final selfName = connector.selfName;
final label = await showMarkerLabelDialog(
context,
lat: lat!,
lon: lon!,
defaultLabel: selfName != null && selfName.isNotEmpty
? selfName
: context.l10n.map_sharedPin,
flags: 'poi',
confirmText: context.l10n.common_share,
);
if (label == null || label.isEmpty || !mounted || _isSendingText) return;
final now = DateTime.now();
if (_lastTextSendAt != null &&
now.difference(_lastTextSendAt!) < const Duration(seconds: 1)) {
showDismissibleSnackBar(
context,
content: Text(context.l10n.chat_sendCooldown),
);
return;
}
_lastTextSendAt = now;
_isSendingText = true;
try {
await connector.sendMessage(
_resolveContact(connector),
formatMarkerText(lat, lon, label, 'poi'),
);
} catch (e) {
appLogger.warn('Sharing location failed: $e', tag: 'Chat');
} finally {
_isSendingText = false;
}
}
Future<void> _sendMessage(MeshCoreConnector connector) async {
if (_isSendingText) return;
_isSendingText = true;
+177 -6
View File
@@ -1,8 +1,11 @@
import 'dart:async';
import 'dart:convert';
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:share_plus/share_plus.dart';
import '../connector/meshcore_connector.dart';
import '../connector/meshcore_protocol.dart';
@@ -12,6 +15,7 @@ import '../models/contact.dart';
import '../theme/mesh_theme.dart';
import '../utils/contact_search.dart';
import '../utils/platform_info.dart';
import '../utils/share_origin.dart';
import '../widgets/app_bar.dart';
import '../widgets/list_filter_widget.dart';
import '../widgets/mesh_ui.dart';
@@ -112,9 +116,44 @@ class _DiscoveryScreenState extends State<DiscoveryScreen> {
icon: const Icon(Icons.radar),
onPressed: () => showNodeScanSheet(context, connector),
),
PopupMenuButton(
itemBuilder: (context) => [
PopupMenuItem(
PopupMenuButton<String>(
onSelected: (value) {
switch (value) {
case 'export':
unawaited(_exportDiscoveredContacts(context, connector));
break;
case 'import':
unawaited(_importDiscoveredContacts(context, connector));
break;
case 'delete_all':
_deleteContacts(context, connector);
break;
}
},
itemBuilder: (context) => <PopupMenuEntry<String>>[
PopupMenuItem<String>(
value: 'export',
child: Row(
children: [
const Icon(Icons.upload_file),
const SizedBox(width: 8),
Text(l10n.discoveredContacts_export),
],
),
),
PopupMenuItem<String>(
value: 'import',
child: Row(
children: [
const Icon(Icons.download),
const SizedBox(width: 8),
Text(l10n.discoveredContacts_import),
],
),
),
const PopupMenuDivider(),
PopupMenuItem<String>(
value: 'delete_all',
child: Row(
children: [
Icon(
@@ -125,9 +164,6 @@ class _DiscoveryScreenState extends State<DiscoveryScreen> {
Text(context.l10n.discoveredContacts_deleteContactAll),
],
),
onTap: () {
_deleteContacts(context, connector);
},
),
],
icon: const Icon(Icons.more_vert),
@@ -404,6 +440,141 @@ class _DiscoveryScreenState extends State<DiscoveryScreen> {
);
}
static const int _maxImportBytes = 2 * 1024 * 1024;
Future<void> _exportDiscoveredContacts(
BuildContext context,
MeshCoreConnector connector,
) async {
final l10n = context.l10n;
final messenger = ScaffoldMessenger.of(context);
final shareOrigin = shareOriginOf(context);
final json = connector.exportDiscoveredContactsJson();
try {
const filename = 'meshcore_discovered_contacts.json';
final exportFile = XFile.fromData(
Uint8List.fromList(utf8.encode(json)),
mimeType: 'application/json',
name: filename,
);
if (PlatformInfo.isDesktop) {
final location = await getSaveLocation(
suggestedName: filename,
acceptedTypeGroups: [
const XTypeGroup(label: 'JSON', extensions: ['json']),
],
);
if (!mounted) return;
if (location == null) return;
await exportFile.saveTo(location.path);
if (!mounted) return;
messenger.showSnackBar(
SnackBar(
content: Text(l10n.discoveredContacts_exported(location.path)),
),
);
return;
}
// Mobile shares the in-memory file; web shares it or, without the Web
// Share API, downloads it (reported as `unavailable`).
final result = await SharePlus.instance.share(
ShareParams(
subject: filename,
files: [exportFile],
fileNameOverrides: const [filename],
sharePositionOrigin: shareOrigin,
),
);
if (!mounted) return;
final delivered =
result.status == ShareResultStatus.success ||
(PlatformInfo.isWeb &&
result.status == ShareResultStatus.unavailable);
if (delivered) {
messenger.showSnackBar(
SnackBar(content: Text(l10n.discoveredContacts_exported(filename))),
);
}
} catch (e) {
if (!mounted) return;
messenger.showSnackBar(
SnackBar(
content: Text(l10n.discoveredContacts_exportFailed(e.toString())),
),
);
}
}
Future<void> _importDiscoveredContacts(
BuildContext context,
MeshCoreConnector connector,
) async {
final l10n = context.l10n;
final messenger = ScaffoldMessenger.of(context);
void show(String text) {
if (!mounted) return;
messenger.showSnackBar(SnackBar(content: Text(text)));
}
try {
final file = await openFile(
acceptedTypeGroups: [
const XTypeGroup(label: 'JSON', extensions: ['json']),
],
);
// A null file means the picker was cancelled.
if (file == null) return;
if (await file.length() > _maxImportBytes) {
show(
l10n.discoveredContacts_importTooLarge(
_maxImportBytes ~/ (1024 * 1024),
),
);
return;
}
final String text;
try {
text = utf8.decode(await file.readAsBytes());
} on FormatException {
show(
l10n.discoveredContacts_importFailed(
l10n.discoveredContacts_importInvalidFile,
),
);
return;
}
// Strip a UTF-8 byte order mark if present.
final json = text.startsWith('\ufeff') ? text.substring(1) : text;
final result = await connector.importDiscoveredContactsJson(json);
if (result.total == 0) {
show(l10n.discoveredContacts_importNoContacts);
} else if (result.skipped == 0 && result.invalid == 0) {
show(l10n.discoveredContacts_imported(result.imported));
} else {
show(
l10n.discoveredContacts_importSummary(
result.imported,
result.skipped,
result.invalid,
),
);
}
} on FormatException {
show(
l10n.discoveredContacts_importFailed(
l10n.discoveredContacts_importInvalidFile,
),
);
} catch (e) {
show(l10n.discoveredContacts_importFailed(e.toString()));
}
}
Widget _buildFilters(
List<Contact> filteredAndSorted,
MeshCoreConnector connector,
+11 -67
View File
@@ -28,6 +28,7 @@ import '../utils/contact_search.dart';
import '../utils/disconnect_navigation_mixin.dart';
import '../utils/battery_utils.dart';
import '../utils/route_transitions.dart';
import '../widgets/marker_label_dialog.dart';
import '../widgets/quick_switch_bar.dart';
import '../widgets/sync_progress_overlay.dart';
import '../icons/los_icon.dart';
@@ -3120,21 +3121,15 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
return;
}
// The whole `m:lat,lon|label|flags` text must fit in one message to
// either a contact or a channel, so the label gets what's left.
final maxMessageBytes = min(
maxContactMessageBytes(),
maxChannelMessageBytes(connector.selfName),
);
final label = await _promptForLabel(
// A map point is not the user's own position, so it keeps the point's
// default label; reusing one label would move earlier shared points.
final label = await showMarkerLabelDialog(
context,
defaultLabel,
maxBytes: maxMessageBytes,
encode: (text) => _formatMarkerMessage(
position,
text.trim().replaceAll('|', '/'),
flags,
),
lat: position.latitude,
lon: position.longitude,
defaultLabel: defaultLabel,
flags: flags,
confirmText: context.l10n.common_continue,
);
if (label == null || !mounted) return;
@@ -3149,53 +3144,6 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
);
}
Future<String?> _promptForLabel(
BuildContext context,
String defaultLabel, {
required int maxBytes,
required String Function(String label) encode,
}) async {
final fixedBytes = utf8ByteLength(encode(''));
final fittedDefault = truncateUtf8(defaultLabel, maxBytes - fixedBytes);
final controller = TextEditingController(text: fittedDefault);
controller.selection = TextSelection(
baseOffset: 0,
extentOffset: controller.text.length,
);
return showDialog<String>(
context: context,
builder: (dialogContext) => AlertDialog(
title: Text(context.l10n.map_pinLabel),
content: TextField(
controller: controller,
decoration: InputDecoration(
hintText: context.l10n.map_label,
border: const OutlineInputBorder(),
),
inputFormatters: [
Utf8LengthLimitingTextInputFormatter(maxBytes, encoder: encode),
],
),
actions: [
TextButton(
onPressed: () => Navigator.pop(dialogContext),
child: Text(context.l10n.common_cancel),
),
TextButton(
onPressed: () {
final label = controller.text.trim().replaceAll('|', '/');
Navigator.pop(
dialogContext,
label.isEmpty ? fittedDefault : label,
);
},
child: Text(context.l10n.common_continue),
),
],
),
);
}
bool _markerFits(BuildContext context, String markerText, int maxBytes) {
if (utf8ByteLength(markerText) <= maxBytes) return true;
showDismissibleSnackBar(
@@ -3205,11 +3153,8 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
return false;
}
String _formatMarkerMessage(LatLng position, String label, String flags) {
final lat = position.latitude.toStringAsFixed(6);
final lon = position.longitude.toStringAsFixed(6);
return 'm:$lat,$lon|$label|$flags';
}
String _formatMarkerMessage(LatLng position, String label, String flags) =>
formatMarkerText(position.latitude, position.longitude, label, flags);
Future<void> _showRecipientSheet({
required BuildContext context,
@@ -3915,7 +3860,6 @@ int _mapContactSignature(Contact contact) {
contact.lastSeen.millisecondsSinceEpoch,
contact.lastMessageAt.millisecondsSinceEpoch,
contact.isActive,
contact.wasPulled,
);
}
+2
View File
@@ -24,6 +24,7 @@ import '../widgets/radio_stats_entry.dart';
import 'telemetry_screen.dart';
import '../widgets/sync_progress_overlay.dart';
import 'region_management_screen.dart';
import '../utils/share_origin.dart';
/// Convert device coding-rate value (1-4 on some firmware, 5-8 on others)
/// to the UI enum range (always 5-8).
@@ -1206,6 +1207,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
filename,
shareText,
subject,
sharePositionOrigin: shareOriginOf(context),
);
if (!mounted) return;
switch (result) {
+144 -9
View File
@@ -53,6 +53,98 @@ class ContactDiscoveryStore {
await prefs.setString(keyFor, jsonEncode(jsonList));
}
/// Exports [contacts] for sharing. Routing paths are left out: a path is
/// the route from this radio and is meaningless on another one.
String exportContactsJson(List<Contact> contacts) {
final jsonList = contacts.map((contact) {
final json = _toJson(contact);
for (final key in _pathKeys) {
json.remove(key);
}
return json;
}).toList();
return jsonEncode(jsonList);
}
static const List<String> _pathKeys = [
'pathLength',
'path',
'pathHashWidth',
'pathOverride',
'pathOverrideBytes',
];
/// Merges an export file into [existingContacts], each entry on its own:
/// a malformed entry is counted as invalid instead of failing the file.
///
/// Skips radio contacts ([knownContactKeys]), discovered contacts already
/// present (they are fresher), duplicates within the file, and the
/// connected radio's own key. Imported paths are dropped (they belong to the
/// exporting radio) and timestamps are clamped to [now].
///
/// Throws [FormatException] when the file is not a JSON list.
DiscoveredContactsImportResult importContactsJson({
required String json,
required List<Contact> existingContacts,
required Set<String> knownContactKeys,
String? selfPublicKeyHex,
DateTime? now,
}) {
final Object? decoded;
try {
decoded = jsonDecode(json);
} on FormatException {
rethrow;
} catch (e) {
throw FormatException('Not valid JSON: $e');
}
if (decoded is! List) {
throw const FormatException('Expected a list of contacts');
}
final clampTo = now ?? DateTime.now();
final seenKeys = {for (final c in existingContacts) c.publicKeyHex};
var imported = 0;
var skipped = 0;
var invalid = 0;
for (final entry in decoded) {
final Contact contact;
try {
if (entry is! Map<String, dynamic>) {
throw const FormatException('Entry is not an object');
}
contact = _fromJson(entry, importing: true, clampTo: clampTo);
if (contact.publicKey.length != _pubKeySize) {
throw const FormatException('Public key must be 32 bytes');
}
} catch (e) {
appLogger.warn('Skipping invalid imported discovered contact: $e');
invalid++;
continue;
}
final keyHex = contact.publicKeyHex;
if (keyHex == selfPublicKeyHex ||
knownContactKeys.contains(keyHex) ||
!seenKeys.add(keyHex)) {
skipped++;
continue;
}
existingContacts.add(contact);
imported++;
}
return DiscoveredContactsImportResult(
total: decoded.length,
imported: imported,
skipped: skipped,
invalid: invalid,
);
}
static const int _pubKeySize = 32;
Map<String, dynamic> _toJson(Contact contact) {
return {
'publicKey': base64Encode(contact.publicKey),
@@ -71,25 +163,39 @@ class ContactDiscoveryStore {
'lastSeen': contact.lastSeen.millisecondsSinceEpoch,
'lastModified': contact.lastModified?.millisecondsSinceEpoch,
'lastMessageAt': contact.lastMessageAt.millisecondsSinceEpoch,
'isActive': contact.isActive,
'rawPacket': contact.rawPacket != null
? base64Encode(contact.rawPacket!)
: null,
};
}
Contact _fromJson(Map<String, dynamic> json) {
final lastSeenMs = json['lastSeen'] as int? ?? 0;
final lastMessageMs = json['lastMessageAt'] as int?;
final lastModifiedMs = json['lastModified'] as int?;
Contact _fromJson(
Map<String, dynamic> json, {
bool importing = false,
DateTime? clampTo,
}) {
int? clampMs(int? ms) {
if (ms == null || clampTo == null) return ms;
final limit = clampTo.millisecondsSinceEpoch;
return ms > limit ? limit : ms;
}
final rawPathLength = json['pathLength'] as int? ?? -1;
final rawPath = json['path'] != null
final lastSeenMs = clampMs((json['lastSeen'] as num?)?.toInt()) ?? 0;
final lastMessageMs = clampMs((json['lastMessageAt'] as num?)?.toInt());
final lastModifiedMs = clampMs((json['lastModified'] as num?)?.toInt());
// An imported path is the exporting radio's route: never reuse it.
final rawPathLength = importing ? -1 : json['pathLength'] as int? ?? -1;
final rawPath = !importing && json['path'] != null
? Uint8List.fromList(base64Decode(json['path'] as String))
: Uint8List(0);
int decodedPathLength = rawPathLength;
Uint8List decodedPath = rawPath;
int? decodedPathHashWidth = json['pathHashWidth'] as int?;
int? decodedPathHashWidth = importing
? null
: json['pathHashWidth'] as int?;
if (rawPathLength == 0xFF || rawPathLength < 0) {
decodedPathLength = -1;
@@ -120,8 +226,8 @@ class ContactDiscoveryStore {
pathHashWidth:
decodedPathHashWidth ??
Contact.inferPathHashWidth(decodedPathLength, decodedPath.length),
pathOverride: json['pathOverride'] as int?,
pathOverrideBytes: json['pathOverrideBytes'] != null
pathOverride: importing ? null : json['pathOverride'] as int?,
pathOverrideBytes: !importing && json['pathOverrideBytes'] != null
? Uint8List.fromList(
base64Decode(json['pathOverrideBytes'] as String),
)
@@ -142,3 +248,32 @@ class ContactDiscoveryStore {
);
}
}
/// Outcome of [ContactDiscoveryStore.importContactsJson].
class DiscoveredContactsImportResult {
const DiscoveredContactsImportResult({
required this.total,
required this.imported,
required this.skipped,
required this.invalid,
});
static const empty = DiscoveredContactsImportResult(
total: 0,
imported: 0,
skipped: 0,
invalid: 0,
);
/// Entries in the file.
final int total;
/// Entries added as new discovered contacts.
final int imported;
/// Valid entries already known (contact, discovered, duplicate, or self).
final int skipped;
/// Entries that could not be read.
final int invalid;
}
+11 -3
View File
@@ -1,3 +1,5 @@
import 'dart:ui' show Rect;
import 'package:flutter/foundation.dart';
import 'package:gpx/gpx.dart';
import 'package:meshcore_open/connector/meshcore_connector.dart';
@@ -122,8 +124,9 @@ class GpxExport {
String description,
String filename,
String shareText,
String subject,
) async {
String subject, {
Rect? sharePositionOrigin,
}) async {
if (PlatformInfo.isWeb) {
debugPrint("GPX export is not supported on Web.");
return gpxExportNotAvailable;
@@ -197,7 +200,12 @@ class GpxExport {
await file.writeAsString(xml);
final result = await SharePlus.instance.share(
ShareParams(text: shareText, subject: subject, files: [XFile(path)]),
ShareParams(
text: shareText,
subject: subject,
files: [XFile(path)],
sharePositionOrigin: sharePositionOrigin,
),
);
await file.delete();
+4
View File
@@ -1,4 +1,6 @@
import 'package:file_selector/file_selector.dart';
import 'dart:ui' show Rect;
import 'package:flutter/foundation.dart';
import 'package:share_plus/share_plus.dart';
@@ -12,6 +14,7 @@ Future<bool> saveImagePng(
Uint8List png,
ReceivedImageEntry entry, {
String? shareText,
Rect? sharePositionOrigin,
}) async {
final name = entry.synthesized
? 'meshcore-ai-reconstructed-${entry.streamId}.png'
@@ -33,6 +36,7 @@ Future<bool> saveImagePng(
files: [file],
fileNameOverrides: [name],
text: entry.synthesized ? shareText : null,
sharePositionOrigin: sharePositionOrigin,
),
);
return result.status != ShareResultStatus.unavailable;
+10
View File
@@ -0,0 +1,10 @@
import 'package:flutter/widgets.dart';
/// The on-screen rect of [context]'s widget, for share_plus'
/// `sharePositionOrigin`. iPad anchors the share popover to it and throws
/// without one; other platforms ignore it.
Rect? shareOriginOf(BuildContext context) {
final box = context.findRenderObject();
if (box is! RenderBox || !box.hasSize || box.size.isEmpty) return null;
return box.localToGlobal(Offset.zero) & box.size;
}
+5
View File
@@ -22,6 +22,9 @@ class ByteCountedTextField extends StatelessWidget {
/// Optional focus node forwarded to the inner [TextField].
final FocusNode? focusNode;
/// Whether the inner [TextField] requests focus when first built.
final bool autofocus;
/// Hint text shown when the field is empty.
final String? hintText;
@@ -64,6 +67,7 @@ class ByteCountedTextField extends StatelessWidget {
required this.maxBytes,
required this.controller,
this.focusNode,
this.autofocus = false,
this.hintText,
this.textInputAction = TextInputAction.send,
this.onSubmitted,
@@ -108,6 +112,7 @@ class ByteCountedTextField extends StatelessWidget {
maxLines: null,
controller: controller,
focusNode: focusNode,
autofocus: autofocus,
inputFormatters: [
...extraFormatters,
Utf8LengthLimitingTextInputFormatter(
+147
View File
@@ -0,0 +1,147 @@
import 'package:flutter/material.dart';
import '../connector/meshcore_protocol.dart';
import '../helpers/guessed_location_estimator.dart';
import '../helpers/utf8_length_limiter.dart';
import '../l10n/l10n.dart';
import '../theme/mesh_theme.dart';
import 'byte_count_input.dart';
/// Makes [label] safe for the `m:lat,lon|label|flags` marker format: a `|`
/// would split the label into the flags field and a line break would end the
/// message, so both are replaced.
String sanitizeMarkerLabel(String label) =>
label.replaceAll('|', '/').replaceAll(RegExp(r'[\r\n]+'), ' ').trim();
/// The shared-marker message text parsed by `parseMarkerText`.
String formatMarkerText(double lat, double lon, String label, String flags) =>
'm:${lat.toStringAsFixed(6)},${lon.toStringAsFixed(6)}|'
'${sanitizeMarkerLabel(label)}|$flags';
/// Bytes left for the label once the marker's fixed parts are counted, using
/// the smaller of the contact and (worst-case sender name) channel limits so
/// the marker fits either destination.
int markerLabelByteBudget(double lat, double lon, String flags) {
final maxPayload = [
maxContactMessageBytes(),
maxChannelMessageBytes(null),
].reduce((a, b) => a < b ? a : b);
final overhead = utf8ByteLength(formatMarkerText(lat, lon, '', flags));
final budget = maxPayload - overhead;
return budget > 0 ? budget : 0;
}
/// Whether the radio reports a usable position. Firmware sends 0,0 when no
/// location is set, which must not be shared as a real marker.
bool hasShareableLocation(double? lat, double? lon) =>
lat != null && lon != null && isPlausibleLocation(lat, lon);
/// Asks for a marker label. Returns the sanitised label (or the sanitised
/// [defaultLabel] when left empty), or null when cancelled.
Future<String?> showMarkerLabelDialog(
BuildContext context, {
required double lat,
required double lon,
required String defaultLabel,
required String flags,
required String confirmText,
}) {
return showDialog<String>(
context: context,
builder: (_) => MarkerLabelDialog(
maxBytes: markerLabelByteBudget(lat, lon, flags),
defaultLabel: defaultLabel,
confirmText: confirmText,
),
);
}
/// Label prompt for a shared map marker. Owns its controller and focus node
/// so they outlive the dialog's exit animation instead of being disposed
/// while the field is still mounted.
class MarkerLabelDialog extends StatefulWidget {
const MarkerLabelDialog({
super.key,
required this.maxBytes,
required this.defaultLabel,
required this.confirmText,
});
final int maxBytes;
final String defaultLabel;
final String confirmText;
@override
State<MarkerLabelDialog> createState() => _MarkerLabelDialogState();
}
class _MarkerLabelDialogState extends State<MarkerLabelDialog> {
late final String _fittedDefault = truncateUtf8(
sanitizeMarkerLabel(widget.defaultLabel),
widget.maxBytes,
);
late final TextEditingController _controller =
TextEditingController(text: _fittedDefault)
..selection = TextSelection(
baseOffset: 0,
extentOffset: _fittedDefault.length,
);
final FocusNode _focusNode = FocusNode();
@override
void dispose() {
_focusNode.dispose();
_controller.dispose();
super.dispose();
}
void _submit() {
final label = sanitizeMarkerLabel(_controller.text);
Navigator.pop(context, label.isEmpty ? _fittedDefault : label);
}
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
final scheme = Theme.of(context).colorScheme;
final border = OutlineInputBorder(
borderRadius: BorderRadius.circular(MeshRadii.md),
borderSide: BorderSide(color: scheme.outlineVariant),
);
return AlertDialog(
title: Text(l10n.map_pinLabel),
content: ByteCountedTextField(
autofocus: true,
focusNode: _focusNode,
maxBytes: widget.maxBytes,
controller: _controller,
decoration: InputDecoration(
hintText: l10n.map_label,
helperText: l10n.map_labelUpdateHint,
helperMaxLines: 3,
helperStyle: TextStyle(color: scheme.onSurfaceVariant, fontSize: 12),
border: border,
enabledBorder: border,
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(MeshRadii.md),
borderSide: BorderSide(color: scheme.primary, width: 1.5),
),
filled: true,
fillColor: scheme.surfaceContainerLow,
contentPadding: const EdgeInsets.symmetric(
horizontal: 18,
vertical: 12,
),
),
onSubmitted: (_) => _submit(),
),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: Text(l10n.common_cancel),
),
FilledButton(onPressed: _submit, child: Text(widget.confirmText)),
],
);
}
}