From 2d05fba69f6bce765ba6107f7f1875910fb51e75 Mon Sep 17 00:00:00 2001 From: Alwin <2625857+TheButterZone@users.noreply.github.com> Date: Mon, 23 Nov 2026 04:18:17 +0000 Subject: [PATCH 01/17] Add West Coast Mesh regions' settings --- lib/models/radio_settings.dart | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/models/radio_settings.dart b/lib/models/radio_settings.dart index 56810e3b..c55d72fb 100644 --- a/lib/models/radio_settings.dart +++ b/lib/models/radio_settings.dart @@ -501,6 +501,26 @@ class RadioSettings { txPowerDbm: 22, ), ), + ( + 'USA Sacramento-Foothills', + RadioSettings( + frequencyMHz: 909.875, + bandwidth: LoRaBandwidth.bw62_5, + spreadingFactor: LoRaSpreadingFactor.sf9, + codingRate: LoRaCodingRate.cr4_5, + txPowerDbm: 22, + ), + ), + ( + 'USA Southern California', + RadioSettings( + frequencyMHz: 927.875, + bandwidth: LoRaBandwidth.bw62_5, + spreadingFactor: LoRaSpreadingFactor.sf7, + codingRate: LoRaCodingRate.cr4_5, + txPowerDbm: 22, + ), + ), ( 'USA/Canada', RadioSettings( From 9120452c7f7f474687e927859e79d8cd73a005f1 Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:46:11 -0700 Subject: [PATCH 02/17] Recompute translation sheet height cap when insets change --- lib/widgets/message_translation_button.dart | 44 ++++++++-------- .../message_translation_button_test.dart | 50 ++++++++++++++++--- 2 files changed, 66 insertions(+), 28 deletions(-) diff --git a/lib/widgets/message_translation_button.dart b/lib/widgets/message_translation_button.dart index 1ccfb42f..90e07fa8 100644 --- a/lib/widgets/message_translation_button.dart +++ b/lib/widgets/message_translation_button.dart @@ -41,31 +41,33 @@ Future showMessageTranslationSheet({ required ValueChanged onEnabledChanged, required ValueChanged onLanguageSelected, }) { - final callerMedia = MediaQuery.of(context); - final navMedia = - MediaQuery.maybeOf(Navigator.of(context).context) ?? callerMedia; - final callerBottom = math.max( - callerMedia.viewInsets.bottom, - math.max(callerMedia.viewPadding.bottom, callerMedia.padding.bottom), - ); - final navBottom = math.max( - navMedia.viewInsets.bottom, - math.max(navMedia.viewPadding.bottom, navMedia.padding.bottom), - ); - final extraBottom = math.max(0.0, callerBottom - navBottom); - final safeTop = math.max( - math.max(callerMedia.viewPadding.top, callerMedia.padding.top), - math.max(navMedia.viewPadding.top, navMedia.padding.top), - ); - final bottomSafeInset = math.max( - math.max(callerMedia.viewPadding.bottom, callerMedia.padding.bottom), - math.max(navMedia.viewPadding.bottom, navMedia.padding.bottom), - ); - return showMeshSheet( context, builder: (sheetContext) { final sheetMedia = MediaQuery.of(sheetContext); + final callerMedia = + (context.mounted ? MediaQuery.maybeOf(context) : null) ?? sheetMedia; + final navContext = Navigator.maybeOf(sheetContext)?.context; + final navMedia = + (navContext != null ? MediaQuery.maybeOf(navContext) : null) ?? + callerMedia; + final callerBottom = math.max( + callerMedia.viewInsets.bottom, + math.max(callerMedia.viewPadding.bottom, callerMedia.padding.bottom), + ); + final navBottom = math.max( + navMedia.viewInsets.bottom, + math.max(navMedia.viewPadding.bottom, navMedia.padding.bottom), + ); + final extraBottom = math.max(0.0, callerBottom - navBottom); + final safeTop = math.max( + math.max(callerMedia.viewPadding.top, callerMedia.padding.top), + math.max(navMedia.viewPadding.top, navMedia.padding.top), + ); + final bottomSafeInset = math.max( + math.max(callerMedia.viewPadding.bottom, callerMedia.padding.bottom), + math.max(navMedia.viewPadding.bottom, navMedia.padding.bottom), + ); final screenHeight = math.min( callerMedia.size.height, sheetMedia.size.height, diff --git a/test/widgets/message_translation_button_test.dart b/test/widgets/message_translation_button_test.dart index 5030298b..06cbdd8d 100644 --- a/test/widgets/message_translation_button_test.dart +++ b/test/widgets/message_translation_button_test.dart @@ -54,13 +54,7 @@ Future _openSheet( builder: (context, child) { final media = MediaQuery.of(context); return MediaQuery( - data: media.copyWith( - size: size, - padding: padding, - viewPadding: viewPadding, - viewInsets: viewInsets, - textScaler: TextScaler.linear(textScale), - ), + data: media.copyWith(textScaler: TextScaler.linear(textScale)), child: child!, ); }, @@ -128,6 +122,48 @@ void main() { }, ); + testWidgets( + 'sheet recomputes height cap and expands when keyboard inset closes', + (tester) async { + await _openSheet( + tester, + size: const Size(320, 568), + padding: const EdgeInsets.only(top: 48), + viewPadding: const EdgeInsets.only(top: 48, bottom: 34), + viewInsets: const EdgeInsets.only(bottom: 300), + ); + + final listFinder = find.byType(CustomScrollView); + expect(listFinder, findsOneWidget); + final compressedHeaderTop = tester + .getTopLeft(find.byType(BottomSheetHeader)) + .dy; + final compressedBottom = tester.getBottomLeft(listFinder).dy; + final compressedContentHeight = compressedBottom - compressedHeaderTop; + expect(compressedContentHeight, lessThanOrEqualTo(220.0)); + + // Dismiss the keyboard while the sheet remains open. + tester.view.viewInsets = FakeViewPadding.zero; + tester.view.padding = const FakeViewPadding(top: 48, bottom: 34); + await tester.pumpAndSettle(); + + final expandedHeaderTop = tester + .getTopLeft(find.byType(BottomSheetHeader)) + .dy; + final expandedListFinder = find.byType(ListView); + expect(expandedListFinder, findsOneWidget); + final expandedBottom = tester.getBottomLeft(expandedListFinder).dy; + final expandedContentHeight = expandedBottom - expandedHeaderTop; + + expect(expandedContentHeight, greaterThan(compressedContentHeight)); + expect(expandedContentHeight, greaterThan(400.0)); + expect( + tester.getRect(find.byType(BottomSheet)).height, + greaterThan(450.0), + ); + }, + ); + testWidgets( 'toggling switch, filtering languages, and selecting target or app language works', (tester) async { From fc7bbe9e021cf568bf47bd96110992fdc1d3f9d2 Mon Sep 17 00:00:00 2001 From: celsoazevedo Date: Mon, 23 Nov 2026 20:26:32 +0000 Subject: [PATCH 03/17] Settings: open dedicated pages instead of dialogs Node Name, Radio Settings, Location, Contact Settings, Privacy and About now open pages laid out like App Settings. Settings stored on the radio are sent only on Save, with a warning when leaving unsaved changes. - Shared SaveToRadioPage / UnsavedChangesGuard / MeshInfoCard - Node Name byte counter, Location map picker, About links - Export Data refresh; Settings text and title consistency - Radio Settings docs corrected against code and firmware - design.md: settings pages, Save rules, text and app bar rules Co-Authored-By: Claude Opus 5.5 --- documentation/design.md | 64 +- documentation/map-and-location.md | 2 +- documentation/settings.md | 83 +- lib/l10n/app_bg.arb | 111 ++- lib/l10n/app_cs.arb | 103 ++- lib/l10n/app_de.arb | 103 ++- lib/l10n/app_en.arb | 121 ++- lib/l10n/app_es.arb | 105 ++- lib/l10n/app_fr.arb | 101 ++- lib/l10n/app_hu.arb | 107 ++- lib/l10n/app_it.arb | 103 ++- lib/l10n/app_ja.arb | 103 ++- lib/l10n/app_ko.arb | 107 ++- lib/l10n/app_localizations.dart | 314 +++++-- lib/l10n/app_localizations_bg.dart | 229 +++-- lib/l10n/app_localizations_cs.dart | 218 +++-- lib/l10n/app_localizations_de.dart | 217 +++-- lib/l10n/app_localizations_en.dart | 215 +++-- lib/l10n/app_localizations_es.dart | 222 +++-- lib/l10n/app_localizations_fr.dart | 215 +++-- lib/l10n/app_localizations_hu.dart | 225 +++-- lib/l10n/app_localizations_it.dart | 217 +++-- lib/l10n/app_localizations_ja.dart | 205 +++-- lib/l10n/app_localizations_ko.dart | 206 +++-- lib/l10n/app_localizations_nl.dart | 213 +++-- lib/l10n/app_localizations_pl.dart | 224 +++-- lib/l10n/app_localizations_pt.dart | 434 ++++++--- lib/l10n/app_localizations_ru.dart | 221 +++-- lib/l10n/app_localizations_sk.dart | 234 +++-- lib/l10n/app_localizations_sl.dart | 228 +++-- lib/l10n/app_localizations_sv.dart | 218 +++-- lib/l10n/app_localizations_uk.dart | 221 +++-- lib/l10n/app_localizations_zh.dart | 193 ++-- lib/l10n/app_nl.arb | 101 ++- lib/l10n/app_pl.arb | 107 ++- lib/l10n/app_pt.arb | 107 ++- lib/l10n/app_pt_PT.arb | 94 +- lib/l10n/app_ru.arb | 105 ++- lib/l10n/app_sk.arb | 116 +-- lib/l10n/app_sl.arb | 111 ++- lib/l10n/app_sv.arb | 105 ++- lib/l10n/app_uk.arb | 105 ++- lib/l10n/app_zh.arb | 103 ++- lib/review_mode/review_script.dart | 3 +- lib/screens/about_screen.dart | 204 +++++ lib/screens/add_contact_screen.dart | 28 +- lib/screens/contact_settings_screen.dart | 188 ++++ lib/screens/coordinate_map_screen.dart | 12 +- lib/screens/export_screen.dart | 33 +- lib/screens/location_picker_screen.dart | 192 ++++ lib/screens/location_settings_screen.dart | 329 +++++++ lib/screens/map_screen.dart | 21 +- lib/screens/node_name_screen.dart | 196 +++++ lib/screens/privacy_settings_screen.dart | 205 +++++ .../radio_settings_screen.dart} | 550 +++++++----- lib/screens/settings_screen.dart | 828 +----------------- lib/utils/gpx_export.dart | 61 +- lib/widgets/elements_ui.dart | 112 --- lib/widgets/mesh_nav_tile.dart | 11 +- lib/widgets/mesh_ui.dart | 85 +- lib/widgets/unsaved_changes_guard.dart | 195 +++++ test/review_mode/review_radio_test.dart | 2 +- test/screens/export_test.dart | 150 ++++ .../message_filter_settings_screen_test.dart | 2 +- test/screens/settings_pages_test.dart | 391 +++++++++ test/screens/small_screen_layout_test.dart | 26 +- 66 files changed, 7011 insertions(+), 3749 deletions(-) create mode 100644 lib/screens/about_screen.dart create mode 100644 lib/screens/contact_settings_screen.dart create mode 100644 lib/screens/location_picker_screen.dart create mode 100644 lib/screens/location_settings_screen.dart create mode 100644 lib/screens/node_name_screen.dart create mode 100644 lib/screens/privacy_settings_screen.dart rename lib/{widgets/radio_settings_dialog.dart => screens/radio_settings_screen.dart} (67%) delete mode 100644 lib/widgets/elements_ui.dart create mode 100644 lib/widgets/unsaved_changes_guard.dart create mode 100644 test/screens/export_test.dart create mode 100644 test/screens/settings_pages_test.dart diff --git a/documentation/design.md b/documentation/design.md index fa168ca7..6d1443dd 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -2,7 +2,7 @@ How MeshCore Open's interface is built today, and the rules to follow when adding or changing UI. Every value below comes from the code it cites. If you change one of those sources, or settle on a new pattern, update this page in the same change. -The source of truth is `lib/theme/mesh_theme.dart` (theme), `lib/widgets/mesh_ui.dart` (shared widgets), `lib/widgets/settings_reveal.dart` (reveal-on-enable and settings sliders) and `lib/widgets/mesh_nav_tile.dart` (settings rows). Where the code disagrees with this page, fix one of them; do not copy the inconsistency. +The source of truth is `lib/theme/mesh_theme.dart` (theme), `lib/widgets/mesh_ui.dart` (shared widgets), `lib/widgets/settings_reveal.dart` (reveal-on-enable and settings sliders), `lib/widgets/mesh_nav_tile.dart` (settings rows) and `lib/widgets/unsaved_changes_guard.dart` (Save and the leave warning on pages that save to a radio). Where the code disagrees with this page, fix one of them; do not copy the inconsistency. ## 1. Principles @@ -119,10 +119,17 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act |---|---|---| | Group of related content | `MeshCard` | `onTap`/`onLongPress` give ink feedback; long-press adds a selection haptic | | Label above a group | `SectionHeader(label, trailing:)` | Upper-cases for you; pass the normal-case l10n string | -| Settings navigation row | `MeshNavTile` | `onTap: null` dims it to 50 % and reports it as disabled; use `subtitle` to say why | +| Settings navigation row | `MeshNavTile` | `onTap: null` dims it to 50 % and reports it as disabled; use `subtitle` to say why. `iconSlot` shows a themeable icon (e.g. node types, as in the contact list) | | Settings switch | `SwitchListTile` inside `MeshSettingsTileTheme` | Wrap the settings screen body once in `MeshSettingsTileTheme` | | Switch that reveals more controls | `SettingsReveal` | 200ms height ease, `surfaceContainerHighest`, 16px start indent. See [Reveal on enable](#reveal-on-enable) | | Settings slider | `SettingsValueSlider` | Requires a 24px `icon` (`ListTile.leading`). The title includes the selected number, so it stays visible. The drag bubble repeats it | +| Read-only value in a settings row | 24px `onSurfaceVariant` icon, title (`meshTileTitleStyle`), the value on its own line in `MeshTheme.mono` 15 w500 `onSurface`, subtitle `bodyMedium` `onSurfaceVariant` | Same value style as the Settings device info card; not `StatTile`, which is for status screens (Node Name message length) | +| Settings saved to a radio | `SaveToRadioPage(title:, hasChanges:, onSave:, children:)` | See [Settings pages](#settings-pages). A custom scaffold uses `UnsavedChangesGuard` + `SaveChangesAction` | +| Section explanation | `SectionHeader(label, description:)` | One or two short sentences in `bodyMedium` `onSurfaceVariant` under the label, for a note that belongs to one section (Node Name, Location) | +| Option that needs a longer explanation | `MeshCard(padding: EdgeInsets.zero)`: explanation text, `Divider(height: 1, indent: 16, endIndent: 16)`, the switch row, divider, optional note | Text in `bodyMedium` `onSurfaceVariant`, padding 16 / 14, so it reads like tile subtitles. The dividers are inset on both sides to match the text (Off-Grid Repeat Mode) | +| Note at the top of a page or section | `MeshInfoCard(text)` | Info icon and `bodyMedium` text in a `MeshCard`; one or two short sentences (Add Contact, Privacy) | +| Text field with a byte limit | `TextField` with `x / max` as `suffixIcon` (Node Name) | Count always visible. Input past the limit is allowed: the count turns `error`, `errorText` says how far over, and Save is disabled. Don't block input silently | +| Choosing a point on a map | `LocationPickerScreen(initial:)` | Page with a fixed centre pin; returns the `LatLng` to the form | | Radio-style choice in a sheet | `MeshSheetOption` | Used by the language picker, map time filter and compression sheet. Optional `subtitle` explains the option; `onTap: null` disables it. Selected rows show a filled radio icon **and** a bold title, with `selected` semantics | | Per-chat setting at the top of a chat | Full-width strip under the app bar, above the transcript (`ChatCompressionSelector` in `widgets/chat_compression_selector.dart`) | `surfaceContainerLow` fill, `outlineVariant` bottom border, 48dp minimum height, `bodyLarge` w600 "Label: value ▾"; tap opens one `showMeshSheet` with `MeshSheetOption`s. Shows the saved value only; a spinner replaces ▾ while saving; a disabled strip shows why below the label. One shared widget for DM and channel chats; parents pass state and async callbacks | | Choosing between images | Selectable thumbnail tiles in a centred `Wrap` | Image send versions (`_versionTile` in `image_send_preview_sheet.dart`). `InkWell` with `MeshRadii.sm`; selected tile gets a 3px `primary` border **and** a `primary` check badge (never colour alone); caption under the tile in `bodySmall`, w600 when selected; figures such as packet counts in `MeshTheme.mono` 12; wrap the tile in `Semantics(button: true, selected:, label:)` | @@ -211,20 +218,40 @@ What the code does: |---|---|---|---| | Bottom sheet | `showMeshSheet` + `BottomSheetHeader` (28 calls in 17 files) | Choosing from a list, an item's actions, quick tools tied to the current screen | Language picker, notification mode, add contact/channel options, emoji and GIF pickers, node info, share contact, image actions | | Draggable sheet | `showModalBottomSheet` + `DraggableScrollableSheet` | Tall, scrollable panels that need a drag size | `ContactRoutingSheet` (`routing_sheet.dart`), image send preview | -| Dialog | `showDialog` + `AlertDialog` (72 calls in 35 files) | Confirming an action, a short input (one to three fields), a short message | Disconnect (`showDisconnectDialog`), clear (`showConfirmClearDialog`), unsaved changes, edit node name, rename point | -| Page | `Navigator.push(MaterialPageRoute(...))` | Anything with sections, many fields, its own save, or that the user stays in | App Settings, Repeater Settings, Themes, Theme editor, Message filter, Region management | +| Dialog | `showDialog` + `AlertDialog` | Confirming an action, a short input (one to three fields) outside settings, a short message | Disconnect (`showDisconnectDialog`), clear (`showConfirmClearDialog`), unsaved changes, rename point | +| Page | `Navigator.push(MaterialPageRoute(...))` | Every settings entry, and anything with sections, many fields, its own save, or that the user stays in | App Settings, Node Name, Radio Settings, Location, Contact Settings, Privacy, About, Repeater Settings, Themes, Theme editor, Message filter, Region management | Rules for new UI: -1. **Confirmation or a single short input → dialog.** Title, one sentence, Cancel + one action. -2. **Pick one of several options, or act on one item → sheet.** Use `showMeshSheet` and start the content with `BottomSheetHeader(title:, subtitle:)`. It handles the keyboard and navigation-bar insets. Use raw `showModalBottomSheet` only when you need `DraggableScrollableSheet`. -3. **Forms with sections, live remote values, or anything that needs Save/Discard → page.** Guard unsaved changes with `PopScope` and a discard dialog, as `repeater_settings_screen.dart` does. -4. Never stack a dialog on a sheet on a dialog. Close the sheet first, or move the flow to a page. +1. **Settings → page.** A row in Settings, App Settings or a repeater screen that opens settings opens a page, even for a single field. See [Settings pages](#settings-pages). +2. **Confirmation or a single short input → dialog.** Title, one sentence, Cancel + one action. Inside settings, dialogs only confirm actions (Reboot, Delete all paths, unsaved changes). +3. **Pick one of several options, or act on one item → sheet.** Use `showMeshSheet` and start the content with `BottomSheetHeader(title:, subtitle:)`. It handles the keyboard and navigation-bar insets. Use raw `showModalBottomSheet` only when you need `DraggableScrollableSheet`. +4. **Forms with sections, live remote values, or anything that needs Save/Discard → page.** Guard unsaved changes with `UnsavedChangesGuard` (built into `SaveToRadioPage`). +5. Never stack a dialog on a sheet on a dialog. Close the sheet first, or move the flow to a page. **Sheet layout.** `showMeshSheet` is the sheet: safe area on the top and sides, and the keyboard or navigation-bar inset on the bottom. Start the content with `BottomSheetHeader`. That widget is the handle and the title row (padding 20, 8, 8, 4 and a 36×4 handle, section 4). Do not add space above it, draw a second handle, or size the sheet with a fraction inside an `Align`; that leaves an empty band over the handle. The status-bar inset stays outside the sheet. The manual path editor (`path_editor_sheet.dart`) uses that layout. The hop list and the hex path field stay pinned under the header, including while the keyboard is open. When the band under the header is shorter than the search field, as on a landscape phone with the keyboard open, those blocks and the repeater list scroll together instead of overflowing. +### Settings pages + +Every settings entry opens its own page, even for one field. On a settings page, dialogs only confirm actions and sheets only pick a value. A visual chooser (**Pick on map** in Location) is its own page that returns a value to the form. + +Layout follows App Settings: `SectionHeader` + `MeshCard` groups, an optional `MeshInfoCard` at the top, and `SettingsReveal` for sub-options that only apply while a switch is on. Text fields and dropdowns use the theme's input style; don't set a border per field. + +| Stored | Saved | Examples | +|---|---|---| +| Only in the app | On each change; no Save button | App Settings, Message filter, Themes | +| On a radio | Only on Save | Node Name, Radio Settings, Location, Contact Settings, Privacy, Repeater Settings | + +Pages that save to a radio use `SaveToRadioPage` (`lib/widgets/unsaved_changes_guard.dart`). It adds `MeshSettingsTileTheme`, `RadioDisconnectedBanner`, the app bar Save, the leave warning, the connection check and the error snackbar. + +- Show every setting the page saves, filled with the radio's last reported value. +- Save appears when a field differs from the saved value and hides when it's changed back. It's disabled offline, while saving, or while a field is invalid (`canSave`). +- Leaving with unsaved edits asks Cancel, Discard or Save; Save closes the page only on success. +- After saving, the page stays open and a snackbar confirms. A failed save keeps the edits. +- Validate all fields before sending anything. + ## 7. Node search Contact, repeater, room and user search all use `lib/utils/contact_search.dart`. Sort with `compareContactQueryRank`: names that start with the query, then other substring matches, then a public-key / hop-hash prefix. Use `rankLabeledKeyQuery` for a label that is not itself a contact, such as "my contact" on the share sheet. Do not filter with a separate name `contains`. @@ -233,7 +260,10 @@ That is the Contacts list and its group member picker, Discovery, Map node searc ## 8. App bars -- Title: a plain localized string, ellipsized on one line. Use `AppBarTitle` on top-level and settings screens; it adds the connected node name as a subtitle and battery/SNR indicators when there is room, dropping them in that order on narrow widths. Use `AdaptiveAppBarTitle` for a plain one-line title. +- Title: a plain localized string, ellipsized on one line. + - Settings and every page opened from it: a centred plain title, `AdaptiveAppBarTitle` with `centerTitle: true`. + - Main tabs (Contacts, Channels, Map) and the screens that already use it: `AppBarTitle`, which adds the connected node name as a subtitle and battery/SNR indicators when there is room (dropping them in that order on narrow widths). It fills the bar's width, so it stays left-aligned; keep it that way. + - Chats keep their own left-aligned title (see below). - Centre the title (`centerTitle: true`, `AGENTS.md`); 31 screens set it explicitly because the theme default is `false`. Chat screens (`chat_screen.dart`, `channel_chat_screen.dart`) deliberately use `centerTitle: false` for their two-line name + route title. - Actions: at most two icon buttons plus the overflow (`Icons.more_vert`) menu, for example `RadioStatsIconButton`, search, ⋮ in `chat_screen.dart`. Put everything else in the overflow menu. - Overflow menus: @@ -251,7 +281,7 @@ That is the Contacts list and its group member picker, Discovery, Map node searc | Background sync | `SyncProgressAppBarBottom`. | | Empty | `EmptyState` with an icon, a short title, and an action when there is an obvious next step. Use a separate "no results" state (`Icons.search_off`) when a search or filter hides everything. | | Error | A snackbar for a failed action. `ErrorRetryCard` for a failed load the user can retry. Never show raw exception text alone. | -| Companion radio disconnected | Main and chat screens stay open, read-only ([offline mode](offline-mode.md)). Decide with `isRadioReadOnly(connector)` / `context.radioReadOnly` (`lib/utils/radio_guard.dart`): disable menu items (`PopupMenuItem(enabled: false)`, drop destructive colors) and buttons, hide FABs, and call `ensureRadioConnected(context)` as the safety net in handlers. The chat composer shows `OfflineComposerBar` in the same bubble and margins. Repeater screens stay open with `RadioDisconnectedBanner` at the top and disable radio-dependent actions. Settings rows that need the radio pass `onTap: null` and show `settings_requiresConnection` as the subtitle (`settings_screen.dart`). | +| Companion radio disconnected | Main and chat screens stay open, read-only ([offline mode](offline-mode.md)). Decide with `isRadioReadOnly(connector)` / `context.radioReadOnly` (`lib/utils/radio_guard.dart`): disable menu items (`PopupMenuItem(enabled: false)`, drop destructive colors) and buttons, hide FABs, and call `ensureRadioConnected(context)` as the safety net in handlers. The chat composer shows `OfflineComposerBar` in the same bubble and margins. Repeater screens and the Settings pages that save to the radio stay open with `RadioDisconnectedBanner` at the top and disable radio-dependent actions, including Save. Settings rows that need the radio pass `onTap: null` and show `settings_requiresConnection` as the subtitle (`settings_screen.dart`). | | Feature unsupported by firmware | Disabled row with a subtitle that says why (`settings_requiresFirmware('v1.10')`). | | Remote value not fetched yet | See below. | @@ -269,6 +299,7 @@ Follow the same pattern for any new remote-value screen. - All user-facing strings go through `context.l10n` (`lib/l10n/l10n.dart`). Add keys to `lib/l10n/app_en.arb` first. No string literals in widgets, including fallbacks. - Keep strings short: labels are a few words, subtitles one sentence. +- Settings row titles use Title Case in English ("Radio Stats", "About the App"; short words like "the", "and", "of" stay lowercase unless first). Other locales follow their own capitalization. Row descriptions (subtitles) have no trailing full stop in any locale. The main Settings page follows this; apply it to new and changed settings rows. - Keep established radio terms in English in every locale: Flood, Zero Hop, hop, SNR, RSSI, LoRa, advert, repeater names and CLI commands. - Never put text in a fixed-width box (`SizedBox(width: 80, child: Text(...))`). Use `Expanded`/`Flexible`, or let a `Row` wrap into a `Column`/`Wrap` when space runs out. - Labels must wrap or scale, never clip and never break mid-word: @@ -288,10 +319,12 @@ Follow the same pattern for any new remote-value screen. - [ ] Overflow menus rely on `MeshTheme.popupMenuTheme`, use `MeshMenuItemRow`, have a localized `tooltip`, place screen-specific items above a `PopupMenuDivider` followed by Connect/Disconnect and Settings (omitting any leading divider when empty), and place destructive items last in `scheme.error`; segmented buttons use `MeshSegmentLabel`. - [ ] Every `IconButton` and FAB has a localized `tooltip`. - [ ] Tap targets at least 48×48. -- [ ] Right container: dialog for confirm/short input, `showMeshSheet` + `BottomSheetHeader` for choices and item actions, page for forms. No gap above the sheet handle. +- [ ] Right container: page for every settings entry and for forms, dialog for confirm/short input, `showMeshSheet` + `BottomSheetHeader` for choices and item actions. No gap above the sheet handle. +- [ ] Settings stored on a radio use `SaveToRadioPage` and save only on Save; settings stored in the app apply immediately. - [ ] Contact, repeater, room and user search uses `compareContactQueryRank`: prefix, then substring, then hop hash. - [ ] Loading, empty, error, offline and unknown-value states handled. - [ ] All strings in `app_en.arb`; checked in German or Portuguese at 1.3× and 2.0× on a narrow screen. +- [ ] Settings row titles in Title Case (English); descriptions without a trailing full stop. - [ ] Light, dark and one custom theme checked. - [ ] This page updated if you introduced or changed a pattern. @@ -299,10 +332,10 @@ Follow the same pattern for any new remote-value screen. The current code does not yet follow this page everywhere: -- **App bar centring.** `MeshTheme._build` sets `centerTitle: false`, but `AGENTS.md` asks for centred titles and 31 screens override it. `contacts_screen.dart` does not, so its title is left-aligned while Channels and Settings are centred. +- **App bar centring.** `MeshTheme._build` sets `centerTitle: false`, so screens opt in. One Settings page, `backup_restore_screen.dart`, uses `AppBarTitle(indicators: false, subtitle: false)` for a plain title, which stays left-aligned despite `centerTitle: true`; switch it to `AdaptiveAppBarTitle`. The main tabs and chats are left-aligned on purpose (see [App bars](#8-app-bars)). - **Disconnect icon-only error tint.** In overflow menus, Disconnect tints only the icon (`iconColor`), while Clear chat / Delete tint icon and label (`color`). - **Menu rows not using `MeshMenuItemRow`.** `channel_chat_screen.dart` bulk-select menu (Select all / Copy) puts a `ListTile` inside `PopupMenuItem`. `widgets/list_filter_widget.dart` and the group menu in `contacts_screen.dart` use plain `Text` items, which is acceptable for icon-less lists but does not limit wrapping. -- **Settings toggles in two sizes.** `FeatureToggleRow` (`widgets/elements_ui.dart`, used in `settings_screen.dart` dialogs) uses a `bodyMedium` w600 title and `bodySmall` subtitle with a 32px refresh button. `MeshNavTile` and themed `SwitchListTile`s use `bodyLarge` w600 / `bodyMedium`. Only App Settings, Message Filter and Repeater Settings wrap their body in `MeshSettingsTileTheme`. +- **Tile titles without `MeshSettingsTileTheme`.** Backup & Restore (`CheckboxListTile`) and Themes (`SwitchListTile`) do not wrap their body in it, so those titles are not semibold like the other settings rows. - **`ErrorRetryCard` is unused** and its fallback label is the hard-coded English `'Retry'` (`mesh_ui.dart`); screens show load errors in their own ways. - **Fixed-width label boxes.** `chat_screen.dart` `_buildInfoRow` (80px), `line_of_sight_map_screen.dart` endpoint label (54px, `fontSize: 12`), `channel_message_path_screen.dart` (72px, upper-cased `accentLabel` at its 11px default). - **11px text.** `MeshTheme.accentLabel()` without `fontSize` gives 11px in `channel_message_path_screen.dart`. The type scale's `labelSmall` (11) is used in `list_filter_widget.dart` section titles. @@ -311,10 +344,11 @@ The current code does not yet follow this page everywhere: - **Navigation bar theme.** `navigationBarTheme` colours selected labels `onPrimary`, which is white-on-white in light mode; `QuickSwitchBar` overrides it. Any other `NavigationBar` would inherit the problem. - **Two badge styles.** `QuickSwitchBar` uses Material `Badge` capped at 99+; `UnreadBadge` caps at 9999+. - **Sheets without `showMeshSheet`.** Besides the draggable sheets, `chat_background.dart`, `map_screen.dart`, `theme_editor_screen.dart`, `repeater_cli_screen.dart`, `message_translation_button.dart` and `path_map_ui.dart` call `showModalBottomSheet` directly, so they skip the shared inset handling and most skip `BottomSheetHeader`. -- **Large forms in dialogs.** `RadioSettingsDialog` (`widgets/radio_settings_dialog.dart`, nine inputs) and the contact settings dialog in `chat_screen.dart` are dialogs although they behave like forms. +- **Repeater Settings guard.** `repeater_settings_screen.dart` has its own unsaved-changes dialog instead of `UnsavedChangesGuard`. +- **Settings in dialogs.** App Settings still opens IPFS image links (`_IpfsImageLinksDialog`) and the raster tile source and endpoint as dialogs in `app_settings_screen.dart`, and the per-contact settings in `chat_screen.dart` are a dialog although they behave like a form. - **Dialog buttons.** `showDisconnectDialog` (`utils/dialog_utils.dart`) uses two `TextButton`s with no emphasis; `showConfirmClearDialog` uses a red `FilledButton`. - **Snackbars.** A few places still call `ScaffoldMessenger.showSnackBar` directly (`discovery_screen.dart`, `app_settings_screen.dart`, `message_filter_settings_screen.dart`, `region_management_screen.dart`, `helpers/image_send_flow.dart`) and so miss tap-to-dismiss and replace-instead-of-queue. -- **Small tap targets.** `FeatureToggleRow` refresh (32px) and 40px buttons in `chat_screen.dart`, `channel_chat_screen.dart`, `reaction_chips.dart`, `snr_indicator.dart`, `path_map_ui.dart`; 44px in `routing_sheet.dart`. +- **Small tap targets.** 40px buttons in `chat_screen.dart`, `channel_chat_screen.dart`, `reaction_chips.dart`, `snr_indicator.dart`, `path_map_ui.dart`; 44px in `routing_sheet.dart`. - **Unknown placeholders.** Repeater and companion stats screens use `—`; `line_of_sight_map_screen.dart` uses `--`. - **Missing tooltip.** The Contacts FAB (`contacts_screen.dart`) has no tooltip; about 18 of 111 `IconButton`s have no tooltip nearby. - **Stale doc comments.** `SectionHeader` is described as "mono" but uses the sans `accentLabel`; the `StatusChip` comment sits above `meshContrastRatio`. diff --git a/documentation/map-and-location.md b/documentation/map-and-location.md index bbbc0505..039839c6 100644 --- a/documentation/map-and-location.md +++ b/documentation/map-and-location.md @@ -237,7 +237,7 @@ Each waypoint includes: name, lat/lon, type label, and public key hex. The phone's own GPS is **never used**. All location data comes from the mesh: -1. **Device self-location**: Read from firmware device-info response. Set manually in Settings → Location, or updated automatically if the device has a GPS module. +1. **Device self-location**: Read from firmware device-info response. Set manually in Settings → Location (type the coordinates or pick them on a map), or updated automatically if the device has a GPS module. 2. **Remote node locations**: Extracted from advertisement packets received over the mesh. Encoded as integer lat/lon × 1,000,000. 3. **Telemetry replies**: A GPS position in a node's telemetry (from **Update location** or the Telemetry screen) replaces its advert position until the node adverts again. Telemetry positions have about 11 m precision (Cayenne LPP). diff --git a/documentation/settings.md b/documentation/settings.md index a97927aa..5bb31f73 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -16,10 +16,12 @@ The settings screen is a scrollable list of cards: 3. [Location](#location) 4. [App Settings](#app-settings) (link to sub-screen) 5. [Actions](#actions) -6. [Backup & Restore and Export](#export) +6. [Backup & Restore and Export Data](#backup--restore-and-export-data) 7. [Debug](#debug) 8. [About](#about) +Every entry opens its own page. Settings stored on the radio (Node Name, Radio Settings, Location, Contact Settings, Privacy) are sent only when you tap **Save**, which appears once something changes. Leaving with unsaved changes asks to discard or save. While disconnected, the page stays open with a banner and Save is disabled. A failed save keeps your edits. + --- ## Device Info @@ -46,19 +48,25 @@ Battery shows an alert icon and orange text when at 15% or below. The toggle onl These settings are sent directly to the connected device firmware. ### Node Name -- Opens a dialog with a text field (max 31 characters) -- Sends the new name to the device -- Confirmed via snackbar +Name field with a byte counter (`x / 31`). Special characters and emojis take more than one byte. A longer name can be typed, but the counter turns red, the field says how many bytes it is over, and Save stays disabled. **Message length** updates as you type: +- **Channel messages**: 158 bytes minus the name, which is sent as `Name: ` with each message (127 with a 31-byte name) +- **Direct messages**: 156 bytes, independent of the name ### Radio Settings -Opens a dialog pre-populated with the device's current radio settings. Contains: -- **Preset dropdown**: Regional presets — selecting a preset immediately fills all fields below. Includes presets for Australia, Australia (Narrow), Australia (Mid), Australia SA WA QLD, Czech Republic, EU 433MHz, EU/UK (Long Range), EU/UK (Medium Range), EU/UK (Narrow), New Zealand, New Zealand (Narrow), Portugal 433, Portugal 869, numerous Russia city presets, Switzerland, USA Arizona, USA/Canada, and Vietnam -- **Frequency** (MHz): Free text, validated 300–2500 MHz -- **Bandwidth**: Dropdown (7.8 / 10.4 / 15.6 / 20.8 / 31.25 / 41.7 / 62.5 / 125 / 250 / 500 kHz) -- **Spreading Factor**: SF5–SF12 +Opens a page pre-populated with the radio's current settings. + +**Parameters**, in two cards: +- **Presets**: Australia (four variants), Czech Republic, EU 433MHz, EU/UK (Long Range, Medium Range, Narrow), New Zealand (two variants), Portugal 433 and 869, Russian city presets, Slovakia, Switzerland, USA Arizona, USA Philly, USA Sacramento-Foothills, USA Southern California, USA/Canada and Vietnam. Selecting one fills in frequency, bandwidth, SF, CR and TX power. Shows **Custom** when the values match no preset +- **Frequency** (MHz): 150-2500 MHz +- **Bandwidth**: 7.8 / 10.4 / 15.6 / 20.8 / 31.25 / 41.7 / 62.5 / 125 / 250 / 500 kHz +- **Spreading Factor**: SF5-SF12 - **Coding Rate**: 4/5, 4/6, 4/7, 4/8 -- **TX Power** (dBm): Validated 0 to device max (typically 22 dBm) -- **Client Repeat** toggle: Only shown on firmware v9+; requires frequency to be exactly 433.000, 869.000, or 918.000 MHz (the Off-Grid presets). Save is blocked with a warning if enabled on other frequencies +- **TX Power** (dBm): -9 up to the radio's maximum (22 dBm if it doesn't report one) +- **ID hash size**: 1, 2 or 3 bytes per node ID hash in the paths of flood packets this radio sends. Only shown when the firmware supports it + +**Off-Grid Repeat Mode** (only shown when the firmware reports it): lets this radio repeat packets, for places without repeater coverage. It only works on the off-grid frequencies the radio reports (433.000, 869.495 or 918.000 MHz by default), so turning it on moves the frequency to the nearest one and likely disconnects you from the wider mesh. Nodes that talk to each other need the same frequency, bandwidth and SF; only CR can differ. Turning it off reverts to the previous frequency; if you can't reach the mesh afterwards, check the preset and parameters. Save is blocked with a warning on any other frequency. + +**Save** sends the settings and checks that the radio reports them back; if not, a snackbar says so and the edits stay. ### Regions @@ -72,30 +80,24 @@ Opens the radio statistics screen for the paired radio: noise floor, last RSSI, ## Location ### Location -Opens a dialog pre-populated with the device's current coordinates (if known): -- Latitude and longitude fields (decimal, 6 decimal places). If only one field is provided, the other uses the device's current value -- If GPS-capable hardware (detected via `gps` custom variable): - - GPS Update Interval (seconds, 60–86399, default 900 = 15 minutes). Validated and sent separately before lat/lon - - Enable GPS toggle (takes effect immediately, not deferred to Save) -- Validation: lat ±90, lon ±180 +The location is shown on the map, used when you share your location, and sent in adverts when Advert Location is on (Privacy). + +- **Latitude** / **Longitude** (decimal, 6 places). One empty field keeps the radio's value for that axis; both empty clears the location. Validation: ±90 / ±180 +- **Pick on map**: full-screen map with a centre pin; **Use this location** fills both fields +- With GPS hardware (`gps` custom variable): **Enable GPS** keeps the location updated from the radio's GPS; **Update interval** (60-86399 s, default 900) + +**Save** validates all fields, then sends the GPS switch (if changed), the interval and the coordinates. ### Contact Settings -Five toggles controlling which node types are auto-added when heard: -- Auto-add Chat Users -- Auto-add Repeaters -- Auto-add Room Servers -- Auto-add Sensors -- Overwrite Oldest (when contact list is full) +- **Auto-add contacts**: users, repeaters, room servers and sensors. Newly heard nodes of the enabled types are added to the radio's contacts; others can be added later from Discovered Contacts +- **Contact List Limits**: + - **Overwrite oldest** (radio): when the radio's contact list is full, the oldest non-favorited contact is replaced + - **Limit discovered contacts** (app, not the radio; saved with the rest): keeps up to 500 discovered contacts, removing the ones heard longest ago. When off, there's no limit ### Privacy -Opens a dialog with controls for how the node shares telemetry and location data: -- **Advert Location**: Toggle whether the node broadcasts its location in advertisements -- **Multi-Ack**: Toggle multi-ack delivery confirmations -- **Telemetry Base Mode**: Deny All / Allow by Contact / Allow All -- **Telemetry Location Mode**: Deny All / Allow by Contact / Allow All -- **Telemetry Environment Mode**: Deny All / Allow by Contact / Allow All - -Settings take effect when saved. A snackbar confirms the update. +- **Advert Location**: include the node's location in adverts. When on, **Auto Zero-Hop Advert On GPS Update** (app setting) expands below it +- **Multi-ACKs**: the radio sends 2 acknowledgments (ACKs) instead of 1 when the ACK goes back over a direct path. Messages received by flood, or with no known route back, still get one. More reliable, more airtime +- **Telemetry**: an info box explains that per-contact permissions are in each chat's Contact Settings; then the Base, Location and Environment modes (Deny All / Allow by Contact / Allow All) --- @@ -211,9 +213,9 @@ One-tap device operations: --- -## Backup & Restore and Export +## Backup & Restore and Export Data -The settings card links to **Backup & Restore** and **Export** subpages. +The settings card links to **Backup & Restore** and **Export Data** subpages. ### Backup & Restore @@ -223,17 +225,14 @@ The private-key option is off by default because it changes the radio's identity A password protects the backup file. Leave the password blank to create an unprotected file. Backups may contain your radio's private key, channel keys, messages and saved passwords, so store them carefully. Model settings are backed up, but model files are not; after restoring, the app offers to download selected models that are missing. Download progress appears in that prompt, and closing it cancels an active download. Received image files and cached map tiles are not included. -### GPX Export +### Export Data -Three GPX export options (not available on web): +Two sections: -| Option | Exports | -|---|---| -| Export Repeaters | Repeaters and Rooms with GPS coordinates | -| Export Contacts | Chat contacts with GPS coordinates | -| Export All | All contacts with GPS coordinates | +- **Messages**: **Bookmarks** saves your bookmarked messages as a Markdown file +- **Contact locations**: saves contacts with a known location as a GPX file for map apps: **Repeaters and Rooms**, **Users / Companions**, or **All contacts** (not available on web) -Each creates a `.gpx` file and opens the OS share sheet. Feedback via snackbar for four outcomes: success, no contacts with coordinates, feature not available (web), or error. +Each opens the share sheet (or a save dialog on desktop). A snackbar reports success, nothing to export, not available, or an error. --- @@ -256,4 +255,4 @@ Structured log entries (Info / Warning / Error), with tag, message, and timestam ## About -Shows the standard Flutter about dialog with app name, version, and legal notice. +Opened from **About the App** in Settings. App icon, name, version and description; **Source code** (GitHub), **License** (MIT) and **Open-source licenses** (third-party libraries); **Credits**: **Contributors** (the GitHub contributors page) and the Open-Meteo credit; the legal notice. The version comes from the installed app and the notice uses the current year, so neither needs updating by hand. diff --git a/lib/l10n/app_bg.arb b/lib/l10n/app_bg.arb index 98a24549..ea97fbda 100644 --- a/lib/l10n/app_bg.arb +++ b/lib/l10n/app_bg.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Име на възела", "settings_nodeNameNotSet": "Не е зададено", "settings_nodeNameHint": "Въведете име на възел", + "nodeName_info": "Всеки байт от името ви отнема един байт от каналните съобщения. Кирилските букви, специалните символи и емоджи заемат повече от един байт.", + "nodeName_messageLength": "Дължина на съобщението", + "nodeName_channelMessages": "Канални съобщения", + "nodeName_channelMessagesSubtitle": "Името ви ги скъсява", + "nodeName_directMessages": "Лични съобщения", + "nodeName_directMessagesSubtitle": "Името ви не им влияе", + "nodeName_bytesAvailable": "{count, plural, =1{1 байт наличен} other{{count} байта налични}}", + "nodeName_bytesOver": "{count, plural, =1{1 байт над лимита} other{{count} байта над лимита}}", "settings_nodeNameUpdated": "Името е актуализирано", "settings_radioSettings": "Настройки на радиопредавателя", "settings_radioSettingsSubtitle": "Честота, мощност, разпространяващ фактор", + "settings_unsavedChangesMessage": "Имате промени, които не са запазени в радиопредавателя.", "settings_radioSettingsUpdated": "Радио настройките са актуализирани", "settings_location": "Местоположение", "settings_locationSubtitle": "GPS координати", + "location_coordinates": "Координати", + "location_coordinatesDescription": "Позицията на вашия възел. Показва се на картата, използва се при споделяне на местоположението ви и се изпраща в обявите, когато „Място на обявата“ е включено (Настройки на поверителността).", + "location_pickOnMap": "Избор от картата", + "locationPicker_hint": "Плъзнете картата или докоснете, за да поставите маркера.", + "locationPicker_useLocation": "Използвай това местоположение", "settings_locationUpdated": "Местоположението е актуализирано", "settings_locationBothRequired": "Въведете както географска ширина, така и географска дължина.", "settings_locationInvalid": "Невалидна ширина или дължина.", @@ -109,12 +123,12 @@ "settings_privacyModeDisabled": "Режим на поверителност е деактивиран", "settings_actions": "Действия", "settings_deleteAllPaths": "Изтрий всички пътища", - "settings_deleteAllPathsSubtitle": "Изчисти всички данни за пътищата от контактите.", + "settings_deleteAllPathsSubtitle": "Изчисти всички данни за пътищата от контактите", "settings_sendAdvertisement": "Изпрати обява", "settings_sendAdvertisementSubtitle": "Излъчи присъствието сега", "settings_advertisementSent": "Обявата е изпратена", "settings_syncTime": "Време за синхронизация", - "settings_syncTimeSubtitle": "Задайте часовника на устройството да отговаря на времето на телефона.", + "settings_syncTimeSubtitle": "Задайте часовника на устройството да отговаря на времето на телефона", "settings_timeSynchronized": "Синхронизирано във времето", "settings_refreshContacts": "Презареди контакти", "settings_refreshContactsSubtitle": "Презареди списъка с контакти от устройството", @@ -126,16 +140,9 @@ "settings_bleDebugLogSubtitle": "Команди, отговори и сурови BLE данни", "settings_appDebugLog": "Лог на отстраняване на грешки на приложението", "settings_appDebugLogSubtitle": "Съобщения за отстраняване на грешки на приложението", - "settings_about": "За нас", - "settings_aboutVersion": "MeshCore Open, версия {version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Проект MeshCore с отворен код 2024 г.", + "settings_about": "Относно", + "settings_aboutTheApp": "За приложението", + "settings_aboutLegalese": "Проект MeshCore с отворен код {year} г.", "settings_aboutDescription": "Отворен Flutter клиент за MeshCore LoRa мрежови устройства.", "settings_infoName": "Име", "settings_infoId": "ИД", @@ -145,9 +152,10 @@ "settings_infoContactsCount": "Брой контакти", "settings_infoChannelCount": "Брой канали", "settings_presets": "Предварителни настройки", + "settings_radioParameters": "Параметри", "settings_frequency": "Честота (MHz)", - "settings_frequencyHelper": "300,0 – 2500,0", - "settings_frequencyInvalid": "Невалидна честота (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Невалидна честота (150-2500 MHz)", "settings_bandwidth": "Ширина на честотната лента", "settings_spreadingFactor": "Фактор на разпространение", "settings_codingRate": "Скорост на кодиране", @@ -1186,7 +1194,7 @@ "repeater_floodMaxHelper": "Максималният брой скокове, които един пакет може да премине (0-64)", "repeater_advancedSettings": "Разширени настройки", "repeater_advancedSettingsSubtitle": "Експериментални настройки за опитни оператори", - "repeater_pathHashMode": "Режим за хеширане на пътища", + "repeater_pathHashMode": "Размер на хеша на ID", "repeater_pathHashModeHelper": "Байтовете, използвани за кодиране на идентификатора на този повторител в таговете за откриване на потоци/цикли, са: 0=1 байт (256 идентификатора, до 64 скока), 1=2 байта (65 000 идентификатора, до 32 скока), 2=3 байта (16 милиона идентификатора, до 21 скока). Версиите 1.13 и по-старите фърмуери използват многобайтови пътища - само след като мрежата е актуализирана до версия 1.14 или по-нова.", "repeater_txDelay": "Забавяне на Flood TX", "repeater_txDelayHelper": "Разстоянието между пакетите при Flood трафик като множител на времето за пренос на пакета (0-2, по подразбиране 0.5). По-висока стойност означава по-малко сблъсъци, но по-бавно предаване.", @@ -1620,9 +1628,10 @@ }, "neighbors_heardAgo": "Слушано преди {time}.", "neighbors_unknownContact": "Неизвестна {pubkey}", - "settings_locationIntervalSec": "Интервал за GPS (Секунди)", + "settings_locationIntervalSec": "Интервал на актуализиране (секунди)", + "settings_locationIntervalHelper": "от 60 до 86399 секунди", "settings_locationGPSEnable": "Активиране на GPS", - "settings_locationGPSEnableSubtitle": "Активирайте автоматичното актуализиране на местоположението чрез GPS.", + "settings_locationGPSEnableSubtitle": "Поддържа местоположението актуално чрез GPS на радиото.", "settings_locationIntervalInvalid": "Интервалът трябва да бъде поне 60 секунди и по-малко от 86400 секунди.", "room_management": "Управление на сървъра за стая", "contacts_manageRoom": "Управление на сървър за стая", @@ -1841,12 +1850,13 @@ }, "notification_sentGif": "Изпрати GIF", "notification_sentImage": "Изпрати изображение", - "settings_gpxExportContactsSubtitle": "Експортира спътници с местоположение в GPX файл.", - "settings_gpxExportRepeatersSubtitle": "Изпраща повторители / roomserver с местоположение в GPX файл.", - "settings_gpxExportAll": "Експортирай всички контакти в GPX", - "settings_gpxExportAllSubtitle": "Експортира всички контакти с местоположение в файл GPX.", - "settings_gpxExportRepeaters": "Експортиране на повтарящи се устройства / сървър на стаята до GPX", - "settings_gpxExportContacts": "Експортирай спътници към GPX", + "settings_gpxExportAll": "Всички контакти", + "export_messagesTitle": "Съобщения", + "export_messagesDescription": "Съобщения с отметка, запазени като файл Markdown.", + "export_locationsTitle": "Местоположения на контакти", + "export_locationsDescription": "Контакти с известно местоположение, запазени като файл GPX за приложения с карти.", + "settings_gpxExportRepeaters": "Повторители и стаи", + "settings_gpxExportContacts": "Потребители / Компаньони", "settings_gpxExportSuccess": "Успешно изlexport на файл GPX.", "settings_gpxExportNoContacts": "Няма контакти за изlexport.", "settings_gpxExportChat": "Местоположения на спътници", @@ -1876,10 +1886,18 @@ "snrIndicator_lastSeen": "Последно видян", "snrIndicator_nearByRepeaters": "Близки повторители", "chat_ShowAllPaths": "Покажи всички пътища", - "settings_clientRepeatSubtitle": "Позволете на това устройство да предава пакети към мрежата за други устройства.", "settings_clientRepeatFreqWarning": "За повторение извън мрежата са необходими честоти от 433, 869 или 918 MHz.", - "settings_clientRepeat": "Клиентско повторение", + "settings_clientRepeat": "Режим на повторение извън мрежата", + "settings_clientRepeatDescription": "Позволява на това устройство да препраща пакети. Предназначен е за места без покритие от повторители.\n\nТози режим използва ограничен набор от честоти. Ако го ВКЛЮЧИТЕ, вероятно ще загубите връзка с по-широката mesh мрежа. Всички възли, с които комуникирате, трябва да използват една и съща честота, ширина на честотната лента и фактор на разпространение (SF). Само скоростта на кодиране (CR) може да се различава.", + "settings_clientRepeatSwitch": "Режим на повторение", + "settings_clientRepeatNote": "Забележка: Ако го ИЗКЛЮЧИТЕ, ще се възстанови предишната честота. Проверете предварителните настройки/параметрите, ако след това не можете да се свържете с mesh мрежата.", "settings_aboutOpenMeteoAttribution": "Данни за надморска височина на LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Проект", + "about_sourceCode": "Изходен код", + "about_license": "Лиценз", + "about_openSourceLicenses": "Лицензи за отворен код", + "about_credits": "Благодарности", + "about_contributors": "Сътрудници", "appSettings_unitsTitle": "единици", "appSettings_unitsMetric": "Метрика (m / km)", "appSettings_unitsImperial": "Имперска (ft / mi)", @@ -2068,19 +2086,16 @@ "contacts_searchContactsNoNumber": "Търси контакти...", "contacts_searchUsers": "Търсене на {number}{str} потребители...", "contactsSettings_title": "Настройки на контактите", - "contactsSettings_autoAddTitle": "Автоматично откриване", - "contactsSettings_autoAddUsersTitle": "Автоматично добавяне на потребители", - "contactsSettings_otherTitle": "Други настройки свързани с контакти", - "settings_contactSettingsSubtitle": "Настройки за добавяне на контакти.", + "contactsSettings_autoAddTitle": "Автоматично добавяне на контакти", + "contactsSettings_autoAddDescription": "Чутите за първи път възли от тези типове се добавят към контактите на радиото. Останалите можете да добавите по-късно от „Открити контакти“.", + "contactsSettings_autoAddUsersTitle": "Потребители", + "contactsSettings_otherTitle": "Ограничения на списъка с контакти", + "settings_contactSettingsSubtitle": "Настройки за добавяне на контакти", "settings_contactSettings": "Настройки за контакти", - "contactsSettings_autoAddSensorsTitle": "Автоматично добавяне на датчици", - "contactsSettings_autoAddRoomServersTitle": "Автоматично добавяне на сървъри на стаите", - "contactsSettings_autoAddRoomServersSubtitle": "Позволи на спътника да добавя автоматично откритите сървъри на стаите.", - "contactsSettings_autoAddRepeatersTitle": "Автоматично добавяне на повтарящи се елементи", - "contactsSettings_autoAddUsersSubtitle": "Позволи на спътника да добавя автоматично откритите потребители.", - "contactsSettings_autoAddRepeatersSubtitle": "Позволи на спътника да добавя автоматично откритите повтарящи се устройства.", - "contactsSettings_autoAddSensorsSubtitle": "Позволи на спътника да добавя автоматично откритите датчици.", - "contactsSettings_overwriteOldestTitle": "Премахни най-старото", + "contactsSettings_autoAddSensorsTitle": "Сензори", + "contactsSettings_autoAddRoomServersTitle": "Сървъри на стая", + "contactsSettings_autoAddRepeatersTitle": "Повторители", + "contactsSettings_overwriteOldestTitle": "Презаписване на най-стария", "discoveredContacts_Title": "Открити контакти", "discoveredContacts_searchHint": "Търсене на открити контакти", "discoveredContacts_noMatching": "Няма съвпадащи контакти", @@ -2126,9 +2141,9 @@ "discoveredContacts_importInvalidFile": "Файлът не е експорт на открити контакти.", "discoveredContacts_importSummary": "Импортирани: {imported}, пропуснати вече известни: {skipped}, нечетими записи: {invalid}.", "discoveredContacts_importTooLarge": "Файлът за импортиране е твърде голям (максимум {maxMb} MB).", - "contactsSettings_overwriteOldestSubtitle": "Когато списъкът с контакти е пълен, най-старият неключов контакт ще бъде заменен.", - "contactsSettings_evictDiscoveredContactsTitle": "Премахване на открити контакти", - "contactsSettings_evictDiscoveredContactsSubtitle": "Когато е включено, приложението премахва най-старите открити контакти, щом списъкът с открити контакти достигне лимита си от {limit} записа.", + "contactsSettings_overwriteOldestSubtitle": "Когато списъкът с контакти на радиото е пълен, най-старият контакт извън любимите се заменя.", + "contactsSettings_evictDiscoveredContactsTitle": "Ограничаване на откритите контакти", + "contactsSettings_evictDiscoveredContactsSubtitle": "Приложението ограничава списъка „Открити контакти“ до {limit} записа. При достигане на лимита по-старите контакти се премахват. Изключете, за да премахнете ограничението.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2216,7 +2231,7 @@ "settings_allowByContact": "Позволи по флагове за контакт", "settings_privacy": "Настройки на поверителността", "settings_privacySettingsDescription": "Изберете каква информация устройството ви споделя с другите.", - "settings_privacySubtitle": "Контролирайте каква информация се споделя.", + "settings_privacySubtitle": "Контролирайте каква информация се споделя", "settings_telemetryBaseMode": "Базов режим на телеметрия", "settings_telemetryLocationMode": "Режим на местоположение на телеметрията", "settings_advertLocation": "Място на обявата", @@ -3053,10 +3068,9 @@ "settings_regionDefault": "Регион по подразбиране", "settings_regionDefaultSubtitle": "Използва се от канали без собствен регион", "settings_regionDefaultNone": "Няма", - "settings_telemetryPerContactHint": "За да разрешите даден контакт, отворете чата му и изберете „Настройки за контакти“ от менюто.", - "settings_multiAckSubtitle": "Изпраща допълнителни ACK за по-надеждна доставка; използва повече време на излъчване", + "settings_telemetryPerContactHint": "За да разрешите конкретен контакт, отворете чата му и изберете „Настройки за контакти“ от менюто.", + "settings_multiAckSubtitle": "Изпраща 2 потвърждения (ACK) вместо 1, когато потвърждението се връща по директен път. По-надеждно, но използва повече време в ефира.", "settings_presetCustom": "Персонализиран", - "settings_radioMatchWarning": "Всички възли, с които комуникирате, трябва да използват еднакви честота, честотна лента и SF. Скоростта на кодиране (CR) може да се различава.", "settings_txPowerRangeHelper": "от {min} до {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3076,7 +3090,7 @@ } } }, - "settings_pathHashModeHelper": "Размер на всеки идентификатор на възел, записван в пътя на flood пакетите, изпращани от това радио: 1 байт (256 идентификатора, до 64 скока), 2 байта (65 хил. идентификатора, до 32 скока), 3 байта (16 млн идентификатора, до 21 скок). По-големите идентификатори намаляват количествата съвпадения, но повторителите с прошивка по-стара от v1.14 отхвърлят пакети с 2- или 3-байтови идентификатори.", + "settings_pathHashModeHelper": "Размер на идентификатора на всеки възел в пътя на flood пакетите, изпращани от това радио:\n\n- 1 байт: 256 уникални идентификатора, до 64 скока. \"ab\".\n- 2 байта: 65 хил. уникални идентификатора, до 32 скока. \"ab12\".\n- 3 байта: 16 млн уникални идентификатора, до 21 скок. \"ab12cd\".\n\nПо-големите идентификатори намаляват сблъсъците, но повторителите с фърмуер, по-стар от v1.14, отхвърлят пакети с 2- и 3-байтови идентификатори.", "settings_requiresFirmware": "Изисква се прошивка {version} или по-нова", "@settings_requiresFirmware": { "placeholders": { @@ -3712,7 +3726,8 @@ "routing_modeDirect": "Директно", "routing_modeDirectHint": "Винаги изпраща направо към този контакт, без скокове през ретранслатори. Използвайте го, когато е в обхват на радиото.", "settings_export": "Експорт", - "settings_exportSubtitle": "Експорт на контакти и повторители като GPX", + "settings_exportData": "Експорт на данни", + "settings_exportSubtitle": "Отметки и местоположения на контакти", "backupRestore_title": "Резервно копие", "backupRestore_subtitle": "Запазване или възстановяване на данните на приложението и настройките на радиото", "backupRestore_import": "Импорт", @@ -3932,10 +3947,10 @@ "bookmarks_channel": "Канал", "bookmarks_contact": "Контакт", "bookmarks_remove": "Премахни от отметките", - "settings_exportBookmarks": "Експорт на отметките в Markdown", + "settings_exportBookmarks": "Отметки", "settings_exportBookmarksSubtitle": "Споделете отметките или ги запазете като Markdown файл.", "settings_exportBookmarksSuccess": "Отметките са експортирани.", - "settings_exportBookmarksNoBookmarks": "Няма отметки за експорт.", + "settings_exportBookmarksNoBookmarks": "Няма отметки за експортиране.", "receivedImage_packetEchoes": "Пакет {number}: {count, plural, =0{не е чут повторител} =1{повторен веднъж} other{повторен {count} пъти}}", "receivedImage_recoveryPacketEchoes": "Пакет за възстановяване: {count, plural, =0{не е чут повторител} =1{повторен веднъж} other{повторен {count} пъти}}", "imageSend_preparingPreview": "Подготовка на прегледа…", diff --git a/lib/l10n/app_cs.arb b/lib/l10n/app_cs.arb index 2e56fb81..899b0710 100644 --- a/lib/l10n/app_cs.arb +++ b/lib/l10n/app_cs.arb @@ -193,9 +193,18 @@ "settings_nodeName": "Název uzlu", "settings_nodeNameNotSet": "Nenastaveno", "settings_nodeNameHint": "Zadejte název uzlu", + "nodeName_info": "Každý bajt názvu znamená o bajt méně pro zprávy v kanálech. Písmena s diakritikou, speciální znaky a emoji mohou zabírat více než jeden bajt.", + "nodeName_messageLength": "Délka zprávy", + "nodeName_channelMessages": "Zprávy v kanálech", + "nodeName_channelMessagesSubtitle": "Název je zkracuje", + "nodeName_directMessages": "Přímé zprávy", + "nodeName_directMessagesSubtitle": "Název na ně nemá vliv", + "nodeName_bytesAvailable": "{count, plural, =1{1 bajt k dispozici} few{{count} bajty k dispozici} many{{count} bajtu k dispozici} other{{count} bajtů k dispozici}}", + "nodeName_bytesOver": "{count, plural, =1{1 bajt nad limit} few{{count} bajty nad limit} many{{count} bajtu nad limit} other{{count} bajtů nad limit}}", "settings_nodeNameUpdated": "Název aktualizován", "settings_radioSettings": "Nastavení rádia", "settings_radioSettingsSubtitle": "Frekvence, výkon, spreading factor", + "settings_unsavedChangesMessage": "Máte změny, které nebyly uloženy do rádia.", "settings_radioSettingsUpdated": "Nastavení rádia aktualizováno", "settings_radioSettingsNotApplied": "Rádio tato nastavení nepoužilo", "settings_pathHashModeNotApplied": "Nastavení rádia bylo použito, ale rádio nepotvrdilo novou velikost hashe cesty", @@ -238,24 +247,30 @@ }, "settings_location": "Poloha", "settings_locationSubtitle": "Souřadnice GPS", + "location_coordinates": "Souřadnice", + "location_coordinatesDescription": "Poloha vašeho uzlu. Zobrazuje se na mapě, používá se při sdílení polohy a odesílá se v advertech, když je zapnutá „Poloha v advertu“ (Nastavení soukromí).", + "location_pickOnMap": "Vybrat na mapě", + "locationPicker_hint": "Posuňte mapu nebo klepnutím umístěte špendlík.", + "locationPicker_useLocation": "Použít tuto polohu", "settings_locationUpdated": "Poloha a nastavení GPS aktualizovány", "settings_locationBothRequired": "Zadejte zeměpisnou šířku i délku.", "settings_locationInvalid": "Neplatná zeměpisná šířka nebo délka.", "settings_locationGPSEnable": "Povolit GPS", - "settings_locationGPSEnableSubtitle": "Povolí GPS pro automatickou aktualizaci polohy.", - "settings_locationIntervalSec": "Interval GPS (sekundy)", + "settings_locationGPSEnableSubtitle": "Průběžně aktualizuje polohu z GPS rádia.", + "settings_locationIntervalSec": "Interval aktualizace (sekundy)", + "settings_locationIntervalHelper": "60 až 86399 sekund", "settings_locationIntervalInvalid": "Interval musí být alespoň 60 sekund a méně než 86400 sekund.", "settings_latitude": "Zeměpisná šířka", "settings_longitude": "Zeměpisná délka", "settings_contactSettings": "Nastavení kontaktů", - "settings_contactSettingsSubtitle": "Nastavení způsobu přidávání kontaktů.", + "settings_contactSettingsSubtitle": "Nastavení způsobu přidávání kontaktů", "settings_privacyMode": "Režim soukromí", "settings_privacyModeSubtitle": "Skrýt jméno/polohu v inzerátech", "settings_privacyModeToggle": "Přepněte režim soukromí a skryjte své jméno a polohu v inzerátech.", "settings_privacyModeEnabled": "Režim soukromí zapnut", "settings_privacyModeDisabled": "Režim soukromí vypnut", "settings_privacy": "Nastavení soukromí", - "settings_privacySubtitle": "Určete, jaké informace se sdílejí.", + "settings_privacySubtitle": "Určete, jaké informace se sdílejí", "settings_privacySettingsDescription": "Vyberte, jaké informace vaše zařízení sdílí s ostatními.", "settings_denyAll": "Zakázat všem", "settings_allowByContact": "Jen kontaktům, které povolím", @@ -263,17 +278,17 @@ "settings_telemetryBaseMode": "Kdo se může ptát na baterii a stav", "settings_telemetryLocationMode": "Kdo se může ptát na mou polohu", "settings_telemetryEnvironmentMode": "Kdo se může ptát na data senzorů", - "settings_telemetryPerContactHint": "Chcete-li kontakt povolit, otevřete jeho chat a v nabídce zvolte Nastavení kontaktu.", + "settings_telemetryPerContactHint": "Chcete-li konkrétní kontakt povolit, otevřete jeho chat a v nabídce zvolte Nastavení kontaktu.", "settings_advertLocation": "Poloha v advertu", "settings_advertLocationSubtitle": "Zahrnout polohu do advertu.", "settings_autoZeroHopAdvertOnGpsUpdate": "Automatický advert s nulovým skokem při aktualizaci GPS", "settings_autoZeroHopAdvertOnGpsUpdateSubtitle": "Nastavení aplikace: při změně polohy GPS automaticky oznámí novou polohu pouze uzlům v okolí (vyžaduje Polohu v advertu).", "settings_multiAck": "Multi-ACK", - "settings_multiAckSubtitle": "Odesílá další ACK pro lepší doručení; spotřebuje více vysílacího času", + "settings_multiAckSubtitle": "Odesílá 2 potvrzení (ACK) místo 1, když se potvrzení vrací přímou cestou. Spolehlivější, ale spotřebuje více vysílacího času.", "settings_telemetryModeUpdated": "Režim telemetrie aktualizován", "settings_actions": "Akce", "settings_deleteAllPaths": "Smazat všechny cesty", - "settings_deleteAllPathsSubtitle": "Vymazat všechna data cest z kontaktů.", + "settings_deleteAllPathsSubtitle": "Vymazat všechna data cest z kontaktů", "settings_sendAdvertisement": "Odeslat advert", "settings_sendAdvertisementSubtitle": "Ihned oznámit svou přítomnost", "settings_advertisementSent": "Advert odeslán", @@ -291,17 +306,16 @@ "settings_appDebugLog": "Ladicí log aplikace", "settings_appDebugLogSubtitle": "Ladicí zprávy aplikace", "settings_about": "O aplikaci", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Projekt MeshCore Open Source 2026", + "settings_aboutTheApp": "O aplikaci", + "settings_aboutLegalese": "Projekt MeshCore Open Source {year}", "settings_aboutDescription": "Open-source klient Flutter pro zařízení MeshCore s mesh sítí LoRa.", "settings_aboutOpenMeteoAttribution": "Výšková data LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Projekt", + "about_sourceCode": "Zdrojový kód", + "about_license": "Licence", + "about_openSourceLicenses": "Licence open source", + "about_credits": "Poděkování", + "about_contributors": "Přispěvatelé", "settings_infoName": "Název", "settings_infoId": "ID", "settings_infoStatus": "Stav", @@ -313,10 +327,10 @@ "settings_infoHardware": "Hardware", "settings_infoFirmware": "Firmware", "settings_presets": "Předvolby", + "settings_radioParameters": "Parametry", "settings_presetCustom": "Vlastní", - "settings_radioMatchWarning": "Všechny uzly, se kterými komunikujete, musí používat stejnou frekvenci, šířku pásma a SF. Kódovací poměr (CR) se může lišit.", "settings_frequency": "Frekvence (MHz)", - "settings_frequencyHelper": "150.0 - 2500.0", + "settings_frequencyHelper": "150.0 - 2500.0 MHz", "settings_frequencyInvalid": "Neplatná frekvence (150-2500 MHz)", "settings_bandwidth": "Šířka pásma", "settings_spreadingFactor": "Rozptylový faktor", @@ -334,7 +348,10 @@ } }, "settings_txPowerInvalid": "Neplatný výkon TX", - "settings_clientRepeat": "Off-grid opakování", + "settings_clientRepeat": "Režim off-grid opakování", + "settings_clientRepeatDescription": "Umožňuje tomuto zařízení přeposílat pakety. Je určen pro místa bez pokrytí opakovači.\n\nTento režim používá omezenou sadu frekvencí. Jeho ZAPNUTÍ vás pravděpodobně odpojí od širší sítě mesh. Všechny uzly, se kterými komunikujete, musí používat stejnou frekvenci, šířku pásma a rozptylový faktor (SF). Lišit se smí jen kódovací poměr (CR).", + "settings_clientRepeatSwitch": "Režim opakování", + "settings_clientRepeatNote": "Poznámka: Po VYPNUTÍ se obnoví předchozí frekvence. Pokud se pak nemůžete připojit k síti mesh, zkontrolujte předvolby/parametry.", "settings_clientRepeatFrequencyNote": "Frekvence nastavena na {freq} MHz pro off-grid opakování", "@settings_clientRepeatFrequencyNote": { "placeholders": { @@ -343,7 +360,6 @@ } } }, - "settings_clientRepeatSubtitle": "Povolit tomuto zařízení opakovat pakety sítě mesh pro ostatní", "settings_clientRepeatFreqWarning": "Off-grid opakování vyžaduje frekvenci 433, 869.495 nebo 918 MHz", "settings_error": "Chyba: {message}", "@settings_error": { @@ -493,7 +509,7 @@ "repeater_pathHashModeOption1": "2 bajty", "repeater_pathHashModeOption2": "3 bajty", "repeater_pathHashModeOption3": "4 bajty", - "settings_pathHashModeHelper": "Velikost ID každého uzlu zaznamenaného v cestě flood paketů odesílaných tímto rádiem: 1 bajt (256 ID, až 64 skoků), 2 bajty (65 tis. ID, až 32 skoků), 3 bajty (16 mil. ID, až 21 skoků). Větší ID snižují kolize, ale opakovače s firmwarem starším než v1.14 zahazují pakety s 2- nebo 3bajtovými ID.", + "settings_pathHashModeHelper": "Velikost ID každého uzlu v cestě flood paketů odesílaných tímto rádiem:\n\n- 1 bajt: 256 jedinečných ID, až 64 skoků. \"ab\".\n- 2 bajty: 65 tis. jedinečných ID, až 32 skoků. \"ab12\".\n- 3 bajty: 16 mil. jedinečných ID, až 21 skoků. \"ab12cd\".\n\nVětší ID snižují kolize, ale opakovače s firmwarem starším než v1.14 zahazují pakety s 2- a 3bajtovými ID.", "settings_requiresFirmware": "Vyžaduje firmware {version} nebo novější", "@settings_requiresFirmware": { "placeholders": { @@ -1852,7 +1868,7 @@ "repeater_floodMaxHelper": "Maximální počet skoků, které flood paket může urazit (0–64)", "repeater_advancedSettings": "Pokročilé", "repeater_advancedSettingsSubtitle": "Jemné ladění pro zkušené provozovatele", - "repeater_pathHashMode": "Velikost ID uzlu v cestách", + "repeater_pathHashMode": "Velikost hashe ID", "repeater_pathHashModeHelper": "Velikost ID tohoto opakovače v cestách jím odesílaných advertů: 1 bajt (256 ID, až 64 skoků), 2 bajty (65 tis. ID, až 32 skoků), 3 bajty (16 mil. ID, až 21 skoků). Nemá vliv na přeposílání; opakovače v1.14+ přeposílají všechny velikosti, ale starší firmware zahazuje pakety s 2- nebo 3bajtovými ID.", "repeater_keySettings": "Změnit identitní klíče", "repeater_keySettingsSubtitle": "Změnit veřejný/soukromý pár klíčů", @@ -2928,12 +2944,13 @@ "notification_replyUnavailable": "Tato konverzace již není na připojeném rádiu.", "notification_replySendFailed": "Vaše odpověď možná nebyla odeslána. Zkontrolujte to v MeshCore Open a zkuste to znovu.", "notification_replyAppNotRunning": "MeshCore Open neběží. Otevřete ji a odešlete odpověď znovu.", - "settings_gpxExportRepeaters": "Exportovat opakovače / room servery do GPX", - "settings_gpxExportRepeatersSubtitle": "Exportuje opakovače / room servery s polohou do souboru GPX.", - "settings_gpxExportContacts": "Exportovat companiony do GPX", - "settings_gpxExportContactsSubtitle": "Exportuje companiony s polohou do souboru GPX.", - "settings_gpxExportAll": "Exportovat všechny kontakty do GPX", - "settings_gpxExportAllSubtitle": "Exportuje všechny kontakty s polohou do souboru GPX.", + "export_messagesTitle": "Zprávy", + "export_messagesDescription": "Zprávy v záložkách, uložené jako soubor Markdown.", + "export_locationsTitle": "Polohy kontaktů", + "export_locationsDescription": "Kontakty se známou polohou, uložené jako soubor GPX pro mapové aplikace.", + "settings_gpxExportRepeaters": "Opakovače a místnosti", + "settings_gpxExportContacts": "Uživatelé / Companiony", + "settings_gpxExportAll": "Všechny kontakty", "settings_gpxExportSuccess": "Soubor GPX byl úspěšně exportován.", "settings_gpxExportNoContacts": "Žádné kontakty k exportu.", "settings_gpxExportNotAvailable": "Na vašem zařízení/OS není podporováno", @@ -2949,20 +2966,17 @@ "snrIndicator_unknownRepeater": "Neznámý opakovač", "snrIndicator_unknownRepeaterHint": "Tento opakovač zatím není ve vašich kontaktech. Jeho název, poloha a možnosti se zobrazí, až vaše rádio přijme jeho advert.", "contactsSettings_title": "Nastavení kontaktů", - "contactsSettings_autoAddTitle": "Automatické vyhledávání", - "contactsSettings_otherTitle": "Další nastavení kontaktů", - "contactsSettings_autoAddUsersTitle": "Automaticky přidávat uživatele", - "contactsSettings_autoAddUsersSubtitle": "Povolit companionu automaticky přidávat objevené uživatele.", - "contactsSettings_autoAddRepeatersTitle": "Automaticky přidávat opakovače", - "contactsSettings_autoAddRepeatersSubtitle": "Povolit companionu automaticky přidávat objevené opakovače.", - "contactsSettings_autoAddRoomServersTitle": "Automaticky přidávat room servery", - "contactsSettings_autoAddRoomServersSubtitle": "Povolit companionu automaticky přidávat objevené room servery.", - "contactsSettings_autoAddSensorsTitle": "Automaticky přidávat senzory", - "contactsSettings_autoAddSensorsSubtitle": "Povolit companionu automaticky přidávat objevené senzory.", - "contactsSettings_overwriteOldestTitle": "Přepsat nejstarší", - "contactsSettings_overwriteOldestSubtitle": "Když je seznam kontaktů plný, nejstarší kontakt, který není oblíbený, bude nahrazen.", - "contactsSettings_evictDiscoveredContactsTitle": "Odstraňovat objevené kontakty", - "contactsSettings_evictDiscoveredContactsSubtitle": "Když je zapnuto, aplikace odstraní nejstarší objevené kontakty, jakmile seznam objevených dosáhne limitu {limit} položek.", + "contactsSettings_autoAddTitle": "Automaticky přidávat kontakty", + "contactsSettings_autoAddDescription": "Nově slyšené uzly těchto typů se přidají do kontaktů rádia. Ostatní můžete přidat později z obrazovky „Objevené kontakty“.", + "contactsSettings_otherTitle": "Limity seznamu kontaktů", + "contactsSettings_autoAddUsersTitle": "Uživatelé", + "contactsSettings_autoAddRepeatersTitle": "Opakovače", + "contactsSettings_autoAddRoomServersTitle": "Room servery", + "contactsSettings_autoAddSensorsTitle": "Senzory", + "contactsSettings_overwriteOldestTitle": "Přepisovat nejstarší", + "contactsSettings_overwriteOldestSubtitle": "Když je seznam kontaktů v rádiu plný, nahradí se nejstarší kontakt, který není oblíbený.", + "contactsSettings_evictDiscoveredContactsTitle": "Omezit objevené kontakty", + "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikace omezuje seznam „Objevené kontakty“ na {limit} položek. Po dosažení limitu jsou starší kontakty odstraněny. Vypněte pro zrušení limitu.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -4325,7 +4339,8 @@ "routing_modeDirect": "Přímo", "routing_modeDirectHint": "Vždy odešle zprávu přímo tomuto kontaktu, bez skoků přes opakovače. Použijte, když je v dosahu rádia.", "settings_export": "Exportovat", - "settings_exportSubtitle": "Exportovat kontakty a opakovače jako GPX", + "settings_exportData": "Exportovat data", + "settings_exportSubtitle": "Záložky a polohy kontaktů", "backupRestore_title": "Záloha a obnovení", "backupRestore_subtitle": "Uložte nebo obnovte data aplikace a nastavení rádia", "backupRestore_import": "Importovat", @@ -4545,7 +4560,7 @@ "bookmarks_channel": "Kanál", "bookmarks_contact": "Kontakt", "bookmarks_remove": "Odebrat záložku", - "settings_exportBookmarks": "Exportovat záložky do Markdownu", + "settings_exportBookmarks": "Záložky", "settings_exportBookmarksSubtitle": "Sdílet nebo uložit zprávy v záložkách jako soubor Markdown.", "settings_exportBookmarksSuccess": "Záložky byly exportovány.", "settings_exportBookmarksNoBookmarks": "Žádné záložky k exportu.", diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 2f3918cc..57c2f44b 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Knotenname", "settings_nodeNameNotSet": "Nicht festgelegt", "settings_nodeNameHint": "Geben Sie den Knotennamen ein", + "nodeName_info": "Jedes Byte Ihres Namens ist ein Byte weniger für Kanalnachrichten. Sonderzeichen wie Umlaute sowie Emojis können mehr als ein Byte belegen.", + "nodeName_messageLength": "Nachrichtenlänge", + "nodeName_channelMessages": "Kanalnachrichten", + "nodeName_channelMessagesSubtitle": "Durch Ihren Namen verringert", + "nodeName_directMessages": "Direktnachrichten", + "nodeName_directMessagesSubtitle": "Unabhängig von Ihrem Namen", + "nodeName_bytesAvailable": "{count, plural, =1{1 Byte verfügbar} other{{count} Bytes verfügbar}}", + "nodeName_bytesOver": "{count, plural, =1{1 Byte über dem Limit} other{{count} Bytes über dem Limit}}", "settings_nodeNameUpdated": "Name aktualisiert", "settings_radioSettings": "Funk-Einstellungen", "settings_radioSettingsSubtitle": "Frequenz, Leistung, Spreading-Faktor", + "settings_unsavedChangesMessage": "Es gibt Änderungen, die nicht auf dem Funkgerät gespeichert wurden.", "settings_radioSettingsUpdated": "Funkparameter aktualisiert", "settings_location": "Ort", "settings_locationSubtitle": "GPS-Koordinaten", + "location_coordinates": "Koordinaten", + "location_coordinatesDescription": "Die Position Ihres Knotens. Sie wird auf der Karte angezeigt, beim Teilen Ihres Standorts verwendet und in Ankündigungen gesendet, wenn „Standort in Ankündigung“ aktiviert ist (Datenschutzeinstellungen).", + "location_pickOnMap": "Auf Karte wählen", + "locationPicker_hint": "Verschieben Sie die Karte oder tippen Sie, um den Pin zu setzen.", + "locationPicker_useLocation": "Diesen Standort verwenden", "settings_locationUpdated": "Standort und GPS-Einstellungen aktualisiert", "settings_locationBothRequired": "Bitte geben Sie sowohl Breiten- als auch Längengrad ein.", "settings_locationInvalid": "Ungültiger Breiten- oder Längengrad.", @@ -109,7 +123,7 @@ "settings_privacyModeDisabled": "Privatsphärenmodus deaktiviert", "settings_actions": "Aktionen", "settings_deleteAllPaths": "Alle Pfade löschen", - "settings_deleteAllPathsSubtitle": "Alle Pfaddaten aus den Kontakten entfernen.", + "settings_deleteAllPathsSubtitle": "Alle Pfaddaten aus den Kontakten entfernen", "settings_sendAdvertisement": "Ankündigung senden", "settings_sendAdvertisementSubtitle": "Präsenz jetzt senden", "settings_advertisementSent": "Ankündigung gesendet", @@ -127,15 +141,8 @@ "settings_appDebugLog": "App-Debug-Protokoll", "settings_appDebugLogSubtitle": "App-Debug-Nachrichten", "settings_about": "Über", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 MeshCore Open-Source-Projekt", + "settings_aboutTheApp": "Über die App", + "settings_aboutLegalese": "{year} MeshCore Open-Source-Projekt", "settings_aboutDescription": "Ein Open-Source-Flutter-Client für MeshCore LoRa-Meshnetzwerkgeräte.", "settings_infoName": "Name", "settings_infoId": "ID", @@ -145,9 +152,10 @@ "settings_infoContactsCount": "Kontakte", "settings_infoChannelCount": "Kanäle", "settings_presets": "Voreinstellungen", + "settings_radioParameters": "Parameter", "settings_frequency": "Frequenz (MHz)", - "settings_frequencyHelper": "300,0 - 2500,0", - "settings_frequencyInvalid": "Ungültige Frequenz (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Ungültige Frequenz (150-2500 MHz)", "settings_bandwidth": "Bandbreite", "settings_spreadingFactor": "Spreading-Faktor", "settings_codingRate": "Kodierungsrate", @@ -1208,7 +1216,7 @@ "repeater_floodMaxHelper": "Maximale Anzahl von Sprüngen, die ein Flood-Paket zurücklegen darf (0-64)", "repeater_advancedSettings": "Erweitert", "repeater_advancedSettingsSubtitle": "Feinabstimmung für erfahrene Betreiber", - "repeater_pathHashMode": "Hash-Modus für Pfade", + "repeater_pathHashMode": "ID-Hash-Größe", "repeater_pathHashModeHelper": "Bytes, die zur Kodierung der ID dieses Repeaters in Flood-Pfad-/Schleifen-Erkennung-Tags verwendet werden. 0 = 1 Byte (256 IDs, bis zu 64 Sprüngen), 1 = 2 Bytes (65.000 IDs, bis zu 32 Sprüngen), 2 = 3 Bytes (16 Millionen IDs, bis zu 21 Sprüngen). Firmware-Versionen 1.13 und älter verwenden mehrstellige Pfade – ab Version 1.14+ wird nur ein Pfad erstellt, sobald das Netzwerk aktiv ist.", "repeater_txDelay": "Flood-TX-Verzögerung", "repeater_txDelayHelper": "Abstand für Flood-Verkehr als Faktor der Paket-Sendezeit (0-2, Standard 0,5). Höher = weniger Kollisionen, aber langsamere Zustellung.", @@ -1723,8 +1731,9 @@ "neighbors_heardAgo": "Gehört vor: {time}", "neighbors_unknownContact": "Unbekannt {pubkey}", "settings_locationGPSEnable": "GPS aktivieren", - "settings_locationGPSEnableSubtitle": "Ermöglicht GPS, den Standort automatisch zu aktualisieren.", - "settings_locationIntervalSec": "GPS-Intervall (Sekunden)", + "settings_locationGPSEnableSubtitle": "Hält den Standort über das GPS des Funkgeräts aktuell.", + "settings_locationIntervalSec": "Aktualisierungsintervall (Sekunden)", + "settings_locationIntervalHelper": "60 bis 86399 Sekunden", "settings_locationIntervalInvalid": "Das Intervall muss mindestens 60 Sekunden und weniger als 86400 Sekunden betragen.", "contacts_manageRoom": "Raumserver verwalten", "room_management": "Raum-Server-Verwaltung", @@ -1971,12 +1980,13 @@ }, "notification_sentGif": "GIF gesendet", "notification_sentImage": "Bild gesendet", - "settings_gpxExportAll": "Alle Knoten als GPX exportieren", - "settings_gpxExportAllSubtitle": "Exportiert alle Knoten mit einem Standort in eine GPX-Datei.", - "settings_gpxExportRepeaters": "Repeater und Raumserver als GPX exportieren", - "settings_gpxExportContacts": "Kontakte als GPX exportieren", - "settings_gpxExportRepeatersSubtitle": "Exportiert Repeater und Raumserver mit einem Standort in eine GPX-Datei.", - "settings_gpxExportContactsSubtitle": "Exportiert Kontakte mit einem Ort in eine GPX-Datei.", + "settings_gpxExportAll": "Alle Kontakte", + "export_messagesTitle": "Nachrichten", + "export_messagesDescription": "Nachrichten mit Lesezeichen, als Markdown-Datei gespeichert.", + "export_locationsTitle": "Kontaktstandorte", + "export_locationsDescription": "Kontakte mit bekanntem Standort, als GPX-Datei für Karten-Apps gespeichert.", + "settings_gpxExportRepeaters": "Repeater und Räume", + "settings_gpxExportContacts": "Benutzer / Companions", "settings_gpxExportRepeatersRoom": "Repeater- und Raumserver-Standorte", "settings_gpxExportChat": "Kontaktstandorte", "settings_gpxExportNoContacts": "Keine Kontakte zum Exportieren.", @@ -2006,10 +2016,18 @@ "snrIndicator_lastSeen": "Zuletzt gesehen", "snrIndicator_nearByRepeaters": "In der Nähe befindliche Repeater", "chat_ShowAllPaths": "Alle Pfade anzeigen", - "settings_clientRepeat": "Weiterleitung ohne Netzstrom", + "settings_clientRepeat": "Off-Grid-Weiterleitungsmodus", + "settings_clientRepeatDescription": "Erlaubt diesem Gerät, Pakete weiterzuleiten. Gedacht für Orte ohne Repeater-Abdeckung.\n\nDieser Modus nutzt nur eine begrenzte Auswahl an Frequenzen. Ist er AN, verlieren Sie wahrscheinlich die Verbindung zum übrigen Mesh. Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite und denselben Spreading-Faktor (SF) verwenden. Nur die Kodierungsrate (CR) darf abweichen.", + "settings_clientRepeatSwitch": "Weiterleitungsmodus", + "settings_clientRepeatNote": "Hinweis: Schalten Sie ihn AUS, wird die vorherige Frequenz wiederhergestellt. Prüfen Sie Voreinstellungen/Parameter, falls Sie danach keine Verbindung zum Mesh bekommen.", "settings_clientRepeatFreqWarning": "Weiterleitung ohne Netzstrom erfordert 433, 869 oder 918 MHz", - "settings_clientRepeatSubtitle": "Dieses Gerät kann Mesh-Pakete für andere weiterleiten", "settings_aboutOpenMeteoAttribution": "LOS-Höhendaten: Open-Meteo (CC BY 4.0)", + "about_project": "Projekt", + "about_sourceCode": "Quellcode", + "about_license": "Lizenz", + "about_openSourceLicenses": "Open-Source-Lizenzen", + "about_credits": "Danksagungen", + "about_contributors": "Mitwirkende", "appSettings_unitsTitle": "Einheiten", "appSettings_unitsMetric": "Metrisch (m/km)", "appSettings_unitsImperial": "Imperial (ft/mi)", @@ -2195,18 +2213,15 @@ "contacts_searchUsers": "Suche {number}{str} Benutzer...", "contacts_searchRoomServers": "Suche {number}{str} Raumserver...", "settings_contactSettings": "Kontakteinstellungen", - "contactsSettings_otherTitle": "Weitere Einstellungen zu Kontakten", + "contactsSettings_otherTitle": "Kontaktlistenlimits", "contactsSettings_title": "Kontakteinstellungen", - "contactsSettings_autoAddTitle": "Automatische Erkennung", - "contactsSettings_autoAddUsersTitle": "Automatische Hinzufügung von Benutzern", + "contactsSettings_autoAddTitle": "Kontakte automatisch hinzufügen", + "contactsSettings_autoAddDescription": "Neu gehörte Knoten dieser Typen zu den Kontakten des Funkgeräts hinzufügen. Andere können später unter „Entdeckte Kontakte“ hinzugefügt werden.", + "contactsSettings_autoAddUsersTitle": "Benutzer", "settings_contactSettingsSubtitle": "Einstellungen für das Hinzufügen von Kontakten", - "contactsSettings_autoAddSensorsTitle": "Automatisch Sensoren hinzufügen", - "contactsSettings_autoAddSensorsSubtitle": "Ermöglichen Sie dem Begleiter, automatisch entdeckte Sensoren hinzuzufügen", - "contactsSettings_autoAddUsersSubtitle": "Ermöglichen Sie dem Begleiter, automatisch entdeckte Benutzer hinzuzufügen", - "contactsSettings_autoAddRoomServersTitle": "Automatisch Raumservers hinzufügen", - "contactsSettings_autoAddRoomServersSubtitle": "Ermöglichen Sie dem Begleiter, entdeckte Raumserver automatisch hinzuzufügen", - "contactsSettings_autoAddRepeatersTitle": "Automatisch Repeater hinzufügen", - "contactsSettings_autoAddRepeatersSubtitle": "Ermöglichen Sie dem Begleiter, automatisch entdeckte Repeater hinzuzufügen.", + "contactsSettings_autoAddSensorsTitle": "Sensoren", + "contactsSettings_autoAddRoomServersTitle": "Raumserver", + "contactsSettings_autoAddRepeatersTitle": "Repeater", "discoveredContacts_noMatching": "Keine passenden Kontakte", "discoveredContacts_searchHint": "Entdeckte Kontakte suchen", "discoveredContacts_addContact": "Kontakt hinzufügen", @@ -2214,10 +2229,10 @@ "discoveredContacts_deleteContact": "Kontakt löschen", "discoveredContacts_Title": "Entdeckte Kontakte", "discoveredContacts_copyContact": "Kontakt in die Zwischenablage kopieren", - "contactsSettings_overwriteOldestTitle": "Überschreiben des Ältesten", - "contactsSettings_overwriteOldestSubtitle": "Wenn die Kontaktliste voll ist, wird der älteste nicht favorisierte Kontakt ersetzt.", - "contactsSettings_evictDiscoveredContactsTitle": "Liste entdeckter Kontakte kürzen", - "contactsSettings_evictDiscoveredContactsSubtitle": "Wenn aktiviert, wird die Liste der entdeckten Kontakte auf {limit} Kontakte begrenzt.", + "contactsSettings_overwriteOldestTitle": "Ältesten überschreiben", + "contactsSettings_overwriteOldestSubtitle": "Wenn die Kontaktliste des Funkgeräts voll ist, den ältesten Kontakt ersetzen, der kein Favorit ist.", + "contactsSettings_evictDiscoveredContactsTitle": "Entdeckte Kontakte begrenzen", + "contactsSettings_evictDiscoveredContactsSubtitle": "Die App begrenzt die Liste „Entdeckte Kontakte“ auf {limit} Einträge. Ist das Limit erreicht, werden ältere Kontakte entfernt. Deaktivieren, um das Limit aufzuheben.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2343,7 +2358,7 @@ "settings_allowAll": "Alles zulassen", "settings_privacySettingsDescription": "Wählen Sie aus, welche Informationen Ihr Gerät mit anderen teilt.", "settings_denyAll": "Alles verweigern", - "settings_privacySubtitle": "Steuern Sie, welche Informationen freigegeben werden.", + "settings_privacySubtitle": "Steuern Sie, welche Informationen freigegeben werden", "settings_telemetryLocationMode": "Telemetrie-Standortmodus", "settings_telemetryEnvironmentMode": "Telemetrie-Umgebungsmodus", "settings_advertLocation": "Standort in Ankündigung", @@ -3188,10 +3203,9 @@ "settings_regionDefault": "Standardregion", "settings_regionDefaultSubtitle": "Wird von Kanälen ohne eigene Region verwendet", "settings_regionDefaultNone": "Keine", - "settings_telemetryPerContactHint": "Um einen Kontakt zuzulassen, öffnen Sie den zugehörigen Chat und wählen Sie im Menü Kontakteinstellungen aus.", - "settings_multiAckSubtitle": "Zusätzliche ACKs für eine bessere Zustellung senden; erhöht die Sendezeit", + "settings_telemetryPerContactHint": "Um einen bestimmten Kontakt zuzulassen, öffnen Sie den zugehörigen Chat und wählen Sie im Menü Kontakteinstellungen aus.", + "settings_multiAckSubtitle": "Sendet 2 Bestätigungen (ACKs) statt 1, wenn die Bestätigung über einen direkten Pfad zurückgeht. Zuverlässiger, verbraucht aber mehr Sendezeit.", "settings_presetCustom": "Benutzerdefiniert", - "settings_radioMatchWarning": "Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite und SF verwenden. Die Coderate (CR) darf abweichen.", "settings_txPowerRangeHelper": "{min} bis {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3211,7 +3225,7 @@ } } }, - "settings_pathHashModeHelper": "Größe der einzelnen Knoten-ID, die im Pfad der von diesem Funkgerät gesendeten Flood-Pakete aufgezeichnet wird: 1 Byte (256 IDs, bis zu 64 Hops), 2 Bytes (65.000 IDs, bis zu 32 Hops), 3 Bytes (16 Millionen IDs, bis zu 21 Hops). Größere IDs verringern Kollisionen, aber Repeater mit einer Firmware älter als v1.14 verwerfen Pakete mit 2- oder 3-Byte-IDs.", + "settings_pathHashModeHelper": "Größe der ID jedes Knotens, die im Pfad der von diesem Funkgerät gesendeten Flood-Pakete eingetragen wird:\n\n- 1 Byte: 256 eindeutige IDs, bis zu 64 Hops. \"ab\".\n- 2 Bytes: 65.000 eindeutige IDs, bis zu 32 Hops. \"ab12\".\n- 3 Bytes: 16 Millionen eindeutige IDs, bis zu 21 Hops. \"ab12cd\".\n\nGrößere IDs verringern Kollisionen, aber Repeater mit Firmware älter als v1.14 verwerfen Pakete mit 2- und 3-Byte-IDs.", "settings_requiresFirmware": "Erfordert Firmware {version} oder neuer", "@settings_requiresFirmware": { "placeholders": { @@ -3847,7 +3861,8 @@ "routing_modeDirect": "Direkt", "routing_modeDirectHint": "Sendet immer direkt an diesen Kontakt, ohne Repeater-Sprünge. Nutzen Sie dies, wenn er in Funkreichweite ist.", "settings_export": "Exportieren", - "settings_exportSubtitle": "Kontakte und Repeater als GPX exportieren", + "settings_exportData": "Daten exportieren", + "settings_exportSubtitle": "Lesezeichen und Kontaktstandorte", "backupRestore_title": "Sichern & Wiederherstellen", "backupRestore_subtitle": "App-Daten und Funkeinstellungen sichern oder wiederherstellen", "backupRestore_import": "Importieren", @@ -4067,7 +4082,7 @@ "bookmarks_channel": "Kanal", "bookmarks_contact": "Kontakt", "bookmarks_remove": "Lesezeichen entfernen", - "settings_exportBookmarks": "Lesezeichen als Markdown exportieren", + "settings_exportBookmarks": "Lesezeichen", "settings_exportBookmarksSubtitle": "Nachrichten mit Lesezeichen als Markdown-Datei teilen oder speichern.", "settings_exportBookmarksSuccess": "Lesezeichen exportiert.", "settings_exportBookmarksNoBookmarks": "Keine Lesezeichen zum Exportieren.", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 3bba7bc2..642d7f16 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -191,7 +191,8 @@ "settings_appSettings": "App Settings", "settings_appSettingsSubtitle": "Notifications, messaging, and map preferences", "settings_export": "Export", - "settings_exportSubtitle": "Export contacts and repeaters as GPX", + "settings_exportData": "Export Data", + "settings_exportSubtitle": "Bookmarks and contact locations", "backupRestore_title": "Backup & Restore", "backupRestore_subtitle": "Save or restore app data and radio settings", "backupRestore_import": "Import", @@ -255,9 +256,32 @@ "settings_nodeName": "Node Name", "settings_nodeNameNotSet": "Not set", "settings_nodeNameHint": "Enter node name", + "nodeName_info": "Every byte used by your name is one byte less that can be used for channel messages. Special characters and emojis can use more than one byte.", + "nodeName_messageLength": "Message length", + "nodeName_channelMessages": "Channel messages", + "nodeName_channelMessagesSubtitle": "Reduced by your name", + "nodeName_directMessages": "Direct messages", + "nodeName_directMessagesSubtitle": "Not affected by your name", + "nodeName_bytesAvailable": "{count, plural, =1{1 byte available} other{{count} bytes available}}", + "@nodeName_bytesAvailable": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "nodeName_bytesOver": "{count, plural, =1{1 byte over the limit} other{{count} bytes over the limit}}", + "@nodeName_bytesOver": { + "placeholders": { + "count": { + "type": "int" + } + } + }, "settings_nodeNameUpdated": "Name updated", "settings_radioSettings": "Radio Settings", "settings_radioSettingsSubtitle": "Frequency, power, spreading factor", + "settings_unsavedChangesMessage": "Your changes haven't been saved to the radio.", "settings_radioSettingsUpdated": "Radio settings updated", "settings_radioSettingsNotApplied": "The radio did not apply these settings", "settings_pathHashModeNotApplied": "Radio settings were applied, but the radio did not confirm the new path hash size", @@ -300,24 +324,30 @@ }, "settings_location": "Location", "settings_locationSubtitle": "GPS coordinates", + "location_coordinates": "Coordinates", + "location_coordinatesDescription": "Your node's position. It's shown on the map, used when you share your location, and sent in adverts when Advert Location is on (Privacy).", + "location_pickOnMap": "Pick on map", + "locationPicker_hint": "Drag the map or tap to place the pin.", + "locationPicker_useLocation": "Use this location", "settings_locationUpdated": "Location and GPS settings updated", "settings_locationBothRequired": "Enter both latitude and longitude.", "settings_locationInvalid": "Invalid latitude or longitude.", - "settings_locationGPSEnable": "GPS Enable", - "settings_locationGPSEnableSubtitle": "Enables GPS to automatically update location.", - "settings_locationIntervalSec": "Interval for GPS (Seconds)", + "settings_locationGPSEnable": "Enable GPS", + "settings_locationGPSEnableSubtitle": "Keeps the location updated from the radio's GPS.", + "settings_locationIntervalSec": "Update interval (seconds)", + "settings_locationIntervalHelper": "60 to 86399 seconds", "settings_locationIntervalInvalid": "Interval must be at least 60 seconds, and less than 86400 seconds.", "settings_latitude": "Latitude", "settings_longitude": "Longitude", "settings_contactSettings": "Contact Settings", - "settings_contactSettingsSubtitle": "Settings for how contacts are added.", + "settings_contactSettingsSubtitle": "Settings for how contacts are added", "settings_privacyMode": "Privacy Mode", "settings_privacyModeSubtitle": "Hide name/location in advertisements", "settings_privacyModeToggle": "Toggle privacy mode to hide your name and location in advertisements.", "settings_privacyModeEnabled": "Privacy mode enabled", "settings_privacyModeDisabled": "Privacy mode disabled", "settings_privacy": "Privacy Settings", - "settings_privacySubtitle": "Control what information is shared.", + "settings_privacySubtitle": "Control what information is shared", "settings_privacySettingsDescription": "Choose what information your device shares with others.", "settings_denyAll": "Deny all", "settings_allowByContact": "Only contacts I allow", @@ -325,17 +355,17 @@ "settings_telemetryBaseMode": "Who can request battery and status", "settings_telemetryLocationMode": "Who can request my location", "settings_telemetryEnvironmentMode": "Who can request sensor data", - "settings_telemetryPerContactHint": "To allow a contact, open their chat and choose Contact Settings from the menu.", + "settings_telemetryPerContactHint": "To allow a specific contact, open their chat and choose Contact Settings from the menu.", "settings_advertLocation": "Advert Location", "settings_advertLocationSubtitle": "Include location in advert.", "settings_autoZeroHopAdvertOnGpsUpdate": "Auto Zero-Hop Advert On GPS Update", "settings_autoZeroHopAdvertOnGpsUpdateSubtitle": "App setting: when your GPS position changes, automatically advertise your new location to nearby nodes only (requires Advert Location).", "settings_multiAck": "Multi-ACKs", - "settings_multiAckSubtitle": "Send extra ACKs for better delivery; uses more airtime", + "settings_multiAckSubtitle": "Send 2 acknowledgments (ACKs) instead of 1 when the ACK goes back over a direct path. More reliable, but uses more airtime.", "settings_telemetryModeUpdated": "Telemetry mode updated", "settings_actions": "Actions", "settings_deleteAllPaths": "Delete All Paths", - "settings_deleteAllPathsSubtitle": "Clear all path data from contacts.", + "settings_deleteAllPathsSubtitle": "Clear all path data from contacts", "settings_sendAdvertisement": "Send Advertisement", "settings_sendAdvertisementSubtitle": "Broadcast presence now", "settings_advertisementSent": "Advertisement sent", @@ -353,17 +383,23 @@ "settings_appDebugLog": "App Debug Log", "settings_appDebugLogSubtitle": "Application debug messages", "settings_about": "About", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { + "settings_aboutTheApp": "About the App", + "settings_aboutLegalese": "{year} MeshCore Open Source Project", + "@settings_aboutLegalese": { "placeholders": { - "version": { + "year": { "type": "String" } } }, - "settings_aboutLegalese": "2026 MeshCore Open Source Project", "settings_aboutDescription": "An open-source Flutter client for MeshCore LoRa mesh networking devices.", "settings_aboutOpenMeteoAttribution": "LOS elevation data: Open-Meteo (CC BY 4.0)", + "about_project": "Project", + "about_sourceCode": "Source code", + "about_license": "License", + "about_openSourceLicenses": "Open-source licenses", + "about_credits": "Credits", + "about_contributors": "Contributors", "settings_infoName": "Name", "settings_infoId": "ID", "settings_infoStatus": "Status", @@ -375,10 +411,10 @@ "settings_infoHardware": "Hardware", "settings_infoFirmware": "Firmware", "settings_presets": "Presets", + "settings_radioParameters": "Parameters", "settings_presetCustom": "Custom", - "settings_radioMatchWarning": "All nodes you talk to must use the same frequency, bandwidth and SF. The coding rate (CR) can differ.", "settings_frequency": "Frequency (MHz)", - "settings_frequencyHelper": "150.0 - 2500.0", + "settings_frequencyHelper": "150.0 - 2500.0 MHz", "settings_frequencyInvalid": "Invalid frequency (150-2500 MHz)", "settings_bandwidth": "Bandwidth", "settings_spreadingFactor": "Spreading Factor", @@ -396,7 +432,10 @@ } }, "settings_txPowerInvalid": "Invalid TX power", - "settings_clientRepeat": "Off-Grid Repeat", + "settings_clientRepeat": "Off-Grid Repeat Mode", + "settings_clientRepeatDescription": "Allows this device to repeat packets. Meant to be used where repeater coverage doesn't exist.\n\nThis mode uses a restricted set of frequencies. Switching it ON likely disconnects you from the wider mesh. All nodes you talk to must use the same frequency, bandwidth, and spreading factor (SF). Only the coding rate (CR) can differ.", + "settings_clientRepeatSwitch": "Repeat Mode", + "settings_clientRepeatNote": "Note: Turning it OFF reverts to the previous frequency. Check your preset/parameters if you can't connect to the mesh afterwards.", "settings_clientRepeatFrequencyNote": "Frequency set to {freq} MHz for off-grid repeat", "@settings_clientRepeatFrequencyNote": { "placeholders": { @@ -405,7 +444,6 @@ } } }, - "settings_clientRepeatSubtitle": "Allow this device to repeat mesh packets for others", "settings_clientRepeatFreqWarning": "Off-grid repeat requires 433, 869.495, or 918 MHz frequency", "settings_error": "Error: {message}", "@settings_error": { @@ -556,7 +594,7 @@ "repeater_pathHashModeOption1": "2 bytes", "repeater_pathHashModeOption2": "3 bytes", "repeater_pathHashModeOption3": "4 bytes", - "settings_pathHashModeHelper": "Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.", + "settings_pathHashModeHelper": "Size of each node's ID recorded in the path of flood packets sent by this radio:\n\n- 1 byte: 256 unique IDs, up to 64 hops. \"ab\".\n- 2 bytes: 65K unique IDs, up to 32 hops. \"ab12\".\n- 3 bytes: 16M unique IDs, up to 21 hops. \"ab12cd\".\n\nLarger IDs reduce collisions, but repeaters running firmware older than v1.14 drop packets using 2 and 3-byte IDs.", "settings_requiresFirmware": "Requires firmware {version} or newer", "@settings_requiresFirmware": { "placeholders": { @@ -2136,7 +2174,7 @@ "repeater_floodMaxHelper": "Maximum hops a flood packet may travel (0-64)", "repeater_advancedSettings": "Advanced", "repeater_advancedSettingsSubtitle": "Tuning knobs for experienced operators", - "repeater_pathHashMode": "Node ID size in paths", + "repeater_pathHashMode": "ID hash size", "repeater_pathHashModeHelper": "Size of this repeater's ID in the paths of adverts it sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Does not affect forwarding; v1.14+ repeaters forward all sizes, but older firmware drops packets with 2- or 3-byte IDs.", "repeater_keySettings": "Change Identity Keys", "repeater_keySettingsSubtitle": "Change the public/private keypair", @@ -3215,16 +3253,16 @@ "notification_replyUnavailable": "This conversation is no longer on the connected radio.", "notification_replySendFailed": "Your reply may not have been sent. Check in MeshCore Open and try again.", "notification_replyAppNotRunning": "MeshCore Open isn't running. Open it and send your reply again.", - "settings_exportBookmarks": "Export bookmarks to Markdown", - "settings_exportBookmarksSubtitle": "Share or save bookmarked messages as a Markdown file.", + "export_messagesTitle": "Messages", + "export_messagesDescription": "Bookmarked messages, saved as a Markdown file.", + "export_locationsTitle": "Contact locations", + "export_locationsDescription": "Contacts with a known location, saved as a GPX file for map apps.", + "settings_exportBookmarks": "Bookmarks", "settings_exportBookmarksSuccess": "Bookmarks exported.", "settings_exportBookmarksNoBookmarks": "No bookmarks to export.", - "settings_gpxExportRepeaters": "Export repeaters / room server to GPX", - "settings_gpxExportRepeatersSubtitle": "Exports repeaters / roomserver with a location to GPX file.", - "settings_gpxExportContacts": "Export companions to GPX", - "settings_gpxExportContactsSubtitle": "Exports companions with a location to GPX file.", - "settings_gpxExportAll": "Export all contacts to GPX", - "settings_gpxExportAllSubtitle": "Exports all contacts with a location to GPX file.", + "settings_gpxExportRepeaters": "Repeaters and Rooms", + "settings_gpxExportContacts": "Users / Companions", + "settings_gpxExportAll": "All contacts", "settings_gpxExportSuccess": "Successfully exported GPX file.", "settings_gpxExportNoContacts": "No contacts to export.", "settings_gpxExportNotAvailable": "Not supported on your device/OS", @@ -3240,20 +3278,17 @@ "snrIndicator_unknownRepeater": "Unknown repeater", "snrIndicator_unknownRepeaterHint": "This repeater isn't in your contacts yet. Its name, location and options appear once your radio receives its advert.", "contactsSettings_title": "Contacts settings", - "contactsSettings_autoAddTitle": "Automatic Discovery", - "contactsSettings_otherTitle": "Other contact related settings", - "contactsSettings_autoAddUsersTitle": "Auto-add users", - "contactsSettings_autoAddUsersSubtitle": "Allow the companion to automatically add discovered users.", - "contactsSettings_autoAddRepeatersTitle": "Auto-add repeaters", - "contactsSettings_autoAddRepeatersSubtitle": "Allow the companion to automatically add discovered repeaters.", - "contactsSettings_autoAddRoomServersTitle": "Auto-add room servers", - "contactsSettings_autoAddRoomServersSubtitle": "Allow the companion to automatically add discovered room servers.", - "contactsSettings_autoAddSensorsTitle": "Auto-add sensors", - "contactsSettings_autoAddSensorsSubtitle": "Allow the companion to automatically add discovered sensors.", - "contactsSettings_overwriteOldestTitle": "Overwrite Oldest", - "contactsSettings_overwriteOldestSubtitle": "When the contact list is full, the oldest non-favorited contact will be replaced.", - "contactsSettings_evictDiscoveredContactsTitle": "Evict discovered contacts", - "contactsSettings_evictDiscoveredContactsSubtitle": "When enabled, the app removes the oldest discovered contacts once the discovery list reaches its limit of {limit} entries.", + "contactsSettings_autoAddTitle": "Auto-add contacts", + "contactsSettings_autoAddDescription": "Add newly heard nodes of these types to the radio's contacts. Others can be added later from Discovered Contacts.", + "contactsSettings_otherTitle": "Contact List Limits", + "contactsSettings_autoAddUsersTitle": "Users", + "contactsSettings_autoAddRepeatersTitle": "Repeaters", + "contactsSettings_autoAddRoomServersTitle": "Room servers", + "contactsSettings_autoAddSensorsTitle": "Sensors", + "contactsSettings_overwriteOldestTitle": "Overwrite oldest", + "contactsSettings_overwriteOldestSubtitle": "Replace the oldest non-favorited contact when the radio's contact list is full.", + "contactsSettings_evictDiscoveredContactsTitle": "Limit discovered contacts", + "contactsSettings_evictDiscoveredContactsSubtitle": "The app sets a {limit} entry limit to the discovered contacts list, older contacts are evicted when the limit is reached. Disable to have no limits.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -3363,7 +3398,7 @@ } }, "radioStats_stripWaiting": "Fetching radio stats…", - "radioStats_settingsTile": "Radio stats", + "radioStats_settingsTile": "Radio Stats", "radioStats_settingsSubtitle": "Noise floor, RSSI, SNR, and airtime", "translation_title": "Translation", "imageMessages_enableTitle": "Enable image messages", @@ -4077,7 +4112,7 @@ "@chat_loadOlderMessages": { "description": "Button on an empty channel when filtered messages hide the loaded ones and older history may exist" }, - "messageFilter_title": "Message filter", + "messageFilter_title": "Message Filter", "@messageFilter_title": { "description": "Message filter: Message filter" }, diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index d9529bcc..e04d9993 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Nombre del nodo", "settings_nodeNameNotSet": "No está configurado", "settings_nodeNameHint": "Introducir nombre de nodo", + "nodeName_info": "Cada byte de tu nombre es uno menos para los mensajes de canal. Los caracteres especiales y los emojis pueden ocupar más de un byte.", + "nodeName_messageLength": "Longitud del mensaje", + "nodeName_channelMessages": "Mensajes de canal", + "nodeName_channelMessagesSubtitle": "Reducidos por tu nombre", + "nodeName_directMessages": "Mensajes directos", + "nodeName_directMessagesSubtitle": "No afectados por tu nombre", + "nodeName_bytesAvailable": "{count, plural, one{{count} byte disponible} other{{count} bytes disponibles}}", + "nodeName_bytesOver": "{count, plural, one{{count} byte por encima del límite} other{{count} bytes por encima del límite}}", "settings_nodeNameUpdated": "Nombre actualizado", "settings_radioSettings": "Configuración de Radio", "settings_radioSettingsSubtitle": "Frecuencia, potencia, factor de dispersión", + "settings_unsavedChangesMessage": "Tienes cambios que no se han guardado en la radio.", "settings_radioSettingsUpdated": "Ajustes de radio actualizados", "settings_location": "Ubicación", "settings_locationSubtitle": "Coordenadas GPS", + "location_coordinates": "Coordenadas", + "location_coordinatesDescription": "La posición de tu nodo. Se muestra en el mapa, se usa al compartir tu ubicación y se envía en los anuncios cuando la opción Ubicación de anuncio está activada (Configuración de privacidad).", + "location_pickOnMap": "Elegir en el mapa", + "locationPicker_hint": "Arrastra el mapa o toca para colocar el pin.", + "locationPicker_useLocation": "Usar esta ubicación", "settings_locationUpdated": "Ubicación actualizada", "settings_locationBothRequired": "Introduzca tanto la latitud como la longitud.", "settings_locationInvalid": "Latitud o longitud inválidos.", @@ -109,7 +123,7 @@ "settings_privacyModeDisabled": "Modo de privacidad desactivado", "settings_actions": "Acciones", "settings_deleteAllPaths": "Eliminar todas las rutas", - "settings_deleteAllPathsSubtitle": "Borrar todos los datos de ruta de los contactos.", + "settings_deleteAllPathsSubtitle": "Borrar todos los datos de ruta de los contactos", "settings_sendAdvertisement": "Enviar anuncio", "settings_sendAdvertisementSubtitle": "Difundir la presencia ahora", "settings_advertisementSent": "Anuncio enviado", @@ -127,15 +141,8 @@ "settings_appDebugLog": "Registro de Depuración de la App", "settings_appDebugLogSubtitle": "Mensajes de depuración de la aplicación", "settings_about": "Acerca de", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Proyecto MeshCore Open Source 2026", + "settings_aboutTheApp": "Acerca de la app", + "settings_aboutLegalese": "Proyecto MeshCore Open Source {year}", "settings_aboutDescription": "Un cliente Flutter de código abierto para dispositivos MeshCore de malla LoRa.", "settings_infoName": "Nombre", "settings_infoId": "ID", @@ -145,9 +152,10 @@ "settings_infoContactsCount": "Número de contactos", "settings_infoChannelCount": "Número de canales", "settings_presets": "Preajustes", + "settings_radioParameters": "Parámetros", "settings_frequency": "Frecuencia (MHz)", - "settings_frequencyHelper": "300,0 - 2500,0", - "settings_frequencyInvalid": "Frecuencia inválida (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Frecuencia inválida (150-2500 MHz)", "settings_bandwidth": "Ancho de banda", "settings_spreadingFactor": "Factor de propagación", "settings_codingRate": "Tasa de codificación", @@ -1200,7 +1208,7 @@ "repeater_floodMaxHelper": "Número máximo de saltos que puede recorrer un paquete Flood (0-64)", "repeater_advancedSettings": "Ajustes avanzados", "repeater_advancedSettingsSubtitle": "Controles de ajuste para operadores experimentados", - "repeater_pathHashMode": "Modo de hash de ruta", + "repeater_pathHashMode": "Tamaño del hash de ID", "repeater_pathHashModeHelper": "Bytes utilizados para codificar el ID de este repetidor en las etiquetas de ruta/detección de bucles. 0=1 byte (256 IDs, hasta 64 saltos), 1=2 bytes (65.000 IDs, hasta 32 saltos), 2=3 bytes (16 millones de IDs, hasta 21 saltos). Las versiones 1.13 y anteriores de firmware eliminan rutas de múltiples bytes; solo se detectan una vez que la red está activa en la versión 1.14 o posterior.", "repeater_txDelay": "Retraso TX Flood", "repeater_txDelayHelper": "Ajuste de retransmisión para el tráfico Flood, como un multiplicador del tiempo de transmisión del paquete (0-2, valor predeterminado 0.5). Un valor más alto significa menos colisiones, pero una entrega más lenta.", @@ -1692,8 +1700,9 @@ "neighbors_unknownContact": "Clave pública desconocida {pubkey}", "neighbors_heardAgo": "Escuchado hace {time}", "settings_locationGPSEnable": "Habilitar GPS", - "settings_locationGPSEnableSubtitle": "Habilita la actualización automática de la ubicación mediante GPS.", - "settings_locationIntervalSec": "Intervalo para GPS (Segundos)", + "settings_locationGPSEnableSubtitle": "Mantiene la ubicación actualizada con el GPS de la radio.", + "settings_locationIntervalSec": "Intervalo de actualización (segundos)", + "settings_locationIntervalHelper": "60 a 86399 segundos", "settings_locationIntervalInvalid": "El intervalo debe ser de al menos 60 segundos y menor que 86400 segundos.", "contacts_manageRoom": "Gestionar servidor de sala", "room_management": "Administración del servidor de sala", @@ -1905,16 +1914,17 @@ } }, "notification_receivedNewMessage": "Nuevo mensaje recibido", - "settings_gpxExportContactsSubtitle": "Exporta compañeros con una ubicación a un archivo GPX.", - "settings_gpxExportRepeaters": "Exportar repetidores / servidores de sala a GPX", + "export_messagesTitle": "Mensajes", + "export_messagesDescription": "Mensajes marcados, guardados como archivo Markdown.", + "export_locationsTitle": "Ubicaciones de contactos", + "export_locationsDescription": "Contactos con ubicación conocida, guardados como archivo GPX para apps de mapas.", + "settings_gpxExportRepeaters": "Repetidores y salas", "settings_gpxExportSuccess": "Archivo GPX exportado con éxito.", "settings_gpxExportNoContacts": "No hay contactos para exportar.", "settings_gpxExportNotAvailable": "No compatible con tu dispositivo o sistema operativo", "settings_gpxExportError": "Hubo un error al exportar.", - "settings_gpxExportRepeatersSubtitle": "Exporta repetidores o servidores de sala con una ubicación a un archivo GPX.", - "settings_gpxExportAllSubtitle": "Exporta todos los contactos con una ubicación a un archivo GPX.", - "settings_gpxExportAll": "Exportar todos los contactos a GPX", - "settings_gpxExportContacts": "Exportar compañeros a GPX", + "settings_gpxExportAll": "Todos los contactos", + "settings_gpxExportContacts": "Usuarios / Compañeros", "settings_gpxExportChat": "Ubicaciones de compañeros", "settings_gpxExportRepeatersRoom": "Ubicaciones de repetidores y servidores de sala", "settings_gpxExportAllContacts": "Todas las ubicaciones de contactos", @@ -1935,9 +1945,17 @@ "snrIndicator_lastSeen": "Visto por última vez", "chat_ShowAllPaths": "Mostrar todas las rutas", "settings_clientRepeatFreqWarning": "Para la comunicación fuera de la red, se requiere una frecuencia de 433, 869 o 918 MHz.", - "settings_clientRepeat": "Repetir sin conexión", - "settings_clientRepeatSubtitle": "Permita que este dispositivo repita los paquetes de red para otros usuarios.", + "settings_clientRepeat": "Modo de repetición fuera de red", + "settings_clientRepeatDescription": "Permite que este dispositivo repita paquetes. Pensado para zonas sin cobertura de repetidores.\n\nEste modo usa un conjunto limitado de frecuencias. Al ACTIVARLO, lo más probable es que pierdas la conexión con el resto de la malla. Todos los nodos con los que hables deben usar la misma frecuencia, ancho de banda y factor de propagación (SF). Solo la tasa de codificación (CR) puede ser distinta.", + "settings_clientRepeatSwitch": "Modo de repetición", + "settings_clientRepeatNote": "Nota: Al DESACTIVARLO, se restablece la frecuencia anterior. Si después no puedes conectarte a la malla, revisa los preajustes/parámetros.", "settings_aboutOpenMeteoAttribution": "Datos de elevación LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Proyecto", + "about_sourceCode": "Código fuente", + "about_license": "Licencia", + "about_openSourceLicenses": "Licencias de código abierto", + "about_credits": "Créditos", + "about_contributors": "Colaboradores", "appSettings_unitsTitle": "Unidades", "appSettings_unitsMetric": "Métrico (m/km)", "appSettings_unitsImperial": "Imperial (pies/millas)", @@ -2125,20 +2143,17 @@ "contacts_searchUsers": "Buscar {number}{str} usuarios...", "contacts_searchRepeaters": "Buscar {number}{str} repetidores...", "contacts_searchRoomServers": "Buscar {number}{str} servidores de sala...", - "contactsSettings_autoAddTitle": "Detección automática", + "contactsSettings_autoAddTitle": "Añadir contactos automáticamente", + "contactsSettings_autoAddDescription": "Añade a los contactos de la radio los nodos recién escuchados de estos tipos. Los demás se pueden añadir más tarde desde Contactos descubiertos.", "settings_contactSettings": "Configuración de contacto", - "contactsSettings_autoAddUsersTitle": "Agregar usuarios automáticamente", - "contactsSettings_otherTitle": "Otras configuraciones relacionadas con el contacto", - "contactsSettings_autoAddUsersSubtitle": "Permitir que el compañero agregue automáticamente a los usuarios descubiertos.", - "contactsSettings_autoAddRepeatersSubtitle": "Permitir que el compañero agregue automáticamente los repetidores descubiertos.", - "contactsSettings_autoAddRoomServersSubtitle": "Permitir que el compañero agregue automáticamente los servidores de salas descubiertos.", - "contactsSettings_autoAddSensorsTitle": "Agregar sensores automáticamente", + "contactsSettings_autoAddUsersTitle": "Usuarios", + "contactsSettings_otherTitle": "Límites de las listas de contactos", + "contactsSettings_autoAddSensorsTitle": "Sensores", "contactsSettings_title": "Configuración de contactos", - "settings_contactSettingsSubtitle": "Configuración de cómo se agregan los contactos.", - "contactsSettings_autoAddSensorsSubtitle": "Permitir que el compañero agregue automáticamente los sensores descubiertos.", - "contactsSettings_autoAddRepeatersTitle": "Agregar repetidores automáticamente", - "contactsSettings_overwriteOldestTitle": "Sobreescribir el más antiguo", - "contactsSettings_autoAddRoomServersTitle": "Agregar automáticamente servidores de sala", + "settings_contactSettingsSubtitle": "Configuración de cómo se agregan los contactos", + "contactsSettings_autoAddRepeatersTitle": "Repetidores", + "contactsSettings_overwriteOldestTitle": "Sobrescribir el más antiguo", + "contactsSettings_autoAddRoomServersTitle": "Servidores de sala", "discoveredContacts_noMatching": "No se encontraron contactos coincidentes", "discoveredContacts_contactAdded": "Contacto agregado", "discoveredContacts_copyContact": "Copiar contacto al portapapeles", @@ -2146,9 +2161,9 @@ "discoveredContacts_Title": "Contactos descubiertos", "discoveredContacts_searchHint": "Buscar contactos descubiertos", "discoveredContacts_addContact": "Agregar contacto", - "contactsSettings_overwriteOldestSubtitle": "Cuando la lista de contactos esté llena, se reemplazará el contacto no favorito más antiguo.", - "contactsSettings_evictDiscoveredContactsTitle": "Expulsar contactos descubiertos", - "contactsSettings_evictDiscoveredContactsSubtitle": "Si está activado, la aplicación elimina los contactos descubiertos más antiguos cuando la lista de descubrimiento alcanza su límite de {limit} entradas.", + "contactsSettings_overwriteOldestSubtitle": "Cuando la lista de contactos de la radio esté llena, reemplaza el contacto no favorito más antiguo.", + "contactsSettings_evictDiscoveredContactsTitle": "Limitar contactos descubiertos", + "contactsSettings_evictDiscoveredContactsSubtitle": "La app limita la lista \"Contactos descubiertos\" a {limit} entradas. Al alcanzar el límite, se eliminan los contactos más antiguos. Desactivar para quitar el límite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2269,7 +2284,7 @@ } } }, - "settings_privacySubtitle": "Controlar qué información se comparte.", + "settings_privacySubtitle": "Controlar qué información se comparte", "settings_allowByContact": "Permitir por banderas de contacto", "settings_denyAll": "Denegar todo", "settings_telemetryBaseMode": "Modo base de telemetría", @@ -3077,10 +3092,9 @@ "settings_regionDefault": "Región predeterminada", "settings_regionDefaultSubtitle": "Se usa en los canales sin región propia", "settings_regionDefaultNone": "Ninguna", - "settings_telemetryPerContactHint": "Para permitir un contacto, abre su chat y elige Configuración de contacto en el menú.", - "settings_multiAckSubtitle": "Enviar confirmaciones adicionales para mejorar la entrega; usa más tiempo de emisión", + "settings_telemetryPerContactHint": "Para permitir un contacto específico, abre su chat y elige Configuración de contacto en el menú.", + "settings_multiAckSubtitle": "Enviar 2 confirmaciones (ACK) en lugar de 1 cuando la confirmación vuelve por una ruta directa. Más fiable, pero usa más tiempo de aire.", "settings_presetCustom": "Personalizado", - "settings_radioMatchWarning": "Todos los nodos con los que hablas deben usar la misma frecuencia, ancho de banda y SF. La tasa de codificación (CR) puede ser distinta.", "settings_txPowerRangeHelper": "{min} a {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3100,7 +3114,7 @@ } } }, - "settings_pathHashModeHelper": "Tamaño de cada ID de nodo registrado en la ruta de los paquetes Flood que envía esta radio: 1 byte (256 IDs, hasta 64 saltos), 2 bytes (65.000 IDs, hasta 32 saltos), 3 bytes (16 millones de IDs, hasta 21 saltos). Los IDs más grandes reducen las colisiones, pero los repetidores con un firmware anterior a la v1.14 descartan los paquetes con IDs de 2 o 3 bytes.", + "settings_pathHashModeHelper": "Tamaño del ID de cada nodo registrado en la ruta de los paquetes Flood que envía esta radio:\n\n- 1 byte: 256 IDs únicos, hasta 64 saltos. \"ab\".\n- 2 bytes: 65.000 IDs únicos, hasta 32 saltos. \"ab12\".\n- 3 bytes: 16 millones de IDs únicos, hasta 21 saltos. \"ab12cd\".\n\nLos IDs más grandes reducen las colisiones, pero los repetidores con firmware anterior a la v1.14 descartan los paquetes con IDs de 2 y 3 bytes.", "settings_requiresFirmware": "Requiere el firmware {version} o posterior", "@settings_requiresFirmware": { "placeholders": { @@ -3898,7 +3912,8 @@ "routing_modeDirect": "Directo", "routing_modeDirectHint": "Envía siempre directamente a este contacto, sin saltos de repetidor. Úselo cuando esté al alcance de la radio.", "settings_export": "Exportar", - "settings_exportSubtitle": "Exportar contactos y repetidores como GPX", + "settings_exportData": "Exportar datos", + "settings_exportSubtitle": "Marcadores y ubicaciones de contactos", "backupRestore_title": "Copia de seguridad y restauración", "backupRestore_subtitle": "Guarda o restaura los datos de la app y los ajustes de la radio", "backupRestore_import": "Importar", @@ -4118,7 +4133,7 @@ "bookmarks_channel": "Canal", "bookmarks_contact": "Contacto", "bookmarks_remove": "Quitar marcador", - "settings_exportBookmarks": "Exportar marcadores a Markdown", + "settings_exportBookmarks": "Marcadores", "settings_exportBookmarksSubtitle": "Compartir o guardar los mensajes con marcador como archivo Markdown.", "settings_exportBookmarksSuccess": "Marcadores exportados.", "settings_exportBookmarksNoBookmarks": "No hay marcadores para exportar.", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index e0ee471c..dd0f5e45 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Nom du nœud", "settings_nodeNameNotSet": "Non défini", "settings_nodeNameHint": "Entrer le nom du nœud", + "nodeName_info": "Chaque octet de votre nom est un octet de moins pour les messages de canal. Les caractères spéciaux et les émojis peuvent occuper plus d'un octet.", + "nodeName_messageLength": "Longueur des messages", + "nodeName_channelMessages": "Messages de canal", + "nodeName_channelMessagesSubtitle": "Réduits par votre nom", + "nodeName_directMessages": "Messages directs", + "nodeName_directMessagesSubtitle": "Non affectés par votre nom", + "nodeName_bytesAvailable": "{count, plural, one{{count} octet disponible} other{{count} octets disponibles}}", + "nodeName_bytesOver": "{count, plural, one{{count} octet de trop} other{{count} octets de trop}}", "settings_nodeNameUpdated": "Nom mis à jour", "settings_radioSettings": "Paramètres Radio", "settings_radioSettingsSubtitle": "Fréquence, puissance, facteur d'espacement", + "settings_unsavedChangesMessage": "Vous avez des modifications non enregistrées sur la radio.", "settings_radioSettingsUpdated": "Paramètres radio mis à jour", "settings_location": "Emplacement", "settings_locationSubtitle": "Coordonnées GPS", + "location_coordinates": "Coordonnées", + "location_coordinatesDescription": "La position de votre nœud. Elle est affichée sur la carte, utilisée quand vous partagez votre position et envoyée dans les annonces si l'option Localisation de l'annonce est activée (Paramètres de confidentialité).", + "location_pickOnMap": "Choisir sur la carte", + "locationPicker_hint": "Déplacez la carte ou appuyez pour placer l'épingle.", + "locationPicker_useLocation": "Utiliser cet emplacement", "settings_locationUpdated": "Emplacement mis à jour", "settings_locationBothRequired": "Entrez la latitude et la longitude.", "settings_locationInvalid": "Latitude ou longitude invalide.", @@ -109,12 +123,12 @@ "settings_privacyModeDisabled": "Mode de confidentialité désactivé", "settings_actions": "Actions", "settings_deleteAllPaths": "Supprimer tous les chemins", - "settings_deleteAllPathsSubtitle": "Effacer toutes les données de chemin des contacts.", + "settings_deleteAllPathsSubtitle": "Effacer toutes les données de chemin des contacts", "settings_sendAdvertisement": "S'annoncer", "settings_sendAdvertisementSubtitle": "Diffuser la présence maintenant", "settings_advertisementSent": "Annonce envoyée", "settings_syncTime": "Synchroniser l'heure", - "settings_syncTimeSubtitle": "Régler l'heure de l'appareil sur celle du téléphone.", + "settings_syncTimeSubtitle": "Régler l'heure de l'appareil sur celle du téléphone", "settings_timeSynchronized": "Heure synchronisée", "settings_refreshContacts": "Actualiser les contacts", "settings_refreshContactsSubtitle": "Recharger la liste des contacts depuis l'appareil", @@ -127,15 +141,8 @@ "settings_appDebugLog": "Journal de débogage de l'application", "settings_appDebugLogSubtitle": "Messages de débogage de l'application", "settings_about": "À propos", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Projet open source MeshCore 2026", + "settings_aboutTheApp": "À propos de l'application", + "settings_aboutLegalese": "Projet open source MeshCore {year}", "settings_aboutDescription": "Client Flutter open source pour les appareils de réseau maillé LoRa MeshCore.", "settings_infoName": "Nom", "settings_infoId": "ID", @@ -145,9 +152,10 @@ "settings_infoContactsCount": "Nombre de contacts", "settings_infoChannelCount": "Nombre de canaux", "settings_presets": "Préréglages", + "settings_radioParameters": "Paramètres", "settings_frequency": "Fréquence (MHz)", - "settings_frequencyHelper": "300,0 - 2 500,0", - "settings_frequencyInvalid": "Fréquence invalide (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2 500,0 MHz", + "settings_frequencyInvalid": "Fréquence invalide (150-2500 MHz)", "settings_bandwidth": "Bande passante", "settings_spreadingFactor": "Facteur d'étalement (SF)", "settings_codingRate": "Taux de codage (CR)", @@ -1200,7 +1208,7 @@ "repeater_floodMaxHelper": "Nombre maximal de sauts qu'un paquet flood peut parcourir (0-64)", "repeater_advancedSettings": "Avancé", "repeater_advancedSettingsSubtitle": "Réglages avancés pour les opérateurs expérimentés", - "repeater_pathHashMode": "Mode de hachage de chemin", + "repeater_pathHashMode": "Taille du hachage d'ID", "repeater_pathHashModeHelper": "Octets utilisés pour encoder l'ID de ce routeur dans les balises de détection de flux/boucles. 0 = 1 octet (256 ID, jusqu'à 64 sauts), 1 = 2 octets (65 000 ID, jusqu'à 32 sauts), 2 = 3 octets (16 millions d'ID, jusqu'à 21 sauts). Les versions 1.13 et antérieures utilisent des chemins multi-octets ; à partir de la version 1.14, cela n'est plus nécessaire.", "repeater_txDelay": "Délai de transmission en flood", "repeater_txDelayHelper": "Intervalle de retransmission pour le trafic flood, en multipliant le temps d'émission des paquets (0-2, valeur par défaut : 0,5). Une valeur plus élevée réduit les collisions, mais ralentit la transmission.", @@ -1692,8 +1700,9 @@ "neighbors_unknownContact": "Clé publique inconnue {pubkey}", "neighbors_heardAgo": "Écouté : {time} auparavant", "settings_locationGPSEnable": "Activer le GPS", - "settings_locationGPSEnableSubtitle": "Activer la mise à jour automatique de la localisation via GPS", - "settings_locationIntervalSec": "Intervalle de mise à jour du GPS (secondes)", + "settings_locationGPSEnableSubtitle": "Maintient la position à jour grâce au GPS de la radio.", + "settings_locationIntervalSec": "Intervalle de mise à jour (secondes)", + "settings_locationIntervalHelper": "60 à 86399 secondes", "settings_locationIntervalInvalid": "L'intervalle doit être compris entre 60 et 86400 secondes.", "contacts_manageRoom": "Gérer le room server", "room_management": "Gestion du room server", @@ -1898,16 +1907,17 @@ } }, "notification_receivedNewMessage": "Nouveau message reçu", - "settings_gpxExportRepeaters": "Exporter les répéteurs / room servers au format GPX", - "settings_gpxExportRepeatersSubtitle": "Exporte les répéteurs / roomserver avec une localisation vers un fichier GPX.", + "export_messagesTitle": "Messages", + "export_messagesDescription": "Messages en favoris, enregistrés dans un fichier Markdown.", + "export_locationsTitle": "Emplacements des contacts", + "export_locationsDescription": "Contacts dont l'emplacement est connu, enregistrés dans un fichier GPX pour les applications de cartographie.", + "settings_gpxExportRepeaters": "Répéteurs et salons", "settings_gpxExportNoContacts": "Aucun contact à exporter.", "settings_gpxExportNotAvailable": "Non pris en charge sur votre appareil/Système d'exploitation", "settings_gpxExportError": "Une erreur s'est produite lors de l'exportation.", "settings_gpxExportRepeatersRoom": "Emplacements des répéteurs et room servers", - "settings_gpxExportContacts": "Exporter les compagnons au format GPX", - "settings_gpxExportAll": "Exporter tous les contacts au format GPX", - "settings_gpxExportAllSubtitle": "Exporte tous les contacts avec une localisation vers un fichier GPX.", - "settings_gpxExportContactsSubtitle": "Exporte les compagnons avec un emplacement vers un fichier GPX.", + "settings_gpxExportContacts": "Utilisateurs / Compagnons", + "settings_gpxExportAll": "Tous les contacts", "settings_gpxExportChat": "Emplacements des compagnons", "settings_gpxExportSuccess": "Fichier GPX exporté avec succès.", "settings_gpxExportAllContacts": "Tous les emplacements des contacts", @@ -1928,9 +1938,17 @@ "snrIndicator_nearByRepeaters": "Répéteurs à proximité", "chat_ShowAllPaths": "Afficher tous les chemins", "settings_clientRepeatFreqWarning": "Pour les transmissions hors réseau, il est nécessaire d'utiliser les fréquences de 433, 869 ou 918 MHz.", - "settings_clientRepeatSubtitle": "Permettre à cet appareil de relayer les paquets du maillage pour les autres.", - "settings_clientRepeat": "Répétition hors réseau", + "settings_clientRepeat": "Mode de répétition hors réseau", + "settings_clientRepeatDescription": "Permet à cet appareil de répéter les paquets. Destiné aux zones sans couverture de répéteurs.\n\nCe mode utilise un ensemble restreint de fréquences. Une fois ACTIVÉ, il vous déconnecte probablement du reste du maillage. Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante et le même facteur d'étalement (SF). Seul le taux de codage (CR) peut différer.", + "settings_clientRepeatSwitch": "Mode de répétition", + "settings_clientRepeatNote": "Remarque : une fois le mode DÉSACTIVÉ, la fréquence précédente est rétablie. Vérifiez vos préréglages/paramètres si vous ne parvenez plus à vous connecter au maillage.", "settings_aboutOpenMeteoAttribution": "Données d'élévation LOS : Open-Meteo (CC BY 4.0)", + "about_project": "Projet", + "about_sourceCode": "Code source", + "about_license": "Licence", + "about_openSourceLicenses": "Licences open source", + "about_credits": "Crédits", + "about_contributors": "Contributeurs", "appSettings_unitsTitle": "Unités", "appSettings_unitsMetric": "Métrique (m/km)", "appSettings_unitsImperial": "Impérial (ft / mi)", @@ -2120,28 +2138,25 @@ "contacts_searchContactsNoNumber": "Rechercher des contacts...", "settings_contactSettings": "Paramètres de contact", "settings_contactSettingsSubtitle": "Paramètres pour l'ajout de contacts", - "contactsSettings_autoAddRepeatersTitle": "Ajouter automatiquement les répéteurs", - "contactsSettings_autoAddRepeatersSubtitle": "Autoriser le compagnon à ajouter automatiquement les répéteurs découverts", - "contactsSettings_autoAddRoomServersTitle": "Ajouter automatiquement les room servers", - "contactsSettings_autoAddRoomServersSubtitle": "Autoriser le compagnon à ajouter automatiquement les room servers découverts", - "contactsSettings_otherTitle": "Autres paramètres liés aux contacts", + "contactsSettings_autoAddRepeatersTitle": "Répéteurs", + "contactsSettings_autoAddRoomServersTitle": "Serveurs de salle", + "contactsSettings_otherTitle": "Limites des listes de contacts", "contactsSettings_title": "Paramètres des contacts", - "contactsSettings_autoAddUsersTitle": "Ajouter automatiquement les utilisateurs", - "contactsSettings_autoAddTitle": "Découverte automatique", - "contactsSettings_autoAddSensorsTitle": "Ajouter automatiquement les capteurs", - "contactsSettings_autoAddUsersSubtitle": "Autoriser le compagnon à ajouter automatiquement les utilisateurs découverts", + "contactsSettings_autoAddUsersTitle": "Utilisateurs", + "contactsSettings_autoAddTitle": "Ajout automatique de contacts", + "contactsSettings_autoAddDescription": "Ajoute aux contacts de la radio les nœuds de ces types nouvellement entendus. Les autres peuvent être ajoutés plus tard depuis Contacts découverts.", + "contactsSettings_autoAddSensorsTitle": "Capteurs", "discoveredContacts_noMatching": "Aucun contact correspondant", "discoveredContacts_contactAdded": "Contact ajouté", "discoveredContacts_addContact": "Ajouter un contact", "discoveredContacts_copyContact": "Copier le contact dans le presse-papiers", "discoveredContacts_deleteContact": "Supprimer le contact", "contactsSettings_overwriteOldestTitle": "Écraser le plus ancien", - "contactsSettings_autoAddSensorsSubtitle": "Autoriser le compagnon à ajouter automatiquement les capteurs découverts.", "discoveredContacts_Title": "Contacts découverts", "discoveredContacts_searchHint": "Rechercher des contacts découverts", - "contactsSettings_overwriteOldestSubtitle": "Lorsque la liste de contacts est pleine, le contact le plus ancien non favori sera remplacé.", - "contactsSettings_evictDiscoveredContactsTitle": "Évincer les contacts découverts", - "contactsSettings_evictDiscoveredContactsSubtitle": "Lorsque cette option est activée, l'application supprime les contacts découverts les plus anciens dès que la liste de découverte atteint sa limite de {limit} entrées.", + "contactsSettings_overwriteOldestSubtitle": "Lorsque la liste de contacts de la radio est pleine, remplace le plus ancien contact non favori.", + "contactsSettings_evictDiscoveredContactsTitle": "Limiter les contacts découverts", + "contactsSettings_evictDiscoveredContactsSubtitle": "L'application limite la liste « Contacts découverts » à {limit} entrées. Une fois la limite atteinte, les contacts les plus anciens sont supprimés. Désactivez pour supprimer la limite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -3077,10 +3092,9 @@ "settings_regionDefault": "Région par défaut", "settings_regionDefaultSubtitle": "Utilisée par les canaux qui n'ont pas leur propre région", "settings_regionDefaultNone": "Aucune", - "settings_telemetryPerContactHint": "Pour autoriser un contact, ouvrez son chat et choisissez Paramètres de contact dans le menu.", - "settings_multiAckSubtitle": "Envoyer des ACK supplémentaires pour une meilleure livraison ; utilise plus de temps d'antenne", + "settings_telemetryPerContactHint": "Pour autoriser un contact spécifique, ouvrez son chat et choisissez Paramètres de contact dans le menu.", + "settings_multiAckSubtitle": "Envoyer 2 accusés de réception (ACK) au lieu de 1 lorsque l'accusé de réception est renvoyé par un chemin direct. Plus fiable, mais utilise plus de temps d'antenne.", "settings_presetCustom": "Personnalisé", - "settings_radioMatchWarning": "Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante et le même SF. Le taux de codage (CR) peut être différent.", "settings_txPowerRangeHelper": "{min} à {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3100,7 +3114,7 @@ } } }, - "settings_pathHashModeHelper": "Taille de chaque ID de nœud enregistré dans le chemin des paquets flood envoyés par cette radio : 1 octet (256 ID, jusqu'à 64 sauts), 2 octets (65 000 ID, jusqu'à 32 sauts), 3 octets (16 millions d'ID, jusqu'à 21 sauts). Des ID plus grands réduisent les collisions, mais les répéteurs exécutant un firmware antérieur à la v1.14 ignorent les paquets avec des ID de 2 ou 3 octets.", + "settings_pathHashModeHelper": "Taille de l'ID de chaque nœud enregistré dans le chemin des paquets flood envoyés par cette radio :\n\n- 1 octet : 256 ID uniques, jusqu'à 64 sauts. \"ab\".\n- 2 octets : 65 000 ID uniques, jusqu'à 32 sauts. \"ab12\".\n- 3 octets : 16 millions d'ID uniques, jusqu'à 21 sauts. \"ab12cd\".\n\nDes ID plus grands réduisent les collisions, mais les répéteurs dont le firmware est antérieur à la v1.14 rejettent les paquets avec des ID de 2 et 3 octets.", "settings_requiresFirmware": "Nécessite le firmware {version} ou une version ultérieure", "@settings_requiresFirmware": { "placeholders": { @@ -3846,7 +3860,8 @@ "routing_modeDirect": "Direct", "routing_modeDirectHint": "Envoie toujours directement à ce contact, sans relais. À utiliser quand il est à portée radio.", "settings_export": "Exporter", - "settings_exportSubtitle": "Exporter les contacts et répéteurs au format GPX", + "settings_exportData": "Exporter les données", + "settings_exportSubtitle": "Favoris et emplacements des contacts", "backupRestore_title": "Sauvegarde et restauration", "backupRestore_subtitle": "Enregistrer ou restaurer les données de l'application et les réglages de la radio", "backupRestore_import": "Importer", @@ -4066,7 +4081,7 @@ "bookmarks_channel": "Canal", "bookmarks_contact": "Contact", "bookmarks_remove": "Retirer des favoris", - "settings_exportBookmarks": "Exporter les favoris en Markdown", + "settings_exportBookmarks": "Favoris", "settings_exportBookmarksSubtitle": "Partager ou enregistrer les messages favoris dans un fichier Markdown.", "settings_exportBookmarksSuccess": "Favoris exportés.", "settings_exportBookmarksNoBookmarks": "Aucun favori à exporter.", diff --git a/lib/l10n/app_hu.arb b/lib/l10n/app_hu.arb index 7fdc7913..81cb437b 100644 --- a/lib/l10n/app_hu.arb +++ b/lib/l10n/app_hu.arb @@ -146,25 +146,40 @@ "settings_nodeName": "Csomópont neve", "settings_nodeNameNotSet": "Nincs beállítva", "settings_nodeNameHint": "Írja be a csomópont nevét", + "nodeName_info": "A neve minden bájtjával egy bájttal kevesebb marad a csatornaüzeneteknek. Az ékezetes betűk, a speciális karakterek és az emojik egynél több bájtot foglalhatnak.", + "nodeName_messageLength": "Üzenethossz", + "nodeName_channelMessages": "Csatornaüzenetek", + "nodeName_channelMessagesSubtitle": "A neve csökkenti", + "nodeName_directMessages": "Közvetlen üzenetek", + "nodeName_directMessagesSubtitle": "A neve nem befolyásolja", + "nodeName_bytesAvailable": "{count, plural, =1{1 bájt elérhető} other{{count} bájt elérhető}}", + "nodeName_bytesOver": "{count, plural, =1{1 bájttal túllépi a korlátot} other{{count} bájttal túllépi a korlátot}}", "settings_nodeNameUpdated": "Név frissítve", "settings_radioSettings": "Rádióbeállítások", "settings_radioSettingsSubtitle": "Frekvencia, teljesítmény, szórási tényező", + "settings_unsavedChangesMessage": "Vannak módosítások, amelyek nincsenek elmentve a rádióra.", "settings_radioSettingsUpdated": "A rádió beállításai frissítve", "settings_location": "hely", "settings_locationSubtitle": "GPS koordináták", + "location_coordinates": "Koordináták", + "location_coordinatesDescription": "A csomópont pozíciója. Megjelenik a térképen, ezt használja a helymegosztás, és a hirdetésekben is szerepel, ha be van kapcsolva a „Hirdetés helye” (Adatvédelmi beállítások).", + "location_pickOnMap": "Kiválasztás a térképen", + "locationPicker_hint": "Húzza a térképet, vagy koppintson a jelölő elhelyezéséhez.", + "locationPicker_useLocation": "A kijelölt hely használata", "settings_locationUpdated": "A hely- és GPS-beállítások frissítve", "settings_locationBothRequired": "Adja meg a szélességi és hosszúsági fokokat is.", "settings_locationInvalid": "Érvénytelen szélesség vagy hosszúság.", "settings_locationGPSEnable": "GPS engedélyezése", - "settings_locationGPSEnableSubtitle": "Lehetővé teszi a GPS számára a hely automatikus frissítését.", - "settings_locationIntervalSec": "GPS intervallum (másodperc)", + "settings_locationGPSEnableSubtitle": "Folyamatosan frissíti a helyet a rádió GPS-e alapján.", + "settings_locationIntervalSec": "Frissítési intervallum (másodperc)", + "settings_locationIntervalHelper": "60-tól 86399 másodpercig", "settings_locationIntervalInvalid": "Az intervallumnak legalább 60 másodpercnek kell lennie, és kevesebbnek kell lennie 86 400 másodpercnél.", "settings_latitude": "Szélesség", "settings_longitude": "Hosszúság", "settings_autoZeroHopAdvertOnGpsUpdate": "Automatikus zero-hop hirdetés GPS-frissítéskor", "settings_autoZeroHopAdvertOnGpsUpdateSubtitle": "Ha a GPS-helyzet megváltozik, küldjön zero-hop hirdetést (a hirdetésben helymegadás szükséges).", "settings_contactSettings": "Kapcsolati beállítások", - "settings_contactSettingsSubtitle": "A névjegyek hozzáadásának beállításai.", + "settings_contactSettingsSubtitle": "A névjegyek hozzáadásának beállításai", "settings_privacyMode": "Adatvédelmi mód", "settings_privacyModeSubtitle": "Név/hely elrejtése a hirdetésekben", "settings_privacyModeToggle": "Kapcsolja be az adatvédelmi módot, hogy elrejtse nevét és tartózkodási helyét a hirdetésekben.", @@ -172,7 +187,7 @@ "settings_privacyModeDisabled": "Az adatvédelmi mód letiltva", "settings_actions": "Akciók", "settings_deleteAllPaths": "Az összes elérési út törlése", - "settings_deleteAllPathsSubtitle": "Törölje az összes elérési utat a névjegyekből.", + "settings_deleteAllPathsSubtitle": "Törölje az összes elérési utat a névjegyekből", "settings_sendAdvertisement": "Hirdetés küldése", "settings_sendAdvertisementSubtitle": "Jelenlét a közvetítésben most", "settings_advertisementSent": "Hirdetés elküldve", @@ -189,18 +204,17 @@ "settings_bleDebugLogSubtitle": "BLE parancsok, válaszok és alapvető adatok", "settings_appDebugLog": "Alkalmazás hibakeresési naplója", "settings_appDebugLogSubtitle": "Alkalmazás hibakeresési üzenetei", - "settings_about": "Körülbelül", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 MeshCore nyílt forráskódú projekt", + "settings_about": "Névjegy", + "settings_aboutTheApp": "Az alkalmazásról", + "settings_aboutLegalese": "{year} MeshCore nyílt forráskódú projekt", "settings_aboutDescription": "Nyílt forráskódú Flutter kliens MeshCore LoRa mesh hálózati eszközökhöz.", "settings_aboutOpenMeteoAttribution": "LOS magassági adatok: Open-Meteo (CC BY 4.0)", + "about_project": "Projekt", + "about_sourceCode": "Forráskód", + "about_license": "Licenc", + "about_openSourceLicenses": "Nyílt forráskódú licencek", + "about_credits": "Köszönetnyilvánítás", + "about_contributors": "Közreműködők", "settings_infoName": "Név", "settings_infoId": "ID", "settings_infoStatus": "Állapot", @@ -209,17 +223,20 @@ "settings_infoContactsCount": "Névjegyek száma", "settings_infoChannelCount": "Csatornaszám", "settings_presets": "Előbeállítások", + "settings_radioParameters": "Paraméterek", "settings_frequency": "Frekvencia (MHz)", - "settings_frequencyHelper": "300,0 - 2500,0", - "settings_frequencyInvalid": "Érvénytelen frekvencia (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Érvénytelen frekvencia (150-2500 MHz)", "settings_bandwidth": "Sávszélesség", "settings_spreadingFactor": "Szórási tényező", "settings_codingRate": "Kódolási sebesség", "settings_txPower": "TX teljesítmény (dBm)", "settings_txPowerHelper": "0-22", "settings_txPowerInvalid": "Érvénytelen TX teljesítmény (0-22 dBm)", - "settings_clientRepeat": "Hálózaton kívüli ismétlés", - "settings_clientRepeatSubtitle": "Engedélyezze az eszköznek, hogy megismételje a mesh-csomagokat mások számára", + "settings_clientRepeat": "Hálózaton kívüli ismétlési mód", + "settings_clientRepeatDescription": "Lehetővé teszi, hogy ez az eszköz továbbítsa a csomagokat. Olyan helyeken való használatra készült, ahol nincs átjátszó-lefedettség.\n\nEz a mód korlátozott frekvenciakészletet használ. Ha BEKAPCSOLJA, valószínűleg elveszíti a kapcsolatot a tágabb mesh hálózattal. Minden csomópontnak, amellyel kommunikál, ugyanazt a frekvenciát, sávszélességet és szórási tényezőt (SF) kell használnia. Csak a kódolási sebesség (CR) térhet el.", + "settings_clientRepeatSwitch": "Ismétlési mód", + "settings_clientRepeatNote": "Megjegyzés: Ha KIKAPCSOLJA, visszaáll az előző frekvencia. Ha ezután nem tud csatlakozni a mesh hálózathoz, ellenőrizze az előbeállításokat/paramétereket.", "settings_clientRepeatFreqWarning": "A hálózaton kívüli ismétlés 433, 869 vagy 918 MHz frekvenciát igényel", "settings_error": "Hiba: {message}", "@settings_error": { @@ -1406,7 +1423,7 @@ "repeater_floodMaxHelper": "Maximum ugrások, amelyeket egy flood csomag utazhat (0-64)", "repeater_advancedSettings": "Speciális", "repeater_advancedSettingsSubtitle": "Finomhangolási beállítások tapasztalt üzemeltetőknek", - "repeater_pathHashMode": "Csomópont-azonosító mérete az útvonalakban", + "repeater_pathHashMode": "Azonosító-hash mérete", "repeater_pathHashModeHelper": "Ennek az átjátszónak az azonosítója az általa küldött hirdetések útvonalában: 1 bájt (256 azonosító, legfeljebb 64 ugrás), 2 bájt (65 ezer azonosító, legfeljebb 32 ugrás), 3 bájt (16 millió azonosító, legfeljebb 21 ugrás). A továbbítást nem befolyásolja; a v1.14+ átjátszók minden méretet továbbítanak, de a régebbi firmware eldobja a 2 vagy 3 bájtos azonosítójú csomagokat.", "repeater_txDelay": "Flood TX késleltetés", "repeater_txDelayHelper": "Újraküldési térköz a flood forgalomhoz, a csomag adásidejének szorzójaként (0-2, alapértelmezett 0,5). Magasabb = kevesebb ütközés, de lassabb szállítás.", @@ -2182,12 +2199,13 @@ }, "notification_sentGif": "GIF-et küldött", "notification_sentImage": "Képet küldött", - "settings_gpxExportRepeaters": "Ismétlők / szobaszerver exportálása GPX-be", - "settings_gpxExportRepeatersSubtitle": "Exportálja az átjátszókat / szobaszervereket a hellyel GPX-fájlba.", - "settings_gpxExportContacts": "Exportáljon társokat a GPX-be", - "settings_gpxExportContactsSubtitle": "A hellyel rendelkező kísérőket GPX-fájlba exportálja.", - "settings_gpxExportAll": "Az összes névjegy exportálása a GPX-be", - "settings_gpxExportAllSubtitle": "A hellyel rendelkező összes névjegyet GPX-fájlba exportálja.", + "export_messagesTitle": "Üzenetek", + "export_messagesDescription": "Könyvjelzővel ellátott üzenetek, Markdown-fájlként mentve.", + "export_locationsTitle": "Kapcsolatok helyadatai", + "export_locationsDescription": "Ismert helyű kapcsolatok, GPX-fájlként mentve térképalkalmazásokhoz.", + "settings_gpxExportRepeaters": "Átjátszók és szobák", + "settings_gpxExportContacts": "Felhasználók / Kísérők", + "settings_gpxExportAll": "Összes kapcsolat", "settings_gpxExportSuccess": "A GPX fájl sikeresen exportálva.", "settings_gpxExportNoContacts": "Nincsenek exportálandó névjegyek.", "settings_gpxExportNotAvailable": "Az Ön eszköze/OS nem támogatja", @@ -2200,20 +2218,17 @@ "snrIndicator_nearByRepeaters": "Közeli átjátszók", "snrIndicator_lastSeen": "Utoljára látott", "contactsSettings_title": "Névjegyek beállításai", - "contactsSettings_autoAddTitle": "Automatikus felfedezés", - "contactsSettings_otherTitle": "Egyéb kapcsolattartási beállítások", - "contactsSettings_autoAddUsersTitle": "Felhasználók automatikus hozzáadása", - "contactsSettings_autoAddUsersSubtitle": "Engedélyezze a társ számára, hogy automatikusan hozzáadja a felfedezett felhasználókat.", - "contactsSettings_autoAddRepeatersTitle": "Ismétlők automatikus hozzáadása", - "contactsSettings_autoAddRepeatersSubtitle": "Engedélyezze a társnak, hogy automatikusan hozzáadja a felfedezett átjátszókat.", - "contactsSettings_autoAddRoomServersTitle": "Szobaszerverek automatikus hozzáadása", - "contactsSettings_autoAddRoomServersSubtitle": "Engedélyezze a társ számára, hogy automatikusan hozzáadja a felfedezett szobaszervereket.", - "contactsSettings_autoAddSensorsTitle": "Érzékelők automatikus hozzáadása", - "contactsSettings_autoAddSensorsSubtitle": "Engedélyezze a társ számára a felfedezett érzékelők automatikus hozzáadását.", + "contactsSettings_autoAddTitle": "Kapcsolatok automatikus hozzáadása", + "contactsSettings_autoAddDescription": "Az ilyen típusú, újonnan hallott csomópontok bekerülnek a rádió kapcsolatai közé. A többit később a „Felfedezett kapcsolatok” képernyőn adhatja hozzá.", + "contactsSettings_otherTitle": "Kapcsolatlista korlátai", + "contactsSettings_autoAddUsersTitle": "Felhasználók", + "contactsSettings_autoAddRepeatersTitle": "Átjátszók", + "contactsSettings_autoAddRoomServersTitle": "Szobaszerverek", + "contactsSettings_autoAddSensorsTitle": "Érzékelők", "contactsSettings_overwriteOldestTitle": "A legrégebbi felülírása", - "contactsSettings_overwriteOldestSubtitle": "Amikor a névjegylista megtelik, a legrégebbi, nem kedvenc névjegy lecserélődik.", - "contactsSettings_evictDiscoveredContactsTitle": "Felfedezett kapcsolatok eltávolítása", - "contactsSettings_evictDiscoveredContactsSubtitle": "Ha engedélyezve van, az alkalmazás eltávolítja a legrégebbi felfedezett kapcsolatokat, amint a felfedezési lista eléri a(z) {limit} bejegyzéses korlátot.", + "contactsSettings_overwriteOldestSubtitle": "Ha a rádió kapcsolatlistája megtelt, a legrégebbi, nem kedvenc kapcsolat lecserélődik.", + "contactsSettings_evictDiscoveredContactsTitle": "Felfedezett kapcsolatok korlátozása", + "contactsSettings_evictDiscoveredContactsSubtitle": "Az alkalmazás a „Felfedezett kapcsolatok” listát {limit} bejegyzésre korlátozza. A korlát elérésekor a régebbi kapcsolatok törlődnek. Kikapcsolva nincs korlát.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2335,7 +2350,7 @@ "radioStats_settingsSubtitle": "Zajszint, RSSI, SNR és műsoridő", "settings_denyAll": "Mindent tagadni", "settings_privacySettingsDescription": "Válassza ki, hogy eszköze milyen információkat ossza meg másokkal.", - "settings_privacySubtitle": "Szabályozza, hogy milyen információkat osztanak meg.", + "settings_privacySubtitle": "Szabályozza, hogy milyen információkat osztanak meg", "settings_privacy": "Adatvédelmi beállítások", "settings_allowByContact": "Engedélyezés kapcsolatjelző jelzőkkel", "settings_allowAll": "Minden engedélyezése", @@ -3092,10 +3107,9 @@ "settings_regionDefault": "Alapértelmezett táj", "settings_regionDefaultSubtitle": "Azok a csatornák használják, amelyeknek nincs saját tájuk", "settings_regionDefaultNone": "Nincs", - "settings_telemetryPerContactHint": "Ha engedélyezni szeretné a kapcsolatot, nyissa meg a csevegését, és válassza a menüben a Kapcsolati beállítások lehetőséget.", - "settings_multiAckSubtitle": "További ACK-kat küld a jobb kézbesítés érdekében; több műsoridőt igényel", + "settings_telemetryPerContactHint": "Ha engedélyezni szeretne egy adott kapcsolatot, nyissa meg a csevegését, és válassza a menüben a Kapcsolati beállítások lehetőséget.", + "settings_multiAckSubtitle": "2 nyugtát (ACK) küld 1 helyett, ha a nyugta közvetlen úton megy vissza. Megbízhatóbb, de több adásidőt használ.", "settings_presetCustom": "Egyéni", - "settings_radioMatchWarning": "Az összes csomóponttal, amelyhez kapcsolódik, azonos frekvenciát, sávszélességet és SF-et kell használni. A kódolási arány (CR) eltérhet.", "settings_txPowerRangeHelper": "{min}–{max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3115,7 +3129,7 @@ } } }, - "settings_pathHashModeHelper": "Az elküldött flood csomagok útvonalában rögzített csomópontazonosító mérete: 1 bájt (256 azonosító, legfeljebb 64 ugrás), 2 bájt (65 ezer, legfeljebb 32 ugrás), 3 bájt (16 millió, legfeljebb 21 ugrás). A nagyobb azonosítók csökkentik az ütközéseket, de az v1.14-nél régebbi firmware-t futtató átjátszók eldobják a 2 vagy 3 bájtos azonosítókat tartalmazó csomagokat.", + "settings_pathHashModeHelper": "Az egyes csomópontok azonosítójának mérete az ezen rádió által küldött flood csomagok útvonalában:\n\n- 1 bájt: 256 egyedi azonosító, legfeljebb 64 ugrás. \"ab\".\n- 2 bájt: 65 ezer egyedi azonosító, legfeljebb 32 ugrás. \"ab12\".\n- 3 bájt: 16 millió egyedi azonosító, legfeljebb 21 ugrás. \"ab12cd\".\n\nA nagyobb azonosítók csökkentik az ütközéseket, de a v1.14-nél régebbi firmware-t futtató átjátszók eldobják a 2 és 3 bájtos azonosítót használó csomagokat.", "settings_requiresFirmware": "{version} vagy újabb firmware szükséges", "@settings_requiresFirmware": { "placeholders": { @@ -3803,7 +3817,8 @@ "routing_modeDirect": "Közvetlen", "routing_modeDirectHint": "Mindig közvetlenül ennek a névjegynek küld, átjátszó ugrások nélkül. Akkor használja, ha rádiótávolságon belül van.", "settings_export": "Exportálás", - "settings_exportSubtitle": "Névjegyek és átjátszók exportálása GPX-ként", + "settings_exportData": "Adatok exportálása", + "settings_exportSubtitle": "Könyvjelzők és kapcsolatok helyadatai", "backupRestore_title": "Mentés és visszaállítás", "backupRestore_subtitle": "Alkalmazásadatok és rádióbeállítások mentése vagy visszaállítása", "backupRestore_import": "Importálás", @@ -4023,9 +4038,9 @@ "bookmarks_channel": "Csatorna", "bookmarks_contact": "Kapcsolat", "bookmarks_remove": "Könyvjelző eltávolítása", - "settings_exportBookmarks": "Könyvjelzők exportálása Markdown formátumba", + "settings_exportBookmarks": "Könyvjelzők", "settings_exportBookmarksSubtitle": "A könyvjelzős üzenetek megosztása vagy mentése Markdown fájlként.", - "settings_exportBookmarksSuccess": "A könyvjelzők exportálva.", + "settings_exportBookmarksSuccess": "Könyvjelzők exportálva.", "settings_exportBookmarksNoBookmarks": "Nincs exportálható könyvjelző.", "receivedImage_packetEchoes": "{number}. csomag: {count, plural, =0{egy átjátszó sem hallotta} =1{egyszer ismételték} other{{count}-szor ismételték}}", "receivedImage_recoveryPacketEchoes": "Helyreállító csomag: {count, plural, =0{egy átjátszó sem hallotta} =1{egyszer ismételték} other{{count}-szor ismételték}}", diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index b805cf03..131b24b1 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Nome Nodo", "settings_nodeNameNotSet": "Non impostato", "settings_nodeNameHint": "Inserisci nome nodo", + "nodeName_info": "Ogni byte del tuo nome è uno in meno per i messaggi del canale. I caratteri speciali e le emoji possono occupare più di un byte.", + "nodeName_messageLength": "Lunghezza dei messaggi", + "nodeName_channelMessages": "Messaggi del canale", + "nodeName_channelMessagesSubtitle": "Ridotti dal tuo nome", + "nodeName_directMessages": "Messaggi diretti", + "nodeName_directMessagesSubtitle": "Non influenzati dal tuo nome", + "nodeName_bytesAvailable": "{count, plural, one{{count} byte disponibile} other{{count} byte disponibili}}", + "nodeName_bytesOver": "{count, plural, one{{count} byte oltre il limite} other{{count} byte oltre il limite}}", "settings_nodeNameUpdated": "Nome aggiornato", "settings_radioSettings": "Impostazioni Radio", "settings_radioSettingsSubtitle": "Frequenza, potenza, fattore di diffusione", + "settings_unsavedChangesMessage": "Hai modifiche non salvate sulla radio.", "settings_radioSettingsUpdated": "Impostazioni radio aggiornate", "settings_location": "Posizione", "settings_locationSubtitle": "Coordinate GPS", + "location_coordinates": "Coordinate", + "location_coordinatesDescription": "La posizione del tuo nodo. Viene mostrata sulla mappa, usata quando condividi la tua posizione e inviata negli annunci quando l'opzione Posizione dell'annuncio è attiva (Impostazioni sulla privacy).", + "location_pickOnMap": "Scegli sulla mappa", + "locationPicker_hint": "Trascina la mappa o tocca per posizionare il pin.", + "locationPicker_useLocation": "Usa questa posizione", "settings_locationUpdated": "Posizione e impostazioni GPS aggiornate", "settings_locationBothRequired": "Inserire sia la latitudine che la longitudine.", "settings_locationInvalid": "Latitudine o longitudine non valide.", @@ -107,7 +121,7 @@ "settings_privacyModeDisabled": "Modalità privacy disabilitata", "settings_actions": "Azioni", "settings_deleteAllPaths": "Elimina tutti i percorsi", - "settings_deleteAllPathsSubtitle": "Cancella tutti i dati di percorso dai contatti.", + "settings_deleteAllPathsSubtitle": "Cancella tutti i dati di percorso dai contatti", "settings_sendAdvertisement": "Invia annuncio", "settings_sendAdvertisementSubtitle": "Trasmetti ora la presenza", "settings_advertisementSent": "Annuncio inviato", @@ -125,15 +139,8 @@ "settings_appDebugLog": "Log di Debug dell'App", "settings_appDebugLogSubtitle": "Messaggi di debug dell'applicazione", "settings_about": "Informazioni", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 Progetto open source MeshCore", + "settings_aboutTheApp": "Informazioni sull'app", + "settings_aboutLegalese": "{year} Progetto open source MeshCore", "settings_aboutDescription": "Un client Flutter open source per i dispositivi MeshCore di rete mesh LoRa.", "settings_infoName": "Nome", "settings_infoId": "ID", @@ -144,9 +151,10 @@ "settings_infoContactsCount": "Numero di contatti", "settings_infoChannelCount": "Numero di canali", "settings_presets": "Preset", + "settings_radioParameters": "Parametri", "settings_frequency": "Frequenza (MHz)", - "settings_frequencyHelper": "300,0 - 2500,0", - "settings_frequencyInvalid": "Frequenza non valida (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Frequenza non valida (150-2500 MHz)", "settings_bandwidth": "Larghezza di banda", "settings_spreadingFactor": "Fattore di diffusione", "settings_codingRate": "Tasso di Codifica", @@ -1245,7 +1253,7 @@ "repeater_floodMaxHelper": "Numero massimo di salti che un pacchetto flood può percorrere (0-64)", "repeater_advancedSettings": "Avanzato", "repeater_advancedSettingsSubtitle": "Manopole di regolazione per operatori esperti", - "repeater_pathHashMode": "Modalità di hashing del percorso", + "repeater_pathHashMode": "Dimensione dell'hash ID", "repeater_pathHashModeHelper": "Byte utilizzati per codificare l'ID di questo ripetitore nei tag di percorso flood/rilevamento loop. 0=1 byte (256 ID, fino a 64 salti), 1=2 byte (65.000 ID, fino a 32 salti), 2=3 byte (16 milioni di ID, fino a 21 salti). Il firmware precedente alla v1.14 usava sempre percorsi a 1 byte; v1.14 e versioni successive possono essere configurate per percorsi a 2 o 3 byte.", "repeater_txDelay": "Ritardo TX flood", "repeater_txDelayHelper": "Spaziatura delle ritrasmissioni per il traffico flood, come moltiplicatore del tempo di trasmissione (da 0 a 2, valore predefinito 0,5). Un valore più alto significa meno collisioni, ma una trasmissione più lenta.", @@ -1737,8 +1745,9 @@ "neighbors_heardAgo": "Sentito: {time} fa", "neighbors_unknownContact": "Chiave pubblica sconosciuta {pubkey}", "settings_locationGPSEnable": "Abilita GPS", - "settings_locationGPSEnableSubtitle": "Abilita l'aggiornamento automatico della posizione tramite GPS.", - "settings_locationIntervalSec": "Intervallo GPS (Secondi)", + "settings_locationGPSEnableSubtitle": "Mantiene la posizione aggiornata tramite il GPS della radio.", + "settings_locationIntervalSec": "Intervallo di aggiornamento (secondi)", + "settings_locationIntervalHelper": "Da 60 a 86399 secondi", "settings_locationIntervalInvalid": "L'intervallo deve essere di almeno 60 secondi e inferiore a 86400 secondi.", "room_management": "Gestione del Server di Camera", "@community_joinConfirmation": { @@ -1954,16 +1963,17 @@ } }, "notification_receivedNewMessage": "Nuovo messaggio ricevuto", - "settings_gpxExportRepeaters": "Esporta ripetitori / server di stanza in GPX", - "settings_gpxExportContacts": "Esporta compagni in GPX", + "export_messagesTitle": "Messaggi", + "export_messagesDescription": "Messaggi nei segnalibri, salvati come file Markdown.", + "export_locationsTitle": "Posizioni dei contatti", + "export_locationsDescription": "Contatti con posizione nota, salvati come file GPX per le app di mappe.", + "settings_gpxExportRepeaters": "Ripetitori e stanze", + "settings_gpxExportContacts": "Utenti / Companion", "settings_gpxExportSuccess": "Esportazione del file GPX completata con successo.", "settings_gpxExportNoContacts": "Nessun contatto da esportare.", "settings_gpxExportNotAvailable": "Non supportato sul tuo dispositivo/Sistema Operativo", "settings_gpxExportError": "Si è verificato un errore durante l'esportazione.", - "settings_gpxExportRepeatersSubtitle": "Esporta ripetitori / roomserver con una posizione in un file GPX.", - "settings_gpxExportContactsSubtitle": "Esporta i compagni con una posizione in un file GPX.", - "settings_gpxExportAll": "Esporta tutti i contatti in GPX", - "settings_gpxExportAllSubtitle": "Esporta tutti i contatti con una posizione in un file GPX.", + "settings_gpxExportAll": "Tutti i contatti", "settings_gpxExportChat": "Posizioni dei compagni", "settings_gpxExportRepeatersRoom": "Posizioni del server ripetitore e della stanza", "settings_gpxExportAllContacts": "Tutte le posizioni dei contatti", @@ -1983,10 +1993,18 @@ "snrIndicator_nearByRepeaters": "Ripetitori vicini", "snrIndicator_lastSeen": "Ultimo accesso", "chat_ShowAllPaths": "Mostra tutti i percorsi", - "settings_clientRepeat": "Ripetizione \"fuori dalla rete\"", + "settings_clientRepeat": "Modalità di ripetizione fuori rete", + "settings_clientRepeatDescription": "Permette a questo dispositivo di ripetere i pacchetti. Pensato per le zone senza copertura di ripetitori.\n\nQuesta modalità usa un insieme limitato di frequenze. ATTIVANDOLA, probabilmente perderai la connessione con il resto della mesh. Tutti i nodi con cui comunichi devono usare la stessa frequenza, larghezza di banda e fattore di diffusione (SF). Solo il tasso di codifica (CR) può essere diverso.", + "settings_clientRepeatSwitch": "Modalità di ripetizione", + "settings_clientRepeatNote": "Nota: DISATTIVANDOLA, viene ripristinata la frequenza precedente. Se poi non riesci a connetterti alla mesh, controlla preset/parametri.", "settings_clientRepeatFreqWarning": "Per la comunicazione fuori rete, è necessario utilizzare frequenze di 433, 869 o 918 MHz.", - "settings_clientRepeatSubtitle": "Permetti a questo dispositivo di ripetere i pacchetti di rete per gli altri.", "settings_aboutOpenMeteoAttribution": "Dati di elevazione LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Progetto", + "about_sourceCode": "Codice sorgente", + "about_license": "Licenza", + "about_openSourceLicenses": "Licenze open source", + "about_credits": "Riconoscimenti", + "about_contributors": "Collaboratori", "appSettings_unitsTitle": "Unità", "appSettings_unitsMetric": "Metrico (m / km)", "appSettings_unitsImperial": "Imperiale (ft / mi)", @@ -2131,21 +2149,18 @@ "contacts_unread": "Non letti", "contactsSettings_title": "Impostazioni dei contatti", "settings_contactSettings": "Impostazioni di contatto", - "contactsSettings_otherTitle": "Altre impostazioni relative ai contatti", - "contactsSettings_autoAddUsersSubtitle": "Consenti al compagno di aggiungere automaticamente gli utenti scoperti.", - "contactsSettings_autoAddRepeatersTitle": "Aggiungere ripetitori automaticamente", - "contactsSettings_autoAddRoomServersSubtitle": "Consenti al compagno di aggiungere automaticamente i server delle stanze scoperte.", - "contactsSettings_autoAddSensorsTitle": "Aggiungere automaticamente i sensori", + "contactsSettings_otherTitle": "Limiti degli elenchi contatti", + "contactsSettings_autoAddRepeatersTitle": "Ripetitori", + "contactsSettings_autoAddSensorsTitle": "Sensori", "settings_contactSettingsSubtitle": "Impostazioni per l'aggiunta dei contatti", - "contactsSettings_autoAddUsersTitle": "Aggiungere utenti automaticamente", - "contactsSettings_autoAddTitle": "Scoperta automatica", - "contactsSettings_autoAddSensorsSubtitle": "Consenti al compagno di aggiungere automaticamente i sensori scoperti", + "contactsSettings_autoAddUsersTitle": "Utenti", + "contactsSettings_autoAddTitle": "Aggiunta automatica dei contatti", + "contactsSettings_autoAddDescription": "Aggiunge ai contatti della radio i nuovi nodi ascoltati di questi tipi. Gli altri si possono aggiungere più tardi da Contatti scoperti.", "discoveredContacts_noMatching": "Nessun contatto corrispondente", - "contactsSettings_autoAddRepeatersSubtitle": "Consenti al compagno di aggiungere automaticamente i ripetitori scoperti.", "discoveredContacts_searchHint": "Cerca contatti scoperti", - "contactsSettings_autoAddRoomServersTitle": "Aggiungere automaticamente i server delle stanze", + "contactsSettings_autoAddRoomServersTitle": "Server stanza", "discoveredContacts_addContact": "Aggiungi contatto", - "contactsSettings_overwriteOldestTitle": "Sostituisci il più vecchio", + "contactsSettings_overwriteOldestTitle": "Sovrascrivi il più vecchio", "discoveredContacts_Title": "Contatti scoperti", "discoveredContacts_contactAdded": "Contatto aggiunto", "discoveredContacts_deleteContact": "Elimina Contatto", @@ -2188,9 +2203,9 @@ } } }, - "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.", + "contactsSettings_overwriteOldestSubtitle": "Quando l'elenco dei contatti della radio è pieno, sostituisce il contatto più vecchio non tra i preferiti.", + "contactsSettings_evictDiscoveredContactsTitle": "Limita i contatti scoperti", + "contactsSettings_evictDiscoveredContactsSubtitle": "L'app limita l'elenco \"Contatti scoperti\" a {limit} voci. Al raggiungimento del limite, i contatti più vecchi vengono rimossi. Disattiva per rimuovere il limite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2283,7 +2298,7 @@ "settings_autoZeroHopAdvertOnGpsUpdateSubtitle": "Quando la posizione GPS cambia, invia un annuncio zero-hop (richiede la posizione nell'annuncio).", "settings_privacy": "Impostazioni sulla privacy", "settings_denyAll": "Negare tutto", - "settings_privacySubtitle": "Controlla le informazioni che vengono condivise.", + "settings_privacySubtitle": "Controlla le informazioni che vengono condivise", "settings_allowAll": "Consenti tutto", "contact_info": "Informazioni di Contatto", "settings_telemetryBaseMode": "Modalità di base di telemetria", @@ -3082,10 +3097,9 @@ "settings_regionDefault": "Regione predefinita", "settings_regionDefaultSubtitle": "Usata dai canali senza una regione propria", "settings_regionDefaultNone": "Nessuna", - "settings_telemetryPerContactHint": "Per consentire un contatto, apri la sua chat e scegli Impostazioni di contatto dal menu.", - "settings_multiAckSubtitle": "Invia ACK aggiuntivi per una consegna migliore; usa più tempo di trasmissione", + "settings_telemetryPerContactHint": "Per consentire un contatto specifico, apri la sua chat e scegli Impostazioni di contatto dal menu.", + "settings_multiAckSubtitle": "Invia 2 conferme (ACK) invece di 1 quando la conferma torna indietro tramite un percorso diretto. Più affidabile, ma usa più tempo di trasmissione.", "settings_presetCustom": "Personalizzato", - "settings_radioMatchWarning": "Tutti i nodi con cui parli devono usare la stessa frequenza, larghezza di banda e SF. Il coding rate (CR) può essere diverso.", "settings_txPowerRangeHelper": "{min} - {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3105,7 +3119,7 @@ } } }, - "settings_pathHashModeHelper": "Dimensione di ogni ID di nodo registrato nel percorso dei pacchetti flood inviati da questa radio: 1 byte (256 ID, fino a 64 salti), 2 byte (65.000 ID, fino a 32 salti), 3 byte (16 milioni di ID, fino a 21 salti). ID più grandi riducono le collisioni, ma i ripetitori con firmware precedente alla v1.14 scartano i pacchetti con ID a 2 o 3 byte.", + "settings_pathHashModeHelper": "Dimensione dell'ID di ogni nodo registrato nel percorso dei pacchetti flood inviati da questa radio:\n\n- 1 byte: 256 ID univoci, fino a 64 salti. \"ab\".\n- 2 byte: 65.000 ID univoci, fino a 32 salti. \"ab12\".\n- 3 byte: 16 milioni di ID univoci, fino a 21 salti. \"ab12cd\".\n\nID più grandi riducono le collisioni, ma i ripetitori con firmware precedente alla v1.14 scartano i pacchetti con ID a 2 e 3 byte.", "settings_requiresFirmware": "Richiede il firmware {version} o successivo", "@settings_requiresFirmware": { "placeholders": { @@ -3846,7 +3860,8 @@ "routing_modeDirect": "Diretto", "routing_modeDirectHint": "Invia sempre direttamente a questo contatto, senza salti tramite ripetitori. Usalo quando è nel raggio radio.", "settings_export": "Esporta", - "settings_exportSubtitle": "Esporta contatti e ripetitori come GPX", + "settings_exportData": "Esporta dati", + "settings_exportSubtitle": "Segnalibri e posizioni dei contatti", "backupRestore_title": "Backup e ripristino", "backupRestore_subtitle": "Salva o ripristina i dati dell'app e le impostazioni della radio", "backupRestore_import": "Importa", @@ -4066,7 +4081,7 @@ "bookmarks_channel": "Canale", "bookmarks_contact": "Contatto", "bookmarks_remove": "Rimuovi segnalibro", - "settings_exportBookmarks": "Esporta segnalibri in Markdown", + "settings_exportBookmarks": "Segnalibri", "settings_exportBookmarksSubtitle": "Condividi o salva i messaggi con segnalibro come file Markdown.", "settings_exportBookmarksSuccess": "Segnalibri esportati.", "settings_exportBookmarksNoBookmarks": "Nessun segnalibro da esportare.", diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index c4feaa1b..36c9c25f 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -152,18 +152,33 @@ "settings_nodeName": "ノード名", "settings_nodeNameNotSet": "設定されていない", "settings_nodeNameHint": "ノード名を入力してください", + "nodeName_info": "名前に使う1バイトごとに、チャンネルメッセージに使える容量が1バイト減ります。漢字・かな・絵文字は1文字で複数バイトを使います。", + "nodeName_messageLength": "メッセージの長さ", + "nodeName_channelMessages": "チャンネルメッセージ", + "nodeName_channelMessagesSubtitle": "名前の分だけ減ります", + "nodeName_directMessages": "ダイレクトメッセージ", + "nodeName_directMessagesSubtitle": "名前の影響を受けません", + "nodeName_bytesAvailable": "{count, plural, other{{count} バイト使用可能}}", + "nodeName_bytesOver": "{count, plural, other{上限を {count} バイト超えています}}", "settings_nodeNameUpdated": "名前を更新しました", "settings_radioSettings": "ラジオ設定", "settings_radioSettingsSubtitle": "周波数、電力、スプレッドファクター", + "settings_unsavedChangesMessage": "ラジオに保存されていない変更があります。", "settings_radioSettingsUpdated": "ラジオの設定が更新されました", "settings_location": "場所", "settings_locationSubtitle": "GPS 座標", + "location_coordinates": "座標", + "location_coordinatesDescription": "ノードの位置です。地図に表示され、位置情報を共有するときに使われます。プライバシー設定で「アドバート位置」を有効にすると、アドバートにも含まれます。", + "location_pickOnMap": "地図で選択", + "locationPicker_hint": "地図をドラッグするか、タップしてピンを置いてください。", + "locationPicker_useLocation": "この場所を使用", "settings_locationUpdated": "場所とGPS設定が更新されました", "settings_locationBothRequired": "緯度と経度をそれぞれ入力してください。", "settings_locationInvalid": "無効な緯度または経度。", "settings_locationGPSEnable": "GPS を有効にする", - "settings_locationGPSEnableSubtitle": "GPS が自動的に位置情報を更新できるようにします。", - "settings_locationIntervalSec": "GPS 更新間隔(秒)", + "settings_locationGPSEnableSubtitle": "ラジオの GPS で位置情報を最新に保ちます。", + "settings_locationIntervalSec": "更新間隔(秒)", + "settings_locationIntervalHelper": "60~86399秒", "settings_locationIntervalInvalid": "間隔は少なくとも60秒で、86400秒未満でなければなりません。", "settings_latitude": "緯度", "settings_longitude": "経度", @@ -178,7 +193,7 @@ "settings_privacyModeDisabled": "プライバシーモードは無効です", "settings_actions": "操作", "settings_deleteAllPaths": "すべての経路を削除", - "settings_deleteAllPathsSubtitle": "連絡先からすべての経路データを消去します。", + "settings_deleteAllPathsSubtitle": "連絡先からすべての経路データを消去します", "settings_sendAdvertisement": "アドバートを送信", "settings_sendAdvertisementSubtitle": "現在の存在を送信します", "settings_advertisementSent": "アドバートを送信しました", @@ -196,17 +211,16 @@ "settings_appDebugLog": "アプリのデバッグログ", "settings_appDebugLogSubtitle": "アプリケーションのデバッグメッセージ", "settings_about": "概要", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 MeshCore オープンソースプロジェクト", + "settings_aboutTheApp": "アプリについて", + "settings_aboutLegalese": "{year} MeshCore オープンソースプロジェクト", "settings_aboutDescription": "MeshCore LoRa メッシュネットワークデバイス向けのオープンソース Flutter クライアント。", "settings_aboutOpenMeteoAttribution": "LOS 標高データ:Open-Meteo (CC BY 4.0)", + "about_project": "プロジェクト", + "about_sourceCode": "ソースコード", + "about_license": "ライセンス", + "about_openSourceLicenses": "オープンソースライセンス", + "about_credits": "クレジット", + "about_contributors": "コントリビューター", "settings_infoName": "名前", "settings_infoId": "ID", "settings_infoStatus": "ステータス", @@ -215,17 +229,20 @@ "settings_infoContactsCount": "連絡先数", "settings_infoChannelCount": "チャンネル数", "settings_presets": "プリセット", + "settings_radioParameters": "パラメータ", "settings_frequency": "周波数 (MHz)", - "settings_frequencyHelper": "300.0 - 2500.0", - "settings_frequencyInvalid": "無効な周波数 (300-2500 MHz)", + "settings_frequencyHelper": "150.0 - 2500.0 MHz", + "settings_frequencyInvalid": "無効な周波数 (150-2500 MHz)", "settings_bandwidth": "帯域幅", "settings_spreadingFactor": "伝播係数", "settings_codingRate": "コーディング速度", "settings_txPower": "TX 信号電力 (dBm)", "settings_txPowerHelper": "0 - 22", "settings_txPowerInvalid": "無効な送信電力 (0-22 dBm)", - "settings_clientRepeat": "オフグリッド中継", - "settings_clientRepeatSubtitle": "このデバイスが他のデバイス向けにメッシュパケットを中継できるようにします。", + "settings_clientRepeat": "オフグリッド中継モード", + "settings_clientRepeatDescription": "このデバイスでパケットを中継できるようにします。リピータのカバー範囲外での使用を想定しています。\n\nこのモードでは限られた周波数のみを使用します。ON にすると、より広いメッシュから切断される可能性が高くなります。通信するすべてのノードで、周波数、帯域幅、伝播係数(SF)を同じにする必要があります。コーディング速度(CR)だけは異なっていても構いません。", + "settings_clientRepeatSwitch": "中継モード", + "settings_clientRepeatNote": "注:OFF にすると、以前の周波数に戻ります。その後メッシュに接続できない場合は、プリセット/パラメータを確認してください。", "settings_clientRepeatFreqWarning": "オフグリッド中継には 433、869、または 918 MHz の周波数が必要です。", "settings_error": "エラー: {message}", "@settings_error": { @@ -1374,7 +1391,7 @@ "repeater_floodMaxHelper": "フラッドパケットが移動できる最大ホップ数 (0-64)", "repeater_advancedSettings": "高度な", "repeater_advancedSettingsSubtitle": "経験豊富なオペレーター向けの調整ノブ", - "repeater_pathHashMode": "パスハッシュモード", + "repeater_pathHashMode": "ID ハッシュサイズ", "repeater_pathHashModeHelper": "このリピータのIDをフローパス/ループ検出タグにエンコードするために使用されるバイト数。 0=1バイト (256個のID、最大64ホップ)、1=2バイト (65,000個のID、最大32ホップ)、2=3バイト (160万個のID、最大21ホップ)。 v1.13およびそれ以前のファームウェアでは、マルチバイトパスがサポートされていません。 v1.14以降のバージョンでは、一度ネットワークが起動されると、パスが一度だけ検出されます。", "repeater_txDelay": "フロイド・TXでの遅延", "repeater_txDelayHelper": "フラッド時の交通量に対応するための再送信間隔を、パケットの通信時間を掛けた値(0~2、デフォルト0.5)で設定します。値を大きくすると衝突が減りますが、通信速度が遅くなります。", @@ -2192,12 +2209,13 @@ } }, "notification_receivedNewMessage": "新しいメッセージを受信", - "settings_gpxExportRepeaters": "GPX へのエクスポート用リピータ/ルームサーバー", - "settings_gpxExportRepeatersSubtitle": "GPXファイルに場所情報を付加した、レピーター/ルームサーバーのエクスポート", - "settings_gpxExportContacts": "GPX 形式へのエクスポート", - "settings_gpxExportContactsSubtitle": "GPXファイルに位置情報を保存して、他の人と共有する。", - "settings_gpxExportAll": "すべての連絡先をGPX形式でエクスポートする", - "settings_gpxExportAllSubtitle": "すべての連絡先を、場所情報付きのGPXファイルにエクスポートする。", + "export_messagesTitle": "メッセージ", + "export_messagesDescription": "ブックマークしたメッセージをMarkdownファイルとして保存します。", + "export_locationsTitle": "連絡先の位置情報", + "export_locationsDescription": "位置情報が分かっている連絡先を、地図アプリ用のGPXファイルとして保存します。", + "settings_gpxExportRepeaters": "リピータとルーム", + "settings_gpxExportContacts": "ユーザー / コンパニオン", + "settings_gpxExportAll": "すべての連絡先", "settings_gpxExportSuccess": "GPXファイルの正常なエクスポートが完了しました。", "settings_gpxExportNoContacts": "エクスポートする連絡先は存在しません。", "settings_gpxExportNotAvailable": "このデバイス/OSではサポートされていません", @@ -2210,20 +2228,17 @@ "snrIndicator_nearByRepeaters": "近くのリピータ", "snrIndicator_lastSeen": "最後に確認された場所", "contactsSettings_title": "連絡先設定", - "contactsSettings_autoAddTitle": "自動検出", - "contactsSettings_otherTitle": "その他の連絡に関する設定", - "contactsSettings_autoAddUsersTitle": "自動でユーザーを追加する", - "contactsSettings_autoAddUsersSubtitle": "利用者が自動的に発見したユーザーを追加できるようにする。", - "contactsSettings_autoAddRepeatersTitle": "リピータを自動追加", - "contactsSettings_autoAddRepeatersSubtitle": "発見したリピータを、自動的に追加できるようにする。", - "contactsSettings_autoAddRoomServersTitle": "自動でルームサーバーを追加", - "contactsSettings_autoAddRoomServersSubtitle": "利用者が、発見した部屋のサーバーを自動的に追加できるようにする。", - "contactsSettings_autoAddSensorsTitle": "自動でセンサーを追加", - "contactsSettings_autoAddSensorsSubtitle": "利用者が、発見したセンサーを自動的に追加できるようにする。", - "contactsSettings_overwriteOldestTitle": "最も古いものを上書きする", - "contactsSettings_overwriteOldestSubtitle": "連絡先リストが満杯になった場合、最も古いかつ「お気に入り」ではない連絡先が削除されます。", - "contactsSettings_evictDiscoveredContactsTitle": "検出された連絡先を削除", - "contactsSettings_evictDiscoveredContactsSubtitle": "有効にすると、検出された連絡先のリストが上限の{limit}件に達した際に、最も古い検出済み連絡先が削除されます。", + "contactsSettings_autoAddTitle": "連絡先の自動追加", + "contactsSettings_autoAddDescription": "新たに受信したこれらの種類のノードをラジオの連絡先に追加します。その他は後で「連絡先が見つかった」から追加できます。", + "contactsSettings_otherTitle": "連絡先リストの上限", + "contactsSettings_autoAddUsersTitle": "ユーザー", + "contactsSettings_autoAddRepeatersTitle": "リピータ", + "contactsSettings_autoAddRoomServersTitle": "ルームサーバー", + "contactsSettings_autoAddSensorsTitle": "センサー", + "contactsSettings_overwriteOldestTitle": "最も古い連絡先を上書き", + "contactsSettings_overwriteOldestSubtitle": "ラジオの連絡先リストが満杯になったら、お気に入り以外で最も古い連絡先を置き換えます。", + "contactsSettings_evictDiscoveredContactsTitle": "発見された連絡先を制限", + "contactsSettings_evictDiscoveredContactsSubtitle": "アプリは「連絡先が見つかった」リストを {limit} 件に制限します。上限に達すると古い連絡先から削除されます。オフにすると上限はなくなります。", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2344,7 +2359,7 @@ "radioStats_settingsTile": "ラジオの統計", "radioStats_settingsSubtitle": "ノイズレベル、RSSI、SNR、および通信時間", "settings_privacy": "プライバシー設定", - "settings_privacySubtitle": "共有する情報の内容を管理する。", + "settings_privacySubtitle": "共有する情報の内容を管理する", "settings_denyAll": "すべてを否定", "settings_privacySettingsDescription": "自分のデバイスが他の人に共有する情報を選択してください。", "settings_allowByContact": "連絡先を明示するオプション", @@ -3077,10 +3092,9 @@ "settings_regionDefault": "既定の地域", "settings_regionDefaultSubtitle": "地域が設定されていないチャンネルで使用されます", "settings_regionDefaultNone": "なし", - "settings_telemetryPerContactHint": "連絡先に許可するには、そのチャットを開いてメニューから「連絡先設定」を選択してください。", - "settings_multiAckSubtitle": "配信を確実にするため ACK を追加送信します。放送時間が長くなります", + "settings_telemetryPerContactHint": "特定の連絡先に許可するには、そのチャットを開いてメニューから「連絡先設定」を選択してください。", + "settings_multiAckSubtitle": "確認応答(ACK)を直接経路で返送する場合は、1 つではなく 2 つ送信します。より確実ですが、通信時間を多く使います。", "settings_presetCustom": "カスタム", - "settings_radioMatchWarning": "通信するすべてのノードで、周波数・帯域幅・伝播係数を揃える必要があります。コーディング速度(CR)は異なっていても構いません。", "settings_txPowerRangeHelper": "{min}~{max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3100,7 +3114,7 @@ } } }, - "settings_pathHashModeHelper": "このラジオが送信するフラッドパケットの経路に記録される各ノード ID のサイズ:1 バイト(256 個の ID、最大 64 ホップ)、2 バイト(65,000 個の ID、最大 32 ホップ)、3 バイト(160 万個の ID、最大 21 ホップ)。ID が大きいほど衝突が減りますが、v1.14 より古いファームウェアのリピータは 2 バイトまたは 3 バイトの ID を含むパケットを破棄します。", + "settings_pathHashModeHelper": "このラジオが送信するフラッドパケットの経路に記録される、各ノード ID のサイズ:\n\n- 1 バイト:256 通りの ID、最大 64 ホップ。\"ab\"。\n- 2 バイト:6.5 万通りの ID、最大 32 ホップ。\"ab12\"。\n- 3 バイト:1,600 万通りの ID、最大 21 ホップ。\"ab12cd\"。\n\nID が大きいほど衝突は減りますが、v1.14 より古いファームウェアのリピータは 2 バイトまたは 3 バイトの ID を使うパケットを破棄します。", "settings_requiresFirmware": "ファームウェア {version} 以降が必要です", "@settings_requiresFirmware": { "placeholders": { @@ -4052,7 +4066,8 @@ "routing_modeDirect": "直接", "routing_modeDirectHint": "中継ホップなしで、常にこの連絡先へ直接送信します。相手が電波の届く範囲にいるときに使います。", "settings_export": "エクスポート", - "settings_exportSubtitle": "連絡先とリピータをGPXでエクスポート", + "settings_exportData": "データのエクスポート", + "settings_exportSubtitle": "ブックマークと連絡先の位置情報", "backupRestore_title": "バックアップと復元", "backupRestore_subtitle": "アプリのデータと無線機の設定を保存または復元します", "backupRestore_import": "インポート", @@ -4272,7 +4287,7 @@ "bookmarks_channel": "チャンネル", "bookmarks_contact": "連絡先", "bookmarks_remove": "ブックマークを削除", - "settings_exportBookmarks": "ブックマークをMarkdownにエクスポート", + "settings_exportBookmarks": "ブックマーク", "settings_exportBookmarksSubtitle": "ブックマークしたメッセージをMarkdownファイルとして共有または保存します。", "settings_exportBookmarksSuccess": "ブックマークをエクスポートしました。", "settings_exportBookmarksNoBookmarks": "エクスポートするブックマークがありません。", diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb index edec1537..dfed602f 100644 --- a/lib/l10n/app_ko.arb +++ b/lib/l10n/app_ko.arb @@ -146,18 +146,33 @@ "settings_nodeName": "노드 이름", "settings_nodeNameNotSet": "설정되지 않음", "settings_nodeNameHint": "노드 이름을 입력하세요", + "nodeName_info": "이름에 쓰는 1바이트마다 채널 메시지에 쓸 수 있는 공간이 1바이트 줄어듭니다. 한글, 한자, 이모지는 한 글자에 여러 바이트를 사용합니다.", + "nodeName_messageLength": "메시지 길이", + "nodeName_channelMessages": "채널 메시지", + "nodeName_channelMessagesSubtitle": "이름 길이만큼 줄어듦", + "nodeName_directMessages": "직접 메시지", + "nodeName_directMessagesSubtitle": "이름의 영향을 받지 않음", + "nodeName_bytesAvailable": "{count, plural, other{{count}바이트 사용 가능}}", + "nodeName_bytesOver": "{count, plural, other{제한을 {count}바이트 초과합니다}}", "settings_nodeNameUpdated": "이름 변경", "settings_radioSettings": "라디오 설정", "settings_radioSettingsSubtitle": "주파수, 전력, 확산 계수", + "settings_unsavedChangesMessage": "라디오에 저장되지 않은 변경 사항이 있습니다.", "settings_radioSettingsUpdated": "라디오 설정이 업데이트되었습니다.", "settings_location": "위치", "settings_locationSubtitle": "GPS 좌표", + "location_coordinates": "좌표", + "location_coordinatesDescription": "노드의 위치입니다. 지도에 표시되고 위치를 공유할 때 사용됩니다. 개인 정보 설정의 '어드버트 위치'가 켜져 있으면 어드버트에도 포함됩니다.", + "location_pickOnMap": "지도에서 선택", + "locationPicker_hint": "지도를 드래그하거나 눌러서 핀을 놓으세요.", + "locationPicker_useLocation": "이 위치 사용", "settings_locationUpdated": "위치 및 GPS 설정이 업데이트되었습니다.", "settings_locationBothRequired": "위도와 경도를 모두 입력하세요.", "settings_locationInvalid": "유효하지 않은 위도 또는 경도.", "settings_locationGPSEnable": "GPS 활성화", - "settings_locationGPSEnableSubtitle": "GPS를 사용하여 위치 정보를 자동으로 업데이트할 수 있도록 합니다.", - "settings_locationIntervalSec": "GPS 간격 (초)", + "settings_locationGPSEnableSubtitle": "라디오의 GPS로 위치 정보를 계속 업데이트합니다.", + "settings_locationIntervalSec": "업데이트 간격 (초)", + "settings_locationIntervalHelper": "60~86399초", "settings_locationIntervalInvalid": "간격은 최소 60초 이상, 86400초 미만이어야 합니다.", "settings_latitude": "위도", "settings_longitude": "경도", @@ -172,7 +187,7 @@ "settings_privacyModeDisabled": "개인 정보 보호 모드 비활성화", "settings_actions": "행동", "settings_deleteAllPaths": "모든 경로 삭제", - "settings_deleteAllPathsSubtitle": "연락처의 모든 경로 데이터를 지웁니다.", + "settings_deleteAllPathsSubtitle": "연락처의 모든 경로 데이터를 지웁니다", "settings_sendAdvertisement": "어드버트 전송", "settings_sendAdvertisementSubtitle": "현재 존재를 방송합니다.", "settings_advertisementSent": "어드버트가 전송되었습니다.", @@ -182,7 +197,7 @@ "settings_refreshContacts": "연락처 새로고침", "settings_refreshContactsSubtitle": "장치에서 연락처 목록을 다시 불러오기", "settings_rebootDevice": "장치 재부팅", - "settings_rebootDeviceSubtitle": "MeshCore 장치를 재부팅합니다.", + "settings_rebootDeviceSubtitle": "MeshCore 장치를 재부팅합니다", "settings_rebootDeviceConfirm": "정말 장치를 재부팅하시겠습니까? 연결이 끊어집니다.", "settings_debug": "디버그", "settings_bleDebugLog": "BLE 디버그 로그", @@ -190,17 +205,16 @@ "settings_appDebugLog": "앱 디버그 로그", "settings_appDebugLogSubtitle": "애플리케이션 디버그 메시지", "settings_about": "정보", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 MeshCore 오픈 소스 프로젝트", + "settings_aboutTheApp": "앱 정보", + "settings_aboutLegalese": "{year} MeshCore 오픈 소스 프로젝트", "settings_aboutDescription": "MeshCore LoRa 메시 네트워크 장치를 위한 오픈소스 Flutter 클라이언트.", "settings_aboutOpenMeteoAttribution": "LOS 고도 데이터: Open-Meteo (CC BY 4.0)", + "about_project": "프로젝트", + "about_sourceCode": "소스 코드", + "about_license": "라이선스", + "about_openSourceLicenses": "오픈소스 라이선스", + "about_credits": "크레딧", + "about_contributors": "기여자", "settings_infoName": "이름", "settings_infoId": "ID", "settings_infoStatus": "상태", @@ -209,17 +223,20 @@ "settings_infoContactsCount": "연락처 수", "settings_infoChannelCount": "채널 수", "settings_presets": "프리셋", + "settings_radioParameters": "파라미터", "settings_frequency": "주파수 (MHz)", - "settings_frequencyHelper": "300.0 - 2500.0", - "settings_frequencyInvalid": "유효하지 않은 주파수 (300-2500 MHz)", + "settings_frequencyHelper": "150.0 - 2500.0 MHz", + "settings_frequencyInvalid": "유효하지 않은 주파수 (150-2500 MHz)", "settings_bandwidth": "대역폭", - "settings_spreadingFactor": "분산 계수", + "settings_spreadingFactor": "확산 계수", "settings_codingRate": "코딩 속도", "settings_txPower": "송신 전력 (dBm)", "settings_txPowerHelper": "0 - 22", "settings_txPowerInvalid": "유효하지 않은 송신 전력 (0-22 dBm)", - "settings_clientRepeat": "오프그리드 반복", - "settings_clientRepeatSubtitle": "이 장치가 다른 장치의 메시 패킷을 반복하도록 허용합니다.", + "settings_clientRepeat": "오프그리드 반복 모드", + "settings_clientRepeatDescription": "이 장치가 패킷을 중계할 수 있게 합니다. 리피터 커버리지가 없는 곳에서 사용하기 위한 기능입니다.\n\n이 모드는 제한된 주파수만 사용합니다. ON으로 설정하면 더 넓은 메시와의 연결이 끊어질 가능성이 높습니다. 통신하는 모든 노드는 주파수, 대역폭, 확산 계수(SF)가 같아야 합니다. 코딩 속도(CR)만 달라도 됩니다.", + "settings_clientRepeatSwitch": "반복 모드", + "settings_clientRepeatNote": "참고: OFF로 설정하면 이전 주파수로 돌아갑니다. 이후 메시에 연결할 수 없으면 프리셋/파라미터를 확인하세요.", "settings_clientRepeatFreqWarning": "오프그리드 반복에는 433MHz, 869MHz 또는 918MHz 주파수가 필요합니다.", "settings_error": "오류: {message}", "@settings_error": { @@ -1356,7 +1373,7 @@ "repeater_floodMaxHelper": "플러딩 패킷이 이동할 수 있는 최대 홉 수 (0-64)", "repeater_advancedSettings": "고급", "repeater_advancedSettingsSubtitle": "숙련된 운영자를 위한 세부 조정", - "repeater_pathHashMode": "경로 내 노드 ID 크기", + "repeater_pathHashMode": "ID 해시 크기", "repeater_pathHashModeHelper": "이 리피터가 보내는 어드버트의 경로에 들어가는 이 리피터의 ID 크기: 1바이트(ID 256개, 최대 64홉), 2바이트(ID 65K개, 최대 32홉), 3바이트(ID 16M개, 최대 21홉). 전달에는 영향을 주지 않습니다. v1.14 이상 리피터는 모든 크기를 전달하지만, 이전 펌웨어는 2바이트 또는 3바이트 ID 패킷을 버립니다.", "repeater_txDelay": "플러딩 TX 지연", "repeater_txDelayHelper": "플러딩 트래픽의 재전송 간격으로, 패킷 에어타임의 배수입니다 (0-2, 기본값 0.5). 값이 클수록 충돌이 줄어들지만 전달이 느려집니다.", @@ -2097,12 +2114,13 @@ } }, "notification_receivedNewMessage": "새로운 메시지를 받았습니다", - "settings_gpxExportRepeaters": "GPX로 전송/방 관리 서버", - "settings_gpxExportRepeatersSubtitle": "GPX 파일에 위치 정보를 포함하여 반복자/룸 서버를 내보냅니다.", - "settings_gpxExportContacts": "GPX 형식으로 내보내기", - "settings_gpxExportContactsSubtitle": "GPX 파일에 위치 정보를 포함하여 동행하는 기능을 내보냅니다.", - "settings_gpxExportAll": "모든 연락처를 GPX 형식으로 내보내기", - "settings_gpxExportAllSubtitle": "위치 정보가 있는 모든 연락처를 GPX 파일로 내보냅니다.", + "export_messagesTitle": "메시지", + "export_messagesDescription": "북마크한 메시지를 Markdown 파일로 저장합니다.", + "export_locationsTitle": "연락처 위치", + "export_locationsDescription": "위치가 알려진 연락처를 지도 앱용 GPX 파일로 저장합니다.", + "settings_gpxExportRepeaters": "리피터 및 방", + "settings_gpxExportContacts": "사용자 / 컴패니언", + "settings_gpxExportAll": "모든 연락처", "settings_gpxExportSuccess": "GPX 파일이 성공적으로 내보내졌습니다.", "settings_gpxExportNoContacts": "수출할 연락처가 없습니다.", "settings_gpxExportNotAvailable": "귀하의 장치/운영체제에서는 지원되지 않습니다.", @@ -2115,20 +2133,17 @@ "snrIndicator_nearByRepeaters": "주변의 중계기", "snrIndicator_lastSeen": "마지막으로 목격", "contactsSettings_title": "연락처 설정", - "contactsSettings_autoAddTitle": "자동 검색", - "contactsSettings_otherTitle": "다른 연락 관련 설정", - "contactsSettings_autoAddUsersTitle": "자동으로 사용자 추가", - "contactsSettings_autoAddUsersSubtitle": "동반자가 자동으로 발견한 사용자를 추가할 수 있도록 합니다.", - "contactsSettings_autoAddRepeatersTitle": "자동으로 중계기 추가", - "contactsSettings_autoAddRepeatersSubtitle": "애완동물이 발견한 무선 라디오를 자동으로 추가할 수 있도록 설정합니다.", - "contactsSettings_autoAddRoomServersTitle": "자동으로 방 서버 추가", - "contactsSettings_autoAddRoomServersSubtitle": "애완동물이 발견한 방 서버를 자동으로 추가할 수 있도록 설정합니다.", - "contactsSettings_autoAddSensorsTitle": "자동으로 센서 추가", - "contactsSettings_autoAddSensorsSubtitle": "애완동물이 발견한 센서를 자동으로 추가할 수 있도록 설정합니다.", - "contactsSettings_overwriteOldestTitle": "가장 오래된 것을 덮어쓰기", - "contactsSettings_overwriteOldestSubtitle": "연락처 목록이 가득 차면, 가장 오래된 (선호하지 않은) 연락처가 대체됩니다.", - "contactsSettings_evictDiscoveredContactsTitle": "발견된 연락처 삭제", - "contactsSettings_evictDiscoveredContactsSubtitle": "활성화하면 발견된 연락처 목록이 {limit}개의 한도에 도달했을 때 가장 오래된 발견된 연락처를 삭제합니다.", + "contactsSettings_autoAddTitle": "연락처 자동 추가", + "contactsSettings_autoAddDescription": "새로 수신된 이 유형의 노드를 라디오의 연락처에 추가합니다. 나머지는 나중에 '연락처 찾기'에서 추가할 수 있습니다.", + "contactsSettings_otherTitle": "연락처 목록 한도", + "contactsSettings_autoAddUsersTitle": "사용자", + "contactsSettings_autoAddRepeatersTitle": "리피터", + "contactsSettings_autoAddRoomServersTitle": "방 서버", + "contactsSettings_autoAddSensorsTitle": "센서", + "contactsSettings_overwriteOldestTitle": "가장 오래된 연락처 덮어쓰기", + "contactsSettings_overwriteOldestSubtitle": "라디오의 연락처 목록이 가득 차면 즐겨찾기가 아닌 가장 오래된 연락처를 교체합니다.", + "contactsSettings_evictDiscoveredContactsTitle": "발견된 연락처 제한", + "contactsSettings_evictDiscoveredContactsSubtitle": "앱은 \"연락처 찾기\" 목록을 {limit}개 항목으로 제한합니다. 한도에 도달하면 오래된 연락처부터 삭제됩니다. 끄면 제한이 없습니다.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2249,7 +2264,7 @@ "radioStats_settingsTile": "라디오 통계", "radioStats_settingsSubtitle": "잡음 수준, RSSI, 신호 대 잡음비, 통신 시간", "settings_privacy": "개인 정보 설정", - "settings_privacySubtitle": "어떤 정보를 공유할지 통제하세요.", + "settings_privacySubtitle": "어떤 정보를 공유할지 통제하세요", "settings_privacySettingsDescription": "어떤 정보를 기기가 다른 사람들과 공유할지 선택하세요.", "settings_denyAll": "모든 것을 부정", "settings_allowByContact": "연락처 표시 기능 활성화", @@ -3077,10 +3092,9 @@ "settings_regionDefault": "기본 지역", "settings_regionDefaultSubtitle": "지역이 설정되지 않은 채널에 사용됩니다", "settings_regionDefaultNone": "없음", - "settings_telemetryPerContactHint": "연락처에 허용하려면 해당 채팅을 열고 메뉴에서 연락처 설정을 선택하세요.", - "settings_multiAckSubtitle": "전달을 개선하기 위해 ACK를 추가로 전송합니다. 방송 시간이 더 필요합니다", + "settings_telemetryPerContactHint": "특정 연락처에 허용하려면 해당 채팅을 열고 메뉴에서 연락처 설정을 선택하세요.", + "settings_multiAckSubtitle": "확인 응답(ACK)이 직접 경로로 돌아갈 때 1개 대신 2개 보냅니다. 더 안정적이지만 전송 시간을 더 많이 사용합니다.", "settings_presetCustom": "사용자 지정", - "settings_radioMatchWarning": "통신하는 모든 노드가 동일한 주파수, 대역폭, 확산 계수를 사용해야 합니다. 코딩 속도(CR)는 달라도 됩니다.", "settings_txPowerRangeHelper": "{min}~{max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3100,7 +3114,7 @@ } } }, - "settings_pathHashModeHelper": "이 라디오가 보내는 플러딩 패킷의 경로에 기록되는 각 노드 ID의 크기: 1바이트(256개 ID, 최대 64홉), 2바이트(65,000개 ID, 최대 32홉), 3바이트(160만 개 ID, 최대 21홉). ID가 클수록 충돌이 줄어들지만, v1.14보다 오래된 펌웨어의 리피터는 2바이트 또는 3바이트 ID가 든 패킷을 버립니다.", + "settings_pathHashModeHelper": "이 라디오가 보내는 플러딩 패킷의 경로에 기록되는 각 노드 ID의 크기:\n\n- 1바이트: 고유 ID 256개, 최대 64홉. \"ab\".\n- 2바이트: 고유 ID 6.5만 개, 최대 32홉. \"ab12\".\n- 3바이트: 고유 ID 1,600만 개, 최대 21홉. \"ab12cd\".\n\nID가 클수록 충돌이 줄어들지만, v1.14보다 오래된 펌웨어를 쓰는 리피터는 2바이트 또는 3바이트 ID를 사용하는 패킷을 버립니다.", "settings_requiresFirmware": "펌웨어 {version} 이상이 필요합니다", "@settings_requiresFirmware": { "placeholders": { @@ -4052,7 +4066,8 @@ "routing_modeDirect": "직접", "routing_modeDirectHint": "중계기를 거치지 않고 항상 이 연락처로 바로 보냅니다. 상대가 무선 범위 안에 있을 때 사용하세요.", "settings_export": "내보내기", - "settings_exportSubtitle": "연락처와 중계기를 GPX로 내보내기", + "settings_exportData": "데이터 내보내기", + "settings_exportSubtitle": "북마크 및 연락처 위치", "backupRestore_title": "백업 및 복원", "backupRestore_subtitle": "앱 데이터와 무전기 설정을 저장하거나 복원합니다", "backupRestore_import": "가져오기", @@ -4272,7 +4287,7 @@ "bookmarks_channel": "채널", "bookmarks_contact": "연락처", "bookmarks_remove": "북마크 삭제", - "settings_exportBookmarks": "북마크를 Markdown으로 내보내기", + "settings_exportBookmarks": "북마크", "settings_exportBookmarksSubtitle": "북마크한 메시지를 Markdown 파일로 공유하거나 저장합니다.", "settings_exportBookmarksSuccess": "북마크를 내보냈습니다.", "settings_exportBookmarksNoBookmarks": "내보낼 북마크가 없습니다.", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 1b7b8d34..b5c8ad8e 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -823,10 +823,16 @@ abstract class AppLocalizations { /// **'Export'** String get settings_export; + /// No description provided for @settings_exportData. + /// + /// In en, this message translates to: + /// **'Export Data'** + String get settings_exportData; + /// No description provided for @settings_exportSubtitle. /// /// In en, this message translates to: - /// **'Export contacts and repeaters as GPX'** + /// **'Bookmarks and contact locations'** String get settings_exportSubtitle; /// No description provided for @backupRestore_title. @@ -1177,6 +1183,54 @@ abstract class AppLocalizations { /// **'Enter node name'** String get settings_nodeNameHint; + /// No description provided for @nodeName_info. + /// + /// In en, this message translates to: + /// **'Every byte used by your name is one byte less that can be used for channel messages. Special characters and emojis can use more than one byte.'** + String get nodeName_info; + + /// No description provided for @nodeName_messageLength. + /// + /// In en, this message translates to: + /// **'Message length'** + String get nodeName_messageLength; + + /// No description provided for @nodeName_channelMessages. + /// + /// In en, this message translates to: + /// **'Channel messages'** + String get nodeName_channelMessages; + + /// No description provided for @nodeName_channelMessagesSubtitle. + /// + /// In en, this message translates to: + /// **'Reduced by your name'** + String get nodeName_channelMessagesSubtitle; + + /// No description provided for @nodeName_directMessages. + /// + /// In en, this message translates to: + /// **'Direct messages'** + String get nodeName_directMessages; + + /// No description provided for @nodeName_directMessagesSubtitle. + /// + /// In en, this message translates to: + /// **'Not affected by your name'** + String get nodeName_directMessagesSubtitle; + + /// No description provided for @nodeName_bytesAvailable. + /// + /// In en, this message translates to: + /// **'{count, plural, =1{1 byte available} other{{count} bytes available}}'** + String nodeName_bytesAvailable(int count); + + /// No description provided for @nodeName_bytesOver. + /// + /// In en, this message translates to: + /// **'{count, plural, =1{1 byte over the limit} other{{count} bytes over the limit}}'** + String nodeName_bytesOver(int count); + /// No description provided for @settings_nodeNameUpdated. /// /// In en, this message translates to: @@ -1195,6 +1249,12 @@ abstract class AppLocalizations { /// **'Frequency, power, spreading factor'** String get settings_radioSettingsSubtitle; + /// No description provided for @settings_unsavedChangesMessage. + /// + /// In en, this message translates to: + /// **'Your changes haven\'t been saved to the radio.'** + String get settings_unsavedChangesMessage; + /// No description provided for @settings_radioSettingsUpdated. /// /// In en, this message translates to: @@ -1363,6 +1423,36 @@ abstract class AppLocalizations { /// **'GPS coordinates'** String get settings_locationSubtitle; + /// No description provided for @location_coordinates. + /// + /// In en, this message translates to: + /// **'Coordinates'** + String get location_coordinates; + + /// No description provided for @location_coordinatesDescription. + /// + /// In en, this message translates to: + /// **'Your node\'s position. It\'s shown on the map, used when you share your location, and sent in adverts when Advert Location is on (Privacy).'** + String get location_coordinatesDescription; + + /// No description provided for @location_pickOnMap. + /// + /// In en, this message translates to: + /// **'Pick on map'** + String get location_pickOnMap; + + /// No description provided for @locationPicker_hint. + /// + /// In en, this message translates to: + /// **'Drag the map or tap to place the pin.'** + String get locationPicker_hint; + + /// No description provided for @locationPicker_useLocation. + /// + /// In en, this message translates to: + /// **'Use this location'** + String get locationPicker_useLocation; + /// No description provided for @settings_locationUpdated. /// /// In en, this message translates to: @@ -1384,21 +1474,27 @@ abstract class AppLocalizations { /// No description provided for @settings_locationGPSEnable. /// /// In en, this message translates to: - /// **'GPS Enable'** + /// **'Enable GPS'** String get settings_locationGPSEnable; /// No description provided for @settings_locationGPSEnableSubtitle. /// /// In en, this message translates to: - /// **'Enables GPS to automatically update location.'** + /// **'Keeps the location updated from the radio\'s GPS.'** String get settings_locationGPSEnableSubtitle; /// No description provided for @settings_locationIntervalSec. /// /// In en, this message translates to: - /// **'Interval for GPS (Seconds)'** + /// **'Update interval (seconds)'** String get settings_locationIntervalSec; + /// No description provided for @settings_locationIntervalHelper. + /// + /// In en, this message translates to: + /// **'60 to 86399 seconds'** + String get settings_locationIntervalHelper; + /// No description provided for @settings_locationIntervalInvalid. /// /// In en, this message translates to: @@ -1426,7 +1522,7 @@ abstract class AppLocalizations { /// No description provided for @settings_contactSettingsSubtitle. /// /// In en, this message translates to: - /// **'Settings for how contacts are added.'** + /// **'Settings for how contacts are added'** String get settings_contactSettingsSubtitle; /// No description provided for @settings_privacyMode. @@ -1468,7 +1564,7 @@ abstract class AppLocalizations { /// No description provided for @settings_privacySubtitle. /// /// In en, this message translates to: - /// **'Control what information is shared.'** + /// **'Control what information is shared'** String get settings_privacySubtitle; /// No description provided for @settings_privacySettingsDescription. @@ -1516,7 +1612,7 @@ abstract class AppLocalizations { /// No description provided for @settings_telemetryPerContactHint. /// /// In en, this message translates to: - /// **'To allow a contact, open their chat and choose Contact Settings from the menu.'** + /// **'To allow a specific contact, open their chat and choose Contact Settings from the menu.'** String get settings_telemetryPerContactHint; /// No description provided for @settings_advertLocation. @@ -1552,7 +1648,7 @@ abstract class AppLocalizations { /// No description provided for @settings_multiAckSubtitle. /// /// In en, this message translates to: - /// **'Send extra ACKs for better delivery; uses more airtime'** + /// **'Send 2 acknowledgments (ACKs) instead of 1 when the ACK goes back over a direct path. More reliable, but uses more airtime.'** String get settings_multiAckSubtitle; /// No description provided for @settings_telemetryModeUpdated. @@ -1576,7 +1672,7 @@ abstract class AppLocalizations { /// No description provided for @settings_deleteAllPathsSubtitle. /// /// In en, this message translates to: - /// **'Clear all path data from contacts.'** + /// **'Clear all path data from contacts'** String get settings_deleteAllPathsSubtitle; /// No description provided for @settings_sendAdvertisement. @@ -1681,17 +1777,17 @@ abstract class AppLocalizations { /// **'About'** String get settings_about; - /// No description provided for @settings_aboutVersion. + /// No description provided for @settings_aboutTheApp. /// /// In en, this message translates to: - /// **'MeshCore Open v{version}'** - String settings_aboutVersion(String version); + /// **'About the App'** + String get settings_aboutTheApp; /// No description provided for @settings_aboutLegalese. /// /// In en, this message translates to: - /// **'2026 MeshCore Open Source Project'** - String get settings_aboutLegalese; + /// **'{year} MeshCore Open Source Project'** + String settings_aboutLegalese(String year); /// No description provided for @settings_aboutDescription. /// @@ -1705,6 +1801,42 @@ abstract class AppLocalizations { /// **'LOS elevation data: Open-Meteo (CC BY 4.0)'** String get settings_aboutOpenMeteoAttribution; + /// No description provided for @about_project. + /// + /// In en, this message translates to: + /// **'Project'** + String get about_project; + + /// No description provided for @about_sourceCode. + /// + /// In en, this message translates to: + /// **'Source code'** + String get about_sourceCode; + + /// No description provided for @about_license. + /// + /// In en, this message translates to: + /// **'License'** + String get about_license; + + /// No description provided for @about_openSourceLicenses. + /// + /// In en, this message translates to: + /// **'Open-source licenses'** + String get about_openSourceLicenses; + + /// No description provided for @about_credits. + /// + /// In en, this message translates to: + /// **'Credits'** + String get about_credits; + + /// No description provided for @about_contributors. + /// + /// In en, this message translates to: + /// **'Contributors'** + String get about_contributors; + /// No description provided for @settings_infoName. /// /// In en, this message translates to: @@ -1771,18 +1903,18 @@ abstract class AppLocalizations { /// **'Presets'** String get settings_presets; + /// No description provided for @settings_radioParameters. + /// + /// In en, this message translates to: + /// **'Parameters'** + String get settings_radioParameters; + /// No description provided for @settings_presetCustom. /// /// In en, this message translates to: /// **'Custom'** String get settings_presetCustom; - /// No description provided for @settings_radioMatchWarning. - /// - /// In en, this message translates to: - /// **'All nodes you talk to must use the same frequency, bandwidth and SF. The coding rate (CR) can differ.'** - String get settings_radioMatchWarning; - /// No description provided for @settings_frequency. /// /// In en, this message translates to: @@ -1792,7 +1924,7 @@ abstract class AppLocalizations { /// No description provided for @settings_frequencyHelper. /// /// In en, this message translates to: - /// **'150.0 - 2500.0'** + /// **'150.0 - 2500.0 MHz'** String get settings_frequencyHelper; /// No description provided for @settings_frequencyInvalid. @@ -1840,21 +1972,33 @@ abstract class AppLocalizations { /// No description provided for @settings_clientRepeat. /// /// In en, this message translates to: - /// **'Off-Grid Repeat'** + /// **'Off-Grid Repeat Mode'** String get settings_clientRepeat; + /// No description provided for @settings_clientRepeatDescription. + /// + /// In en, this message translates to: + /// **'Allows this device to repeat packets. Meant to be used where repeater coverage doesn\'t exist.\n\nThis mode uses a restricted set of frequencies. Switching it ON likely disconnects you from the wider mesh. All nodes you talk to must use the same frequency, bandwidth, and spreading factor (SF). Only the coding rate (CR) can differ.'** + String get settings_clientRepeatDescription; + + /// No description provided for @settings_clientRepeatSwitch. + /// + /// In en, this message translates to: + /// **'Repeat Mode'** + String get settings_clientRepeatSwitch; + + /// No description provided for @settings_clientRepeatNote. + /// + /// In en, this message translates to: + /// **'Note: Turning it OFF reverts to the previous frequency. Check your preset/parameters if you can\'t connect to the mesh afterwards.'** + String get settings_clientRepeatNote; + /// No description provided for @settings_clientRepeatFrequencyNote. /// /// In en, this message translates to: /// **'Frequency set to {freq} MHz for off-grid repeat'** String settings_clientRepeatFrequencyNote(String freq); - /// No description provided for @settings_clientRepeatSubtitle. - /// - /// In en, this message translates to: - /// **'Allow this device to repeat mesh packets for others'** - String get settings_clientRepeatSubtitle; - /// No description provided for @settings_clientRepeatFreqWarning. /// /// In en, this message translates to: @@ -2464,7 +2608,7 @@ abstract class AppLocalizations { /// No description provided for @settings_pathHashModeHelper. /// /// In en, this message translates to: - /// **'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'** + /// **'Size of each node\'s ID recorded in the path of flood packets sent by this radio:\n\n- 1 byte: 256 unique IDs, up to 64 hops. \"ab\".\n- 2 bytes: 65K unique IDs, up to 32 hops. \"ab12\".\n- 3 bytes: 16M unique IDs, up to 21 hops. \"ab12cd\".\n\nLarger IDs reduce collisions, but repeaters running firmware older than v1.14 drop packets using 2 and 3-byte IDs.'** String get settings_pathHashModeHelper; /// No description provided for @settings_requiresFirmware. @@ -6848,7 +6992,7 @@ abstract class AppLocalizations { /// No description provided for @repeater_pathHashMode. /// /// In en, this message translates to: - /// **'Node ID size in paths'** + /// **'ID hash size'** String get repeater_pathHashMode; /// No description provided for @repeater_pathHashModeHelper. @@ -9677,18 +9821,36 @@ abstract class AppLocalizations { /// **'MeshCore Open isn\'t running. Open it and send your reply again.'** String get notification_replyAppNotRunning; + /// No description provided for @export_messagesTitle. + /// + /// In en, this message translates to: + /// **'Messages'** + String get export_messagesTitle; + + /// No description provided for @export_messagesDescription. + /// + /// In en, this message translates to: + /// **'Bookmarked messages, saved as a Markdown file.'** + String get export_messagesDescription; + + /// No description provided for @export_locationsTitle. + /// + /// In en, this message translates to: + /// **'Contact locations'** + String get export_locationsTitle; + + /// No description provided for @export_locationsDescription. + /// + /// In en, this message translates to: + /// **'Contacts with a known location, saved as a GPX file for map apps.'** + String get export_locationsDescription; + /// No description provided for @settings_exportBookmarks. /// /// In en, this message translates to: - /// **'Export bookmarks to Markdown'** + /// **'Bookmarks'** String get settings_exportBookmarks; - /// No description provided for @settings_exportBookmarksSubtitle. - /// - /// In en, this message translates to: - /// **'Share or save bookmarked messages as a Markdown file.'** - String get settings_exportBookmarksSubtitle; - /// No description provided for @settings_exportBookmarksSuccess. /// /// In en, this message translates to: @@ -9704,39 +9866,21 @@ abstract class AppLocalizations { /// No description provided for @settings_gpxExportRepeaters. /// /// In en, this message translates to: - /// **'Export repeaters / room server to GPX'** + /// **'Repeaters and Rooms'** String get settings_gpxExportRepeaters; - /// No description provided for @settings_gpxExportRepeatersSubtitle. - /// - /// In en, this message translates to: - /// **'Exports repeaters / roomserver with a location to GPX file.'** - String get settings_gpxExportRepeatersSubtitle; - /// No description provided for @settings_gpxExportContacts. /// /// In en, this message translates to: - /// **'Export companions to GPX'** + /// **'Users / Companions'** String get settings_gpxExportContacts; - /// No description provided for @settings_gpxExportContactsSubtitle. - /// - /// In en, this message translates to: - /// **'Exports companions with a location to GPX file.'** - String get settings_gpxExportContactsSubtitle; - /// No description provided for @settings_gpxExportAll. /// /// In en, this message translates to: - /// **'Export all contacts to GPX'** + /// **'All contacts'** String get settings_gpxExportAll; - /// No description provided for @settings_gpxExportAllSubtitle. - /// - /// In en, this message translates to: - /// **'Exports all contacts with a location to GPX file.'** - String get settings_gpxExportAllSubtitle; - /// No description provided for @settings_gpxExportSuccess. /// /// In en, this message translates to: @@ -9830,85 +9974,67 @@ abstract class AppLocalizations { /// No description provided for @contactsSettings_autoAddTitle. /// /// In en, this message translates to: - /// **'Automatic Discovery'** + /// **'Auto-add contacts'** String get contactsSettings_autoAddTitle; + /// No description provided for @contactsSettings_autoAddDescription. + /// + /// In en, this message translates to: + /// **'Add newly heard nodes of these types to the radio\'s contacts. Others can be added later from Discovered Contacts.'** + String get contactsSettings_autoAddDescription; + /// No description provided for @contactsSettings_otherTitle. /// /// In en, this message translates to: - /// **'Other contact related settings'** + /// **'Contact List Limits'** String get contactsSettings_otherTitle; /// No description provided for @contactsSettings_autoAddUsersTitle. /// /// In en, this message translates to: - /// **'Auto-add users'** + /// **'Users'** String get contactsSettings_autoAddUsersTitle; - /// No description provided for @contactsSettings_autoAddUsersSubtitle. - /// - /// In en, this message translates to: - /// **'Allow the companion to automatically add discovered users.'** - String get contactsSettings_autoAddUsersSubtitle; - /// No description provided for @contactsSettings_autoAddRepeatersTitle. /// /// In en, this message translates to: - /// **'Auto-add repeaters'** + /// **'Repeaters'** String get contactsSettings_autoAddRepeatersTitle; - /// No description provided for @contactsSettings_autoAddRepeatersSubtitle. - /// - /// In en, this message translates to: - /// **'Allow the companion to automatically add discovered repeaters.'** - String get contactsSettings_autoAddRepeatersSubtitle; - /// No description provided for @contactsSettings_autoAddRoomServersTitle. /// /// In en, this message translates to: - /// **'Auto-add room servers'** + /// **'Room servers'** String get contactsSettings_autoAddRoomServersTitle; - /// No description provided for @contactsSettings_autoAddRoomServersSubtitle. - /// - /// In en, this message translates to: - /// **'Allow the companion to automatically add discovered room servers.'** - String get contactsSettings_autoAddRoomServersSubtitle; - /// No description provided for @contactsSettings_autoAddSensorsTitle. /// /// In en, this message translates to: - /// **'Auto-add sensors'** + /// **'Sensors'** String get contactsSettings_autoAddSensorsTitle; - /// No description provided for @contactsSettings_autoAddSensorsSubtitle. - /// - /// In en, this message translates to: - /// **'Allow the companion to automatically add discovered sensors.'** - String get contactsSettings_autoAddSensorsSubtitle; - /// No description provided for @contactsSettings_overwriteOldestTitle. /// /// In en, this message translates to: - /// **'Overwrite Oldest'** + /// **'Overwrite oldest'** String get contactsSettings_overwriteOldestTitle; /// No description provided for @contactsSettings_overwriteOldestSubtitle. /// /// In en, this message translates to: - /// **'When the contact list is full, the oldest non-favorited contact will be replaced.'** + /// **'Replace the oldest non-favorited contact when the radio\'s contact list is full.'** String get contactsSettings_overwriteOldestSubtitle; /// No description provided for @contactsSettings_evictDiscoveredContactsTitle. /// /// In en, this message translates to: - /// **'Evict discovered contacts'** + /// **'Limit discovered contacts'** String get contactsSettings_evictDiscoveredContactsTitle; /// No description provided for @contactsSettings_evictDiscoveredContactsSubtitle. /// /// In en, this message translates to: - /// **'When enabled, the app removes the oldest discovered contacts once the discovery list reaches its limit of {limit} entries.'** + /// **'The app sets a {limit} entry limit to the discovered contacts list, older contacts are evicted when the limit is reached. Disable to have no limits.'** String contactsSettings_evictDiscoveredContactsSubtitle(int limit); /// No description provided for @discoveredContacts_Title. @@ -10172,7 +10298,7 @@ abstract class AppLocalizations { /// No description provided for @radioStats_settingsTile. /// /// In en, this message translates to: - /// **'Radio stats'** + /// **'Radio Stats'** String get radioStats_settingsTile; /// No description provided for @radioStats_settingsSubtitle. @@ -12355,7 +12481,7 @@ abstract class AppLocalizations { /// Message filter: Message filter /// /// In en, this message translates to: - /// **'Message filter'** + /// **'Message Filter'** String get messageFilter_title; /// Message filter: Hide spam and repeated messages diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index f6431256..3871cf1b 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -403,8 +403,10 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_export => 'Експорт'; @override - String get settings_exportSubtitle => - 'Експорт на контакти и повторители като GPX'; + String get settings_exportData => 'Експорт на данни'; + + @override + String get settings_exportSubtitle => 'Отметки и местоположения на контакти'; @override String get backupRestore_title => 'Резервно копие'; @@ -601,6 +603,47 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_nodeNameHint => 'Въведете име на възел'; + @override + String get nodeName_info => + 'Всеки байт от името ви отнема един байт от каналните съобщения. Кирилските букви, специалните символи и емоджи заемат повече от един байт.'; + + @override + String get nodeName_messageLength => 'Дължина на съобщението'; + + @override + String get nodeName_channelMessages => 'Канални съобщения'; + + @override + String get nodeName_channelMessagesSubtitle => 'Името ви ги скъсява'; + + @override + String get nodeName_directMessages => 'Лични съобщения'; + + @override + String get nodeName_directMessagesSubtitle => 'Името ви не им влияе'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count байта налични', + one: '1 байт наличен', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count байта над лимита', + one: '1 байт над лимита', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Името е актуализирано'; @@ -611,6 +654,10 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Честота, мощност, разпространяващ фактор'; + @override + String get settings_unsavedChangesMessage => + 'Имате промени, които не са запазени в радиопредавателя.'; + @override String get settings_radioSettingsUpdated => 'Радио настройките са актуализирани'; @@ -710,6 +757,23 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS координати'; + @override + String get location_coordinates => 'Координати'; + + @override + String get location_coordinatesDescription => + 'Позицията на вашия възел. Показва се на картата, използва се при споделяне на местоположението ви и се изпраща в обявите, когато „Място на обявата“ е включено (Настройки на поверителността).'; + + @override + String get location_pickOnMap => 'Избор от картата'; + + @override + String get locationPicker_hint => + 'Плъзнете картата или докоснете, за да поставите маркера.'; + + @override + String get locationPicker_useLocation => 'Използвай това местоположение'; + @override String get settings_locationUpdated => 'Местоположението е актуализирано'; @@ -725,10 +789,14 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Активирайте автоматичното актуализиране на местоположението чрез GPS.'; + 'Поддържа местоположението актуално чрез GPS на радиото.'; @override - String get settings_locationIntervalSec => 'Интервал за GPS (Секунди)'; + String get settings_locationIntervalSec => + 'Интервал на актуализиране (секунди)'; + + @override + String get settings_locationIntervalHelper => 'от 60 до 86399 секунди'; @override String get settings_locationIntervalInvalid => @@ -745,7 +813,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'Настройки за добавяне на контакти.'; + 'Настройки за добавяне на контакти'; @override String get settings_privacyMode => 'Режим на поверителност'; @@ -771,7 +839,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_privacySubtitle => - 'Контролирайте каква информация се споделя.'; + 'Контролирайте каква информация се споделя'; @override String get settings_privacySettingsDescription => @@ -799,7 +867,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'За да разрешите даден контакт, отворете чата му и изберете „Настройки за контакти“ от менюто.'; + 'За да разрешите конкретен контакт, отворете чата му и изберете „Настройки за контакти“ от менюто.'; @override String get settings_advertLocation => 'Място на обявата'; @@ -821,7 +889,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Изпраща допълнителни ACK за по-надеждна доставка; използва повече време на излъчване'; + 'Изпраща 2 потвърждения (ACK) вместо 1, когато потвърждението се връща по директен път. По-надеждно, но използва повече време в ефира.'; @override String get settings_telemetryModeUpdated => 'Режим на телеметрията е обновен'; @@ -834,7 +902,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Изчисти всички данни за пътищата от контактите.'; + 'Изчисти всички данни за пътищата от контактите'; @override String get settings_sendAdvertisement => 'Изпрати обява'; @@ -850,7 +918,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_syncTimeSubtitle => - 'Задайте часовника на устройството да отговаря на времето на телефона.'; + 'Задайте часовника на устройството да отговаря на времето на телефона'; @override String get settings_timeSynchronized => 'Синхронизирано във времето'; @@ -893,16 +961,16 @@ class AppLocalizationsBg extends AppLocalizations { 'Съобщения за отстраняване на грешки на приложението'; @override - String get settings_about => 'За нас'; + String get settings_about => 'Относно'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open, версия $version'; + String get settings_aboutTheApp => 'За приложението'; + + @override + String settings_aboutLegalese(String year) { + return 'Проект MeshCore с отворен код $year г.'; } - @override - String get settings_aboutLegalese => 'Проект MeshCore с отворен код 2024 г.'; - @override String get settings_aboutDescription => 'Отворен Flutter клиент за MeshCore LoRa мрежови устройства.'; @@ -911,6 +979,24 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Данни за надморска височина на LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Проект'; + + @override + String get about_sourceCode => 'Изходен код'; + + @override + String get about_license => 'Лиценз'; + + @override + String get about_openSourceLicenses => 'Лицензи за отворен код'; + + @override + String get about_credits => 'Благодарности'; + + @override + String get about_contributors => 'Сътрудници'; + @override String get settings_infoName => 'Име'; @@ -945,20 +1031,19 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_presets => 'Предварителни настройки'; @override - String get settings_presetCustom => 'Персонализиран'; + String get settings_radioParameters => 'Параметри'; @override - String get settings_radioMatchWarning => - 'Всички възли, с които комуникирате, трябва да използват еднакви честота, честотна лента и SF. Скоростта на кодиране (CR) може да се различава.'; + String get settings_presetCustom => 'Персонализиран'; @override String get settings_frequency => 'Честота (MHz)'; @override - String get settings_frequencyHelper => '300,0 – 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override - String get settings_frequencyInvalid => 'Невалидна честота (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Невалидна честота (150-2500 MHz)'; @override String get settings_bandwidth => 'Ширина на честотната лента'; @@ -981,17 +1066,24 @@ class AppLocalizationsBg extends AppLocalizations { String get settings_txPowerInvalid => 'Невалидна мощност на TX (0-22 dBm)'; @override - String get settings_clientRepeat => 'Клиентско повторение'; + String get settings_clientRepeat => 'Режим на повторение извън мрежата'; + + @override + String get settings_clientRepeatDescription => + 'Позволява на това устройство да препраща пакети. Предназначен е за места без покритие от повторители.\n\nТози режим използва ограничен набор от честоти. Ако го ВКЛЮЧИТЕ, вероятно ще загубите връзка с по-широката mesh мрежа. Всички възли, с които комуникирате, трябва да използват една и съща честота, ширина на честотната лента и фактор на разпространение (SF). Само скоростта на кодиране (CR) може да се различава.'; + + @override + String get settings_clientRepeatSwitch => 'Режим на повторение'; + + @override + String get settings_clientRepeatNote => + 'Забележка: Ако го ИЗКЛЮЧИТЕ, ще се възстанови предишната честота. Проверете предварителните настройки/параметрите, ако след това не можете да се свържете с mesh мрежата.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Честота $freq MHz за повторение извън мрежата'; } - @override - String get settings_clientRepeatSubtitle => - 'Позволете на това устройство да предава пакети към мрежата за други устройства.'; - @override String get settings_clientRepeatFreqWarning => 'За повторение извън мрежата са необходими честоти от 433, 869 или 918 MHz.'; @@ -1323,7 +1415,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Размер на всеки идентификатор на възел, записван в пътя на flood пакетите, изпращани от това радио: 1 байт (256 идентификатора, до 64 скока), 2 байта (65 хил. идентификатора, до 32 скока), 3 байта (16 млн идентификатора, до 21 скок). По-големите идентификатори намаляват количествата съвпадения, но повторителите с прошивка по-стара от v1.14 отхвърлят пакети с 2- или 3-байтови идентификатори.'; + 'Размер на идентификатора на всеки възел в пътя на flood пакетите, изпращани от това радио:\n\n- 1 байт: 256 уникални идентификатора, до 64 скока. \"ab\".\n- 2 байта: 65 хил. уникални идентификатора, до 32 скока. \"ab12\".\n- 3 байта: 16 млн уникални идентификатора, до 21 скок. \"ab12cd\".\n\nПо-големите идентификатори намаляват сблъсъците, но повторителите с фърмуер, по-стар от v1.14, отхвърлят пакети с 2- и 3-байтови идентификатори.'; @override String settings_requiresFirmware(String version) { @@ -3934,7 +4026,7 @@ class AppLocalizationsBg extends AppLocalizations { 'Експериментални настройки за опитни оператори'; @override - String get repeater_pathHashMode => 'Режим за хеширане на пътища'; + String get repeater_pathHashMode => 'Размер на хеша на ID'; @override String get repeater_pathHashModeHelper => @@ -5702,39 +5794,37 @@ class AppLocalizationsBg extends AppLocalizations { 'MeshCore Open не работи. Отворете го и изпратете отговора си повторно.'; @override - String get settings_exportBookmarks => 'Експорт на отметките в Markdown'; + String get export_messagesTitle => 'Съобщения'; @override - String get settings_exportBookmarksSubtitle => - 'Споделете отметките или ги запазете като Markdown файл.'; + String get export_messagesDescription => + 'Съобщения с отметка, запазени като файл Markdown.'; + + @override + String get export_locationsTitle => 'Местоположения на контакти'; + + @override + String get export_locationsDescription => + 'Контакти с известно местоположение, запазени като файл GPX за приложения с карти.'; + + @override + String get settings_exportBookmarks => 'Отметки'; @override String get settings_exportBookmarksSuccess => 'Отметките са експортирани.'; @override - String get settings_exportBookmarksNoBookmarks => 'Няма отметки за експорт.'; + String get settings_exportBookmarksNoBookmarks => + 'Няма отметки за експортиране.'; @override - String get settings_gpxExportRepeaters => - 'Експортиране на повтарящи се устройства / сървър на стаята до GPX'; + String get settings_gpxExportRepeaters => 'Повторители и стаи'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Изпраща повторители / roomserver с местоположение в GPX файл.'; + String get settings_gpxExportContacts => 'Потребители / Компаньони'; @override - String get settings_gpxExportContacts => 'Експортирай спътници към GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Експортира спътници с местоположение в GPX файл.'; - - @override - String get settings_gpxExportAll => 'Експортирай всички контакти в GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Експортира всички контакти с местоположение в файл GPX.'; + String get settings_gpxExportAll => 'Всички контакти'; @override String get settings_gpxExportSuccess => 'Успешно изlexport на файл GPX.'; @@ -5789,58 +5879,43 @@ class AppLocalizationsBg extends AppLocalizations { String get contactsSettings_title => 'Настройки на контактите'; @override - String get contactsSettings_autoAddTitle => 'Автоматично откриване'; + String get contactsSettings_autoAddTitle => + 'Автоматично добавяне на контакти'; @override - String get contactsSettings_otherTitle => - 'Други настройки свързани с контакти'; + String get contactsSettings_autoAddDescription => + 'Чутите за първи път възли от тези типове се добавят към контактите на радиото. Останалите можете да добавите по-късно от „Открити контакти“.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Автоматично добавяне на потребители'; + String get contactsSettings_otherTitle => 'Ограничения на списъка с контакти'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Позволи на спътника да добавя автоматично откритите потребители.'; + String get contactsSettings_autoAddUsersTitle => 'Потребители'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Автоматично добавяне на повтарящи се елементи'; + String get contactsSettings_autoAddRepeatersTitle => 'Повторители'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Позволи на спътника да добавя автоматично откритите повтарящи се устройства.'; + String get contactsSettings_autoAddRoomServersTitle => 'Сървъри на стая'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Автоматично добавяне на сървъри на стаите'; + String get contactsSettings_autoAddSensorsTitle => 'Сензори'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Позволи на спътника да добавя автоматично откритите сървъри на стаите.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Автоматично добавяне на датчици'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Позволи на спътника да добавя автоматично откритите датчици.'; - - @override - String get contactsSettings_overwriteOldestTitle => 'Премахни най-старото'; + String get contactsSettings_overwriteOldestTitle => + 'Презаписване на най-стария'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Когато списъкът с контакти е пълен, най-старият неключов контакт ще бъде заменен.'; + 'Когато списъкът с контакти на радиото е пълен, най-старият контакт извън любимите се заменя.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Премахване на открити контакти'; + 'Ограничаване на откритите контакти'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Когато е включено, приложението премахва най-старите открити контакти, щом списъкът с открити контакти достигне лимита си от $limit записа.'; + return 'Приложението ограничава списъка „Открити контакти“ до $limit записа. При достигане на лимита по-старите контакти се премахват. Изключете, за да премахнете ограничението.'; } @override diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 8dcbdf3e..14acd0b7 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -402,8 +402,10 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_export => 'Exportovat'; @override - String get settings_exportSubtitle => - 'Exportovat kontakty a opakovače jako GPX'; + String get settings_exportData => 'Exportovat data'; + + @override + String get settings_exportSubtitle => 'Záložky a polohy kontaktů'; @override String get backupRestore_title => 'Záloha a obnovení'; @@ -594,6 +596,51 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_nodeNameHint => 'Zadejte název uzlu'; + @override + String get nodeName_info => + 'Každý bajt názvu znamená o bajt méně pro zprávy v kanálech. Písmena s diakritikou, speciální znaky a emoji mohou zabírat více než jeden bajt.'; + + @override + String get nodeName_messageLength => 'Délka zprávy'; + + @override + String get nodeName_channelMessages => 'Zprávy v kanálech'; + + @override + String get nodeName_channelMessagesSubtitle => 'Název je zkracuje'; + + @override + String get nodeName_directMessages => 'Přímé zprávy'; + + @override + String get nodeName_directMessagesSubtitle => 'Název na ně nemá vliv'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajtů k dispozici', + many: '$count bajtu k dispozici', + few: '$count bajty k dispozici', + one: '1 bajt k dispozici', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajtů nad limit', + many: '$count bajtu nad limit', + few: '$count bajty nad limit', + one: '1 bajt nad limit', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Název aktualizován'; @@ -604,6 +651,10 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frekvence, výkon, spreading factor'; + @override + String get settings_unsavedChangesMessage => + 'Máte změny, které nebyly uloženy do rádia.'; + @override String get settings_radioSettingsUpdated => 'Nastavení rádia aktualizováno'; @@ -700,6 +751,23 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_locationSubtitle => 'Souřadnice GPS'; + @override + String get location_coordinates => 'Souřadnice'; + + @override + String get location_coordinatesDescription => + 'Poloha vašeho uzlu. Zobrazuje se na mapě, používá se při sdílení polohy a odesílá se v advertech, když je zapnutá „Poloha v advertu“ (Nastavení soukromí).'; + + @override + String get location_pickOnMap => 'Vybrat na mapě'; + + @override + String get locationPicker_hint => + 'Posuňte mapu nebo klepnutím umístěte špendlík.'; + + @override + String get locationPicker_useLocation => 'Použít tuto polohu'; + @override String get settings_locationUpdated => 'Poloha a nastavení GPS aktualizovány'; @@ -715,10 +783,13 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Povolí GPS pro automatickou aktualizaci polohy.'; + 'Průběžně aktualizuje polohu z GPS rádia.'; @override - String get settings_locationIntervalSec => 'Interval GPS (sekundy)'; + String get settings_locationIntervalSec => 'Interval aktualizace (sekundy)'; + + @override + String get settings_locationIntervalHelper => '60 až 86399 sekund'; @override String get settings_locationIntervalInvalid => @@ -735,7 +806,7 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'Nastavení způsobu přidávání kontaktů.'; + 'Nastavení způsobu přidávání kontaktů'; @override String get settings_privacyMode => 'Režim soukromí'; @@ -757,7 +828,7 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_privacy => 'Nastavení soukromí'; @override - String get settings_privacySubtitle => 'Určete, jaké informace se sdílejí.'; + String get settings_privacySubtitle => 'Určete, jaké informace se sdílejí'; @override String get settings_privacySettingsDescription => @@ -784,7 +855,7 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Chcete-li kontakt povolit, otevřete jeho chat a v nabídce zvolte Nastavení kontaktu.'; + 'Chcete-li konkrétní kontakt povolit, otevřete jeho chat a v nabídce zvolte Nastavení kontaktu.'; @override String get settings_advertLocation => 'Poloha v advertu'; @@ -805,7 +876,7 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Odesílá další ACK pro lepší doručení; spotřebuje více vysílacího času'; + 'Odesílá 2 potvrzení (ACK) místo 1, když se potvrzení vrací přímou cestou. Spolehlivější, ale spotřebuje více vysílacího času.'; @override String get settings_telemetryModeUpdated => 'Režim telemetrie aktualizován'; @@ -818,7 +889,7 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Vymazat všechna data cest z kontaktů.'; + 'Vymazat všechna data cest z kontaktů'; @override String get settings_sendAdvertisement => 'Odeslat advert'; @@ -877,12 +948,12 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_about => 'O aplikaci'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'O aplikaci'; @override - String get settings_aboutLegalese => 'Projekt MeshCore Open Source 2026'; + String settings_aboutLegalese(String year) { + return 'Projekt MeshCore Open Source $year'; + } @override String get settings_aboutDescription => @@ -892,6 +963,24 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Výšková data LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projekt'; + + @override + String get about_sourceCode => 'Zdrojový kód'; + + @override + String get about_license => 'Licence'; + + @override + String get about_openSourceLicenses => 'Licence open source'; + + @override + String get about_credits => 'Poděkování'; + + @override + String get about_contributors => 'Přispěvatelé'; + @override String get settings_infoName => 'Název'; @@ -926,17 +1015,16 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_presets => 'Předvolby'; @override - String get settings_presetCustom => 'Vlastní'; + String get settings_radioParameters => 'Parametry'; @override - String get settings_radioMatchWarning => - 'Všechny uzly, se kterými komunikujete, musí používat stejnou frekvenci, šířku pásma a SF. Kódovací poměr (CR) se může lišit.'; + String get settings_presetCustom => 'Vlastní'; @override String get settings_frequency => 'Frekvence (MHz)'; @override - String get settings_frequencyHelper => '150.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 MHz'; @override String get settings_frequencyInvalid => 'Neplatná frekvence (150-2500 MHz)'; @@ -962,17 +1050,24 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_txPowerInvalid => 'Neplatný výkon TX'; @override - String get settings_clientRepeat => 'Off-grid opakování'; + String get settings_clientRepeat => 'Režim off-grid opakování'; + + @override + String get settings_clientRepeatDescription => + 'Umožňuje tomuto zařízení přeposílat pakety. Je určen pro místa bez pokrytí opakovači.\n\nTento režim používá omezenou sadu frekvencí. Jeho ZAPNUTÍ vás pravděpodobně odpojí od širší sítě mesh. Všechny uzly, se kterými komunikujete, musí používat stejnou frekvenci, šířku pásma a rozptylový faktor (SF). Lišit se smí jen kódovací poměr (CR).'; + + @override + String get settings_clientRepeatSwitch => 'Režim opakování'; + + @override + String get settings_clientRepeatNote => + 'Poznámka: Po VYPNUTÍ se obnoví předchozí frekvence. Pokud se pak nemůžete připojit k síti mesh, zkontrolujte předvolby/parametry.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frekvence nastavena na $freq MHz pro off-grid opakování'; } - @override - String get settings_clientRepeatSubtitle => - 'Povolit tomuto zařízení opakovat pakety sítě mesh pro ostatní'; - @override String get settings_clientRepeatFreqWarning => 'Off-grid opakování vyžaduje frekvenci 433, 869.495 nebo 918 MHz'; @@ -1310,7 +1405,7 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Velikost ID každého uzlu zaznamenaného v cestě flood paketů odesílaných tímto rádiem: 1 bajt (256 ID, až 64 skoků), 2 bajty (65 tis. ID, až 32 skoků), 3 bajty (16 mil. ID, až 21 skoků). Větší ID snižují kolize, ale opakovače s firmwarem starším než v1.14 zahazují pakety s 2- nebo 3bajtovými ID.'; + 'Velikost ID každého uzlu v cestě flood paketů odesílaných tímto rádiem:\n\n- 1 bajt: 256 jedinečných ID, až 64 skoků. \"ab\".\n- 2 bajty: 65 tis. jedinečných ID, až 32 skoků. \"ab12\".\n- 3 bajty: 16 mil. jedinečných ID, až 21 skoků. \"ab12cd\".\n\nVětší ID snižují kolize, ale opakovače s firmwarem starším než v1.14 zahazují pakety s 2- a 3bajtovými ID.'; @override String settings_requiresFirmware(String version) { @@ -3918,7 +4013,7 @@ class AppLocalizationsCs extends AppLocalizations { 'Jemné ladění pro zkušené provozovatele'; @override - String get repeater_pathHashMode => 'Velikost ID uzlu v cestách'; + String get repeater_pathHashMode => 'Velikost hashe ID'; @override String get repeater_pathHashModeHelper => @@ -5682,11 +5777,21 @@ class AppLocalizationsCs extends AppLocalizations { 'MeshCore Open neběží. Otevřete ji a odešlete odpověď znovu.'; @override - String get settings_exportBookmarks => 'Exportovat záložky do Markdownu'; + String get export_messagesTitle => 'Zprávy'; @override - String get settings_exportBookmarksSubtitle => - 'Sdílet nebo uložit zprávy v záložkách jako soubor Markdown.'; + String get export_messagesDescription => + 'Zprávy v záložkách, uložené jako soubor Markdown.'; + + @override + String get export_locationsTitle => 'Polohy kontaktů'; + + @override + String get export_locationsDescription => + 'Kontakty se známou polohou, uložené jako soubor GPX pro mapové aplikace.'; + + @override + String get settings_exportBookmarks => 'Záložky'; @override String get settings_exportBookmarksSuccess => 'Záložky byly exportovány.'; @@ -5695,26 +5800,13 @@ class AppLocalizationsCs extends AppLocalizations { String get settings_exportBookmarksNoBookmarks => 'Žádné záložky k exportu.'; @override - String get settings_gpxExportRepeaters => - 'Exportovat opakovače / room servery do GPX'; + String get settings_gpxExportRepeaters => 'Opakovače a místnosti'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exportuje opakovače / room servery s polohou do souboru GPX.'; + String get settings_gpxExportContacts => 'Uživatelé / Companiony'; @override - String get settings_gpxExportContacts => 'Exportovat companiony do GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exportuje companiony s polohou do souboru GPX.'; - - @override - String get settings_gpxExportAll => 'Exportovat všechny kontakty do GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exportuje všechny kontakty s polohou do souboru GPX.'; + String get settings_gpxExportAll => 'Všechny kontakty'; @override String get settings_gpxExportSuccess => 'Soubor GPX byl úspěšně exportován.'; @@ -5768,57 +5860,41 @@ class AppLocalizationsCs extends AppLocalizations { String get contactsSettings_title => 'Nastavení kontaktů'; @override - String get contactsSettings_autoAddTitle => 'Automatické vyhledávání'; + String get contactsSettings_autoAddTitle => 'Automaticky přidávat kontakty'; @override - String get contactsSettings_otherTitle => 'Další nastavení kontaktů'; + String get contactsSettings_autoAddDescription => + 'Nově slyšené uzly těchto typů se přidají do kontaktů rádia. Ostatní můžete přidat později z obrazovky „Objevené kontakty“.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Automaticky přidávat uživatele'; + String get contactsSettings_otherTitle => 'Limity seznamu kontaktů'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Povolit companionu automaticky přidávat objevené uživatele.'; + String get contactsSettings_autoAddUsersTitle => 'Uživatelé'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Automaticky přidávat opakovače'; + String get contactsSettings_autoAddRepeatersTitle => 'Opakovače'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Povolit companionu automaticky přidávat objevené opakovače.'; + String get contactsSettings_autoAddRoomServersTitle => 'Room servery'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Automaticky přidávat room servery'; + String get contactsSettings_autoAddSensorsTitle => 'Senzory'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Povolit companionu automaticky přidávat objevené room servery.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Automaticky přidávat senzory'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Povolit companionu automaticky přidávat objevené senzory.'; - - @override - String get contactsSettings_overwriteOldestTitle => 'Přepsat nejstarší'; + String get contactsSettings_overwriteOldestTitle => 'Přepisovat nejstarší'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Když je seznam kontaktů plný, nejstarší kontakt, který není oblíbený, bude nahrazen.'; + 'Když je seznam kontaktů v rádiu plný, nahradí se nejstarší kontakt, který není oblíbený.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Odstraňovat objevené kontakty'; + 'Omezit objevené kontakty'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Když je zapnuto, aplikace odstraní nejstarší objevené kontakty, jakmile seznam objevených dosáhne limitu $limit položek.'; + return 'Aplikace omezuje seznam „Objevené kontakty“ na $limit položek. Po dosažení limitu jsou starší kontakty odstraněny. Vypněte pro zrušení limitu.'; } @override diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 8d264d6f..7769c0e0 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -406,8 +406,10 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_export => 'Exportieren'; @override - String get settings_exportSubtitle => - 'Kontakte und Repeater als GPX exportieren'; + String get settings_exportData => 'Daten exportieren'; + + @override + String get settings_exportSubtitle => 'Lesezeichen und Kontaktstandorte'; @override String get backupRestore_title => 'Sichern & Wiederherstellen'; @@ -603,6 +605,47 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_nodeNameHint => 'Geben Sie den Knotennamen ein'; + @override + String get nodeName_info => + 'Jedes Byte Ihres Namens ist ein Byte weniger für Kanalnachrichten. Sonderzeichen wie Umlaute sowie Emojis können mehr als ein Byte belegen.'; + + @override + String get nodeName_messageLength => 'Nachrichtenlänge'; + + @override + String get nodeName_channelMessages => 'Kanalnachrichten'; + + @override + String get nodeName_channelMessagesSubtitle => 'Durch Ihren Namen verringert'; + + @override + String get nodeName_directMessages => 'Direktnachrichten'; + + @override + String get nodeName_directMessagesSubtitle => 'Unabhängig von Ihrem Namen'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count Bytes verfügbar', + one: '1 Byte verfügbar', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count Bytes über dem Limit', + one: '1 Byte über dem Limit', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Name aktualisiert'; @@ -613,6 +656,10 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frequenz, Leistung, Spreading-Faktor'; + @override + String get settings_unsavedChangesMessage => + 'Es gibt Änderungen, die nicht auf dem Funkgerät gespeichert wurden.'; + @override String get settings_radioSettingsUpdated => 'Funkparameter aktualisiert'; @@ -711,6 +758,23 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS-Koordinaten'; + @override + String get location_coordinates => 'Koordinaten'; + + @override + String get location_coordinatesDescription => + 'Die Position Ihres Knotens. Sie wird auf der Karte angezeigt, beim Teilen Ihres Standorts verwendet und in Ankündigungen gesendet, wenn „Standort in Ankündigung“ aktiviert ist (Datenschutzeinstellungen).'; + + @override + String get location_pickOnMap => 'Auf Karte wählen'; + + @override + String get locationPicker_hint => + 'Verschieben Sie die Karte oder tippen Sie, um den Pin zu setzen.'; + + @override + String get locationPicker_useLocation => 'Diesen Standort verwenden'; + @override String get settings_locationUpdated => 'Standort und GPS-Einstellungen aktualisiert'; @@ -727,10 +791,14 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Ermöglicht GPS, den Standort automatisch zu aktualisieren.'; + 'Hält den Standort über das GPS des Funkgeräts aktuell.'; @override - String get settings_locationIntervalSec => 'GPS-Intervall (Sekunden)'; + String get settings_locationIntervalSec => + 'Aktualisierungsintervall (Sekunden)'; + + @override + String get settings_locationIntervalHelper => '60 bis 86399 Sekunden'; @override String get settings_locationIntervalInvalid => @@ -771,7 +839,7 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_privacySubtitle => - 'Steuern Sie, welche Informationen freigegeben werden.'; + 'Steuern Sie, welche Informationen freigegeben werden'; @override String get settings_privacySettingsDescription => @@ -797,7 +865,7 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Um einen Kontakt zuzulassen, öffnen Sie den zugehörigen Chat und wählen Sie im Menü Kontakteinstellungen aus.'; + 'Um einen bestimmten Kontakt zuzulassen, öffnen Sie den zugehörigen Chat und wählen Sie im Menü Kontakteinstellungen aus.'; @override String get settings_advertLocation => 'Standort in Ankündigung'; @@ -819,7 +887,7 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Zusätzliche ACKs für eine bessere Zustellung senden; erhöht die Sendezeit'; + 'Sendet 2 Bestätigungen (ACKs) statt 1, wenn die Bestätigung über einen direkten Pfad zurückgeht. Zuverlässiger, verbraucht aber mehr Sendezeit.'; @override String get settings_telemetryModeUpdated => 'Telemetriemodus aktualisiert'; @@ -832,7 +900,7 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Alle Pfaddaten aus den Kontakten entfernen.'; + 'Alle Pfaddaten aus den Kontakten entfernen'; @override String get settings_sendAdvertisement => 'Ankündigung senden'; @@ -891,12 +959,12 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_about => 'Über'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'Über die App'; @override - String get settings_aboutLegalese => '2026 MeshCore Open-Source-Projekt'; + String settings_aboutLegalese(String year) { + return '$year MeshCore Open-Source-Projekt'; + } @override String get settings_aboutDescription => @@ -906,6 +974,24 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS-Höhendaten: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projekt'; + + @override + String get about_sourceCode => 'Quellcode'; + + @override + String get about_license => 'Lizenz'; + + @override + String get about_openSourceLicenses => 'Open-Source-Lizenzen'; + + @override + String get about_credits => 'Danksagungen'; + + @override + String get about_contributors => 'Mitwirkende'; + @override String get settings_infoName => 'Name'; @@ -940,20 +1026,19 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_presets => 'Voreinstellungen'; @override - String get settings_presetCustom => 'Benutzerdefiniert'; + String get settings_radioParameters => 'Parameter'; @override - String get settings_radioMatchWarning => - 'Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite und SF verwenden. Die Coderate (CR) darf abweichen.'; + String get settings_presetCustom => 'Benutzerdefiniert'; @override String get settings_frequency => 'Frequenz (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override - String get settings_frequencyInvalid => 'Ungültige Frequenz (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Ungültige Frequenz (150-2500 MHz)'; @override String get settings_bandwidth => 'Bandbreite'; @@ -976,17 +1061,24 @@ class AppLocalizationsDe extends AppLocalizations { String get settings_txPowerInvalid => 'Ungültige Sendeleistung (0-22 dBm)'; @override - String get settings_clientRepeat => 'Weiterleitung ohne Netzstrom'; + String get settings_clientRepeat => 'Off-Grid-Weiterleitungsmodus'; + + @override + String get settings_clientRepeatDescription => + 'Erlaubt diesem Gerät, Pakete weiterzuleiten. Gedacht für Orte ohne Repeater-Abdeckung.\n\nDieser Modus nutzt nur eine begrenzte Auswahl an Frequenzen. Ist er AN, verlieren Sie wahrscheinlich die Verbindung zum übrigen Mesh. Alle Knoten, mit denen Sie kommunizieren, müssen dieselbe Frequenz, Bandbreite und denselben Spreading-Faktor (SF) verwenden. Nur die Kodierungsrate (CR) darf abweichen.'; + + @override + String get settings_clientRepeatSwitch => 'Weiterleitungsmodus'; + + @override + String get settings_clientRepeatNote => + 'Hinweis: Schalten Sie ihn AUS, wird die vorherige Frequenz wiederhergestellt. Prüfen Sie Voreinstellungen/Parameter, falls Sie danach keine Verbindung zum Mesh bekommen.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frequenz für die Weiterleitung ohne Netzstrom auf $freq MHz gesetzt'; } - @override - String get settings_clientRepeatSubtitle => - 'Dieses Gerät kann Mesh-Pakete für andere weiterleiten'; - @override String get settings_clientRepeatFreqWarning => 'Weiterleitung ohne Netzstrom erfordert 433, 869 oder 918 MHz'; @@ -1322,7 +1414,7 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Größe der einzelnen Knoten-ID, die im Pfad der von diesem Funkgerät gesendeten Flood-Pakete aufgezeichnet wird: 1 Byte (256 IDs, bis zu 64 Hops), 2 Bytes (65.000 IDs, bis zu 32 Hops), 3 Bytes (16 Millionen IDs, bis zu 21 Hops). Größere IDs verringern Kollisionen, aber Repeater mit einer Firmware älter als v1.14 verwerfen Pakete mit 2- oder 3-Byte-IDs.'; + 'Größe der ID jedes Knotens, die im Pfad der von diesem Funkgerät gesendeten Flood-Pakete eingetragen wird:\n\n- 1 Byte: 256 eindeutige IDs, bis zu 64 Hops. \"ab\".\n- 2 Bytes: 65.000 eindeutige IDs, bis zu 32 Hops. \"ab12\".\n- 3 Bytes: 16 Millionen eindeutige IDs, bis zu 21 Hops. \"ab12cd\".\n\nGrößere IDs verringern Kollisionen, aber Repeater mit Firmware älter als v1.14 verwerfen Pakete mit 2- und 3-Byte-IDs.'; @override String settings_requiresFirmware(String version) { @@ -3933,7 +4025,7 @@ class AppLocalizationsDe extends AppLocalizations { 'Feinabstimmung für erfahrene Betreiber'; @override - String get repeater_pathHashMode => 'Hash-Modus für Pfade'; + String get repeater_pathHashMode => 'ID-Hash-Größe'; @override String get repeater_pathHashModeHelper => @@ -5715,11 +5807,21 @@ class AppLocalizationsDe extends AppLocalizations { 'MeshCore Open wird nicht ausgeführt. Öffnen Sie die App und senden Sie Ihre Antwort erneut.'; @override - String get settings_exportBookmarks => 'Lesezeichen als Markdown exportieren'; + String get export_messagesTitle => 'Nachrichten'; @override - String get settings_exportBookmarksSubtitle => - 'Nachrichten mit Lesezeichen als Markdown-Datei teilen oder speichern.'; + String get export_messagesDescription => + 'Nachrichten mit Lesezeichen, als Markdown-Datei gespeichert.'; + + @override + String get export_locationsTitle => 'Kontaktstandorte'; + + @override + String get export_locationsDescription => + 'Kontakte mit bekanntem Standort, als GPX-Datei für Karten-Apps gespeichert.'; + + @override + String get settings_exportBookmarks => 'Lesezeichen'; @override String get settings_exportBookmarksSuccess => 'Lesezeichen exportiert.'; @@ -5729,26 +5831,13 @@ class AppLocalizationsDe extends AppLocalizations { 'Keine Lesezeichen zum Exportieren.'; @override - String get settings_gpxExportRepeaters => - 'Repeater und Raumserver als GPX exportieren'; + String get settings_gpxExportRepeaters => 'Repeater und Räume'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exportiert Repeater und Raumserver mit einem Standort in eine GPX-Datei.'; + String get settings_gpxExportContacts => 'Benutzer / Companions'; @override - String get settings_gpxExportContacts => 'Kontakte als GPX exportieren'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exportiert Kontakte mit einem Ort in eine GPX-Datei.'; - - @override - String get settings_gpxExportAll => 'Alle Knoten als GPX exportieren'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exportiert alle Knoten mit einem Standort in eine GPX-Datei.'; + String get settings_gpxExportAll => 'Alle Kontakte'; @override String get settings_gpxExportSuccess => 'GPX-Datei erfolgreich exportiert.'; @@ -5803,59 +5892,41 @@ class AppLocalizationsDe extends AppLocalizations { String get contactsSettings_title => 'Kontakteinstellungen'; @override - String get contactsSettings_autoAddTitle => 'Automatische Erkennung'; + String get contactsSettings_autoAddTitle => 'Kontakte automatisch hinzufügen'; @override - String get contactsSettings_otherTitle => - 'Weitere Einstellungen zu Kontakten'; + String get contactsSettings_autoAddDescription => + 'Neu gehörte Knoten dieser Typen zu den Kontakten des Funkgeräts hinzufügen. Andere können später unter „Entdeckte Kontakte“ hinzugefügt werden.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Automatische Hinzufügung von Benutzern'; + String get contactsSettings_otherTitle => 'Kontaktlistenlimits'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Ermöglichen Sie dem Begleiter, automatisch entdeckte Benutzer hinzuzufügen'; + String get contactsSettings_autoAddUsersTitle => 'Benutzer'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Automatisch Repeater hinzufügen'; + String get contactsSettings_autoAddRepeatersTitle => 'Repeater'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Ermöglichen Sie dem Begleiter, automatisch entdeckte Repeater hinzuzufügen.'; + String get contactsSettings_autoAddRoomServersTitle => 'Raumserver'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Automatisch Raumservers hinzufügen'; + String get contactsSettings_autoAddSensorsTitle => 'Sensoren'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Ermöglichen Sie dem Begleiter, entdeckte Raumserver automatisch hinzuzufügen'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Automatisch Sensoren hinzufügen'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Ermöglichen Sie dem Begleiter, automatisch entdeckte Sensoren hinzuzufügen'; - - @override - String get contactsSettings_overwriteOldestTitle => - 'Überschreiben des Ältesten'; + String get contactsSettings_overwriteOldestTitle => 'Ältesten überschreiben'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Wenn die Kontaktliste voll ist, wird der älteste nicht favorisierte Kontakt ersetzt.'; + 'Wenn die Kontaktliste des Funkgeräts voll ist, den ältesten Kontakt ersetzen, der kein Favorit ist.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Liste entdeckter Kontakte kürzen'; + 'Entdeckte Kontakte begrenzen'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Wenn aktiviert, wird die Liste der entdeckten Kontakte auf $limit Kontakte begrenzt.'; + return 'Die App begrenzt die Liste „Entdeckte Kontakte“ auf $limit Einträge. Ist das Limit erreicht, werden ältere Kontakte entfernt. Deaktivieren, um das Limit aufzuheben.'; } @override diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 863143ab..3b50a918 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -399,7 +399,10 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_export => 'Export'; @override - String get settings_exportSubtitle => 'Export contacts and repeaters as GPX'; + String get settings_exportData => 'Export Data'; + + @override + String get settings_exportSubtitle => 'Bookmarks and contact locations'; @override String get backupRestore_title => 'Backup & Restore'; @@ -590,6 +593,47 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_nodeNameHint => 'Enter node name'; + @override + String get nodeName_info => + 'Every byte used by your name is one byte less that can be used for channel messages. Special characters and emojis can use more than one byte.'; + + @override + String get nodeName_messageLength => 'Message length'; + + @override + String get nodeName_channelMessages => 'Channel messages'; + + @override + String get nodeName_channelMessagesSubtitle => 'Reduced by your name'; + + @override + String get nodeName_directMessages => 'Direct messages'; + + @override + String get nodeName_directMessagesSubtitle => 'Not affected by your name'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes available', + one: '1 byte available', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes over the limit', + one: '1 byte over the limit', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Name updated'; @@ -600,6 +644,10 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frequency, power, spreading factor'; + @override + String get settings_unsavedChangesMessage => + 'Your changes haven\'t been saved to the radio.'; + @override String get settings_radioSettingsUpdated => 'Radio settings updated'; @@ -697,6 +745,22 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS coordinates'; + @override + String get location_coordinates => 'Coordinates'; + + @override + String get location_coordinatesDescription => + 'Your node\'s position. It\'s shown on the map, used when you share your location, and sent in adverts when Advert Location is on (Privacy).'; + + @override + String get location_pickOnMap => 'Pick on map'; + + @override + String get locationPicker_hint => 'Drag the map or tap to place the pin.'; + + @override + String get locationPicker_useLocation => 'Use this location'; + @override String get settings_locationUpdated => 'Location and GPS settings updated'; @@ -708,14 +772,17 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_locationInvalid => 'Invalid latitude or longitude.'; @override - String get settings_locationGPSEnable => 'GPS Enable'; + String get settings_locationGPSEnable => 'Enable GPS'; @override String get settings_locationGPSEnableSubtitle => - 'Enables GPS to automatically update location.'; + 'Keeps the location updated from the radio\'s GPS.'; @override - String get settings_locationIntervalSec => 'Interval for GPS (Seconds)'; + String get settings_locationIntervalSec => 'Update interval (seconds)'; + + @override + String get settings_locationIntervalHelper => '60 to 86399 seconds'; @override String get settings_locationIntervalInvalid => @@ -732,7 +799,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'Settings for how contacts are added.'; + 'Settings for how contacts are added'; @override String get settings_privacyMode => 'Privacy Mode'; @@ -755,7 +822,7 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_privacy => 'Privacy Settings'; @override - String get settings_privacySubtitle => 'Control what information is shared.'; + String get settings_privacySubtitle => 'Control what information is shared'; @override String get settings_privacySettingsDescription => @@ -781,7 +848,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'To allow a contact, open their chat and choose Contact Settings from the menu.'; + 'To allow a specific contact, open their chat and choose Contact Settings from the menu.'; @override String get settings_advertLocation => 'Advert Location'; @@ -802,7 +869,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Send extra ACKs for better delivery; uses more airtime'; + 'Send 2 acknowledgments (ACKs) instead of 1 when the ACK goes back over a direct path. More reliable, but uses more airtime.'; @override String get settings_telemetryModeUpdated => 'Telemetry mode updated'; @@ -815,7 +882,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Clear all path data from contacts.'; + 'Clear all path data from contacts'; @override String get settings_sendAdvertisement => 'Send Advertisement'; @@ -872,12 +939,12 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_about => 'About'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'About the App'; @override - String get settings_aboutLegalese => '2026 MeshCore Open Source Project'; + String settings_aboutLegalese(String year) { + return '$year MeshCore Open Source Project'; + } @override String get settings_aboutDescription => @@ -887,6 +954,24 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS elevation data: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Project'; + + @override + String get about_sourceCode => 'Source code'; + + @override + String get about_license => 'License'; + + @override + String get about_openSourceLicenses => 'Open-source licenses'; + + @override + String get about_credits => 'Credits'; + + @override + String get about_contributors => 'Contributors'; + @override String get settings_infoName => 'Name'; @@ -921,17 +1006,16 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_presets => 'Presets'; @override - String get settings_presetCustom => 'Custom'; + String get settings_radioParameters => 'Parameters'; @override - String get settings_radioMatchWarning => - 'All nodes you talk to must use the same frequency, bandwidth and SF. The coding rate (CR) can differ.'; + String get settings_presetCustom => 'Custom'; @override String get settings_frequency => 'Frequency (MHz)'; @override - String get settings_frequencyHelper => '150.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 MHz'; @override String get settings_frequencyInvalid => 'Invalid frequency (150-2500 MHz)'; @@ -957,17 +1041,24 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_txPowerInvalid => 'Invalid TX power'; @override - String get settings_clientRepeat => 'Off-Grid Repeat'; + String get settings_clientRepeat => 'Off-Grid Repeat Mode'; + + @override + String get settings_clientRepeatDescription => + 'Allows this device to repeat packets. Meant to be used where repeater coverage doesn\'t exist.\n\nThis mode uses a restricted set of frequencies. Switching it ON likely disconnects you from the wider mesh. All nodes you talk to must use the same frequency, bandwidth, and spreading factor (SF). Only the coding rate (CR) can differ.'; + + @override + String get settings_clientRepeatSwitch => 'Repeat Mode'; + + @override + String get settings_clientRepeatNote => + 'Note: Turning it OFF reverts to the previous frequency. Check your preset/parameters if you can\'t connect to the mesh afterwards.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frequency set to $freq MHz for off-grid repeat'; } - @override - String get settings_clientRepeatSubtitle => - 'Allow this device to repeat mesh packets for others'; - @override String get settings_clientRepeatFreqWarning => 'Off-grid repeat requires 433, 869.495, or 918 MHz frequency'; @@ -1297,7 +1388,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Size of each node ID recorded in the path of flood packets this radio sends: 1 byte (256 IDs, up to 64 hops), 2 bytes (65K IDs, up to 32 hops), 3 bytes (16M IDs, up to 21 hops). Larger IDs reduce collisions, but repeaters on firmware older than v1.14 drop packets with 2- or 3-byte IDs.'; + 'Size of each node\'s ID recorded in the path of flood packets sent by this radio:\n\n- 1 byte: 256 unique IDs, up to 64 hops. \"ab\".\n- 2 bytes: 65K unique IDs, up to 32 hops. \"ab12\".\n- 3 bytes: 16M unique IDs, up to 21 hops. \"ab12cd\".\n\nLarger IDs reduce collisions, but repeaters running firmware older than v1.14 drop packets using 2 and 3-byte IDs.'; @override String settings_requiresFirmware(String version) { @@ -3871,7 +3962,7 @@ class AppLocalizationsEn extends AppLocalizations { 'Tuning knobs for experienced operators'; @override - String get repeater_pathHashMode => 'Node ID size in paths'; + String get repeater_pathHashMode => 'ID hash size'; @override String get repeater_pathHashModeHelper => @@ -5626,11 +5717,21 @@ class AppLocalizationsEn extends AppLocalizations { 'MeshCore Open isn\'t running. Open it and send your reply again.'; @override - String get settings_exportBookmarks => 'Export bookmarks to Markdown'; + String get export_messagesTitle => 'Messages'; @override - String get settings_exportBookmarksSubtitle => - 'Share or save bookmarked messages as a Markdown file.'; + String get export_messagesDescription => + 'Bookmarked messages, saved as a Markdown file.'; + + @override + String get export_locationsTitle => 'Contact locations'; + + @override + String get export_locationsDescription => + 'Contacts with a known location, saved as a GPX file for map apps.'; + + @override + String get settings_exportBookmarks => 'Bookmarks'; @override String get settings_exportBookmarksSuccess => 'Bookmarks exported.'; @@ -5639,26 +5740,13 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_exportBookmarksNoBookmarks => 'No bookmarks to export.'; @override - String get settings_gpxExportRepeaters => - 'Export repeaters / room server to GPX'; + String get settings_gpxExportRepeaters => 'Repeaters and Rooms'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exports repeaters / roomserver with a location to GPX file.'; + String get settings_gpxExportContacts => 'Users / Companions'; @override - String get settings_gpxExportContacts => 'Export companions to GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exports companions with a location to GPX file.'; - - @override - String get settings_gpxExportAll => 'Export all contacts to GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exports all contacts with a location to GPX file.'; + String get settings_gpxExportAll => 'All contacts'; @override String get settings_gpxExportSuccess => 'Successfully exported GPX file.'; @@ -5712,54 +5800,41 @@ class AppLocalizationsEn extends AppLocalizations { String get contactsSettings_title => 'Contacts settings'; @override - String get contactsSettings_autoAddTitle => 'Automatic Discovery'; + String get contactsSettings_autoAddTitle => 'Auto-add contacts'; @override - String get contactsSettings_otherTitle => 'Other contact related settings'; + String get contactsSettings_autoAddDescription => + 'Add newly heard nodes of these types to the radio\'s contacts. Others can be added later from Discovered Contacts.'; @override - String get contactsSettings_autoAddUsersTitle => 'Auto-add users'; + String get contactsSettings_otherTitle => 'Contact List Limits'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Allow the companion to automatically add discovered users.'; + String get contactsSettings_autoAddUsersTitle => 'Users'; @override - String get contactsSettings_autoAddRepeatersTitle => 'Auto-add repeaters'; + String get contactsSettings_autoAddRepeatersTitle => 'Repeaters'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Allow the companion to automatically add discovered repeaters.'; + String get contactsSettings_autoAddRoomServersTitle => 'Room servers'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Auto-add room servers'; + String get contactsSettings_autoAddSensorsTitle => 'Sensors'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Allow the companion to automatically add discovered room servers.'; - - @override - String get contactsSettings_autoAddSensorsTitle => 'Auto-add sensors'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Allow the companion to automatically add discovered sensors.'; - - @override - String get contactsSettings_overwriteOldestTitle => 'Overwrite Oldest'; + String get contactsSettings_overwriteOldestTitle => 'Overwrite oldest'; @override String get contactsSettings_overwriteOldestSubtitle => - 'When the contact list is full, the oldest non-favorited contact will be replaced.'; + 'Replace the oldest non-favorited contact when the radio\'s contact list is full.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Evict discovered contacts'; + 'Limit discovered contacts'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'When enabled, the app removes the oldest discovered contacts once the discovery list reaches its limit of $limit entries.'; + return 'The app sets a $limit entry limit to the discovered contacts list, older contacts are evicted when the limit is reached. Disable to have no limits.'; } @override @@ -5926,7 +6001,7 @@ class AppLocalizationsEn extends AppLocalizations { String get radioStats_stripWaiting => 'Fetching radio stats…'; @override - String get radioStats_settingsTile => 'Radio stats'; + String get radioStats_settingsTile => 'Radio Stats'; @override String get radioStats_settingsSubtitle => @@ -7304,7 +7379,7 @@ class AppLocalizationsEn extends AppLocalizations { String get chat_loadOlderMessages => 'Load older messages'; @override - String get messageFilter_title => 'Message filter'; + String get messageFilter_title => 'Message Filter'; @override String get messageFilter_settingsSubtitle => diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 1d1a7626..901e76e5 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -404,8 +404,10 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_export => 'Exportar'; @override - String get settings_exportSubtitle => - 'Exportar contactos y repetidores como GPX'; + String get settings_exportData => 'Exportar datos'; + + @override + String get settings_exportSubtitle => 'Marcadores y ubicaciones de contactos'; @override String get backupRestore_title => 'Copia de seguridad y restauración'; @@ -602,6 +604,47 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_nodeNameHint => 'Introducir nombre de nodo'; + @override + String get nodeName_info => + 'Cada byte de tu nombre es uno menos para los mensajes de canal. Los caracteres especiales y los emojis pueden ocupar más de un byte.'; + + @override + String get nodeName_messageLength => 'Longitud del mensaje'; + + @override + String get nodeName_channelMessages => 'Mensajes de canal'; + + @override + String get nodeName_channelMessagesSubtitle => 'Reducidos por tu nombre'; + + @override + String get nodeName_directMessages => 'Mensajes directos'; + + @override + String get nodeName_directMessagesSubtitle => 'No afectados por tu nombre'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes disponibles', + one: '$count byte disponible', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes por encima del límite', + one: '$count byte por encima del límite', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Nombre actualizado'; @@ -612,6 +655,10 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frecuencia, potencia, factor de dispersión'; + @override + String get settings_unsavedChangesMessage => + 'Tienes cambios que no se han guardado en la radio.'; + @override String get settings_radioSettingsUpdated => 'Ajustes de radio actualizados'; @@ -708,6 +755,23 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_locationSubtitle => 'Coordenadas GPS'; + @override + String get location_coordinates => 'Coordenadas'; + + @override + String get location_coordinatesDescription => + 'La posición de tu nodo. Se muestra en el mapa, se usa al compartir tu ubicación y se envía en los anuncios cuando la opción Ubicación de anuncio está activada (Configuración de privacidad).'; + + @override + String get location_pickOnMap => 'Elegir en el mapa'; + + @override + String get locationPicker_hint => + 'Arrastra el mapa o toca para colocar el pin.'; + + @override + String get locationPicker_useLocation => 'Usar esta ubicación'; + @override String get settings_locationUpdated => 'Ubicación actualizada'; @@ -723,10 +787,14 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Habilita la actualización automática de la ubicación mediante GPS.'; + 'Mantiene la ubicación actualizada con el GPS de la radio.'; @override - String get settings_locationIntervalSec => 'Intervalo para GPS (Segundos)'; + String get settings_locationIntervalSec => + 'Intervalo de actualización (segundos)'; + + @override + String get settings_locationIntervalHelper => '60 a 86399 segundos'; @override String get settings_locationIntervalInvalid => @@ -743,7 +811,7 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'Configuración de cómo se agregan los contactos.'; + 'Configuración de cómo se agregan los contactos'; @override String get settings_privacyMode => 'Modo de privacidad'; @@ -767,7 +835,7 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_privacySubtitle => - 'Controlar qué información se comparte.'; + 'Controlar qué información se comparte'; @override String get settings_privacySettingsDescription => @@ -795,7 +863,7 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Para permitir un contacto, abre su chat y elige Configuración de contacto en el menú.'; + 'Para permitir un contacto específico, abre su chat y elige Configuración de contacto en el menú.'; @override String get settings_advertLocation => 'Ubicación de anuncio'; @@ -816,7 +884,7 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Enviar confirmaciones adicionales para mejorar la entrega; usa más tiempo de emisión'; + 'Enviar 2 confirmaciones (ACK) en lugar de 1 cuando la confirmación vuelve por una ruta directa. Más fiable, pero usa más tiempo de aire.'; @override String get settings_telemetryModeUpdated => 'Modo de telemetría actualizado'; @@ -829,7 +897,7 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Borrar todos los datos de ruta de los contactos.'; + 'Borrar todos los datos de ruta de los contactos'; @override String get settings_sendAdvertisement => 'Enviar anuncio'; @@ -890,12 +958,12 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_about => 'Acerca de'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'Acerca de la app'; @override - String get settings_aboutLegalese => 'Proyecto MeshCore Open Source 2026'; + String settings_aboutLegalese(String year) { + return 'Proyecto MeshCore Open Source $year'; + } @override String get settings_aboutDescription => @@ -905,6 +973,24 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Datos de elevación LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Proyecto'; + + @override + String get about_sourceCode => 'Código fuente'; + + @override + String get about_license => 'Licencia'; + + @override + String get about_openSourceLicenses => 'Licencias de código abierto'; + + @override + String get about_credits => 'Créditos'; + + @override + String get about_contributors => 'Colaboradores'; + @override String get settings_infoName => 'Nombre'; @@ -939,20 +1025,19 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_presets => 'Preajustes'; @override - String get settings_presetCustom => 'Personalizado'; + String get settings_radioParameters => 'Parámetros'; @override - String get settings_radioMatchWarning => - 'Todos los nodos con los que hablas deben usar la misma frecuencia, ancho de banda y SF. La tasa de codificación (CR) puede ser distinta.'; + String get settings_presetCustom => 'Personalizado'; @override String get settings_frequency => 'Frecuencia (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override - String get settings_frequencyInvalid => 'Frecuencia inválida (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Frecuencia inválida (150-2500 MHz)'; @override String get settings_bandwidth => 'Ancho de banda'; @@ -975,17 +1060,24 @@ class AppLocalizationsEs extends AppLocalizations { String get settings_txPowerInvalid => 'Potencia de TX inválida (0-22 dBm)'; @override - String get settings_clientRepeat => 'Repetir sin conexión'; + String get settings_clientRepeat => 'Modo de repetición fuera de red'; + + @override + String get settings_clientRepeatDescription => + 'Permite que este dispositivo repita paquetes. Pensado para zonas sin cobertura de repetidores.\n\nEste modo usa un conjunto limitado de frecuencias. Al ACTIVARLO, lo más probable es que pierdas la conexión con el resto de la malla. Todos los nodos con los que hables deben usar la misma frecuencia, ancho de banda y factor de propagación (SF). Solo la tasa de codificación (CR) puede ser distinta.'; + + @override + String get settings_clientRepeatSwitch => 'Modo de repetición'; + + @override + String get settings_clientRepeatNote => + 'Nota: Al DESACTIVARLO, se restablece la frecuencia anterior. Si después no puedes conectarte a la malla, revisa los preajustes/parámetros.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frecuencia fijada en $freq MHz para la repetición sin conexión'; } - @override - String get settings_clientRepeatSubtitle => - 'Permita que este dispositivo repita los paquetes de red para otros usuarios.'; - @override String get settings_clientRepeatFreqWarning => 'Para la comunicación fuera de la red, se requiere una frecuencia de 433, 869 o 918 MHz.'; @@ -1315,7 +1407,7 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Tamaño de cada ID de nodo registrado en la ruta de los paquetes Flood que envía esta radio: 1 byte (256 IDs, hasta 64 saltos), 2 bytes (65.000 IDs, hasta 32 saltos), 3 bytes (16 millones de IDs, hasta 21 saltos). Los IDs más grandes reducen las colisiones, pero los repetidores con un firmware anterior a la v1.14 descartan los paquetes con IDs de 2 o 3 bytes.'; + 'Tamaño del ID de cada nodo registrado en la ruta de los paquetes Flood que envía esta radio:\n\n- 1 byte: 256 IDs únicos, hasta 64 saltos. \"ab\".\n- 2 bytes: 65.000 IDs únicos, hasta 32 saltos. \"ab12\".\n- 3 bytes: 16 millones de IDs únicos, hasta 21 saltos. \"ab12cd\".\n\nLos IDs más grandes reducen las colisiones, pero los repetidores con firmware anterior a la v1.14 descartan los paquetes con IDs de 2 y 3 bytes.'; @override String settings_requiresFirmware(String version) { @@ -3925,7 +4017,7 @@ class AppLocalizationsEs extends AppLocalizations { 'Controles de ajuste para operadores experimentados'; @override - String get repeater_pathHashMode => 'Modo de hash de ruta'; + String get repeater_pathHashMode => 'Tamaño del hash de ID'; @override String get repeater_pathHashModeHelper => @@ -5701,11 +5793,21 @@ class AppLocalizationsEs extends AppLocalizations { 'MeshCore Open no está en ejecución. Ábrelo y envía tu respuesta de nuevo.'; @override - String get settings_exportBookmarks => 'Exportar marcadores a Markdown'; + String get export_messagesTitle => 'Mensajes'; @override - String get settings_exportBookmarksSubtitle => - 'Compartir o guardar los mensajes con marcador como archivo Markdown.'; + String get export_messagesDescription => + 'Mensajes marcados, guardados como archivo Markdown.'; + + @override + String get export_locationsTitle => 'Ubicaciones de contactos'; + + @override + String get export_locationsDescription => + 'Contactos con ubicación conocida, guardados como archivo GPX para apps de mapas.'; + + @override + String get settings_exportBookmarks => 'Marcadores'; @override String get settings_exportBookmarksSuccess => 'Marcadores exportados.'; @@ -5715,26 +5817,13 @@ class AppLocalizationsEs extends AppLocalizations { 'No hay marcadores para exportar.'; @override - String get settings_gpxExportRepeaters => - 'Exportar repetidores / servidores de sala a GPX'; + String get settings_gpxExportRepeaters => 'Repetidores y salas'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exporta repetidores o servidores de sala con una ubicación a un archivo GPX.'; + String get settings_gpxExportContacts => 'Usuarios / Compañeros'; @override - String get settings_gpxExportContacts => 'Exportar compañeros a GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exporta compañeros con una ubicación a un archivo GPX.'; - - @override - String get settings_gpxExportAll => 'Exportar todos los contactos a GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exporta todos los contactos con una ubicación a un archivo GPX.'; + String get settings_gpxExportAll => 'Todos los contactos'; @override String get settings_gpxExportSuccess => 'Archivo GPX exportado con éxito.'; @@ -5789,59 +5878,44 @@ class AppLocalizationsEs extends AppLocalizations { String get contactsSettings_title => 'Configuración de contactos'; @override - String get contactsSettings_autoAddTitle => 'Detección automática'; + String get contactsSettings_autoAddTitle => + 'Añadir contactos automáticamente'; + + @override + String get contactsSettings_autoAddDescription => + 'Añade a los contactos de la radio los nodos recién escuchados de estos tipos. Los demás se pueden añadir más tarde desde Contactos descubiertos.'; @override String get contactsSettings_otherTitle => - 'Otras configuraciones relacionadas con el contacto'; + 'Límites de las listas de contactos'; @override - String get contactsSettings_autoAddUsersTitle => - 'Agregar usuarios automáticamente'; + String get contactsSettings_autoAddUsersTitle => 'Usuarios'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Permitir que el compañero agregue automáticamente a los usuarios descubiertos.'; + String get contactsSettings_autoAddRepeatersTitle => 'Repetidores'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Agregar repetidores automáticamente'; + String get contactsSettings_autoAddRoomServersTitle => 'Servidores de sala'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Permitir que el compañero agregue automáticamente los repetidores descubiertos.'; - - @override - String get contactsSettings_autoAddRoomServersTitle => - 'Agregar automáticamente servidores de sala'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Permitir que el compañero agregue automáticamente los servidores de salas descubiertos.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Agregar sensores automáticamente'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Permitir que el compañero agregue automáticamente los sensores descubiertos.'; + String get contactsSettings_autoAddSensorsTitle => 'Sensores'; @override String get contactsSettings_overwriteOldestTitle => - 'Sobreescribir el más antiguo'; + 'Sobrescribir el más antiguo'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Cuando la lista de contactos esté llena, se reemplazará el contacto no favorito más antiguo.'; + 'Cuando la lista de contactos de la radio esté llena, reemplaza el contacto no favorito más antiguo.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Expulsar contactos descubiertos'; + 'Limitar contactos descubiertos'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Si está activado, la aplicación elimina los contactos descubiertos más antiguos cuando la lista de descubrimiento alcanza su límite de $limit entradas.'; + return 'La app limita la lista \"Contactos descubiertos\" a $limit entradas. Al alcanzar el límite, se eliminan los contactos más antiguos. Desactivar para quitar el límite.'; } @override diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 59e845fb..2bfc5046 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -406,8 +406,10 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_export => 'Exporter'; @override - String get settings_exportSubtitle => - 'Exporter les contacts et répéteurs au format GPX'; + String get settings_exportData => 'Exporter les données'; + + @override + String get settings_exportSubtitle => 'Favoris et emplacements des contacts'; @override String get backupRestore_title => 'Sauvegarde et restauration'; @@ -601,6 +603,47 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_nodeNameHint => 'Entrer le nom du nœud'; + @override + String get nodeName_info => + 'Chaque octet de votre nom est un octet de moins pour les messages de canal. Les caractères spéciaux et les émojis peuvent occuper plus d\'un octet.'; + + @override + String get nodeName_messageLength => 'Longueur des messages'; + + @override + String get nodeName_channelMessages => 'Messages de canal'; + + @override + String get nodeName_channelMessagesSubtitle => 'Réduits par votre nom'; + + @override + String get nodeName_directMessages => 'Messages directs'; + + @override + String get nodeName_directMessagesSubtitle => 'Non affectés par votre nom'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count octets disponibles', + one: '$count octet disponible', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count octets de trop', + one: '$count octet de trop', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Nom mis à jour'; @@ -611,6 +654,10 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Fréquence, puissance, facteur d\'espacement'; + @override + String get settings_unsavedChangesMessage => + 'Vous avez des modifications non enregistrées sur la radio.'; + @override String get settings_radioSettingsUpdated => 'Paramètres radio mis à jour'; @@ -710,6 +757,23 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_locationSubtitle => 'Coordonnées GPS'; + @override + String get location_coordinates => 'Coordonnées'; + + @override + String get location_coordinatesDescription => + 'La position de votre nœud. Elle est affichée sur la carte, utilisée quand vous partagez votre position et envoyée dans les annonces si l\'option Localisation de l\'annonce est activée (Paramètres de confidentialité).'; + + @override + String get location_pickOnMap => 'Choisir sur la carte'; + + @override + String get locationPicker_hint => + 'Déplacez la carte ou appuyez pour placer l\'épingle.'; + + @override + String get locationPicker_useLocation => 'Utiliser cet emplacement'; + @override String get settings_locationUpdated => 'Emplacement mis à jour'; @@ -725,11 +789,14 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Activer la mise à jour automatique de la localisation via GPS'; + 'Maintient la position à jour grâce au GPS de la radio.'; @override String get settings_locationIntervalSec => - 'Intervalle de mise à jour du GPS (secondes)'; + 'Intervalle de mise à jour (secondes)'; + + @override + String get settings_locationIntervalHelper => '60 à 86399 secondes'; @override String get settings_locationIntervalInvalid => @@ -798,7 +865,7 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Pour autoriser un contact, ouvrez son chat et choisissez Paramètres de contact dans le menu.'; + 'Pour autoriser un contact spécifique, ouvrez son chat et choisissez Paramètres de contact dans le menu.'; @override String get settings_advertLocation => 'Localisation de l\'annonce'; @@ -820,7 +887,7 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Envoyer des ACK supplémentaires pour une meilleure livraison ; utilise plus de temps d\'antenne'; + 'Envoyer 2 accusés de réception (ACK) au lieu de 1 lorsque l\'accusé de réception est renvoyé par un chemin direct. Plus fiable, mais utilise plus de temps d\'antenne.'; @override String get settings_telemetryModeUpdated => @@ -834,7 +901,7 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Effacer toutes les données de chemin des contacts.'; + 'Effacer toutes les données de chemin des contacts'; @override String get settings_sendAdvertisement => 'S\'annoncer'; @@ -851,7 +918,7 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_syncTimeSubtitle => - 'Régler l\'heure de l\'appareil sur celle du téléphone.'; + 'Régler l\'heure de l\'appareil sur celle du téléphone'; @override String get settings_timeSynchronized => 'Heure synchronisée'; @@ -894,12 +961,12 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_about => 'À propos'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'À propos de l\'application'; @override - String get settings_aboutLegalese => 'Projet open source MeshCore 2026'; + String settings_aboutLegalese(String year) { + return 'Projet open source MeshCore $year'; + } @override String get settings_aboutDescription => @@ -909,6 +976,24 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Données d\'élévation LOS : Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projet'; + + @override + String get about_sourceCode => 'Code source'; + + @override + String get about_license => 'Licence'; + + @override + String get about_openSourceLicenses => 'Licences open source'; + + @override + String get about_credits => 'Crédits'; + + @override + String get about_contributors => 'Contributeurs'; + @override String get settings_infoName => 'Nom'; @@ -943,20 +1028,19 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_presets => 'Préréglages'; @override - String get settings_presetCustom => 'Personnalisé'; + String get settings_radioParameters => 'Paramètres'; @override - String get settings_radioMatchWarning => - 'Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante et le même SF. Le taux de codage (CR) peut être différent.'; + String get settings_presetCustom => 'Personnalisé'; @override String get settings_frequency => 'Fréquence (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2 500,0'; + String get settings_frequencyHelper => '150,0 - 2 500,0 MHz'; @override - String get settings_frequencyInvalid => 'Fréquence invalide (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Fréquence invalide (150-2500 MHz)'; @override String get settings_bandwidth => 'Bande passante'; @@ -979,17 +1063,24 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_txPowerInvalid => 'Puissance TX invalide (0-22 dBm)'; @override - String get settings_clientRepeat => 'Répétition hors réseau'; + String get settings_clientRepeat => 'Mode de répétition hors réseau'; + + @override + String get settings_clientRepeatDescription => + 'Permet à cet appareil de répéter les paquets. Destiné aux zones sans couverture de répéteurs.\n\nCe mode utilise un ensemble restreint de fréquences. Une fois ACTIVÉ, il vous déconnecte probablement du reste du maillage. Tous les nœuds avec lesquels vous communiquez doivent utiliser la même fréquence, la même bande passante et le même facteur d\'étalement (SF). Seul le taux de codage (CR) peut différer.'; + + @override + String get settings_clientRepeatSwitch => 'Mode de répétition'; + + @override + String get settings_clientRepeatNote => + 'Remarque : une fois le mode DÉSACTIVÉ, la fréquence précédente est rétablie. Vérifiez vos préréglages/paramètres si vous ne parvenez plus à vous connecter au maillage.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Fréquence réglée sur $freq MHz pour la répétition hors réseau'; } - @override - String get settings_clientRepeatSubtitle => - 'Permettre à cet appareil de relayer les paquets du maillage pour les autres.'; - @override String get settings_clientRepeatFreqWarning => 'Pour les transmissions hors réseau, il est nécessaire d\'utiliser les fréquences de 433, 869 ou 918 MHz.'; @@ -1321,7 +1412,7 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Taille de chaque ID de nœud enregistré dans le chemin des paquets flood envoyés par cette radio : 1 octet (256 ID, jusqu\'à 64 sauts), 2 octets (65 000 ID, jusqu\'à 32 sauts), 3 octets (16 millions d\'ID, jusqu\'à 21 sauts). Des ID plus grands réduisent les collisions, mais les répéteurs exécutant un firmware antérieur à la v1.14 ignorent les paquets avec des ID de 2 ou 3 octets.'; + 'Taille de l\'ID de chaque nœud enregistré dans le chemin des paquets flood envoyés par cette radio :\n\n- 1 octet : 256 ID uniques, jusqu\'à 64 sauts. \"ab\".\n- 2 octets : 65 000 ID uniques, jusqu\'à 32 sauts. \"ab12\".\n- 3 octets : 16 millions d\'ID uniques, jusqu\'à 21 sauts. \"ab12cd\".\n\nDes ID plus grands réduisent les collisions, mais les répéteurs dont le firmware est antérieur à la v1.14 rejettent les paquets avec des ID de 2 et 3 octets.'; @override String settings_requiresFirmware(String version) { @@ -3938,7 +4029,7 @@ class AppLocalizationsFr extends AppLocalizations { 'Réglages avancés pour les opérateurs expérimentés'; @override - String get repeater_pathHashMode => 'Mode de hachage de chemin'; + String get repeater_pathHashMode => 'Taille du hachage d\'ID'; @override String get repeater_pathHashModeHelper => @@ -5719,11 +5810,21 @@ class AppLocalizationsFr extends AppLocalizations { 'MeshCore Open n\'est pas actif. Ouvrez l\'application et renvoyez votre réponse.'; @override - String get settings_exportBookmarks => 'Exporter les favoris en Markdown'; + String get export_messagesTitle => 'Messages'; @override - String get settings_exportBookmarksSubtitle => - 'Partager ou enregistrer les messages favoris dans un fichier Markdown.'; + String get export_messagesDescription => + 'Messages en favoris, enregistrés dans un fichier Markdown.'; + + @override + String get export_locationsTitle => 'Emplacements des contacts'; + + @override + String get export_locationsDescription => + 'Contacts dont l\'emplacement est connu, enregistrés dans un fichier GPX pour les applications de cartographie.'; + + @override + String get settings_exportBookmarks => 'Favoris'; @override String get settings_exportBookmarksSuccess => 'Favoris exportés.'; @@ -5732,28 +5833,13 @@ class AppLocalizationsFr extends AppLocalizations { String get settings_exportBookmarksNoBookmarks => 'Aucun favori à exporter.'; @override - String get settings_gpxExportRepeaters => - 'Exporter les répéteurs / room servers au format GPX'; + String get settings_gpxExportRepeaters => 'Répéteurs et salons'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exporte les répéteurs / roomserver avec une localisation vers un fichier GPX.'; + String get settings_gpxExportContacts => 'Utilisateurs / Compagnons'; @override - String get settings_gpxExportContacts => - 'Exporter les compagnons au format GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exporte les compagnons avec un emplacement vers un fichier GPX.'; - - @override - String get settings_gpxExportAll => - 'Exporter tous les contacts au format GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exporte tous les contacts avec une localisation vers un fichier GPX.'; + String get settings_gpxExportAll => 'Tous les contacts'; @override String get settings_gpxExportSuccess => 'Fichier GPX exporté avec succès.'; @@ -5809,58 +5895,41 @@ class AppLocalizationsFr extends AppLocalizations { String get contactsSettings_title => 'Paramètres des contacts'; @override - String get contactsSettings_autoAddTitle => 'Découverte automatique'; + String get contactsSettings_autoAddTitle => 'Ajout automatique de contacts'; @override - String get contactsSettings_otherTitle => - 'Autres paramètres liés aux contacts'; + String get contactsSettings_autoAddDescription => + 'Ajoute aux contacts de la radio les nœuds de ces types nouvellement entendus. Les autres peuvent être ajoutés plus tard depuis Contacts découverts.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Ajouter automatiquement les utilisateurs'; + String get contactsSettings_otherTitle => 'Limites des listes de contacts'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Autoriser le compagnon à ajouter automatiquement les utilisateurs découverts'; + String get contactsSettings_autoAddUsersTitle => 'Utilisateurs'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Ajouter automatiquement les répéteurs'; + String get contactsSettings_autoAddRepeatersTitle => 'Répéteurs'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Autoriser le compagnon à ajouter automatiquement les répéteurs découverts'; + String get contactsSettings_autoAddRoomServersTitle => 'Serveurs de salle'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Ajouter automatiquement les room servers'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Autoriser le compagnon à ajouter automatiquement les room servers découverts'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Ajouter automatiquement les capteurs'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Autoriser le compagnon à ajouter automatiquement les capteurs découverts.'; + String get contactsSettings_autoAddSensorsTitle => 'Capteurs'; @override String get contactsSettings_overwriteOldestTitle => 'Écraser le plus ancien'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Lorsque la liste de contacts est pleine, le contact le plus ancien non favori sera remplacé.'; + 'Lorsque la liste de contacts de la radio est pleine, remplace le plus ancien contact non favori.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Évincer les contacts découverts'; + 'Limiter les contacts découverts'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Lorsque cette option est activée, l\'application supprime les contacts découverts les plus anciens dès que la liste de découverte atteint sa limite de $limit entrées.'; + return 'L\'application limite la liste « Contacts découverts » à $limit entrées. Une fois la limite atteinte, les contacts les plus anciens sont supprimés. Désactivez pour supprimer la limite.'; } @override diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index d9f9811a..97888e91 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -402,8 +402,10 @@ class AppLocalizationsHu extends AppLocalizations { String get settings_export => 'Exportálás'; @override - String get settings_exportSubtitle => - 'Névjegyek és átjátszók exportálása GPX-ként'; + String get settings_exportData => 'Adatok exportálása'; + + @override + String get settings_exportSubtitle => 'Könyvjelzők és kapcsolatok helyadatai'; @override String get backupRestore_title => 'Mentés és visszaállítás'; @@ -597,6 +599,47 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_nodeNameHint => 'Írja be a csomópont nevét'; + @override + String get nodeName_info => + 'A neve minden bájtjával egy bájttal kevesebb marad a csatornaüzeneteknek. Az ékezetes betűk, a speciális karakterek és az emojik egynél több bájtot foglalhatnak.'; + + @override + String get nodeName_messageLength => 'Üzenethossz'; + + @override + String get nodeName_channelMessages => 'Csatornaüzenetek'; + + @override + String get nodeName_channelMessagesSubtitle => 'A neve csökkenti'; + + @override + String get nodeName_directMessages => 'Közvetlen üzenetek'; + + @override + String get nodeName_directMessagesSubtitle => 'A neve nem befolyásolja'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bájt elérhető', + one: '1 bájt elérhető', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bájttal túllépi a korlátot', + one: '1 bájttal túllépi a korlátot', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Név frissítve'; @@ -607,6 +650,10 @@ class AppLocalizationsHu extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frekvencia, teljesítmény, szórási tényező'; + @override + String get settings_unsavedChangesMessage => + 'Vannak módosítások, amelyek nincsenek elmentve a rádióra.'; + @override String get settings_radioSettingsUpdated => 'A rádió beállításai frissítve'; @@ -704,6 +751,23 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS koordináták'; + @override + String get location_coordinates => 'Koordináták'; + + @override + String get location_coordinatesDescription => + 'A csomópont pozíciója. Megjelenik a térképen, ezt használja a helymegosztás, és a hirdetésekben is szerepel, ha be van kapcsolva a „Hirdetés helye” (Adatvédelmi beállítások).'; + + @override + String get location_pickOnMap => 'Kiválasztás a térképen'; + + @override + String get locationPicker_hint => + 'Húzza a térképet, vagy koppintson a jelölő elhelyezéséhez.'; + + @override + String get locationPicker_useLocation => 'A kijelölt hely használata'; + @override String get settings_locationUpdated => 'A hely- és GPS-beállítások frissítve'; @@ -720,10 +784,14 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Lehetővé teszi a GPS számára a hely automatikus frissítését.'; + 'Folyamatosan frissíti a helyet a rádió GPS-e alapján.'; @override - String get settings_locationIntervalSec => 'GPS intervallum (másodperc)'; + String get settings_locationIntervalSec => + 'Frissítési intervallum (másodperc)'; + + @override + String get settings_locationIntervalHelper => '60-tól 86399 másodpercig'; @override String get settings_locationIntervalInvalid => @@ -740,7 +808,7 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'A névjegyek hozzáadásának beállításai.'; + 'A névjegyek hozzáadásának beállításai'; @override String get settings_privacyMode => 'Adatvédelmi mód'; @@ -764,7 +832,7 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_privacySubtitle => - 'Szabályozza, hogy milyen információkat osztanak meg.'; + 'Szabályozza, hogy milyen információkat osztanak meg'; @override String get settings_privacySettingsDescription => @@ -791,7 +859,7 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Ha engedélyezni szeretné a kapcsolatot, nyissa meg a csevegését, és válassza a menüben a Kapcsolati beállítások lehetőséget.'; + 'Ha engedélyezni szeretne egy adott kapcsolatot, nyissa meg a csevegését, és válassza a menüben a Kapcsolati beállítások lehetőséget.'; @override String get settings_advertLocation => 'Hirdetés helye'; @@ -813,7 +881,7 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'További ACK-kat küld a jobb kézbesítés érdekében; több műsoridőt igényel'; + '2 nyugtát (ACK) küld 1 helyett, ha a nyugta közvetlen úton megy vissza. Megbízhatóbb, de több adásidőt használ.'; @override String get settings_telemetryModeUpdated => 'Telemetriai mód frissítve'; @@ -826,7 +894,7 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Törölje az összes elérési utat a névjegyekből.'; + 'Törölje az összes elérési utat a névjegyekből'; @override String get settings_sendAdvertisement => 'Hirdetés küldése'; @@ -882,16 +950,16 @@ class AppLocalizationsHu extends AppLocalizations { String get settings_appDebugLogSubtitle => 'Alkalmazás hibakeresési üzenetei'; @override - String get settings_about => 'Körülbelül'; + String get settings_about => 'Névjegy'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; + String get settings_aboutTheApp => 'Az alkalmazásról'; + + @override + String settings_aboutLegalese(String year) { + return '$year MeshCore nyílt forráskódú projekt'; } - @override - String get settings_aboutLegalese => '2026 MeshCore nyílt forráskódú projekt'; - @override String get settings_aboutDescription => 'Nyílt forráskódú Flutter kliens MeshCore LoRa mesh hálózati eszközökhöz.'; @@ -900,6 +968,24 @@ class AppLocalizationsHu extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS magassági adatok: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projekt'; + + @override + String get about_sourceCode => 'Forráskód'; + + @override + String get about_license => 'Licenc'; + + @override + String get about_openSourceLicenses => 'Nyílt forráskódú licencek'; + + @override + String get about_credits => 'Köszönetnyilvánítás'; + + @override + String get about_contributors => 'Közreműködők'; + @override String get settings_infoName => 'Név'; @@ -934,21 +1020,20 @@ class AppLocalizationsHu extends AppLocalizations { String get settings_presets => 'Előbeállítások'; @override - String get settings_presetCustom => 'Egyéni'; + String get settings_radioParameters => 'Paraméterek'; @override - String get settings_radioMatchWarning => - 'Az összes csomóponttal, amelyhez kapcsolódik, azonos frekvenciát, sávszélességet és SF-et kell használni. A kódolási arány (CR) eltérhet.'; + String get settings_presetCustom => 'Egyéni'; @override String get settings_frequency => 'Frekvencia (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override String get settings_frequencyInvalid => - 'Érvénytelen frekvencia (300-2500 MHz)'; + 'Érvénytelen frekvencia (150-2500 MHz)'; @override String get settings_bandwidth => 'Sávszélesség'; @@ -972,17 +1057,24 @@ class AppLocalizationsHu extends AppLocalizations { 'Érvénytelen TX teljesítmény (0-22 dBm)'; @override - String get settings_clientRepeat => 'Hálózaton kívüli ismétlés'; + String get settings_clientRepeat => 'Hálózaton kívüli ismétlési mód'; + + @override + String get settings_clientRepeatDescription => + 'Lehetővé teszi, hogy ez az eszköz továbbítsa a csomagokat. Olyan helyeken való használatra készült, ahol nincs átjátszó-lefedettség.\n\nEz a mód korlátozott frekvenciakészletet használ. Ha BEKAPCSOLJA, valószínűleg elveszíti a kapcsolatot a tágabb mesh hálózattal. Minden csomópontnak, amellyel kommunikál, ugyanazt a frekvenciát, sávszélességet és szórási tényezőt (SF) kell használnia. Csak a kódolási sebesség (CR) térhet el.'; + + @override + String get settings_clientRepeatSwitch => 'Ismétlési mód'; + + @override + String get settings_clientRepeatNote => + 'Megjegyzés: Ha KIKAPCSOLJA, visszaáll az előző frekvencia. Ha ezután nem tud csatlakozni a mesh hálózathoz, ellenőrizze az előbeállításokat/paramétereket.'; @override String settings_clientRepeatFrequencyNote(String freq) { return '$freq MHz frekvencia beállítva a hálózaton kívüli ismétléshez'; } - @override - String get settings_clientRepeatSubtitle => - 'Engedélyezze az eszköznek, hogy megismételje a mesh-csomagokat mások számára'; - @override String get settings_clientRepeatFreqWarning => 'A hálózaton kívüli ismétlés 433, 869 vagy 918 MHz frekvenciát igényel'; @@ -1314,7 +1406,7 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Az elküldött flood csomagok útvonalában rögzített csomópontazonosító mérete: 1 bájt (256 azonosító, legfeljebb 64 ugrás), 2 bájt (65 ezer, legfeljebb 32 ugrás), 3 bájt (16 millió, legfeljebb 21 ugrás). A nagyobb azonosítók csökkentik az ütközéseket, de az v1.14-nél régebbi firmware-t futtató átjátszók eldobják a 2 vagy 3 bájtos azonosítókat tartalmazó csomagokat.'; + 'Az egyes csomópontok azonosítójának mérete az ezen rádió által küldött flood csomagok útvonalában:\n\n- 1 bájt: 256 egyedi azonosító, legfeljebb 64 ugrás. \"ab\".\n- 2 bájt: 65 ezer egyedi azonosító, legfeljebb 32 ugrás. \"ab12\".\n- 3 bájt: 16 millió egyedi azonosító, legfeljebb 21 ugrás. \"ab12cd\".\n\nA nagyobb azonosítók csökkentik az ütközéseket, de a v1.14-nél régebbi firmware-t futtató átjátszók eldobják a 2 és 3 bájtos azonosítót használó csomagokat.'; @override String settings_requiresFirmware(String version) { @@ -3924,8 +4016,7 @@ class AppLocalizationsHu extends AppLocalizations { 'Finomhangolási beállítások tapasztalt üzemeltetőknek'; @override - String get repeater_pathHashMode => - 'Csomópont-azonosító mérete az útvonalakban'; + String get repeater_pathHashMode => 'Azonosító-hash mérete'; @override String get repeater_pathHashModeHelper => @@ -5703,41 +5794,37 @@ class AppLocalizationsHu extends AppLocalizations { 'A MeshCore Open nem fut. Nyissa meg, és küldje el a választ újra.'; @override - String get settings_exportBookmarks => - 'Könyvjelzők exportálása Markdown formátumba'; + String get export_messagesTitle => 'Üzenetek'; @override - String get settings_exportBookmarksSubtitle => - 'A könyvjelzős üzenetek megosztása vagy mentése Markdown fájlként.'; + String get export_messagesDescription => + 'Könyvjelzővel ellátott üzenetek, Markdown-fájlként mentve.'; @override - String get settings_exportBookmarksSuccess => 'A könyvjelzők exportálva.'; + String get export_locationsTitle => 'Kapcsolatok helyadatai'; + + @override + String get export_locationsDescription => + 'Ismert helyű kapcsolatok, GPX-fájlként mentve térképalkalmazásokhoz.'; + + @override + String get settings_exportBookmarks => 'Könyvjelzők'; + + @override + String get settings_exportBookmarksSuccess => 'Könyvjelzők exportálva.'; @override String get settings_exportBookmarksNoBookmarks => 'Nincs exportálható könyvjelző.'; @override - String get settings_gpxExportRepeaters => - 'Ismétlők / szobaszerver exportálása GPX-be'; + String get settings_gpxExportRepeaters => 'Átjátszók és szobák'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exportálja az átjátszókat / szobaszervereket a hellyel GPX-fájlba.'; + String get settings_gpxExportContacts => 'Felhasználók / Kísérők'; @override - String get settings_gpxExportContacts => 'Exportáljon társokat a GPX-be'; - - @override - String get settings_gpxExportContactsSubtitle => - 'A hellyel rendelkező kísérőket GPX-fájlba exportálja.'; - - @override - String get settings_gpxExportAll => 'Az összes névjegy exportálása a GPX-be'; - - @override - String get settings_gpxExportAllSubtitle => - 'A hellyel rendelkező összes névjegyet GPX-fájlba exportálja.'; + String get settings_gpxExportAll => 'Összes kapcsolat'; @override String get settings_gpxExportSuccess => 'A GPX fájl sikeresen exportálva.'; @@ -5791,58 +5878,42 @@ class AppLocalizationsHu extends AppLocalizations { String get contactsSettings_title => 'Névjegyek beállításai'; @override - String get contactsSettings_autoAddTitle => 'Automatikus felfedezés'; + String get contactsSettings_autoAddTitle => + 'Kapcsolatok automatikus hozzáadása'; @override - String get contactsSettings_otherTitle => - 'Egyéb kapcsolattartási beállítások'; + String get contactsSettings_autoAddDescription => + 'Az ilyen típusú, újonnan hallott csomópontok bekerülnek a rádió kapcsolatai közé. A többit később a „Felfedezett kapcsolatok” képernyőn adhatja hozzá.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Felhasználók automatikus hozzáadása'; + String get contactsSettings_otherTitle => 'Kapcsolatlista korlátai'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Engedélyezze a társ számára, hogy automatikusan hozzáadja a felfedezett felhasználókat.'; + String get contactsSettings_autoAddUsersTitle => 'Felhasználók'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Ismétlők automatikus hozzáadása'; + String get contactsSettings_autoAddRepeatersTitle => 'Átjátszók'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Engedélyezze a társnak, hogy automatikusan hozzáadja a felfedezett átjátszókat.'; + String get contactsSettings_autoAddRoomServersTitle => 'Szobaszerverek'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Szobaszerverek automatikus hozzáadása'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Engedélyezze a társ számára, hogy automatikusan hozzáadja a felfedezett szobaszervereket.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Érzékelők automatikus hozzáadása'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Engedélyezze a társ számára a felfedezett érzékelők automatikus hozzáadását.'; + String get contactsSettings_autoAddSensorsTitle => 'Érzékelők'; @override String get contactsSettings_overwriteOldestTitle => 'A legrégebbi felülírása'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Amikor a névjegylista megtelik, a legrégebbi, nem kedvenc névjegy lecserélődik.'; + 'Ha a rádió kapcsolatlistája megtelt, a legrégebbi, nem kedvenc kapcsolat lecserélődik.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Felfedezett kapcsolatok eltávolítása'; + 'Felfedezett kapcsolatok korlátozása'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Ha engedélyezve van, az alkalmazás eltávolítja a legrégebbi felfedezett kapcsolatokat, amint a felfedezési lista eléri a(z) $limit bejegyzéses korlátot.'; + return 'Az alkalmazás a „Felfedezett kapcsolatok” listát $limit bejegyzésre korlátozza. A korlát elérésekor a régebbi kapcsolatok törlődnek. Kikapcsolva nincs korlát.'; } @override diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index c55808e7..e757cc1d 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -406,8 +406,10 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_export => 'Esporta'; @override - String get settings_exportSubtitle => - 'Esporta contatti e ripetitori come GPX'; + String get settings_exportData => 'Esporta dati'; + + @override + String get settings_exportSubtitle => 'Segnalibri e posizioni dei contatti'; @override String get backupRestore_title => 'Backup e ripristino'; @@ -600,6 +602,47 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_nodeNameHint => 'Inserisci nome nodo'; + @override + String get nodeName_info => + 'Ogni byte del tuo nome è uno in meno per i messaggi del canale. I caratteri speciali e le emoji possono occupare più di un byte.'; + + @override + String get nodeName_messageLength => 'Lunghezza dei messaggi'; + + @override + String get nodeName_channelMessages => 'Messaggi del canale'; + + @override + String get nodeName_channelMessagesSubtitle => 'Ridotti dal tuo nome'; + + @override + String get nodeName_directMessages => 'Messaggi diretti'; + + @override + String get nodeName_directMessagesSubtitle => 'Non influenzati dal tuo nome'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count byte disponibili', + one: '$count byte disponibile', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count byte oltre il limite', + one: '$count byte oltre il limite', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Nome aggiornato'; @@ -610,6 +653,10 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frequenza, potenza, fattore di diffusione'; + @override + String get settings_unsavedChangesMessage => + 'Hai modifiche non salvate sulla radio.'; + @override String get settings_radioSettingsUpdated => 'Impostazioni radio aggiornate'; @@ -708,6 +755,23 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_locationSubtitle => 'Coordinate GPS'; + @override + String get location_coordinates => 'Coordinate'; + + @override + String get location_coordinatesDescription => + 'La posizione del tuo nodo. Viene mostrata sulla mappa, usata quando condividi la tua posizione e inviata negli annunci quando l\'opzione Posizione dell\'annuncio è attiva (Impostazioni sulla privacy).'; + + @override + String get location_pickOnMap => 'Scegli sulla mappa'; + + @override + String get locationPicker_hint => + 'Trascina la mappa o tocca per posizionare il pin.'; + + @override + String get locationPicker_useLocation => 'Usa questa posizione'; + @override String get settings_locationUpdated => 'Posizione e impostazioni GPS aggiornate'; @@ -724,10 +788,14 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Abilita l\'aggiornamento automatico della posizione tramite GPS.'; + 'Mantiene la posizione aggiornata tramite il GPS della radio.'; @override - String get settings_locationIntervalSec => 'Intervallo GPS (Secondi)'; + String get settings_locationIntervalSec => + 'Intervallo di aggiornamento (secondi)'; + + @override + String get settings_locationIntervalHelper => 'Da 60 a 86399 secondi'; @override String get settings_locationIntervalInvalid => @@ -768,7 +836,7 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_privacySubtitle => - 'Controlla le informazioni che vengono condivise.'; + 'Controlla le informazioni che vengono condivise'; @override String get settings_privacySettingsDescription => @@ -796,7 +864,7 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Per consentire un contatto, apri la sua chat e scegli Impostazioni di contatto dal menu.'; + 'Per consentire un contatto specifico, apri la sua chat e scegli Impostazioni di contatto dal menu.'; @override String get settings_advertLocation => 'Posizione dell\'annuncio'; @@ -818,7 +886,7 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Invia ACK aggiuntivi per una consegna migliore; usa più tempo di trasmissione'; + 'Invia 2 conferme (ACK) invece di 1 quando la conferma torna indietro tramite un percorso diretto. Più affidabile, ma usa più tempo di trasmissione.'; @override String get settings_telemetryModeUpdated => 'Modalità telemetria aggiornata'; @@ -831,7 +899,7 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Cancella tutti i dati di percorso dai contatti.'; + 'Cancella tutti i dati di percorso dai contatti'; @override String get settings_sendAdvertisement => 'Invia annuncio'; @@ -890,12 +958,12 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_about => 'Informazioni'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'Informazioni sull\'app'; @override - String get settings_aboutLegalese => '2026 Progetto open source MeshCore'; + String settings_aboutLegalese(String year) { + return '$year Progetto open source MeshCore'; + } @override String get settings_aboutDescription => @@ -905,6 +973,24 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Dati di elevazione LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Progetto'; + + @override + String get about_sourceCode => 'Codice sorgente'; + + @override + String get about_license => 'Licenza'; + + @override + String get about_openSourceLicenses => 'Licenze open source'; + + @override + String get about_credits => 'Riconoscimenti'; + + @override + String get about_contributors => 'Collaboratori'; + @override String get settings_infoName => 'Nome'; @@ -939,20 +1025,19 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_presets => 'Preset'; @override - String get settings_presetCustom => 'Personalizzato'; + String get settings_radioParameters => 'Parametri'; @override - String get settings_radioMatchWarning => - 'Tutti i nodi con cui parli devono usare la stessa frequenza, larghezza di banda e SF. Il coding rate (CR) può essere diverso.'; + String get settings_presetCustom => 'Personalizzato'; @override String get settings_frequency => 'Frequenza (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override - String get settings_frequencyInvalid => 'Frequenza non valida (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Frequenza non valida (150-2500 MHz)'; @override String get settings_bandwidth => 'Larghezza di banda'; @@ -975,17 +1060,24 @@ class AppLocalizationsIt extends AppLocalizations { String get settings_txPowerInvalid => 'Potenza TX non valida (0-22 dBm)'; @override - String get settings_clientRepeat => 'Ripetizione \"fuori dalla rete\"'; + String get settings_clientRepeat => 'Modalità di ripetizione fuori rete'; + + @override + String get settings_clientRepeatDescription => + 'Permette a questo dispositivo di ripetere i pacchetti. Pensato per le zone senza copertura di ripetitori.\n\nQuesta modalità usa un insieme limitato di frequenze. ATTIVANDOLA, probabilmente perderai la connessione con il resto della mesh. Tutti i nodi con cui comunichi devono usare la stessa frequenza, larghezza di banda e fattore di diffusione (SF). Solo il tasso di codifica (CR) può essere diverso.'; + + @override + String get settings_clientRepeatSwitch => 'Modalità di ripetizione'; + + @override + String get settings_clientRepeatNote => + 'Nota: DISATTIVANDOLA, viene ripristinata la frequenza precedente. Se poi non riesci a connetterti alla mesh, controlla preset/parametri.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frequenza impostata su $freq MHz per la ripetizione fuori rete'; } - @override - String get settings_clientRepeatSubtitle => - 'Permetti a questo dispositivo di ripetere i pacchetti di rete per gli altri.'; - @override String get settings_clientRepeatFreqWarning => 'Per la comunicazione fuori rete, è necessario utilizzare frequenze di 433, 869 o 918 MHz.'; @@ -1318,7 +1410,7 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Dimensione di ogni ID di nodo registrato nel percorso dei pacchetti flood inviati da questa radio: 1 byte (256 ID, fino a 64 salti), 2 byte (65.000 ID, fino a 32 salti), 3 byte (16 milioni di ID, fino a 21 salti). ID più grandi riducono le collisioni, ma i ripetitori con firmware precedente alla v1.14 scartano i pacchetti con ID a 2 o 3 byte.'; + 'Dimensione dell\'ID di ogni nodo registrato nel percorso dei pacchetti flood inviati da questa radio:\n\n- 1 byte: 256 ID univoci, fino a 64 salti. \"ab\".\n- 2 byte: 65.000 ID univoci, fino a 32 salti. \"ab12\".\n- 3 byte: 16 milioni di ID univoci, fino a 21 salti. \"ab12cd\".\n\nID più grandi riducono le collisioni, ma i ripetitori con firmware precedente alla v1.14 scartano i pacchetti con ID a 2 e 3 byte.'; @override String settings_requiresFirmware(String version) { @@ -3929,7 +4021,7 @@ class AppLocalizationsIt extends AppLocalizations { 'Manopole di regolazione per operatori esperti'; @override - String get repeater_pathHashMode => 'Modalità di hashing del percorso'; + String get repeater_pathHashMode => 'Dimensione dell\'hash ID'; @override String get repeater_pathHashModeHelper => @@ -5706,11 +5798,21 @@ class AppLocalizationsIt extends AppLocalizations { 'MeshCore Open non è in esecuzione. Aprila e invia di nuovo la risposta.'; @override - String get settings_exportBookmarks => 'Esporta segnalibri in Markdown'; + String get export_messagesTitle => 'Messaggi'; @override - String get settings_exportBookmarksSubtitle => - 'Condividi o salva i messaggi con segnalibro come file Markdown.'; + String get export_messagesDescription => + 'Messaggi nei segnalibri, salvati come file Markdown.'; + + @override + String get export_locationsTitle => 'Posizioni dei contatti'; + + @override + String get export_locationsDescription => + 'Contatti con posizione nota, salvati come file GPX per le app di mappe.'; + + @override + String get settings_exportBookmarks => 'Segnalibri'; @override String get settings_exportBookmarksSuccess => 'Segnalibri esportati.'; @@ -5720,26 +5822,13 @@ class AppLocalizationsIt extends AppLocalizations { 'Nessun segnalibro da esportare.'; @override - String get settings_gpxExportRepeaters => - 'Esporta ripetitori / server di stanza in GPX'; + String get settings_gpxExportRepeaters => 'Ripetitori e stanze'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Esporta ripetitori / roomserver con una posizione in un file GPX.'; + String get settings_gpxExportContacts => 'Utenti / Companion'; @override - String get settings_gpxExportContacts => 'Esporta compagni in GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Esporta i compagni con una posizione in un file GPX.'; - - @override - String get settings_gpxExportAll => 'Esporta tutti i contatti in GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Esporta tutti i contatti con una posizione in un file GPX.'; + String get settings_gpxExportAll => 'Tutti i contatti'; @override String get settings_gpxExportSuccess => @@ -5795,59 +5884,43 @@ class AppLocalizationsIt extends AppLocalizations { String get contactsSettings_title => 'Impostazioni dei contatti'; @override - String get contactsSettings_autoAddTitle => 'Scoperta automatica'; + String get contactsSettings_autoAddTitle => + 'Aggiunta automatica dei contatti'; @override - String get contactsSettings_otherTitle => - 'Altre impostazioni relative ai contatti'; + String get contactsSettings_autoAddDescription => + 'Aggiunge ai contatti della radio i nuovi nodi ascoltati di questi tipi. Gli altri si possono aggiungere più tardi da Contatti scoperti.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Aggiungere utenti automaticamente'; + String get contactsSettings_otherTitle => 'Limiti degli elenchi contatti'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Consenti al compagno di aggiungere automaticamente gli utenti scoperti.'; + String get contactsSettings_autoAddUsersTitle => 'Utenti'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Aggiungere ripetitori automaticamente'; + String get contactsSettings_autoAddRepeatersTitle => 'Ripetitori'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Consenti al compagno di aggiungere automaticamente i ripetitori scoperti.'; + String get contactsSettings_autoAddRoomServersTitle => 'Server stanza'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Aggiungere automaticamente i server delle stanze'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Consenti al compagno di aggiungere automaticamente i server delle stanze scoperte.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Aggiungere automaticamente i sensori'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Consenti al compagno di aggiungere automaticamente i sensori scoperti'; + String get contactsSettings_autoAddSensorsTitle => 'Sensori'; @override String get contactsSettings_overwriteOldestTitle => - 'Sostituisci il più vecchio'; + 'Sovrascrivi il più vecchio'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Quando l\'elenco dei contatti è pieno, il contatto più vecchio non tra i preferiti verrà sostituito.'; + 'Quando l\'elenco dei contatti della radio è pieno, sostituisce il contatto più vecchio non tra i preferiti.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Rimuovi i contatti scoperti'; + 'Limita i contatti scoperti'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Se abilitato, l\'app rimuove i contatti scoperti più vecchi quando l\'elenco dei contatti scoperti raggiunge il limite di $limit voci.'; + return 'L\'app limita l\'elenco \"Contatti scoperti\" a $limit voci. Al raggiungimento del limite, i contatti più vecchi vengono rimossi. Disattiva per rimuovere il limite.'; } @override diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index e62c3d9c..eec2a32e 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -387,7 +387,10 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_export => 'エクスポート'; @override - String get settings_exportSubtitle => '連絡先とリピータをGPXでエクスポート'; + String get settings_exportData => 'データのエクスポート'; + + @override + String get settings_exportSubtitle => 'ブックマークと連絡先の位置情報'; @override String get backupRestore_title => 'バックアップと復元'; @@ -573,6 +576,45 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_nodeNameHint => 'ノード名を入力してください'; + @override + String get nodeName_info => + '名前に使う1バイトごとに、チャンネルメッセージに使える容量が1バイト減ります。漢字・かな・絵文字は1文字で複数バイトを使います。'; + + @override + String get nodeName_messageLength => 'メッセージの長さ'; + + @override + String get nodeName_channelMessages => 'チャンネルメッセージ'; + + @override + String get nodeName_channelMessagesSubtitle => '名前の分だけ減ります'; + + @override + String get nodeName_directMessages => 'ダイレクトメッセージ'; + + @override + String get nodeName_directMessagesSubtitle => '名前の影響を受けません'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count バイト使用可能', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '上限を $count バイト超えています', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => '名前を更新しました'; @@ -582,6 +624,9 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_radioSettingsSubtitle => '周波数、電力、スプレッドファクター'; + @override + String get settings_unsavedChangesMessage => 'ラジオに保存されていない変更があります。'; + @override String get settings_radioSettingsUpdated => 'ラジオの設定が更新されました'; @@ -673,6 +718,22 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS 座標'; + @override + String get location_coordinates => '座標'; + + @override + String get location_coordinatesDescription => + 'ノードの位置です。地図に表示され、位置情報を共有するときに使われます。プライバシー設定で「アドバート位置」を有効にすると、アドバートにも含まれます。'; + + @override + String get location_pickOnMap => '地図で選択'; + + @override + String get locationPicker_hint => '地図をドラッグするか、タップしてピンを置いてください。'; + + @override + String get locationPicker_useLocation => 'この場所を使用'; + @override String get settings_locationUpdated => '場所とGPS設定が更新されました'; @@ -686,10 +747,13 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_locationGPSEnable => 'GPS を有効にする'; @override - String get settings_locationGPSEnableSubtitle => 'GPS が自動的に位置情報を更新できるようにします。'; + String get settings_locationGPSEnableSubtitle => 'ラジオの GPS で位置情報を最新に保ちます。'; @override - String get settings_locationIntervalSec => 'GPS 更新間隔(秒)'; + String get settings_locationIntervalSec => '更新間隔(秒)'; + + @override + String get settings_locationIntervalHelper => '60~86399秒'; @override String get settings_locationIntervalInvalid => @@ -727,7 +791,7 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_privacy => 'プライバシー設定'; @override - String get settings_privacySubtitle => '共有する情報の内容を管理する。'; + String get settings_privacySubtitle => '共有する情報の内容を管理する'; @override String get settings_privacySettingsDescription => @@ -753,7 +817,7 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_telemetryPerContactHint => - '連絡先に許可するには、そのチャットを開いてメニューから「連絡先設定」を選択してください。'; + '特定の連絡先に許可するには、そのチャットを開いてメニューから「連絡先設定」を選択してください。'; @override String get settings_advertLocation => 'アドバート位置'; @@ -772,7 +836,8 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_multiAck => 'マルチ ACK'; @override - String get settings_multiAckSubtitle => '配信を確実にするため ACK を追加送信します。放送時間が長くなります'; + String get settings_multiAckSubtitle => + '確認応答(ACK)を直接経路で返送する場合は、1 つではなく 2 つ送信します。より確実ですが、通信時間を多く使います。'; @override String get settings_telemetryModeUpdated => 'テレメトリモードが更新されました'; @@ -784,7 +849,7 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_deleteAllPaths => 'すべての経路を削除'; @override - String get settings_deleteAllPathsSubtitle => '連絡先からすべての経路データを消去します。'; + String get settings_deleteAllPathsSubtitle => '連絡先からすべての経路データを消去します'; @override String get settings_sendAdvertisement => 'アドバートを送信'; @@ -840,12 +905,12 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_about => '概要'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'アプリについて'; @override - String get settings_aboutLegalese => '2026 MeshCore オープンソースプロジェクト'; + String settings_aboutLegalese(String year) { + return '$year MeshCore オープンソースプロジェクト'; + } @override String get settings_aboutDescription => @@ -855,6 +920,24 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS 標高データ:Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'プロジェクト'; + + @override + String get about_sourceCode => 'ソースコード'; + + @override + String get about_license => 'ライセンス'; + + @override + String get about_openSourceLicenses => 'オープンソースライセンス'; + + @override + String get about_credits => 'クレジット'; + + @override + String get about_contributors => 'コントリビューター'; + @override String get settings_infoName => '名前'; @@ -889,20 +972,19 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_presets => 'プリセット'; @override - String get settings_presetCustom => 'カスタム'; + String get settings_radioParameters => 'パラメータ'; @override - String get settings_radioMatchWarning => - '通信するすべてのノードで、周波数・帯域幅・伝播係数を揃える必要があります。コーディング速度(CR)は異なっていても構いません。'; + String get settings_presetCustom => 'カスタム'; @override String get settings_frequency => '周波数 (MHz)'; @override - String get settings_frequencyHelper => '300.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 MHz'; @override - String get settings_frequencyInvalid => '無効な周波数 (300-2500 MHz)'; + String get settings_frequencyInvalid => '無効な周波数 (150-2500 MHz)'; @override String get settings_bandwidth => '帯域幅'; @@ -925,17 +1007,24 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_txPowerInvalid => '無効な送信電力 (0-22 dBm)'; @override - String get settings_clientRepeat => 'オフグリッド中継'; + String get settings_clientRepeat => 'オフグリッド中継モード'; + + @override + String get settings_clientRepeatDescription => + 'このデバイスでパケットを中継できるようにします。リピータのカバー範囲外での使用を想定しています。\n\nこのモードでは限られた周波数のみを使用します。ON にすると、より広いメッシュから切断される可能性が高くなります。通信するすべてのノードで、周波数、帯域幅、伝播係数(SF)を同じにする必要があります。コーディング速度(CR)だけは異なっていても構いません。'; + + @override + String get settings_clientRepeatSwitch => '中継モード'; + + @override + String get settings_clientRepeatNote => + '注:OFF にすると、以前の周波数に戻ります。その後メッシュに接続できない場合は、プリセット/パラメータを確認してください。'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'オフグリッド中継用に周波数を $freq MHz に設定'; } - @override - String get settings_clientRepeatSubtitle => - 'このデバイスが他のデバイス向けにメッシュパケットを中継できるようにします。'; - @override String get settings_clientRepeatFreqWarning => 'オフグリッド中継には 433、869、または 918 MHz の周波数が必要です。'; @@ -1257,7 +1346,7 @@ class AppLocalizationsJa extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'このラジオが送信するフラッドパケットの経路に記録される各ノード ID のサイズ:1 バイト(256 個の ID、最大 64 ホップ)、2 バイト(65,000 個の ID、最大 32 ホップ)、3 バイト(160 万個の ID、最大 21 ホップ)。ID が大きいほど衝突が減りますが、v1.14 より古いファームウェアのリピータは 2 バイトまたは 3 バイトの ID を含むパケットを破棄します。'; + 'このラジオが送信するフラッドパケットの経路に記録される、各ノード ID のサイズ:\n\n- 1 バイト:256 通りの ID、最大 64 ホップ。\"ab\"。\n- 2 バイト:6.5 万通りの ID、最大 32 ホップ。\"ab12\"。\n- 3 バイト:1,600 万通りの ID、最大 21 ホップ。\"ab12cd\"。\n\nID が大きいほど衝突は減りますが、v1.14 より古いファームウェアのリピータは 2 バイトまたは 3 バイトの ID を使うパケットを破棄します。'; @override String settings_requiresFirmware(String version) { @@ -3765,7 +3854,7 @@ class AppLocalizationsJa extends AppLocalizations { String get repeater_advancedSettingsSubtitle => '経験豊富なオペレーター向けの調整ノブ'; @override - String get repeater_pathHashMode => 'パスハッシュモード'; + String get repeater_pathHashMode => 'ID ハッシュサイズ'; @override String get repeater_pathHashModeHelper => @@ -5435,11 +5524,21 @@ class AppLocalizationsJa extends AppLocalizations { 'MeshCore Open が起動していません。起動してから、もう一度返信を送信してください。'; @override - String get settings_exportBookmarks => 'ブックマークをMarkdownにエクスポート'; + String get export_messagesTitle => 'メッセージ'; @override - String get settings_exportBookmarksSubtitle => - 'ブックマークしたメッセージをMarkdownファイルとして共有または保存します。'; + String get export_messagesDescription => + 'ブックマークしたメッセージをMarkdownファイルとして保存します。'; + + @override + String get export_locationsTitle => '連絡先の位置情報'; + + @override + String get export_locationsDescription => + '位置情報が分かっている連絡先を、地図アプリ用のGPXファイルとして保存します。'; + + @override + String get settings_exportBookmarks => 'ブックマーク'; @override String get settings_exportBookmarksSuccess => 'ブックマークをエクスポートしました。'; @@ -5448,25 +5547,13 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_exportBookmarksNoBookmarks => 'エクスポートするブックマークがありません。'; @override - String get settings_gpxExportRepeaters => 'GPX へのエクスポート用リピータ/ルームサーバー'; + String get settings_gpxExportRepeaters => 'リピータとルーム'; @override - String get settings_gpxExportRepeatersSubtitle => - 'GPXファイルに場所情報を付加した、レピーター/ルームサーバーのエクスポート'; + String get settings_gpxExportContacts => 'ユーザー / コンパニオン'; @override - String get settings_gpxExportContacts => 'GPX 形式へのエクスポート'; - - @override - String get settings_gpxExportContactsSubtitle => - 'GPXファイルに位置情報を保存して、他の人と共有する。'; - - @override - String get settings_gpxExportAll => 'すべての連絡先をGPX形式でエクスポートする'; - - @override - String get settings_gpxExportAllSubtitle => - 'すべての連絡先を、場所情報付きのGPXファイルにエクスポートする。'; + String get settings_gpxExportAll => 'すべての連絡先'; @override String get settings_gpxExportSuccess => 'GPXファイルの正常なエクスポートが完了しました。'; @@ -5517,52 +5604,40 @@ class AppLocalizationsJa extends AppLocalizations { String get contactsSettings_title => '連絡先設定'; @override - String get contactsSettings_autoAddTitle => '自動検出'; + String get contactsSettings_autoAddTitle => '連絡先の自動追加'; @override - String get contactsSettings_otherTitle => 'その他の連絡に関する設定'; + String get contactsSettings_autoAddDescription => + '新たに受信したこれらの種類のノードをラジオの連絡先に追加します。その他は後で「連絡先が見つかった」から追加できます。'; @override - String get contactsSettings_autoAddUsersTitle => '自動でユーザーを追加する'; + String get contactsSettings_otherTitle => '連絡先リストの上限'; @override - String get contactsSettings_autoAddUsersSubtitle => - '利用者が自動的に発見したユーザーを追加できるようにする。'; + String get contactsSettings_autoAddUsersTitle => 'ユーザー'; @override - String get contactsSettings_autoAddRepeatersTitle => 'リピータを自動追加'; + String get contactsSettings_autoAddRepeatersTitle => 'リピータ'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - '発見したリピータを、自動的に追加できるようにする。'; + String get contactsSettings_autoAddRoomServersTitle => 'ルームサーバー'; @override - String get contactsSettings_autoAddRoomServersTitle => '自動でルームサーバーを追加'; + String get contactsSettings_autoAddSensorsTitle => 'センサー'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - '利用者が、発見した部屋のサーバーを自動的に追加できるようにする。'; - - @override - String get contactsSettings_autoAddSensorsTitle => '自動でセンサーを追加'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - '利用者が、発見したセンサーを自動的に追加できるようにする。'; - - @override - String get contactsSettings_overwriteOldestTitle => '最も古いものを上書きする'; + String get contactsSettings_overwriteOldestTitle => '最も古い連絡先を上書き'; @override String get contactsSettings_overwriteOldestSubtitle => - '連絡先リストが満杯になった場合、最も古いかつ「お気に入り」ではない連絡先が削除されます。'; + 'ラジオの連絡先リストが満杯になったら、お気に入り以外で最も古い連絡先を置き換えます。'; @override - String get contactsSettings_evictDiscoveredContactsTitle => '検出された連絡先を削除'; + String get contactsSettings_evictDiscoveredContactsTitle => '発見された連絡先を制限'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return '有効にすると、検出された連絡先のリストが上限の$limit件に達した際に、最も古い検出済み連絡先が削除されます。'; + return 'アプリは「連絡先が見つかった」リストを $limit 件に制限します。上限に達すると古い連絡先から削除されます。オフにすると上限はなくなります。'; } @override diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index 4eb17056..ebf3c99f 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -387,7 +387,10 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_export => '내보내기'; @override - String get settings_exportSubtitle => '연락처와 중계기를 GPX로 내보내기'; + String get settings_exportData => '데이터 내보내기'; + + @override + String get settings_exportSubtitle => '북마크 및 연락처 위치'; @override String get backupRestore_title => '백업 및 복원'; @@ -573,6 +576,45 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_nodeNameHint => '노드 이름을 입력하세요'; + @override + String get nodeName_info => + '이름에 쓰는 1바이트마다 채널 메시지에 쓸 수 있는 공간이 1바이트 줄어듭니다. 한글, 한자, 이모지는 한 글자에 여러 바이트를 사용합니다.'; + + @override + String get nodeName_messageLength => '메시지 길이'; + + @override + String get nodeName_channelMessages => '채널 메시지'; + + @override + String get nodeName_channelMessagesSubtitle => '이름 길이만큼 줄어듦'; + + @override + String get nodeName_directMessages => '직접 메시지'; + + @override + String get nodeName_directMessagesSubtitle => '이름의 영향을 받지 않음'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count바이트 사용 가능', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '제한을 $count바이트 초과합니다', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => '이름 변경'; @@ -582,6 +624,9 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_radioSettingsSubtitle => '주파수, 전력, 확산 계수'; + @override + String get settings_unsavedChangesMessage => '라디오에 저장되지 않은 변경 사항이 있습니다.'; + @override String get settings_radioSettingsUpdated => '라디오 설정이 업데이트되었습니다.'; @@ -673,6 +718,22 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS 좌표'; + @override + String get location_coordinates => '좌표'; + + @override + String get location_coordinatesDescription => + '노드의 위치입니다. 지도에 표시되고 위치를 공유할 때 사용됩니다. 개인 정보 설정의 \'어드버트 위치\'가 켜져 있으면 어드버트에도 포함됩니다.'; + + @override + String get location_pickOnMap => '지도에서 선택'; + + @override + String get locationPicker_hint => '지도를 드래그하거나 눌러서 핀을 놓으세요.'; + + @override + String get locationPicker_useLocation => '이 위치 사용'; + @override String get settings_locationUpdated => '위치 및 GPS 설정이 업데이트되었습니다.'; @@ -687,10 +748,13 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'GPS를 사용하여 위치 정보를 자동으로 업데이트할 수 있도록 합니다.'; + '라디오의 GPS로 위치 정보를 계속 업데이트합니다.'; @override - String get settings_locationIntervalSec => 'GPS 간격 (초)'; + String get settings_locationIntervalSec => '업데이트 간격 (초)'; + + @override + String get settings_locationIntervalHelper => '60~86399초'; @override String get settings_locationIntervalInvalid => @@ -728,7 +792,7 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_privacy => '개인 정보 설정'; @override - String get settings_privacySubtitle => '어떤 정보를 공유할지 통제하세요.'; + String get settings_privacySubtitle => '어떤 정보를 공유할지 통제하세요'; @override String get settings_privacySettingsDescription => @@ -754,7 +818,7 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_telemetryPerContactHint => - '연락처에 허용하려면 해당 채팅을 열고 메뉴에서 연락처 설정을 선택하세요.'; + '특정 연락처에 허용하려면 해당 채팅을 열고 메뉴에서 연락처 설정을 선택하세요.'; @override String get settings_advertLocation => '어드버트 위치'; @@ -775,7 +839,7 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_multiAckSubtitle => - '전달을 개선하기 위해 ACK를 추가로 전송합니다. 방송 시간이 더 필요합니다'; + '확인 응답(ACK)이 직접 경로로 돌아갈 때 1개 대신 2개 보냅니다. 더 안정적이지만 전송 시간을 더 많이 사용합니다.'; @override String get settings_telemetryModeUpdated => '텔레메트리 모드 업데이트 완료'; @@ -787,7 +851,7 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_deleteAllPaths => '모든 경로 삭제'; @override - String get settings_deleteAllPathsSubtitle => '연락처의 모든 경로 데이터를 지웁니다.'; + String get settings_deleteAllPathsSubtitle => '연락처의 모든 경로 데이터를 지웁니다'; @override String get settings_sendAdvertisement => '어드버트 전송'; @@ -817,7 +881,7 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_rebootDevice => '장치 재부팅'; @override - String get settings_rebootDeviceSubtitle => 'MeshCore 장치를 재부팅합니다.'; + String get settings_rebootDeviceSubtitle => 'MeshCore 장치를 재부팅합니다'; @override String get settings_rebootDeviceConfirm => '정말 장치를 재부팅하시겠습니까? 연결이 끊어집니다.'; @@ -842,12 +906,12 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_about => '정보'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => '앱 정보'; @override - String get settings_aboutLegalese => '2026 MeshCore 오픈 소스 프로젝트'; + String settings_aboutLegalese(String year) { + return '$year MeshCore 오픈 소스 프로젝트'; + } @override String get settings_aboutDescription => @@ -857,6 +921,24 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS 고도 데이터: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => '프로젝트'; + + @override + String get about_sourceCode => '소스 코드'; + + @override + String get about_license => '라이선스'; + + @override + String get about_openSourceLicenses => '오픈소스 라이선스'; + + @override + String get about_credits => '크레딧'; + + @override + String get about_contributors => '기여자'; + @override String get settings_infoName => '이름'; @@ -891,26 +973,25 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_presets => '프리셋'; @override - String get settings_presetCustom => '사용자 지정'; + String get settings_radioParameters => '파라미터'; @override - String get settings_radioMatchWarning => - '통신하는 모든 노드가 동일한 주파수, 대역폭, 확산 계수를 사용해야 합니다. 코딩 속도(CR)는 달라도 됩니다.'; + String get settings_presetCustom => '사용자 지정'; @override String get settings_frequency => '주파수 (MHz)'; @override - String get settings_frequencyHelper => '300.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 MHz'; @override - String get settings_frequencyInvalid => '유효하지 않은 주파수 (300-2500 MHz)'; + String get settings_frequencyInvalid => '유효하지 않은 주파수 (150-2500 MHz)'; @override String get settings_bandwidth => '대역폭'; @override - String get settings_spreadingFactor => '분산 계수'; + String get settings_spreadingFactor => '확산 계수'; @override String get settings_codingRate => '코딩 속도'; @@ -927,17 +1008,24 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_txPowerInvalid => '유효하지 않은 송신 전력 (0-22 dBm)'; @override - String get settings_clientRepeat => '오프그리드 반복'; + String get settings_clientRepeat => '오프그리드 반복 모드'; + + @override + String get settings_clientRepeatDescription => + '이 장치가 패킷을 중계할 수 있게 합니다. 리피터 커버리지가 없는 곳에서 사용하기 위한 기능입니다.\n\n이 모드는 제한된 주파수만 사용합니다. ON으로 설정하면 더 넓은 메시와의 연결이 끊어질 가능성이 높습니다. 통신하는 모든 노드는 주파수, 대역폭, 확산 계수(SF)가 같아야 합니다. 코딩 속도(CR)만 달라도 됩니다.'; + + @override + String get settings_clientRepeatSwitch => '반복 모드'; + + @override + String get settings_clientRepeatNote => + '참고: OFF로 설정하면 이전 주파수로 돌아갑니다. 이후 메시에 연결할 수 없으면 프리셋/파라미터를 확인하세요.'; @override String settings_clientRepeatFrequencyNote(String freq) { return '오프그리드 반복용으로 주파수를 $freq MHz로 설정'; } - @override - String get settings_clientRepeatSubtitle => - '이 장치가 다른 장치의 메시 패킷을 반복하도록 허용합니다.'; - @override String get settings_clientRepeatFreqWarning => '오프그리드 반복에는 433MHz, 869MHz 또는 918MHz 주파수가 필요합니다.'; @@ -1260,7 +1348,7 @@ class AppLocalizationsKo extends AppLocalizations { @override String get settings_pathHashModeHelper => - '이 라디오가 보내는 플러딩 패킷의 경로에 기록되는 각 노드 ID의 크기: 1바이트(256개 ID, 최대 64홉), 2바이트(65,000개 ID, 최대 32홉), 3바이트(160만 개 ID, 최대 21홉). ID가 클수록 충돌이 줄어들지만, v1.14보다 오래된 펌웨어의 리피터는 2바이트 또는 3바이트 ID가 든 패킷을 버립니다.'; + '이 라디오가 보내는 플러딩 패킷의 경로에 기록되는 각 노드 ID의 크기:\n\n- 1바이트: 고유 ID 256개, 최대 64홉. \"ab\".\n- 2바이트: 고유 ID 6.5만 개, 최대 32홉. \"ab12\".\n- 3바이트: 고유 ID 1,600만 개, 최대 21홉. \"ab12cd\".\n\nID가 클수록 충돌이 줄어들지만, v1.14보다 오래된 펌웨어를 쓰는 리피터는 2바이트 또는 3바이트 ID를 사용하는 패킷을 버립니다.'; @override String settings_requiresFirmware(String version) { @@ -3767,7 +3855,7 @@ class AppLocalizationsKo extends AppLocalizations { String get repeater_advancedSettingsSubtitle => '숙련된 운영자를 위한 세부 조정'; @override - String get repeater_pathHashMode => '경로 내 노드 ID 크기'; + String get repeater_pathHashMode => 'ID 해시 크기'; @override String get repeater_pathHashModeHelper => @@ -5449,11 +5537,19 @@ class AppLocalizationsKo extends AppLocalizations { 'MeshCore Open이 실행 중이 아닙니다. 앱을 연 뒤 답장을 다시 보내세요.'; @override - String get settings_exportBookmarks => '북마크를 Markdown으로 내보내기'; + String get export_messagesTitle => '메시지'; @override - String get settings_exportBookmarksSubtitle => - '북마크한 메시지를 Markdown 파일로 공유하거나 저장합니다.'; + String get export_messagesDescription => '북마크한 메시지를 Markdown 파일로 저장합니다.'; + + @override + String get export_locationsTitle => '연락처 위치'; + + @override + String get export_locationsDescription => '위치가 알려진 연락처를 지도 앱용 GPX 파일로 저장합니다.'; + + @override + String get settings_exportBookmarks => '북마크'; @override String get settings_exportBookmarksSuccess => '북마크를 내보냈습니다.'; @@ -5462,25 +5558,13 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_exportBookmarksNoBookmarks => '내보낼 북마크가 없습니다.'; @override - String get settings_gpxExportRepeaters => 'GPX로 전송/방 관리 서버'; + String get settings_gpxExportRepeaters => '리피터 및 방'; @override - String get settings_gpxExportRepeatersSubtitle => - 'GPX 파일에 위치 정보를 포함하여 반복자/룸 서버를 내보냅니다.'; + String get settings_gpxExportContacts => '사용자 / 컴패니언'; @override - String get settings_gpxExportContacts => 'GPX 형식으로 내보내기'; - - @override - String get settings_gpxExportContactsSubtitle => - 'GPX 파일에 위치 정보를 포함하여 동행하는 기능을 내보냅니다.'; - - @override - String get settings_gpxExportAll => '모든 연락처를 GPX 형식으로 내보내기'; - - @override - String get settings_gpxExportAllSubtitle => - '위치 정보가 있는 모든 연락처를 GPX 파일로 내보냅니다.'; + String get settings_gpxExportAll => '모든 연락처'; @override String get settings_gpxExportSuccess => 'GPX 파일이 성공적으로 내보내졌습니다.'; @@ -5530,52 +5614,40 @@ class AppLocalizationsKo extends AppLocalizations { String get contactsSettings_title => '연락처 설정'; @override - String get contactsSettings_autoAddTitle => '자동 검색'; + String get contactsSettings_autoAddTitle => '연락처 자동 추가'; @override - String get contactsSettings_otherTitle => '다른 연락 관련 설정'; + String get contactsSettings_autoAddDescription => + '새로 수신된 이 유형의 노드를 라디오의 연락처에 추가합니다. 나머지는 나중에 \'연락처 찾기\'에서 추가할 수 있습니다.'; @override - String get contactsSettings_autoAddUsersTitle => '자동으로 사용자 추가'; + String get contactsSettings_otherTitle => '연락처 목록 한도'; @override - String get contactsSettings_autoAddUsersSubtitle => - '동반자가 자동으로 발견한 사용자를 추가할 수 있도록 합니다.'; + String get contactsSettings_autoAddUsersTitle => '사용자'; @override - String get contactsSettings_autoAddRepeatersTitle => '자동으로 중계기 추가'; + String get contactsSettings_autoAddRepeatersTitle => '리피터'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - '애완동물이 발견한 무선 라디오를 자동으로 추가할 수 있도록 설정합니다.'; + String get contactsSettings_autoAddRoomServersTitle => '방 서버'; @override - String get contactsSettings_autoAddRoomServersTitle => '자동으로 방 서버 추가'; + String get contactsSettings_autoAddSensorsTitle => '센서'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - '애완동물이 발견한 방 서버를 자동으로 추가할 수 있도록 설정합니다.'; - - @override - String get contactsSettings_autoAddSensorsTitle => '자동으로 센서 추가'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - '애완동물이 발견한 센서를 자동으로 추가할 수 있도록 설정합니다.'; - - @override - String get contactsSettings_overwriteOldestTitle => '가장 오래된 것을 덮어쓰기'; + String get contactsSettings_overwriteOldestTitle => '가장 오래된 연락처 덮어쓰기'; @override String get contactsSettings_overwriteOldestSubtitle => - '연락처 목록이 가득 차면, 가장 오래된 (선호하지 않은) 연락처가 대체됩니다.'; + '라디오의 연락처 목록이 가득 차면 즐겨찾기가 아닌 가장 오래된 연락처를 교체합니다.'; @override - String get contactsSettings_evictDiscoveredContactsTitle => '발견된 연락처 삭제'; + String get contactsSettings_evictDiscoveredContactsTitle => '발견된 연락처 제한'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return '활성화하면 발견된 연락처 목록이 $limit개의 한도에 도달했을 때 가장 오래된 발견된 연락처를 삭제합니다.'; + return '앱은 \"연락처 찾기\" 목록을 $limit개 항목으로 제한합니다. 한도에 도달하면 오래된 연락처부터 삭제됩니다. 끄면 제한이 없습니다.'; } @override diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 70f845c6..84d423dc 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -402,8 +402,10 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_export => 'Exporteren'; @override - String get settings_exportSubtitle => - 'Contacten en repeaters exporteren als GPX'; + String get settings_exportData => 'Gegevens exporteren'; + + @override + String get settings_exportSubtitle => 'Bladwijzers en contactlocaties'; @override String get backupRestore_title => 'Back-up en herstel'; @@ -596,6 +598,47 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_nodeNameHint => 'Voer nodenaam in'; + @override + String get nodeName_info => + 'Elke byte in je naam is er één minder voor kanaalberichten. Speciale tekens en emoji\'s kunnen meer dan één byte gebruiken.'; + + @override + String get nodeName_messageLength => 'Berichtlengte'; + + @override + String get nodeName_channelMessages => 'Kanaalberichten'; + + @override + String get nodeName_channelMessagesSubtitle => 'Kleiner door je naam'; + + @override + String get nodeName_directMessages => 'Directe berichten'; + + @override + String get nodeName_directMessagesSubtitle => 'Niet beïnvloed door je naam'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes beschikbaar', + one: '1 byte beschikbaar', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes boven de limiet', + one: '1 byte boven de limiet', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Naam bijgewerkt'; @@ -606,6 +649,10 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frequentie, vermogen, spreadingfactor'; + @override + String get settings_unsavedChangesMessage => + 'Je hebt wijzigingen die niet zijn opgeslagen op de radio.'; + @override String get settings_radioSettingsUpdated => 'Radio instellingen bijgewerkt'; @@ -704,6 +751,23 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS coördinaten'; + @override + String get location_coordinates => 'Coördinaten'; + + @override + String get location_coordinatesDescription => + 'De positie van je node. Deze wordt op de kaart getoond, gebruikt als je je locatie deelt en in adverts verzonden als Advert-locatie aanstaat (Privacyinstellingen).'; + + @override + String get location_pickOnMap => 'Op kaart kiezen'; + + @override + String get locationPicker_hint => + 'Versleep de kaart of tik om de pin te plaatsen.'; + + @override + String get locationPicker_useLocation => 'Deze locatie gebruiken'; + @override String get settings_locationUpdated => 'Locatie- en GPS-instellingen bijgewerkt'; @@ -721,10 +785,13 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Activeer automatisch locatieupdates via GPS.'; + 'Houdt de locatie bijgewerkt via de GPS van de radio.'; @override - String get settings_locationIntervalSec => 'Interval voor GPS (Seconden)'; + String get settings_locationIntervalSec => 'Update-interval (seconden)'; + + @override + String get settings_locationIntervalHelper => '60 tot 86399 seconden'; @override String get settings_locationIntervalInvalid => @@ -792,7 +859,7 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Om een contact toe te staan, open je de chat en kies je Contactinstellingen in het menu.'; + 'Om een specifiek contact toe te staan, open je de chat en kies je Contactinstellingen in het menu.'; @override String get settings_advertLocation => 'Advert-locatie'; @@ -813,7 +880,7 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Stuur extra ACKs voor betere aflevering; gebruikt meer zendtijd'; + 'Stuur 2 bevestigingen (ACKs) in plaats van 1 wanneer de bevestiging via een direct pad teruggaat. Betrouwbaarder, maar gebruikt meer zendtijd.'; @override String get settings_telemetryModeUpdated => 'Telemetrie-modus bijgewerkt'; @@ -826,7 +893,7 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Wis alle padgegevens van contacten.'; + 'Wis alle padgegevens van contacten'; @override String get settings_sendAdvertisement => 'Advert verzenden'; @@ -842,7 +909,7 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_syncTimeSubtitle => - 'Stel de apparaatklok in op de tijd van de telefoon.'; + 'Stel de apparaatklok in op de tijd van de telefoon'; @override String get settings_timeSynchronized => 'Tijd gesynchroniseerd'; @@ -884,12 +951,12 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_about => 'Over'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open versie $version'; - } + String get settings_aboutTheApp => 'Over de app'; @override - String get settings_aboutLegalese => '2026 MeshCore open-sourceproject'; + String settings_aboutLegalese(String year) { + return '$year MeshCore open-sourceproject'; + } @override String get settings_aboutDescription => @@ -899,6 +966,24 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS-hoogtegegevens: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Project'; + + @override + String get about_sourceCode => 'Broncode'; + + @override + String get about_license => 'Licentie'; + + @override + String get about_openSourceLicenses => 'Opensourcelicenties'; + + @override + String get about_credits => 'Credits'; + + @override + String get about_contributors => 'Bijdragers'; + @override String get settings_infoName => 'Naam'; @@ -933,17 +1018,16 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_presets => 'Voorinstellingen'; @override - String get settings_presetCustom => 'Aangepast'; + String get settings_radioParameters => 'Parameters'; @override - String get settings_radioMatchWarning => - 'Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte en SF gebruiken. De coderingssnelheid (CR) mag verschillen.'; + String get settings_presetCustom => 'Aangepast'; @override String get settings_frequency => 'Frequentie (MHz)'; @override - String get settings_frequencyHelper => '150.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 MHz'; @override String get settings_frequencyInvalid => 'Ongeldige frequentie (150-2500 MHz)'; @@ -969,17 +1053,24 @@ class AppLocalizationsNl extends AppLocalizations { String get settings_txPowerInvalid => 'Ongeldig TX-vermogen'; @override - String get settings_clientRepeat => 'Off-Grid Herhalen'; + String get settings_clientRepeat => 'Off-Grid Herhaalmodus'; + + @override + String get settings_clientRepeatDescription => + 'Laat dit apparaat pakketten herhalen. Bedoeld voor plekken zonder repeaterdekking.\n\nDeze modus gebruikt een beperkte set frequenties. Zet je hem AAN, dan verlies je waarschijnlijk de verbinding met de rest van de mesh. Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte en spreadingfactor (SF) gebruiken. Alleen de coding rate (CR) mag verschillen.'; + + @override + String get settings_clientRepeatSwitch => 'Herhaalmodus'; + + @override + String get settings_clientRepeatNote => + 'Let op: zet je hem UIT, dan wordt de vorige frequentie hersteld. Kun je daarna geen verbinding maken met de mesh, controleer dan je voorinstellingen/parameters.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frequentie ingesteld op $freq MHz voor off-grid herhalen'; } - @override - String get settings_clientRepeatSubtitle => - 'Laat dit apparaat meshpakketten doorsturen voor anderen'; - @override String get settings_clientRepeatFreqWarning => 'Off-grid herhalen vereist een frequentie van 433, 869,495 of 918 MHz'; @@ -1312,7 +1403,7 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Grootte van elke node-ID die wordt vastgelegd in het pad van flood-pakketten die deze radio verzendt: 1 byte (256 ID\'s, tot 64 hops), 2 bytes (65K ID\'s, tot 32 hops), 3 bytes (16M ID\'s, tot 21 hops). Grotere ID\'s verminderen botsingen, maar repeaters met firmware ouder dan v1.14 laten pakketten met 2- of 3-byte-ID\'s vallen.'; + 'Grootte van elke node-ID die wordt vastgelegd in het pad van flood-pakketten die deze radio verzendt:\n\n- 1 byte: 256 unieke ID\'s, tot 64 hops. \"ab\".\n- 2 bytes: 65K unieke ID\'s, tot 32 hops. \"ab12\".\n- 3 bytes: 16M unieke ID\'s, tot 21 hops. \"ab12cd\".\n\nGrotere ID\'s verminderen botsingen, maar repeaters met firmware ouder dan v1.14 laten pakketten met 2- en 3-byte-ID\'s vallen.'; @override String settings_requiresFirmware(String version) { @@ -3907,7 +3998,7 @@ class AppLocalizationsNl extends AppLocalizations { 'Afstelopties voor ervaren operators'; @override - String get repeater_pathHashMode => 'Node-ID-grootte in paden'; + String get repeater_pathHashMode => 'ID-hashgrootte'; @override String get repeater_pathHashModeHelper => @@ -5677,11 +5768,21 @@ class AppLocalizationsNl extends AppLocalizations { 'MeshCore Open is niet actief. Open de app en verzend je antwoord opnieuw.'; @override - String get settings_exportBookmarks => 'Bladwijzers exporteren naar Markdown'; + String get export_messagesTitle => 'Berichten'; @override - String get settings_exportBookmarksSubtitle => - 'Deel of bewaar berichten met bladwijzer als Markdown-bestand.'; + String get export_messagesDescription => + 'Berichten met een bladwijzer, opgeslagen als Markdown-bestand.'; + + @override + String get export_locationsTitle => 'Contactlocaties'; + + @override + String get export_locationsDescription => + 'Contacten met een bekende locatie, opgeslagen als GPX-bestand voor kaartapps.'; + + @override + String get settings_exportBookmarks => 'Bladwijzers'; @override String get settings_exportBookmarksSuccess => 'Bladwijzers geëxporteerd.'; @@ -5691,26 +5792,13 @@ class AppLocalizationsNl extends AppLocalizations { 'Geen bladwijzers om te exporteren.'; @override - String get settings_gpxExportRepeaters => - 'Exporteer repeaters / roomserver naar GPX'; + String get settings_gpxExportRepeaters => 'Repeaters en rooms'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exporteert repeaters / roomserver met een locatie naar GPX-bestand.'; + String get settings_gpxExportContacts => 'Gebruikers / Companions'; @override - String get settings_gpxExportContacts => 'Companions exporteren naar GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exporteert companions met een locatie naar een GPX-bestand.'; - - @override - String get settings_gpxExportAll => 'Alle contacten exporteren naar GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exporteert alle contacten met een locatie naar een GPX-bestand.'; + String get settings_gpxExportAll => 'Alle contacten'; @override String get settings_gpxExportSuccess => 'GPX-bestand succesvol geëxporteerd.'; @@ -5764,58 +5852,41 @@ class AppLocalizationsNl extends AppLocalizations { String get contactsSettings_title => 'Instellingen voor contacten'; @override - String get contactsSettings_autoAddTitle => 'Automatische detectie'; + String get contactsSettings_autoAddTitle => 'Contacten automatisch toevoegen'; @override - String get contactsSettings_otherTitle => - 'Andere instellingen voor contactgerelateerde zaken'; + String get contactsSettings_autoAddDescription => + 'Nieuw gehoorde nodes van deze typen toevoegen aan de contacten van de radio. Andere kun je later toevoegen via Ontdekte contacten.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Gebruikers automatisch toevoegen'; + String get contactsSettings_otherTitle => 'Contactlijstlimieten'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Sta toe dat de companion automatisch ontdekte gebruikers toevoegt'; + String get contactsSettings_autoAddUsersTitle => 'Gebruikers'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Repeaters automatisch toevoegen'; + String get contactsSettings_autoAddRepeatersTitle => 'Repeaters'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Sta toe dat de companion automatisch ontdekte repeaters toevoegt'; + String get contactsSettings_autoAddRoomServersTitle => 'Roomservers'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Roomservers automatisch toevoegen'; + String get contactsSettings_autoAddSensorsTitle => 'Sensoren'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Sta toe dat de companion automatisch ontdekte roomservers toevoegt.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Automatisch sensoren toevoegen'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Sta toe dat de companion automatisch ontdekte sensoren toevoegt'; - - @override - String get contactsSettings_overwriteOldestTitle => 'Overschrijf Oudste'; + String get contactsSettings_overwriteOldestTitle => 'Oudste overschrijven'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Wanneer de contactenlijst vol is, wordt de oudste niet-favoriete contactpersoon vervangen.'; + 'Als de contactenlijst van de radio vol is, het oudste contact vervangen dat geen favoriet is.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Ontdekte contacten verwijderen'; + 'Ontdekte contacten beperken'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Indien ingeschakeld verwijdert de app de oudste ontdekte contacten zodra de lijst met ontdekte contacten de limiet van $limit items bereikt.'; + return 'De app beperkt de lijst \"Ontdekte contacten\" tot $limit items. Bij het bereiken van de limiet worden oudere contacten verwijderd. Schakel uit om de limiet op te heffen.'; } @override diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 81c25560..0c24139c 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -409,8 +409,10 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_export => 'Eksportuj'; @override - String get settings_exportSubtitle => - 'Eksportuj kontakty i przekaźniki jako GPX'; + String get settings_exportData => 'Eksportuj dane'; + + @override + String get settings_exportSubtitle => 'Zakładki i lokalizacje kontaktów'; @override String get backupRestore_title => 'Kopia zapasowa i przywracanie'; @@ -604,6 +606,51 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_nodeNameHint => 'Wprowadź nazwę węzła'; + @override + String get nodeName_info => + 'Każdy bajt nazwy to o bajt mniej w wiadomościach na kanałach. Polskie litery, znaki specjalne i emoji mogą zajmować więcej niż jeden bajt.'; + + @override + String get nodeName_messageLength => 'Długość wiadomości'; + + @override + String get nodeName_channelMessages => 'Wiadomości na kanałach'; + + @override + String get nodeName_channelMessagesSubtitle => 'Nazwa je skraca'; + + @override + String get nodeName_directMessages => 'Wiadomości prywatne'; + + @override + String get nodeName_directMessagesSubtitle => 'Nazwa nie ma na nie wpływu'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajta dostępnego', + many: '$count bajtów dostępnych', + few: '$count bajty dostępne', + one: '1 bajt dostępny', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajta ponad limit', + many: '$count bajtów ponad limit', + few: '$count bajty ponad limit', + one: '1 bajt ponad limit', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Nazwa zaktualizowana'; @@ -614,6 +661,10 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Częstotliwość, moc, współczynnik rozpraszania'; + @override + String get settings_unsavedChangesMessage => + 'Masz zmiany, które nie zostały zapisane w radiu.'; + @override String get settings_radioSettingsUpdated => 'Ustawienia radia zostały zaktualizowane'; @@ -713,6 +764,23 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_locationSubtitle => 'Koordynaty GPS'; + @override + String get location_coordinates => 'Współrzędne'; + + @override + String get location_coordinatesDescription => + 'Pozycja Twojego węzła. Jest widoczna na mapie, używana przy udostępnianiu lokalizacji i wysyłana w rozgłoszeniach, gdy włączona jest „Lokalizacja rozgłoszenia” (Ustawienia prywatności).'; + + @override + String get location_pickOnMap => 'Wybierz na mapie'; + + @override + String get locationPicker_hint => + 'Przesuń mapę lub dotknij, aby umieścić pinezkę.'; + + @override + String get locationPicker_useLocation => 'Użyj tej lokalizacji'; + @override String get settings_locationUpdated => 'Lokalizacja zaktualizowana'; @@ -729,10 +797,13 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Włącza automatyczne aktualizowanie pozycji za pomocą GPS.'; + 'Na bieżąco aktualizuje pozycję z GPS radia.'; @override - String get settings_locationIntervalSec => 'Interwał dla GPS (Sekundy)'; + String get settings_locationIntervalSec => 'Interwał aktualizacji (sekundy)'; + + @override + String get settings_locationIntervalHelper => 'od 60 do 86399 sekund'; @override String get settings_locationIntervalInvalid => @@ -773,7 +844,7 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_privacySubtitle => - 'Kontroluj jakie informacje są udostępniane.'; + 'Kontroluj jakie informacje są udostępniane'; @override String get settings_privacySettingsDescription => @@ -800,7 +871,7 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Aby zezwolić kontaktowi, otwórz jego czat i wybierz Ustawienia kontaktów z menu.'; + 'Aby zezwolić konkretnemu kontaktowi, otwórz jego czat i wybierz Ustawienia kontaktów z menu.'; @override String get settings_advertLocation => 'Lokalizacja rozgłoszenia'; @@ -822,7 +893,7 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Wysyłaj dodatkowe potwierdzenia ACK dla lepszego dostarczenia; zużywa więcej czasu w eterze'; + 'Wysyłaj 2 potwierdzenia (ACK) zamiast 1, gdy potwierdzenie wraca ścieżką bezpośrednią. Zwiększa niezawodność, ale zużywa więcej czasu w eterze.'; @override String get settings_telemetryModeUpdated => @@ -836,7 +907,7 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Wyczyść wszystkie dane ścieżek z kontaktów.'; + 'Wyczyść wszystkie dane ścieżek z kontaktów'; @override String get settings_sendAdvertisement => 'Wyślij rozgłoszenie'; @@ -852,7 +923,7 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_syncTimeSubtitle => - 'Ustaw zegar urządzenia na czas telefonu.'; + 'Ustaw zegar urządzenia na czas telefonu'; @override String get settings_timeSynchronized => 'Czas zsynchronizowany'; @@ -895,12 +966,12 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_about => 'O aplikacji'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open w wersji $version'; - } + String get settings_aboutTheApp => 'O aplikacji'; @override - String get settings_aboutLegalese => 'Projekt MeshCore Open Source 2026'; + String settings_aboutLegalese(String year) { + return 'Projekt MeshCore Open Source $year'; + } @override String get settings_aboutDescription => @@ -910,6 +981,24 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Dane wysokościowe LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projekt'; + + @override + String get about_sourceCode => 'Kod źródłowy'; + + @override + String get about_license => 'Licencja'; + + @override + String get about_openSourceLicenses => 'Licencje open source'; + + @override + String get about_credits => 'Podziękowania'; + + @override + String get about_contributors => 'Współtwórcy'; + @override String get settings_infoName => 'Nazwa'; @@ -944,21 +1033,20 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_presets => 'Presety'; @override - String get settings_presetCustom => 'Niestandardowy'; + String get settings_radioParameters => 'Parametry'; @override - String get settings_radioMatchWarning => - 'Wszystkie węzły, z którymi rozmawiasz, muszą używać tej samej częstotliwości, przepustowości i SF. Współczynnik kodowania (CR) może się różnić.'; + String get settings_presetCustom => 'Niestandardowy'; @override String get settings_frequency => 'Częstotliwość (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override String get settings_frequencyInvalid => - 'Nieprawidłowa częstotliwość (300-2500 MHz)'; + 'Nieprawidłowa częstotliwość (150-2500 MHz)'; @override String get settings_bandwidth => 'Przepustowość'; @@ -981,17 +1069,24 @@ class AppLocalizationsPl extends AppLocalizations { String get settings_txPowerInvalid => 'Nieprawidłowa moc TX (0-22 dBm)'; @override - String get settings_clientRepeat => 'Powtórzenie: Niezależne od sieci'; + String get settings_clientRepeat => 'Tryb powtarzania poza siecią'; + + @override + String get settings_clientRepeatDescription => + 'Pozwala temu urządzeniu retransmitować pakiety. Jest przeznaczony do użytku tam, gdzie nie ma zasięgu przekaźników.\n\nTen tryb korzysta z ograniczonego zestawu częstotliwości. Po jego WŁĄCZENIU prawdopodobnie stracisz połączenie z szerszą siecią mesh. Wszystkie węzły, z którymi się komunikujesz, muszą używać tej samej częstotliwości, przepustowości i współczynnika rozpraszania (SF). Różnić się może tylko współczynnik kodowania (CR).'; + + @override + String get settings_clientRepeatSwitch => 'Tryb powtarzania'; + + @override + String get settings_clientRepeatNote => + 'Uwaga: Po WYŁĄCZENIU zostanie przywrócona poprzednia częstotliwość. Jeśli potem nie możesz połączyć się z siecią mesh, sprawdź presety/parametry.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Częstotliwość ustawiona na $freq MHz dla powtórzeń poza siecią'; } - @override - String get settings_clientRepeatSubtitle => - 'Pozwól temu urządzeniu powtarzać pakiety danych dla innych urządzeń.'; - @override String get settings_clientRepeatFreqWarning => 'Powtórka poza siecią wymaga częstotliwości 433, 869 lub 918 MHz.'; @@ -1322,7 +1417,7 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Rozmiar identyfikatora węzła zapisywanego w ścieżce wysyłanych pakietów flood: 1 bajt (256 identyfikatorów, do 64 skoków), 2 bajty (65 tys., do 32 skoków), 3 bajty (16 mln, do 21 skoków). Większe identyfikatory zmniejszają kolizje, ale przekaźniki z oprogramowaniem starszym niż v1.14 odrzucają pakiety z identyfikatorami 2- lub 3-bajtowymi.'; + 'Rozmiar identyfikatora każdego węzła w ścieżce pakietów flood wysyłanych przez to radio:\n\n- 1 bajt: 256 unikalnych identyfikatorów, do 64 skoków. \"ab\".\n- 2 bajty: 65 tys. unikalnych identyfikatorów, do 32 skoków. \"ab12\".\n- 3 bajty: 16 mln unikalnych identyfikatorów, do 21 skoków. \"ab12cd\".\n\nWiększe identyfikatory zmniejszają kolizje, ale przekaźniki z oprogramowaniem starszym niż v1.14 odrzucają pakiety z identyfikatorami 2- i 3-bajtowymi.'; @override String settings_requiresFirmware(String version) { @@ -3955,7 +4050,7 @@ class AppLocalizationsPl extends AppLocalizations { 'Regulowane pokrętła dla doświadczonych operatorów'; @override - String get repeater_pathHashMode => 'Tryb haszujący ścieżkę'; + String get repeater_pathHashMode => 'Rozmiar hasza ID'; @override String get repeater_pathHashModeHelper => @@ -5741,40 +5836,37 @@ class AppLocalizationsPl extends AppLocalizations { 'MeshCore Open nie jest uruchomiony. Otwórz go i wyślij odpowiedź jeszcze raz.'; @override - String get settings_exportBookmarks => 'Eksportuj zakładki do Markdown'; + String get export_messagesTitle => 'Wiadomości'; @override - String get settings_exportBookmarksSubtitle => - 'Udostępnij lub zapisz wiadomości z zakładek jako plik Markdown.'; + String get export_messagesDescription => + 'Wiadomości dodane do zakładek, zapisane jako plik Markdown.'; @override - String get settings_exportBookmarksSuccess => 'Zakładki wyeksportowane.'; + String get export_locationsTitle => 'Lokalizacje kontaktów'; + + @override + String get export_locationsDescription => + 'Kontakty ze znaną lokalizacją, zapisane jako plik GPX dla aplikacji z mapami.'; + + @override + String get settings_exportBookmarks => 'Zakładki'; + + @override + String get settings_exportBookmarksSuccess => 'Wyeksportowano zakładki.'; @override String get settings_exportBookmarksNoBookmarks => 'Brak zakładek do wyeksportowania.'; @override - String get settings_gpxExportRepeaters => - 'Eksportuj przekaźniki / roomservery do GPX'; + String get settings_gpxExportRepeaters => 'Przekaźniki i pokoje'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Eksportuje przekaźniki / roomservery z lokalizacją do pliku GPX.'; + String get settings_gpxExportContacts => 'Użytkownicy / Companiony'; @override - String get settings_gpxExportContacts => 'Eksportuj towarzyszy do GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Eksportuje towarzyszy z lokalizacją do pliku GPX.'; - - @override - String get settings_gpxExportAll => 'Eksportuj wszystkie kontakty do GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Eksportuje wszystkie kontakty z lokalizacją do pliku GPX.'; + String get settings_gpxExportAll => 'Wszystkie kontakty'; @override String get settings_gpxExportSuccess => 'Pomyślnie wyeksportowano plik GPX.'; @@ -5829,58 +5921,42 @@ class AppLocalizationsPl extends AppLocalizations { String get contactsSettings_title => 'Ustawienia kontaktów'; @override - String get contactsSettings_autoAddTitle => 'Automatyczne odnajdywanie'; + String get contactsSettings_autoAddTitle => + 'Automatyczne dodawanie kontaktów'; @override - String get contactsSettings_otherTitle => - 'Inne ustawienia związane z kontaktami'; + String get contactsSettings_autoAddDescription => + 'Nowo usłyszane węzły tych typów zostaną dodane do kontaktów radia. Pozostałe możesz dodać później z ekranu „Odkryte Kontakty”.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Automatycznie dodaj użytkowników'; + String get contactsSettings_otherTitle => 'Limity listy kontaktów'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Pozwól towarzyszowi automatycznie dodawać znalezione użytkowników.'; + String get contactsSettings_autoAddUsersTitle => 'Użytkownicy'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Automatyczne dodawanie przekaźników'; + String get contactsSettings_autoAddRepeatersTitle => 'Przekaźniki'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Zezwól towarzyszowi na automatyczne dodawanie odkrytych przekaźników.'; + String get contactsSettings_autoAddRoomServersTitle => 'Serwery pokoju'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Automatycznie dodaj roomservery'; + String get contactsSettings_autoAddSensorsTitle => 'Czujniki'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Zezwól towarzyszowi na automatyczne dodawanie znalezionych roomserverów.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Automatycznie dodaj czujniki'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Zezwól towarzyszowi na automatyczne dodawanie wykrytych czujników.'; - - @override - String get contactsSettings_overwriteOldestTitle => 'Nadpisz najstarszy'; + String get contactsSettings_overwriteOldestTitle => 'Nadpisuj najstarsze'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Gdy lista kontaktów jest pełna, najstarszy nieulubiony kontakt zostanie zastąpiony.'; + 'Gdy lista kontaktów w radiu jest pełna, najstarszy kontakt spoza ulubionych zostanie zastąpiony.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Usuwaj odkryte kontakty'; + 'Ogranicz odkryte kontakty'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Gdy ta opcja jest włączona, aplikacja usuwa najstarsze odkryte kontakty, gdy lista odkrytych osiągnie limit $limit wpisów.'; + return 'Aplikacja ogranicza listę „Odkryte Kontakty” do $limit pozycji. Po osiągnięciu limitu starsze kontakty są usuwane. Wyłącz, aby znieść limit.'; } @override diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index 72a907b9..e0e1b7b0 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -405,8 +405,10 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_export => 'Exportar'; @override - String get settings_exportSubtitle => - 'Exportar contatos e repetidores como GPX'; + String get settings_exportData => 'Exportar dados'; + + @override + String get settings_exportSubtitle => 'Favoritos e localizações de contatos'; @override String get backupRestore_title => 'Backup e restauração'; @@ -601,6 +603,47 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_nodeNameHint => 'Insira o nome do nó'; + @override + String get nodeName_info => + 'Cada byte do seu nome é um a menos para mensagens de canal. Caracteres especiais e emojis podem ocupar mais de um byte.'; + + @override + String get nodeName_messageLength => 'Tamanho da mensagem'; + + @override + String get nodeName_channelMessages => 'Mensagens de canal'; + + @override + String get nodeName_channelMessagesSubtitle => 'Reduzido pelo seu nome'; + + @override + String get nodeName_directMessages => 'Mensagens diretas'; + + @override + String get nodeName_directMessagesSubtitle => 'Não afetado pelo seu nome'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes disponíveis', + one: '1 byte disponível', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes acima do limite', + one: '1 byte acima do limite', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Nome atualizado'; @@ -611,6 +654,10 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frequência, potência, fator de espalhamento'; + @override + String get settings_unsavedChangesMessage => + 'Você tem alterações que não foram salvas no rádio.'; + @override String get settings_radioSettingsUpdated => 'Configurações de rádio atualizadas'; @@ -710,6 +757,23 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_locationSubtitle => 'Coordenadas GPS'; + @override + String get location_coordinates => 'Coordenadas'; + + @override + String get location_coordinatesDescription => + 'A posição do seu nó. Ela é exibida no mapa, usada quando você compartilha sua localização e enviada nos anúncios quando a opção Localização do Anúncio está ativada (Configurações de Privacidade).'; + + @override + String get location_pickOnMap => 'Escolher no mapa'; + + @override + String get locationPicker_hint => + 'Arraste o mapa ou toque para posicionar o pin.'; + + @override + String get locationPicker_useLocation => 'Usar esta localização'; + @override String get settings_locationUpdated => 'Localização atualizada'; @@ -725,10 +789,14 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Habilita a atualização automática da localização via GPS.'; + 'Mantém a localização atualizada pelo GPS do rádio.'; @override - String get settings_locationIntervalSec => 'Intervalo para GPS (Segundos)'; + String get settings_locationIntervalSec => + 'Intervalo de atualização (segundos)'; + + @override + String get settings_locationIntervalHelper => '60 a 86399 segundos'; @override String get settings_locationIntervalInvalid => @@ -768,7 +836,7 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_privacy => 'Configurações de Privacidade'; @override - String get settings_privacySubtitle => 'Controle o que é compartilhado.'; + String get settings_privacySubtitle => 'Controle o que é compartilhado'; @override String get settings_privacySettingsDescription => @@ -796,7 +864,7 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Para permitir um contato, abra o chat dele e escolha Configurações de Contato no menu.'; + 'Para permitir um contato específico, abra o chat dele e escolha Configurações de Contato no menu.'; @override String get settings_advertLocation => 'Localização do Anúncio'; @@ -818,7 +886,7 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Enviar confirmações adicionais para melhorar a entrega; usa mais tempo de transmissão'; + 'Enviar 2 confirmações (ACKs) em vez de 1 quando a confirmação volta por um caminho direto. Mais confiável, mas usa mais tempo de transmissão.'; @override String get settings_telemetryModeUpdated => 'Modo de telemetria atualizado'; @@ -831,7 +899,7 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Limpar todos os dados de caminhos dos contatos.'; + 'Limpar todos os dados de caminhos dos contatos'; @override String get settings_sendAdvertisement => 'Enviar Anúncio'; @@ -892,12 +960,12 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_about => 'Sobre'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'Sobre o app'; @override - String get settings_aboutLegalese => 'Projeto MeshCore de Código Aberto 2024'; + String settings_aboutLegalese(String year) { + return 'Projeto MeshCore de Código Aberto $year'; + } @override String get settings_aboutDescription => @@ -907,6 +975,24 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Dados de elevação LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projeto'; + + @override + String get about_sourceCode => 'Código-fonte'; + + @override + String get about_license => 'Licença'; + + @override + String get about_openSourceLicenses => 'Licenças de código aberto'; + + @override + String get about_credits => 'Créditos'; + + @override + String get about_contributors => 'Colaboradores'; + @override String get settings_infoName => 'Nome'; @@ -941,20 +1027,19 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_presets => 'Configurações pré-definidas'; @override - String get settings_presetCustom => 'Personalizado'; + String get settings_radioParameters => 'Parâmetros'; @override - String get settings_radioMatchWarning => - 'Todos os nós com os quais você fala devem usar a mesma frequência, largura de banda e SF. A taxa de codificação (CR) pode ser diferente.'; + String get settings_presetCustom => 'Personalizado'; @override String get settings_frequency => 'Frequência (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override - String get settings_frequencyInvalid => 'Frequência inválida (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Frequência inválida (150-2500 MHz)'; @override String get settings_bandwidth => 'Largura de banda'; @@ -977,17 +1062,24 @@ class AppLocalizationsPt extends AppLocalizations { String get settings_txPowerInvalid => 'Potência de TX inválida (0-22 dBm)'; @override - String get settings_clientRepeat => 'Repetição sem rede'; + String get settings_clientRepeat => 'Modo de repetição fora da rede'; + + @override + String get settings_clientRepeatDescription => + 'Permite que este dispositivo repita pacotes. Pensado para locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVAR, você provavelmente vai perder a conexão com o resto da malha. Todos os nós com que você se comunica devem usar a mesma frequência, largura de banda e fator de dispersão (SF). Só a taxa de codificação (CR) pode ser diferente.'; + + @override + String get settings_clientRepeatSwitch => 'Modo de repetição'; + + @override + String get settings_clientRepeatNote => + 'Nota: Ao DESATIVAR, a frequência anterior é restaurada. Se depois você não conseguir se conectar à malha, verifique as configurações pré-definidas/parâmetros.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frequência definida em $freq MHz para a repetição sem rede'; } - @override - String get settings_clientRepeatSubtitle => - 'Permita que este dispositivo repita pacotes de rede para outros dispositivos.'; - @override String get settings_clientRepeatFreqWarning => 'A repetição fora da rede requer frequências de 433, 869 ou 918 MHz.'; @@ -1317,7 +1409,7 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Tamanho de cada ID de nó registado no caminho dos pacotes Flood que este rádio envia: 1 byte (256 IDs, até 64 saltos), 2 bytes (65.000 IDs, até 32 saltos), 3 bytes (16 milhões de IDs, até 21 saltos). IDs maiores reduzem as colisões, mas os repetidores com firmware anterior à v1.14 descartam os pacotes com IDs de 2 ou 3 bytes.'; + 'Tamanho do ID de cada nó registrado no caminho dos pacotes Flood que este rádio envia:\n\n- 1 byte: 256 IDs únicos, até 64 saltos. \"ab\".\n- 2 bytes: 65.000 IDs únicos, até 32 saltos. \"ab12\".\n- 3 bytes: 16 milhões de IDs únicos, até 21 saltos. \"ab12cd\".\n\nIDs maiores reduzem colisões, mas repetidores com firmware anterior à v1.14 descartam pacotes com IDs de 2 e 3 bytes.'; @override String settings_requiresFirmware(String version) { @@ -3923,7 +4015,7 @@ class AppLocalizationsPt extends AppLocalizations { 'Controles de ajuste para operadores experientes'; @override - String get repeater_pathHashMode => 'Modo de hash de caminho'; + String get repeater_pathHashMode => 'Tamanho do hash de ID'; @override String get repeater_pathHashModeHelper => @@ -5699,40 +5791,37 @@ class AppLocalizationsPt extends AppLocalizations { 'O MeshCore Open não está em execução. Abra-o e envie a sua resposta novamente.'; @override - String get settings_exportBookmarks => 'Exportar marcadores para Markdown'; + String get export_messagesTitle => 'Mensagens'; @override - String get settings_exportBookmarksSubtitle => - 'Compartilhe ou salve as mensagens marcadas como um arquivo Markdown.'; + String get export_messagesDescription => + 'Mensagens nos favoritos, salvas como arquivo Markdown.'; @override - String get settings_exportBookmarksSuccess => 'Marcadores exportados.'; + String get export_locationsTitle => 'Localizações de contatos'; + + @override + String get export_locationsDescription => + 'Contatos com localização conhecida, salvos como arquivo GPX para apps de mapas.'; + + @override + String get settings_exportBookmarks => 'Favoritos'; + + @override + String get settings_exportBookmarksSuccess => 'Favoritos exportados.'; @override String get settings_exportBookmarksNoBookmarks => - 'Não há marcadores para exportar.'; + 'Nenhum favorito para exportar.'; @override - String get settings_gpxExportRepeaters => - 'Exportar repetidores / servidor de sala para GPX'; + String get settings_gpxExportRepeaters => 'Repetidores e salas'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exporta repetidores / roomserver com localização para arquivo GPX.'; + String get settings_gpxExportContacts => 'Usuários / Companheiros'; @override - String get settings_gpxExportContacts => 'Exportar companheiros para GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exporta companheiros com uma localização para um arquivo GPX.'; - - @override - String get settings_gpxExportAll => 'Exportar todos os contatos para GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exporta todos os contatos com uma localização para um arquivo GPX.'; + String get settings_gpxExportAll => 'Todos os contatos'; @override String get settings_gpxExportSuccess => 'Arquivo GPX exportado com sucesso.'; @@ -5786,59 +5875,43 @@ class AppLocalizationsPt extends AppLocalizations { String get contactsSettings_title => 'Configurações de contatos'; @override - String get contactsSettings_autoAddTitle => 'Descoberta Automática'; + String get contactsSettings_autoAddTitle => + 'Adicionar contatos automaticamente'; @override - String get contactsSettings_otherTitle => - 'Outras configurações relacionadas a contatos'; + String get contactsSettings_autoAddDescription => + 'Adiciona aos contatos do rádio os nós destes tipos ouvidos pela primeira vez. Os demais podem ser adicionados depois em Contatos Descobertos.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Adicionar usuários automaticamente'; + String get contactsSettings_otherTitle => 'Limites das listas de contatos'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Permitir que o companheiro adicione automaticamente os usuários descobertos.'; + String get contactsSettings_autoAddUsersTitle => 'Usuários'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Adicionar repetidores automaticamente'; + String get contactsSettings_autoAddRepeatersTitle => 'Repetidores'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Permitir que o companheiro adicione automaticamente os repetidores descobertos.'; + String get contactsSettings_autoAddRoomServersTitle => 'Servidores de sala'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Adicionar automaticamente servidores de sala'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Permitir que o companheiro adicione automaticamente os servidores de salas descobertos.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Adicionar sensores automaticamente'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Permitir que o companheiro adicione automaticamente sensores descobertos.'; + String get contactsSettings_autoAddSensorsTitle => 'Sensores'; @override String get contactsSettings_overwriteOldestTitle => - 'Sobrescrever o Mais Antigo'; + 'Sobrescrever o mais antigo'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Quando a lista de contatos estiver cheia, o contato mais antigo não favoritado será substituído.'; + 'Quando a lista de contatos do rádio estiver cheia, substitui o contato mais antigo que não seja favorito.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Remover contatos descobertos'; + 'Limitar contatos descobertos'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Quando ativado, o aplicativo remove os contatos descobertos mais antigos assim que a lista de descobertos atingir o limite de $limit entradas.'; + return 'O app limita a lista \"Contatos Descobertos\" a $limit entradas. Ao atingir o limite, os contatos mais antigos são removidos. Desative para remover o limite.'; } @override @@ -8589,9 +8662,12 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_export => 'Exportar'; + @override + String get settings_exportData => 'Exportar dados'; + @override String get settings_exportSubtitle => - 'Exportar contactos e repetidores como GPX'; + 'Marcadores e localizações de contactos'; @override String get backupRestore_title => 'Cópia e restauro'; @@ -8785,6 +8861,47 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_nodeNameHint => 'Introduza o nome do nó'; + @override + String get nodeName_info => + 'Cada byte do seu nome é menos um para as mensagens de canal. Os caracteres especiais e os emojis podem ocupar mais do que um byte.'; + + @override + String get nodeName_messageLength => 'Tamanho da mensagem'; + + @override + String get nodeName_channelMessages => 'Mensagens de canal'; + + @override + String get nodeName_channelMessagesSubtitle => 'Reduzido pelo seu nome'; + + @override + String get nodeName_directMessages => 'Mensagens diretas'; + + @override + String get nodeName_directMessagesSubtitle => 'Não afetado pelo seu nome'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes disponíveis', + one: '1 byte disponível', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bytes acima do limite', + one: '1 byte acima do limite', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Nome atualizado'; @@ -8795,6 +8912,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get settings_radioSettingsSubtitle => 'Frequência, potência, fator de espalhamento'; + @override + String get settings_unsavedChangesMessage => + 'Tem alterações que não foram guardadas no rádio.'; + @override String get settings_radioSettingsUpdated => 'Definições de rádio atualizadas'; @@ -8892,6 +9013,23 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_locationSubtitle => 'Coordenadas GPS'; + @override + String get location_coordinates => 'Coordenadas'; + + @override + String get location_coordinatesDescription => + 'A posição do seu nó. É mostrada no mapa, usada quando partilha a sua localização e enviada nos anúncios quando a opção Localização no anúncio está ativa (Definições de privacidade).'; + + @override + String get location_pickOnMap => 'Escolher no mapa'; + + @override + String get locationPicker_hint => + 'Arraste o mapa ou toque para colocar o marcador.'; + + @override + String get locationPicker_useLocation => 'Usar esta localização'; + @override String get settings_locationUpdated => 'Localização e definições de GPS atualizadas'; @@ -8908,10 +9046,14 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_locationGPSEnableSubtitle => - 'Ativa o GPS para atualizar a localização automaticamente.'; + 'Mantém a localização atualizada a partir do GPS do rádio.'; @override - String get settings_locationIntervalSec => 'Intervalo do GPS (segundos)'; + String get settings_locationIntervalSec => + 'Intervalo de atualização (segundos)'; + + @override + String get settings_locationIntervalHelper => '60 a 86399 segundos'; @override String get settings_locationIntervalInvalid => @@ -8928,7 +9070,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_contactSettingsSubtitle => - 'Definições de como os contactos são adicionados.'; + 'Definições de como os contactos são adicionados'; @override String get settings_privacyMode => 'Modo de privacidade'; @@ -8952,7 +9094,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_privacySubtitle => - 'Controle que informações são partilhadas.'; + 'Controle que informações são partilhadas'; @override String get settings_privacySettingsDescription => @@ -8980,7 +9122,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_telemetryPerContactHint => - 'Para permitir um contacto, abra a conversa e escolha Definições do contacto no menu.'; + 'Para permitir um contacto específico, abra a conversa e escolha Definições do contacto no menu.'; @override String get settings_advertLocation => 'Localização no anúncio'; @@ -9002,7 +9144,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_multiAckSubtitle => - 'Envia ACKs extra para melhor entrega; usa mais airtime'; + 'Envia 2 confirmações (ACKs) em vez de 1 quando a confirmação volta por um caminho direto. Mais fiável, mas usa mais airtime.'; @override String get settings_telemetryModeUpdated => 'Modo de telemetria atualizado'; @@ -9015,7 +9157,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_deleteAllPathsSubtitle => - 'Limpar todos os dados de caminhos dos contactos.'; + 'Limpar todos os dados de caminhos dos contactos'; @override String get settings_sendAdvertisement => 'Enviar anúncio'; @@ -9075,12 +9217,12 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get settings_about => 'Acerca de'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'Acerca da app'; @override - String get settings_aboutLegalese => '2026 MeshCore Open Source Project'; + String settings_aboutLegalese(String year) { + return '$year MeshCore Open Source Project'; + } @override String get settings_aboutDescription => @@ -9090,6 +9232,24 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get settings_aboutOpenMeteoAttribution => 'Dados de elevação LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projeto'; + + @override + String get about_sourceCode => 'Código-fonte'; + + @override + String get about_license => 'Licença'; + + @override + String get about_openSourceLicenses => 'Licenças de código aberto'; + + @override + String get about_credits => 'Créditos'; + + @override + String get about_contributors => 'Contribuidores'; + @override String get settings_infoName => 'Nome'; @@ -9124,17 +9284,16 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get settings_presets => 'Predefinições'; @override - String get settings_presetCustom => 'Personalizado'; + String get settings_radioParameters => 'Parâmetros'; @override - String get settings_radioMatchWarning => - 'Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e SF. O coding rate (CR) pode ser diferente.'; + String get settings_presetCustom => 'Personalizado'; @override String get settings_frequency => 'Frequência (MHz)'; @override - String get settings_frequencyHelper => '150.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 MHz'; @override String get settings_frequencyInvalid => 'Frequência inválida (150-2500 MHz)'; @@ -9160,17 +9319,24 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get settings_txPowerInvalid => 'Potência TX inválida'; @override - String get settings_clientRepeat => 'Repetição off-grid'; + String get settings_clientRepeat => 'Modo de repetição off-grid'; + + @override + String get settings_clientRepeatDescription => + 'Permite que este dispositivo repita pacotes. Destina-se a locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVÁ-LO, é provável que perca a ligação ao resto da mesh. Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e fator de espalhamento (SF). Só o coding rate (CR) pode ser diferente.'; + + @override + String get settings_clientRepeatSwitch => 'Modo de repetição'; + + @override + String get settings_clientRepeatNote => + 'Nota: Ao DESATIVÁ-LO, é reposta a frequência anterior. Se depois não conseguir ligar-se à mesh, verifique as predefinições/parâmetros.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frequência definida para $freq MHz para repetição off-grid'; } - @override - String get settings_clientRepeatSubtitle => - 'Permitir que este dispositivo repita pacotes mesh para outros'; - @override String get settings_clientRepeatFreqWarning => 'A repetição off-grid requer a frequência 433, 869.495 ou 918 MHz'; @@ -9501,7 +9667,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_pathHashModeHelper => - 'Tamanho de cada ID de nó registado no caminho dos pacotes flood enviados por este rádio: 1 byte (256 IDs, até 64 hops), 2 bytes (65K IDs, até 32 hops), 3 bytes (16M IDs, até 21 hops). IDs maiores reduzem colisões, mas os repetidores com firmware anterior à v1.14 descartam pacotes com IDs de 2 ou 3 bytes.'; + 'Tamanho do ID de cada nó registado no caminho dos pacotes flood que este rádio envia:\n\n- 1 byte: 256 IDs únicos, até 64 hops. \"ab\".\n- 2 bytes: 65K IDs únicos, até 32 hops. \"ab12\".\n- 3 bytes: 16M IDs únicos, até 21 hops. \"ab12cd\".\n\nIDs maiores reduzem colisões, mas os repetidores com firmware anterior à v1.14 descartam pacotes com IDs de 2 e 3 bytes.'; @override String settings_requiresFirmware(String version) { @@ -12097,7 +12263,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Ajustes para operadores experientes'; @override - String get repeater_pathHashMode => 'Tamanho do ID do nó nos caminhos'; + String get repeater_pathHashMode => 'Tamanho do hash do ID'; @override String get repeater_pathHashModeHelper => @@ -13870,11 +14036,21 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'O MeshCore Open não está em execução. Abra-o e envie novamente a resposta.'; @override - String get settings_exportBookmarks => 'Exportar marcadores para Markdown'; + String get export_messagesTitle => 'Mensagens'; @override - String get settings_exportBookmarksSubtitle => - 'Partilhe ou guarde as mensagens marcadas como um ficheiro Markdown.'; + String get export_messagesDescription => + 'Mensagens marcadas, guardadas como ficheiro Markdown.'; + + @override + String get export_locationsTitle => 'Localizações de contactos'; + + @override + String get export_locationsDescription => + 'Contactos com localização conhecida, guardados como ficheiro GPX para aplicações de mapas.'; + + @override + String get settings_exportBookmarks => 'Marcadores'; @override String get settings_exportBookmarksSuccess => 'Marcadores exportados.'; @@ -13884,26 +14060,13 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Não há marcadores para exportar.'; @override - String get settings_gpxExportRepeaters => - 'Exportar repetidores / room servers para GPX'; + String get settings_gpxExportRepeaters => 'Repetidores e salas'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exporta para ficheiro GPX os repetidores / room servers com localização.'; + String get settings_gpxExportContacts => 'Utilizadores / Companions'; @override - String get settings_gpxExportContacts => 'Exportar companions para GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exporta para ficheiro GPX os companions com localização.'; - - @override - String get settings_gpxExportAll => 'Exportar todos os contactos para GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exporta para ficheiro GPX todos os contactos com localização.'; + String get settings_gpxExportAll => 'Todos os contactos'; @override String get settings_gpxExportSuccess => 'Ficheiro GPX exportado com sucesso.'; @@ -13958,42 +14121,27 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get contactsSettings_title => 'Definições de contactos'; @override - String get contactsSettings_autoAddTitle => 'Descoberta automática'; + String get contactsSettings_autoAddTitle => + 'Adicionar contactos automaticamente'; @override - String get contactsSettings_otherTitle => 'Outras definições de contactos'; + String get contactsSettings_autoAddDescription => + 'Adiciona aos contactos do rádio os nós destes tipos ouvidos pela primeira vez. Os restantes podem ser adicionados mais tarde em Contactos descobertos.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Adicionar utilizadores automaticamente'; + String get contactsSettings_otherTitle => 'Limites das listas de contactos'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Permite que o companion adicione automaticamente os utilizadores descobertos.'; + String get contactsSettings_autoAddUsersTitle => 'Utilizadores'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Adicionar repetidores automaticamente'; + String get contactsSettings_autoAddRepeatersTitle => 'Repetidores'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Permite que o companion adicione automaticamente os repetidores descobertos.'; + String get contactsSettings_autoAddRoomServersTitle => 'Servidores de sala'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Adicionar room servers automaticamente'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Permite que o companion adicione automaticamente os room servers descobertos.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Adicionar sensores automaticamente'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Permite que o companion adicione automaticamente os sensores descobertos.'; + String get contactsSettings_autoAddSensorsTitle => 'Sensores'; @override String get contactsSettings_overwriteOldestTitle => @@ -14001,15 +14149,15 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get contactsSettings_overwriteOldestSubtitle => - 'Quando a lista de contactos estiver cheia, o contacto mais antigo que não seja favorito será substituído.'; + 'Quando a lista de contactos do rádio estiver cheia, substitui o contacto mais antigo que não seja favorito.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Remover contactos descobertos'; + 'Limitar contactos descobertos'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Quando ativado, a app remove os contactos descobertos mais antigos assim que a lista de descoberta atingir o limite de $limit entradas.'; + return 'A app limita a lista \"Contactos descobertos\" a $limit entradas. Ao atingir o limite, os contactos mais antigos são removidos. Desative para remover o limite.'; } @override diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index 72e4dd53..0fe4cebb 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -405,7 +405,10 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_export => 'Экспорт'; @override - String get settings_exportSubtitle => 'Экспорт контактов и репитеров в GPX'; + String get settings_exportData => 'Экспорт данных'; + + @override + String get settings_exportSubtitle => 'Закладки и местоположения контактов'; @override String get backupRestore_title => 'Резервное копирование'; @@ -598,6 +601,51 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_nodeNameHint => 'Введите имя ноды'; + @override + String get nodeName_info => + 'Каждый байт имени отнимает байт у сообщений в каналах. Кириллица, спецсимволы и эмодзи занимают больше одного байта.'; + + @override + String get nodeName_messageLength => 'Длина сообщения'; + + @override + String get nodeName_channelMessages => 'Сообщения в каналах'; + + @override + String get nodeName_channelMessagesSubtitle => 'Короче на длину имени'; + + @override + String get nodeName_directMessages => 'Личные сообщения'; + + @override + String get nodeName_directMessagesSubtitle => 'Не зависят от имени'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count байта доступно', + many: '$count байт доступно', + few: '$count байта доступно', + one: '$count байт доступен', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count байта сверх лимита', + many: '$count байт сверх лимита', + few: '$count байта сверх лимита', + one: '$count байт сверх лимита', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Имя обновлено'; @@ -608,6 +656,10 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Частота, мощность и коэффициент распространения'; + @override + String get settings_unsavedChangesMessage => + 'У вас есть изменения, не сохранённые на радио.'; + @override String get settings_radioSettingsUpdated => 'Настройки радио обновлены'; @@ -707,6 +759,23 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_locationSubtitle => 'Координаты GPS'; + @override + String get location_coordinates => 'Координаты'; + + @override + String get location_coordinatesDescription => + 'Позиция вашего узла. Отображается на карте, используется, когда вы делитесь местоположением, и передаётся в анонсах, если включено «Местоположение анонса» (Настройки конфиденциальности).'; + + @override + String get location_pickOnMap => 'Выбрать на карте'; + + @override + String get locationPicker_hint => + 'Перетащите карту или нажмите, чтобы поставить метку.'; + + @override + String get locationPicker_useLocation => 'Использовать это место'; + @override String get settings_locationUpdated => 'Позиция и настройки GPS обновлены'; @@ -721,11 +790,13 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Включение GPS для автоматического обновления позиции.'; + 'Обновляет местоположение по данным GPS радио.'; @override - String get settings_locationIntervalSec => - 'Интервал для позиционирования GPS (секунды)'; + String get settings_locationIntervalSec => 'Интервал обновления (секунды)'; + + @override + String get settings_locationIntervalHelper => 'от 60 до 86399 секунд'; @override String get settings_locationIntervalInvalid => @@ -767,7 +838,7 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_privacySubtitle => - 'Контролируйте, какую информацию делиться.'; + 'Контролируйте, какую информацию делиться'; @override String get settings_privacySettingsDescription => @@ -794,7 +865,7 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Чтобы разрешить контакт, откройте его чат и выберите «Настройки контактов» в меню.'; + 'Чтобы разрешить конкретный контакт, откройте его чат и выберите «Настройки контактов» в меню.'; @override String get settings_advertLocation => 'Местоположение анонса'; @@ -816,7 +887,7 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Отправлять дополнительные ACK для лучшей доставки; расходует больше времени в эфире'; + 'Отправлять 2 подтверждения (ACK) вместо 1, когда подтверждение возвращается по прямому маршруту. Надёжнее, но расходует больше времени в эфире.'; @override String get settings_telemetryModeUpdated => 'Режим телеметрии обновлен'; @@ -829,7 +900,7 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Очистить все данные путей в контактах.'; + 'Очистить все данные путей в контактах'; @override String get settings_sendAdvertisement => 'Отправить анонсирование'; @@ -877,7 +948,7 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_companionDebugLogSubtitle => - 'Команды, ответы и необработанные данные, используемые для протоколов BLE, TCP и USB.'; + 'Команды, ответы и необработанные данные, используемые для протоколов BLE, TCP и USB'; @override String get settings_appDebugLog => 'Журнал отладки приложения'; @@ -889,12 +960,12 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_about => 'О программе'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'О приложении'; @override - String get settings_aboutLegalese => '2026 MeshCore Open Source Project'; + String settings_aboutLegalese(String year) { + return '$year MeshCore Open Source Project'; + } @override String get settings_aboutDescription => @@ -904,6 +975,24 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Данные о высоте LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Проект'; + + @override + String get about_sourceCode => 'Исходный код'; + + @override + String get about_license => 'Лицензия'; + + @override + String get about_openSourceLicenses => 'Лицензии открытого ПО'; + + @override + String get about_credits => 'Благодарности'; + + @override + String get about_contributors => 'Участники'; + @override String get settings_infoName => 'Имя'; @@ -938,20 +1027,19 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_presets => 'Пресеты'; @override - String get settings_presetCustom => 'Пользовательский'; + String get settings_radioParameters => 'Параметры'; @override - String get settings_radioMatchWarning => - 'Все узлы, с которыми вы общаетесь, должны использовать одинаковые частоту, полосу пропускания и SF. Скорость кодирования (CR) может отличаться.'; + String get settings_presetCustom => 'Пользовательский'; @override String get settings_frequency => 'Частота (МГц)'; @override - String get settings_frequencyHelper => '300.0 – 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 МГц'; @override - String get settings_frequencyInvalid => 'Недопустимая частота (300–2500 МГц)'; + String get settings_frequencyInvalid => 'Недопустимая частота (150-2500 МГц)'; @override String get settings_bandwidth => 'Полоса пропускания'; @@ -975,17 +1063,24 @@ class AppLocalizationsRu extends AppLocalizations { 'Недопустимая мощность передачи (0–22 дБм)'; @override - String get settings_clientRepeat => 'Повторение \"вне сети\"'; + String get settings_clientRepeat => 'Режим повторения вне сети'; + + @override + String get settings_clientRepeatDescription => + 'Позволяет этому устройству ретранслировать пакеты. Предназначен для мест, где нет покрытия ретрансляторов.\n\nЭтот режим использует ограниченный набор частот. После ВКЛЮЧЕНИЯ вы, скорее всего, потеряете связь с общей mesh-сетью. Все узлы, с которыми вы общаетесь, должны использовать одну и ту же частоту, полосу пропускания и коэффициент расширения (SF). Отличаться может только коэффициент кодирования (CR).'; + + @override + String get settings_clientRepeatSwitch => 'Режим повторения'; + + @override + String get settings_clientRepeatNote => + 'Примечание: После ВЫКЛЮЧЕНИЯ восстановится прежняя частота. Если затем не удаётся подключиться к mesh-сети, проверьте пресеты/параметры.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Частота $freq МГц для повторения вне сети'; } - @override - String get settings_clientRepeatSubtitle => - 'Позвольте этому устройству повторять пакеты данных для других устройств.'; - @override String get settings_clientRepeatFreqWarning => 'Для работы в режиме \"без подключения к сети\" требуется частота 433, 869 или 918 МГц.'; @@ -1315,7 +1410,7 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Размер каждого идентификатора узла, записываемого в маршрут Flood-пакетов, отправляемых этим радио: 1 байт (256 идентификаторов, до 64 хопов), 2 байта (65 тыс. идентификаторов, до 32 хопов), 3 байта (16 млн идентификаторов, до 21 хопа). Более длинные идентификаторы уменьшают число коллизий, но ретрансляторы с прошивкой старше v1.14 отбрасывают пакеты с 2- или 3-байтовыми идентификаторами.'; + 'Размер идентификатора каждого узла в маршруте Flood-пакетов, отправляемых этим радио:\n\n- 1 байт: 256 уникальных идентификаторов, до 64 хопов. \"ab\".\n- 2 байта: 65 тыс. уникальных идентификаторов, до 32 хопов. \"ab12\".\n- 3 байта: 16 млн уникальных идентификаторов, до 21 хопа. \"ab12cd\".\n\nБолее длинные идентификаторы уменьшают число коллизий, но ретрансляторы с прошивкой ниже v1.14 отбрасывают пакеты с 2- и 3-байтовыми идентификаторами.'; @override String settings_requiresFirmware(String version) { @@ -3934,7 +4029,7 @@ class AppLocalizationsRu extends AppLocalizations { 'Регуляторы для опытных операторов'; @override - String get repeater_pathHashMode => 'Режим хеширования пути'; + String get repeater_pathHashMode => 'Размер хеша ID'; @override String get repeater_pathHashModeHelper => @@ -5718,11 +5813,21 @@ class AppLocalizationsRu extends AppLocalizations { 'MeshCore Open не запущен. Откройте его и отправьте ответ снова.'; @override - String get settings_exportBookmarks => 'Экспорт закладок в Markdown'; + String get export_messagesTitle => 'Сообщения'; @override - String get settings_exportBookmarksSubtitle => - 'Поделитесь закладками или сохраните их в файл Markdown.'; + String get export_messagesDescription => + 'Сообщения в закладках, сохранённые как файл Markdown.'; + + @override + String get export_locationsTitle => 'Местоположения контактов'; + + @override + String get export_locationsDescription => + 'Контакты с известным местоположением, сохранённые как файл GPX для картографических приложений.'; + + @override + String get settings_exportBookmarks => 'Закладки'; @override String get settings_exportBookmarksSuccess => 'Закладки экспортированы.'; @@ -5732,26 +5837,13 @@ class AppLocalizationsRu extends AppLocalizations { 'Нет закладок для экспорта.'; @override - String get settings_gpxExportRepeaters => - 'Экспортировать рипитеры / сервер комнаты в GPX'; + String get settings_gpxExportRepeaters => 'Репитеры и комнаты'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Экспортирует ретрансляторы / сервер комнат с местоположением в файл GPX.'; + String get settings_gpxExportContacts => 'Пользователи / Компаньоны'; @override - String get settings_gpxExportContacts => 'Экспортировать спутников в GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Экспортирует спутников с местоположением в файл GPX.'; - - @override - String get settings_gpxExportAll => 'Экспортировать все контакты в GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Экспортирует все контакты с местоположением в файл GPX.'; + String get settings_gpxExportAll => 'Все контакты'; @override String get settings_gpxExportSuccess => 'Успешно экспортирован файл GPX.'; @@ -5805,59 +5897,42 @@ class AppLocalizationsRu extends AppLocalizations { String get contactsSettings_title => 'Настройки контактов'; @override - String get contactsSettings_autoAddTitle => 'Автоматическое обнаружение'; + String get contactsSettings_autoAddTitle => 'Автодобавление контактов'; @override - String get contactsSettings_otherTitle => - 'Другие настройки, связанные с контактами'; + String get contactsSettings_autoAddDescription => + 'Впервые услышанные узлы этих типов добавляются в контакты радио. Остальные можно добавить позже на экране «Обнаруженные контакты».'; @override - String get contactsSettings_autoAddUsersTitle => - 'Автоматически добавлять пользователей'; + String get contactsSettings_otherTitle => 'Лимиты списка контактов'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Разрешить компаньону автоматически добавлять обнаруженных пользователей'; + String get contactsSettings_autoAddUsersTitle => 'Пользователи'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Автоматически добавлять ретрансляторы'; + String get contactsSettings_autoAddRepeatersTitle => 'Репитеры'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Разрешить спутнику автоматически добавлять обнаруженные ретрансляторы'; + String get contactsSettings_autoAddRoomServersTitle => 'Серверы комнат'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Автоматически добавлять серверы комнат'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Разрешить компаньону автоматически добавлять обнаруженные сервера комнат.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Автоматически добавлять датчики'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Разрешить компаньону автоматически добавлять обнаруженные датчики'; + String get contactsSettings_autoAddSensorsTitle => 'Датчики'; @override String get contactsSettings_overwriteOldestTitle => - 'Перезаписать самое старое'; + 'Перезаписывать самые старые'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Когда список контактов заполнен, будет заменен самый старый контакт, который не находится в избранном.'; + 'Когда список контактов радио заполнен, заменяется самый старый контакт не из избранного.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Удалять обнаруженные контакты'; + 'Ограничивать обнаруженные контакты'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Если включено, приложение удаляет самые старые обнаруженные контакты, когда список обнаруженных достигает лимита в $limit записей.'; + return 'Приложение ограничивает список «Обнаруженные контакты» до $limit записей. При достижении лимита старые контакты удаляются. Отключите, чтобы снять ограничение.'; } @override diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index dab190a5..94b88ee8 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -405,8 +405,10 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_export => 'Exportovať'; @override - String get settings_exportSubtitle => - 'Exportovať kontakty a opakovače ako GPX'; + String get settings_exportData => 'Exportovať dáta'; + + @override + String get settings_exportSubtitle => 'Záložky a polohy kontaktov'; @override String get backupRestore_title => 'Zálohovanie a obnovenie'; @@ -598,6 +600,51 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_nodeNameHint => 'Zadajte názov uzla'; + @override + String get nodeName_info => + 'Každý bajt názvu znamená o bajt menej pre správy v kanáloch. Písmená s diakritikou, špeciálne znaky a emoji môžu zaberať viac ako jeden bajt.'; + + @override + String get nodeName_messageLength => 'Dĺžka správy'; + + @override + String get nodeName_channelMessages => 'Správy v kanáloch'; + + @override + String get nodeName_channelMessagesSubtitle => 'Názov ich skracuje'; + + @override + String get nodeName_directMessages => 'Priame správy'; + + @override + String get nodeName_directMessagesSubtitle => 'Názov na ne nemá vplyv'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajtov k dispozícii', + many: '$count bajtu k dispozícii', + few: '$count bajty k dispozícii', + one: '1 bajt k dispozícii', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajtov nad limit', + many: '$count bajtu nad limit', + few: '$count bajty nad limit', + one: '1 bajt nad limit', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Meno aktualizované'; @@ -608,6 +655,10 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frekvencia, výkon, rozptylovací faktor'; + @override + String get settings_unsavedChangesMessage => + 'Máte zmeny, ktoré neboli uložené do rádia.'; + @override String get settings_radioSettingsUpdated => 'Nastavenia rádia aktualizované'; @@ -704,6 +755,23 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS súradnice'; + @override + String get location_coordinates => 'Súradnice'; + + @override + String get location_coordinatesDescription => + 'Poloha vášho uzla. Zobrazuje sa na mape, používa sa pri zdieľaní polohy a odosiela sa v inzerátoch, keď je zapnuté „Umiestnenie inzerátu“ (Nastavenia súkromia).'; + + @override + String get location_pickOnMap => 'Vybrať na mape'; + + @override + String get locationPicker_hint => + 'Posuňte mapu alebo klepnutím umiestnite značku.'; + + @override + String get locationPicker_useLocation => 'Použiť túto polohu'; + @override String get settings_locationUpdated => 'Lokalita aktualizovaná'; @@ -715,14 +783,17 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_locationInvalid => 'Neplatná šírka alebo dĺžka.'; @override - String get settings_locationGPSEnable => 'Aktivovať GPS'; + String get settings_locationGPSEnable => 'Povoliť GPS'; @override String get settings_locationGPSEnableSubtitle => - 'Povolí automatické aktualizovanie polohy pomocou GPS.'; + 'Priebežne aktualizuje polohu z GPS rádia.'; @override - String get settings_locationIntervalSec => 'Interval pre GPS (Sekundy)'; + String get settings_locationIntervalSec => 'Interval aktualizácie (sekundy)'; + + @override + String get settings_locationIntervalHelper => '60 až 86399 sekúnd'; @override String get settings_locationIntervalInvalid => @@ -739,7 +810,7 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'Nastavenia pre pridávanie kontaktov.'; + 'Nastavenia pre pridávanie kontaktov'; @override String get settings_privacyMode => 'Režim ochrany súkromia'; @@ -761,7 +832,7 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_privacy => 'Nastavenia súkromia'; @override - String get settings_privacySubtitle => 'Ovládni, aké informácie sa zdieľajú.'; + String get settings_privacySubtitle => 'Ovládni, aké informácie sa zdieľajú'; @override String get settings_privacySettingsDescription => @@ -787,7 +858,7 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Ak chcete povoliť kontaktu, otvorte jeho chat a v ponuke vyberte Nastavenia kontaktov.'; + 'Ak chcete povoliť konkrétnemu kontaktu, otvorte jeho chat a v ponuke vyberte Nastavenia kontaktov.'; @override String get settings_advertLocation => 'Umiestnenie inzerátu'; @@ -808,7 +879,7 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Odosielajte ďalšie ACK pre lepšie doručenie; spotrebuje viac času vysielania'; + 'Odosiela 2 potvrdenia (ACK) namiesto 1, keď sa potvrdenie vracia priamou cestou. Spoľahlivejšie, ale spotrebuje viac času vysielania.'; @override String get settings_telemetryModeUpdated => @@ -822,7 +893,7 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Vymazať všetky údaje o cestách z kontaktov.'; + 'Vymazať všetky údaje o cestách z kontaktov'; @override String get settings_sendAdvertisement => 'Odoslať inzerát'; @@ -854,8 +925,7 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_rebootDevice => 'Restartovať zariadenie'; @override - String get settings_rebootDeviceSubtitle => - 'Restartujte zariadenie MeshCore.'; + String get settings_rebootDeviceSubtitle => 'Restartujte zariadenie MeshCore'; @override String get settings_rebootDeviceConfirm => @@ -879,16 +949,16 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_appDebugLogSubtitle => 'Správy z ladenia aplikácie'; @override - String get settings_about => 'O nás'; + String get settings_about => 'O aplikácii'; @override - String settings_aboutVersion(String version) { - return 'MeshCore, verzia $version'; + String get settings_aboutTheApp => 'O aplikácii'; + + @override + String settings_aboutLegalese(String year) { + return 'MeshCore Open Source Projekt $year'; } - @override - String get settings_aboutLegalese => 'MeshCore Open Source Projekt 2024'; - @override String get settings_aboutDescription => 'Otvorený zdrojový Flutter klient pre MeshCore LoRa sieťové zariadenia.'; @@ -897,6 +967,24 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Údaje o nadmorskej výške LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projekt'; + + @override + String get about_sourceCode => 'Zdrojový kód'; + + @override + String get about_license => 'Licencia'; + + @override + String get about_openSourceLicenses => 'Licencie open source'; + + @override + String get about_credits => 'Poďakovanie'; + + @override + String get about_contributors => 'Prispievatelia'; + @override String get settings_infoName => 'Meno'; @@ -931,29 +1019,28 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_presets => 'Prednastavenia'; @override - String get settings_presetCustom => 'Vlastné'; + String get settings_radioParameters => 'Parametre'; @override - String get settings_radioMatchWarning => - 'Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma a SF. Rýchlosť kódovania (CR) sa môže líšiť.'; + String get settings_presetCustom => 'Vlastné'; @override String get settings_frequency => 'Frekvencia (MHz)'; @override - String get settings_frequencyHelper => '300,0 – 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override - String get settings_frequencyInvalid => 'Neplatná frekvencia (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Neplatná frekvencia (150-2500 MHz)'; @override String get settings_bandwidth => 'Šírka pásma'; @override - String get settings_spreadingFactor => 'Rozptýľovací faktor'; + String get settings_spreadingFactor => 'Rozptyľovací faktor'; @override - String get settings_codingRate => 'Cenový kurz pre programovanie'; + String get settings_codingRate => 'Rýchlosť kódovania'; @override String get settings_txPower => 'TX Výkon (dBm)'; @@ -967,17 +1054,24 @@ class AppLocalizationsSk extends AppLocalizations { String get settings_txPowerInvalid => 'Neplatná hodnota výkonu TX (0-22 dBm)'; @override - String get settings_clientRepeat => 'Opätovné použitie bez elektrickej siete'; + String get settings_clientRepeat => 'Režim off-grid opakovania'; + + @override + String get settings_clientRepeatDescription => + 'Umožňuje tomuto zariadeniu preposielať pakety. Je určený na miesta bez pokrytia opakovačmi.\n\nTento režim používa obmedzenú sadu frekvencií. Jeho ZAPNUTIE vás pravdepodobne odpojí od širšej siete mesh. Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma a rozptyľovací faktor (SF). Líšiť sa môže len rýchlosť kódovania (CR).'; + + @override + String get settings_clientRepeatSwitch => 'Režim opakovania'; + + @override + String get settings_clientRepeatNote => + 'Poznámka: Po VYPNUTÍ sa obnoví predchádzajúca frekvencia. Ak sa potom nemôžete pripojiť k sieti mesh, skontrolujte prednastavenia/parametre.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frekvencia nastavená na $freq MHz pre opakovanie mimo siete'; } - @override - String get settings_clientRepeatSubtitle => - 'Umožnite, aby toto zariadenie opakovávalo siete pre ostatných.'; - @override String get settings_clientRepeatFreqWarning => 'Použitie off-grid systému vyžaduje frekvencie 433, 869 alebo 918 MHz.'; @@ -1309,7 +1403,7 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Veľkosť ID uzla zaznamenávaného v ceste odosielaných flood paketov: 1 bajt (256 ID, až 64 skokov), 2 bajty (65 tis., až 32 skokov), 3 bajty (16 mil., až 21 skokov). Väčšie ID znižujú kolízie, ale opakovače s firmvérom starším ako v1.14 odhadzujú pakety s 2- alebo 3-bajtovými ID.'; + 'Veľkosť ID každého uzla v ceste flood paketov odosielaných týmto rádiom:\n\n- 1 bajt: 256 jedinečných ID, až 64 skokov. \"ab\".\n- 2 bajty: 65 tis. jedinečných ID, až 32 skokov. \"ab12\".\n- 3 bajty: 16 mil. jedinečných ID, až 21 skokov. \"ab12cd\".\n\nVäčšie ID znižujú kolízie, ale opakovače s firmvérom starším ako v1.14 zahadzujú pakety s 2- a 3-bajtovými ID.'; @override String settings_requiresFirmware(String version) { @@ -3923,7 +4017,7 @@ class AppLocalizationsSk extends AppLocalizations { 'Doladenie pre skúsených prevádzkovateľov'; @override - String get repeater_pathHashMode => 'Veľkosť ID uzla v cestách'; + String get repeater_pathHashMode => 'Veľkosť hashu ID'; @override String get repeater_pathHashModeHelper => @@ -5697,11 +5791,21 @@ class AppLocalizationsSk extends AppLocalizations { 'MeshCore Open nebeží. Otvorte ho a odošlite odpoveď ešte raz.'; @override - String get settings_exportBookmarks => 'Exportovať záložky do Markdownu'; + String get export_messagesTitle => 'Správy'; @override - String get settings_exportBookmarksSubtitle => - 'Zdieľať alebo uložiť správy so záložkou ako súbor Markdown.'; + String get export_messagesDescription => + 'Správy v záložkách, uložené ako súbor Markdown.'; + + @override + String get export_locationsTitle => 'Polohy kontaktov'; + + @override + String get export_locationsDescription => + 'Kontakty so známou polohou, uložené ako súbor GPX pre mapové aplikácie.'; + + @override + String get settings_exportBookmarks => 'Záložky'; @override String get settings_exportBookmarksSuccess => 'Záložky boli exportované.'; @@ -5711,26 +5815,13 @@ class AppLocalizationsSk extends AppLocalizations { 'Nie sú žiadne záložky na export.'; @override - String get settings_gpxExportRepeaters => - 'Exportovať repeater / server miestnosti do GPX'; + String get settings_gpxExportRepeaters => 'Opakovače a miestnosti'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exportuje repeater / roomserver s lokalitou do súboru GPX.'; + String get settings_gpxExportContacts => 'Používatelia / Companiony'; @override - String get settings_gpxExportContacts => 'Export sprievodcov do GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exportuje sprievodcov s umiestnením do súboru GPX.'; - - @override - String get settings_gpxExportAll => 'Exportovať všetky kontakty do GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exportuje všetky kontakty s lokalitou do súboru GPX.'; + String get settings_gpxExportAll => 'Všetky kontakty'; @override String get settings_gpxExportSuccess => 'Úspešne exportovaný súbor GPX.'; @@ -5784,58 +5875,41 @@ class AppLocalizationsSk extends AppLocalizations { String get contactsSettings_title => 'Nastavenia kontaktov'; @override - String get contactsSettings_autoAddTitle => 'Automatické zisťovanie'; + String get contactsSettings_autoAddTitle => 'Automaticky pridávať kontakty'; @override - String get contactsSettings_otherTitle => - 'Ďalšie nastavenia súvisiace s kontaktami'; + String get contactsSettings_autoAddDescription => + 'Novo počuté uzly týchto typov sa pridajú do kontaktov rádia. Ostatné môžete pridať neskôr z obrazovky „Objavené kontakty“.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Automaticky pridávať užívateľov'; + String get contactsSettings_otherTitle => 'Limity zoznamu kontaktov'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Povoliť spoločníkovi automaticky pridávať objavených užívateľov.'; + String get contactsSettings_autoAddUsersTitle => 'Používatelia'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Automaticky pridávať opakovače'; + String get contactsSettings_autoAddRepeatersTitle => 'Opakovače'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Povoliť spoločníkovi automaticky pridávať objavené repeater.'; + String get contactsSettings_autoAddRoomServersTitle => 'Servery miestností'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Automaticky pridávať server miestnosti'; + String get contactsSettings_autoAddSensorsTitle => 'Senzory'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Povoliť spoločníkovi automaticky pridať objavené serverové miestnosti.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Automaticky pridávať senzory'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Povoliť spoločníkovi automaticky pridávať objavené senzory.'; - - @override - String get contactsSettings_overwriteOldestTitle => 'Prepísať najstaršie'; + String get contactsSettings_overwriteOldestTitle => 'Prepisovať najstaršie'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Keď je zoznam kontaktov plný, bude nahradený najstarší neoznačený kontakt.'; + 'Keď je zoznam kontaktov v rádiu plný, nahradí sa najstarší kontakt, ktorý nie je obľúbený.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Odstraňovať objavené kontakty'; + 'Obmedziť objavené kontakty'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Keď je táto možnosť zapnutá, aplikácia odstráni najstaršie objavené kontakty, keď zoznam objavených dosiahne limit $limit záznamov.'; + return 'Aplikácia obmedzuje zoznam „Objavené kontakty“ na $limit položiek. Po dosiahnutí limitu sa staršie kontakty odstránia. Vypnite pre zrušenie limitu.'; } @override diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index 89010646..4a656e3e 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -397,14 +397,16 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_appSettingsSubtitle => - 'Obveščanja, sporoščanje in zemljevidi.'; + 'Obveščanja, sporoščanje in zemljevidi'; @override String get settings_export => 'Izvozi'; @override - String get settings_exportSubtitle => - 'Izvozi kontakte in repetitorje kot GPX'; + String get settings_exportData => 'Izvozi podatke'; + + @override + String get settings_exportSubtitle => 'Zaznamki in lokacije stikov'; @override String get backupRestore_title => 'Varnostna kopija in obnovitev'; @@ -598,6 +600,51 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_nodeNameHint => 'Vnesite ime node-a'; + @override + String get nodeName_info => + 'Vsak bajt v vašem imenu je en bajt manj za sporočila v kanalih. Črke s strešicami, posebni znaki in emoji lahko porabijo več kot en bajt.'; + + @override + String get nodeName_messageLength => 'Dolžina sporočila'; + + @override + String get nodeName_channelMessages => 'Sporočila v kanalih'; + + @override + String get nodeName_channelMessagesSubtitle => 'Vaše ime jih skrajša'; + + @override + String get nodeName_directMessages => 'Neposredna sporočila'; + + @override + String get nodeName_directMessagesSubtitle => 'Vaše ime nanje ne vpliva'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajtov na voljo', + few: '$count bajti na voljo', + two: '$count bajta na voljo', + one: '$count bajt na voljo', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count bajtov čez omejitev', + few: '$count bajti čez omejitev', + two: '$count bajta čez omejitev', + one: '$count bajt čez omejitev', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Ime posodobljeno'; @@ -608,6 +655,10 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frekvenca, moč, razširitveni faktor'; + @override + String get settings_unsavedChangesMessage => + 'Imate spremembe, ki niso shranjene v radiu.'; + @override String get settings_radioSettingsUpdated => 'Radio nastavitve posodobljene'; @@ -705,6 +756,23 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS koordinate'; + @override + String get location_coordinates => 'Koordinate'; + + @override + String get location_coordinatesDescription => + 'Položaj vašega vozlišča. Prikazan je na zemljevidu, uporabljen pri deljenju lokacije in poslan v oglasih, ko je vklopljena »Lokacija oglasa« (Nastavitve zasebnosti).'; + + @override + String get location_pickOnMap => 'Izberi na zemljevidu'; + + @override + String get locationPicker_hint => + 'Povlecite zemljevid ali tapnite, da postavite oznako.'; + + @override + String get locationPicker_useLocation => 'Uporabi to lokacijo'; + @override String get settings_locationUpdated => 'Lokacija posodobljena'; @@ -720,10 +788,13 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Omogoči samodejno posodabljanje lokacije z GPS-jem.'; + 'Sproti posodablja lokacijo iz GPS-a radia.'; @override - String get settings_locationIntervalSec => 'Interval za GPS (Sekunde)'; + String get settings_locationIntervalSec => 'Interval posodabljanja (sekunde)'; + + @override + String get settings_locationIntervalHelper => 'od 60 do 86399 sekund'; @override String get settings_locationIntervalInvalid => @@ -740,7 +811,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'Nastavitve za dodajanje stikov.'; + 'Nastavitve za dodajanje stikov'; @override String get settings_privacyMode => 'Zasebnost'; @@ -763,7 +834,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_privacySubtitle => - 'Kontrolirajte, katere informacije so deljene.'; + 'Kontrolirajte, katere informacije so deljene'; @override String get settings_privacySettingsDescription => @@ -790,7 +861,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Da stiku dovolite, odprite njegov klepet in v meniju izberite Nastavitve stika.'; + 'Da določenemu stiku dovolite, odprite njegov klepet in v meniju izberite Nastavitve stika.'; @override String get settings_advertLocation => 'Lokacija oglasa'; @@ -811,7 +882,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Pošiljajte dodatna potrdila ACK za boljšo dostavo; porabi več časa v etru'; + 'Pošlje 2 potrdili (ACK) namesto 1, ko se potrditev vrača po neposredni poti. Bolj zanesljivo, vendar porabi več časa v etru.'; @override String get settings_telemetryModeUpdated => 'Način telemetrije posodobljen'; @@ -824,7 +895,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Počisti vse podatke o poteh iz stikov.'; + 'Počisti vse podatke o poteh iz stikov'; @override String get settings_sendAdvertisement => 'Pošlji Oglas'; @@ -870,7 +941,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_companionDebugLogSubtitle => - 'Navodila, odgovori in surova podatka za BLE/TCP/USB.'; + 'Navodila, odgovori in surova podatka za BLE/TCP/USB'; @override String get settings_appDebugLog => 'Logi aplikacije'; @@ -879,16 +950,16 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_appDebugLogSubtitle => 'Debug sporočila aplikacije'; @override - String get settings_about => 'Oglejte si'; + String get settings_about => 'O aplikaciji'; @override - String settings_aboutVersion(String version) { - return 'MeshCore, različ $version'; + String get settings_aboutTheApp => 'O aplikaciji'; + + @override + String settings_aboutLegalese(String year) { + return 'Odprtokodni projekt MeshCore $year'; } - @override - String get settings_aboutLegalese => 'Odprtokodni projekt MeshCore 2024'; - @override String get settings_aboutDescription => 'Odprtokodni Flutter klient za naprave za LoRa omrežje MeshCore.'; @@ -897,6 +968,24 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Podatki o višini LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projekt'; + + @override + String get about_sourceCode => 'Izvorna koda'; + + @override + String get about_license => 'Licenca'; + + @override + String get about_openSourceLicenses => 'Odprtokodne licence'; + + @override + String get about_credits => 'Zahvale'; + + @override + String get about_contributors => 'Sodelavci'; + @override String get settings_infoName => 'Ime'; @@ -931,20 +1020,19 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_presets => 'Prednastavitve'; @override - String get settings_presetCustom => 'Po meri'; + String get settings_radioParameters => 'Parametri'; @override - String get settings_radioMatchWarning => - 'Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino in SF. Hitrost kodiranja (CR) se lahko razlikuje.'; + String get settings_presetCustom => 'Po meri'; @override String get settings_frequency => 'Frekvenca (MHz)'; @override - String get settings_frequencyHelper => '300,00 - 2500,00'; + String get settings_frequencyHelper => '150,00 - 2500,00 MHz'; @override - String get settings_frequencyInvalid => 'Neveljavna frekvenca (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Neveljavna frekvenca (150-2500 MHz)'; @override String get settings_bandwidth => 'Pasovna širina'; @@ -953,7 +1041,7 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_spreadingFactor => 'Razširitveni faktor'; @override - String get settings_codingRate => 'Programska hitrost'; + String get settings_codingRate => 'Kodirna hitrost'; @override String get settings_txPower => 'TX Moč (dBm)'; @@ -967,17 +1055,24 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_txPowerInvalid => 'Neveljavna TX moč (0-22 dBm)'; @override - String get settings_clientRepeat => 'Neovadno ponavljanje'; + String get settings_clientRepeat => 'Način ponavljanja brez omrežja'; + + @override + String get settings_clientRepeatDescription => + 'Tej napravi omogoča posredovanje paketov. Namenjen je uporabi tam, kjer ni pokritosti z repetitorji.\n\nTa način uporablja omejen nabor frekvenc. Ko ga VKLOPITE, boste verjetno izgubili povezavo s širšo mrežo mesh. Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino in razširitveni faktor (SF). Razlikuje se lahko le kodirna hitrost (CR).'; + + @override + String get settings_clientRepeatSwitch => 'Način ponavljanja'; + + @override + String get settings_clientRepeatNote => + 'Opomba: Ko ga IZKLOPITE, se obnovi prejšnja frekvenca. Če se nato ne morete povezati z mrežo mesh, preverite prednastavitve/parametre.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frekvenca nastavljena na $freq MHz za ponavljanje brez omrežja'; } - @override - String get settings_clientRepeatSubtitle => - 'Omogočite temu naprave, da ponavlja paketne sporočila za druge.'; - @override String get settings_clientRepeatFreqWarning => 'Za ponovni prenos na brezžični način so potrebne frekvence 433, 869 ali 918 MHz.'; @@ -1308,7 +1403,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Velikost ID vozlišča, zapisanega v poti pošiljanih paketov flood: 1 bajt (256 ID, do 64 skokov), 2 bajta (65 tisoč, do 32 skokov), 3 bajti (16 milijonov, do 21 skokov). Večja ID zmanjšajo trčenja, vendar ponovitelji s programsko opremo, starejšo od v1.14, zavrnejo pakete z 2- ali 3-bajtnimi ID.'; + 'Velikost ID-ja vsakega vozlišča v poti paketov flood, ki jih pošilja ta radio:\n\n- 1 bajt: 256 edinstvenih ID-jev, do 64 skokov. \"ab\".\n- 2 bajta: 65 tisoč edinstvenih ID-jev, do 32 skokov. \"ab12\".\n- 3 bajti: 16 milijonov edinstvenih ID-jev, do 21 skokov. \"ab12cd\".\n\nVečji ID-ji zmanjšajo trke, vendar repetitorji z vdelano programsko opremo, starejšo od v1.14, zavržejo pakete z 2- in 3-bajtnimi ID-ji.'; @override String settings_requiresFirmware(String version) { @@ -3918,7 +4013,7 @@ class AppLocalizationsSl extends AppLocalizations { 'Gumbi za nastavljanje za izkušene uporabnike'; @override - String get repeater_pathHashMode => 'Velikost ID-ja vozlišča v poteh'; + String get repeater_pathHashMode => 'Velikost zgoščene vrednosti ID-ja'; @override String get repeater_pathHashModeHelper => @@ -5687,11 +5782,21 @@ class AppLocalizationsSl extends AppLocalizations { 'MeshCore Open ne teče. Odprite ga in ponovno pošite odgovor.'; @override - String get settings_exportBookmarks => 'Izvozi zaznamke v Markdown'; + String get export_messagesTitle => 'Sporočila'; @override - String get settings_exportBookmarksSubtitle => - 'Deli ali shrani sporočila z zaznamki kot datoteko Markdown.'; + String get export_messagesDescription => + 'Sporočila z zaznamkom, shranjena kot datoteka Markdown.'; + + @override + String get export_locationsTitle => 'Lokacije stikov'; + + @override + String get export_locationsDescription => + 'Stiki z znano lokacijo, shranjeni kot datoteka GPX za aplikacije z zemljevidi.'; + + @override + String get settings_exportBookmarks => 'Zaznamki'; @override String get settings_exportBookmarksSuccess => 'Zaznamki so izvoženi.'; @@ -5700,26 +5805,13 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_exportBookmarksNoBookmarks => 'Ni zaznamkov za izvoz.'; @override - String get settings_gpxExportRepeaters => - 'Izvoz ponoviteljev / strežnika sobe v GPX'; + String get settings_gpxExportRepeaters => 'Repetitorji in sobe'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Izvozi ponovljene oddajnike / strežnik sobe z lokacijo v datoteko GPX.'; + String get settings_gpxExportContacts => 'Uporabniki / Spremljevalci'; @override - String get settings_gpxExportContacts => 'Izvoz spremljevalcev v GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Izvozi spremljevalce z lokacijo v datoteko GPX.'; - - @override - String get settings_gpxExportAll => 'Izvozi vse kontakte v GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Izvozi vse kontakte z lokacijo v datoteko GPX.'; + String get settings_gpxExportAll => 'Vsi stiki'; @override String get settings_gpxExportSuccess => 'Uspešno izvoz GPX datoteke.'; @@ -5773,57 +5865,41 @@ class AppLocalizationsSl extends AppLocalizations { String get contactsSettings_title => 'Nastavitve stikov'; @override - String get contactsSettings_autoAddTitle => 'Avtomatsko odkrivanje'; + String get contactsSettings_autoAddTitle => 'Avtomatsko dodajanje stikov'; @override - String get contactsSettings_otherTitle => 'Druge nastavitve v zvezi s stiki'; + String get contactsSettings_autoAddDescription => + 'Na novo slišana vozlišča teh vrst se dodajo med stike radia. Druge lahko dodate pozneje na zaslonu »Odkriti stiki«.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Avtomatsko dodaj uporabnike'; + String get contactsSettings_otherTitle => 'Omejitve seznama stikov'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Dovoli spremljevalcu, da samodejno doda odkrite uporabnike.'; + String get contactsSettings_autoAddUsersTitle => 'Uporabniki'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Avtomatsko dodaj ponovitelje'; + String get contactsSettings_autoAddRepeatersTitle => 'Repetitorji'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Dovoli spremljevalcu, da samodejno doda odkrite ponovitelje.'; + String get contactsSettings_autoAddRoomServersTitle => 'Strežniki sob'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Avtomatsko dodaj strežnike sob'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Dovoli spremljevalcu, da samodejno doda odkrite strežnike sob.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Avtomatsko dodaj senzorje'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Dovoli spremljevalcu, da samodejno doda odkrite senzorje.'; + String get contactsSettings_autoAddSensorsTitle => 'Senzorji'; @override String get contactsSettings_overwriteOldestTitle => 'Prepiši najstarejše'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Ko je seznam stikov poln, bo najstarejši nestarševski stik zamenjan.'; + 'Ko je seznam stikov v radiu poln, se zamenja najstarejši stik, ki ni med priljubljenimi.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Odstrani odkrite stike'; + 'Omeji odkrite stike'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Ko je ta možnost vklopljena, aplikacija odstrani najstarejše odkrite stike, ko seznam odkritih stikov doseže omejitev $limit vnosov.'; + return 'Aplikacija omeji seznam »Odkriti stiki« na $limit vnosov. Ko je omejitev dosežena, se starejši stiki odstranijo. Izklopite za odpravo omejitve.'; } @override diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index 7aaaf25d..b5982c31 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -400,8 +400,10 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_export => 'Exportera'; @override - String get settings_exportSubtitle => - 'Exportera kontakter och repeatrar som GPX'; + String get settings_exportData => 'Exportera data'; + + @override + String get settings_exportSubtitle => 'Bokmärken och kontakters platser'; @override String get backupRestore_title => 'Säkerhetskopia och återställning'; @@ -596,6 +598,47 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_nodeNameHint => 'Ange nodnamn'; + @override + String get nodeName_info => + 'Varje byte i ditt namn är en byte mindre för kanalmeddelanden. Specialtecken som å, ä och ö samt emojis kan ta mer än en byte.'; + + @override + String get nodeName_messageLength => 'Meddelandelängd'; + + @override + String get nodeName_channelMessages => 'Kanalmeddelanden'; + + @override + String get nodeName_channelMessagesSubtitle => 'Minskas av ditt namn'; + + @override + String get nodeName_directMessages => 'Direktmeddelanden'; + + @override + String get nodeName_directMessagesSubtitle => 'Påverkas inte av ditt namn'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count byte tillgängliga', + one: '1 byte tillgänglig', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count byte över gränsen', + one: '1 byte över gränsen', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Namn uppdaterat'; @@ -606,6 +649,10 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Frekvens, effekt, spridningsfaktor'; + @override + String get settings_unsavedChangesMessage => + 'Du har ändringar som inte har sparats på radion.'; + @override String get settings_radioSettingsUpdated => 'Radioinställningarna har uppdaterats'; @@ -703,6 +750,23 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS-koordinater'; + @override + String get location_coordinates => 'Koordinater'; + + @override + String get location_coordinatesDescription => + 'Din nods position. Den visas på kartan, används när du delar din plats och skickas i annonser när Plats i annons är på (Inställningar för sekretess).'; + + @override + String get location_pickOnMap => 'Välj på kartan'; + + @override + String get locationPicker_hint => + 'Dra kartan eller tryck för att placera markören.'; + + @override + String get locationPicker_useLocation => 'Använd den här platsen'; + @override String get settings_locationUpdated => 'Plats uppdaterad'; @@ -717,10 +781,13 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Aktivera automatiska uppdateringar av platsen med hjälp av GPS.'; + 'Håller platsen uppdaterad från radions GPS.'; @override - String get settings_locationIntervalSec => 'Interval för GPS (Sekunder)'; + String get settings_locationIntervalSec => 'Uppdateringsintervall (sekunder)'; + + @override + String get settings_locationIntervalHelper => '60 till 86399 sekunder'; @override String get settings_locationIntervalInvalid => @@ -737,7 +804,7 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_contactSettingsSubtitle => - 'Inställningar för hur kontakter läggs till.'; + 'Inställningar för hur kontakter läggs till'; @override String get settings_privacyMode => 'Privatläge'; @@ -760,7 +827,7 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_privacySubtitle => - 'Kontrollera vilken information som delas.'; + 'Kontrollera vilken information som delas'; @override String get settings_privacySettingsDescription => @@ -786,10 +853,10 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'För att tillåta en kontakt öppnar du chatten och väljer Kontaktinställningar i menyn.'; + 'För att tillåta en specifik kontakt öppnar du chatten och väljer Kontaktinställningar i menyn.'; @override - String get settings_advertLocation => 'Annonsplacering'; + String get settings_advertLocation => 'Plats i annons'; @override String get settings_advertLocationSubtitle => 'Inkludera plats i annonsen'; @@ -807,7 +874,7 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Skicka extra ACK för bättre leverans; använder mer sändningstid'; + 'Skicka 2 bekräftelser (ACK) i stället för 1 när bekräftelsen går tillbaka via en direkt rutt. Mer tillförlitligt, men använder mer sändningstid.'; @override String get settings_telemetryModeUpdated => 'Telemetri-läge uppdaterat'; @@ -820,7 +887,7 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Rensa all ruttdata från kontakter.'; + 'Rensa all ruttdata från kontakter'; @override String get settings_sendAdvertisement => 'Skicka annons'; @@ -878,12 +945,12 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_about => 'Om'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open version $version'; - } + String get settings_aboutTheApp => 'Om appen'; @override - String get settings_aboutLegalese => '2026 MeshCore Open Source-projekt'; + String settings_aboutLegalese(String year) { + return '$year MeshCore Open Source-projekt'; + } @override String get settings_aboutDescription => @@ -893,6 +960,24 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS-höjddata: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Projekt'; + + @override + String get about_sourceCode => 'Källkod'; + + @override + String get about_license => 'Licens'; + + @override + String get about_openSourceLicenses => 'Licenser för öppen källkod'; + + @override + String get about_credits => 'Erkännanden'; + + @override + String get about_contributors => 'Bidragsgivare'; + @override String get settings_infoName => 'Namn'; @@ -927,20 +1012,19 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_presets => 'Fördefinierade inställningar'; @override - String get settings_presetCustom => 'Anpassad'; + String get settings_radioParameters => 'Parametrar'; @override - String get settings_radioMatchWarning => - 'Alla noder du kommunicerar med måste använda samma frekvens, bandbredd och SF. Kodningshastigheten (CR) får skilja sig.'; + String get settings_presetCustom => 'Anpassad'; @override String get settings_frequency => 'Frekvens (MHz)'; @override - String get settings_frequencyHelper => '300,0 - 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 MHz'; @override - String get settings_frequencyInvalid => 'Ogiltig frekvens (300-2500 MHz)'; + String get settings_frequencyInvalid => 'Ogiltig frekvens (150-2500 MHz)'; @override String get settings_bandwidth => 'Bandbredd'; @@ -963,17 +1047,24 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_txPowerInvalid => 'Ogiltig TX-effekt (0-22 dBm)'; @override - String get settings_clientRepeat => 'Upprepa utan elnät'; + String get settings_clientRepeat => 'Off-grid-repeteringsläge'; + + @override + String get settings_clientRepeatDescription => + 'Låter den här enheten repetera paket. Avsett för platser utan repeatertäckning.\n\nDet här läget använder ett begränsat urval av frekvenser. Om du slår PÅ det kopplas du troligen bort från resten av meshnätet. Alla noder du pratar med måste använda samma frekvens, bandbredd och spridningsfaktor (SF). Endast kodningsgraden (CR) får skilja sig åt.'; + + @override + String get settings_clientRepeatSwitch => 'Repeteringsläge'; + + @override + String get settings_clientRepeatNote => + 'Obs: Om du slår AV det återställs den tidigare frekvensen. Kontrollera fördefinierade inställningar/parametrar om du inte kan ansluta till meshnätet efteråt.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Frekvensen är satt till $freq MHz för upprepning utan elnät'; } - @override - String get settings_clientRepeatSubtitle => - 'Låt enheten repetera nätpaket för andra användare.'; - @override String get settings_clientRepeatFreqWarning => 'För att kunna kommunicera utanför elnätet krävs frekvenserna 433, 869 eller 918 MHz.'; @@ -1303,7 +1394,7 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Storleken på varje nod-ID som registreras i rutten för de flood-paket som den här radion skickar: 1 byte (256 ID:n, upp till 64 hopp), 2 byte (65K ID:n, upp till 32 hopp), 3 byte (16M ID:n, upp till 21 hopp). Större ID:n minskar kollisioner, men repeatrar med firmware äldre än v1.14 tappar paket med 2- eller 3-byte-ID:n.'; + 'Storleken på varje nods ID som sparas i rutten för flood-paket som den här radion skickar:\n\n- 1 byte: 256 unika ID:n, upp till 64 hopp. \"ab\".\n- 2 byte: 65K unika ID:n, upp till 32 hopp. \"ab12\".\n- 3 byte: 16M unika ID:n, upp till 21 hopp. \"ab12cd\".\n\nStörre ID:n minskar kollisioner, men repeatrar med firmware äldre än v1.14 tappar paket med 2- och 3-byte-ID:n.'; @override String settings_requiresFirmware(String version) { @@ -3898,7 +3989,7 @@ class AppLocalizationsSv extends AppLocalizations { 'Ställjusteringsknappar för erfarna användare'; @override - String get repeater_pathHashMode => 'Läge för rutthash'; + String get repeater_pathHashMode => 'ID-hashstorlek'; @override String get repeater_pathHashModeHelper => @@ -5657,11 +5748,21 @@ class AppLocalizationsSv extends AppLocalizations { 'MeshCore Open är inte igång. Öppna appen och skicka ditt svar igen.'; @override - String get settings_exportBookmarks => 'Exportera bokmärken till Markdown'; + String get export_messagesTitle => 'Meddelanden'; @override - String get settings_exportBookmarksSubtitle => - 'Dela eller spara bokmärkta meddelanden som en Markdown-fil.'; + String get export_messagesDescription => + 'Bokmärkta meddelanden, sparade som en Markdown-fil.'; + + @override + String get export_locationsTitle => 'Kontakters platser'; + + @override + String get export_locationsDescription => + 'Kontakter med känd plats, sparade som en GPX-fil för kartappar.'; + + @override + String get settings_exportBookmarks => 'Bokmärken'; @override String get settings_exportBookmarksSuccess => 'Bokmärken exporterade.'; @@ -5671,27 +5772,13 @@ class AppLocalizationsSv extends AppLocalizations { 'Inga bokmärken att exportera.'; @override - String get settings_gpxExportRepeaters => - 'Exportera repeatrar/rumsservrar till GPX'; + String get settings_gpxExportRepeaters => 'Repeatrar och rum'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Exporterar repeatrar/rumsservrar med position till en GPX-fil.'; + String get settings_gpxExportContacts => 'Användare / Companions'; @override - String get settings_gpxExportContacts => - 'Exportera Companion-kontakter till GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Exporterar Companion-enheter med position till en GPX-fil.'; - - @override - String get settings_gpxExportAll => 'Exportera alla kontakter till GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Exporterar alla kontakter med en plats till GPX-fil.'; + String get settings_gpxExportAll => 'Alla kontakter'; @override String get settings_gpxExportSuccess => 'Har exporterat GPX-fil med framgång'; @@ -5746,58 +5833,41 @@ class AppLocalizationsSv extends AppLocalizations { String get contactsSettings_title => 'Kontaktinställningar'; @override - String get contactsSettings_autoAddTitle => 'Automatisk upptäckt'; + String get contactsSettings_autoAddTitle => 'Lägg till kontakter automatiskt'; @override - String get contactsSettings_otherTitle => - 'Andra inställningar relaterade till kontakt'; + String get contactsSettings_autoAddDescription => + 'Lägg till nyligen hörda noder av dessa typer i radions kontakter. Andra kan läggas till senare från Upptäckta kontakter.'; @override - String get contactsSettings_autoAddUsersTitle => - 'Lägg till användare automatiskt'; + String get contactsSettings_otherTitle => 'Kontaktlistgränser'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Tillåt Companion-enheten att automatiskt lägga till upptäckta användare.'; + String get contactsSettings_autoAddUsersTitle => 'Användare'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Lägg till repeatrar automatiskt'; + String get contactsSettings_autoAddRepeatersTitle => 'Repeatrar'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Tillåt Companion-enheten att automatiskt lägga till upptäckta repeatrar.'; + String get contactsSettings_autoAddRoomServersTitle => 'Rumsservrar'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Lägg automatiskt till rumsservrar'; - - @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Tillåt Companion-enheten att automatiskt lägga till upptäckta rumsservrar.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Lägg till sensorer automatiskt'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Tillåt Companion-enheten att automatiskt lägga till upptäckta sensorer.'; + String get contactsSettings_autoAddSensorsTitle => 'Sensorer'; @override String get contactsSettings_overwriteOldestTitle => 'Skriv över äldsta'; @override String get contactsSettings_overwriteOldestSubtitle => - 'När kontaktlistan är full ersätts den äldsta icke-favoriterade kontakten.'; + 'När radions kontaktlista är full ersätts den äldsta kontakten som inte är en favorit.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Rensa upptäckta kontakter'; + 'Begränsa upptäckta kontakter'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return '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.'; + return 'Appen begränsar listan ”Upptäckta kontakter” till $limit poster. När gränsen nås tas äldre kontakter bort. Stäng av för att ta bort gränsen.'; } @override diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index ece868ba..624c5c27 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -404,7 +404,10 @@ class AppLocalizationsUk extends AppLocalizations { String get settings_export => 'Експорт'; @override - String get settings_exportSubtitle => 'Експорт контактів і репітерів у GPX'; + String get settings_exportData => 'Експорт даних'; + + @override + String get settings_exportSubtitle => 'Закладки та геопозиції контактів'; @override String get backupRestore_title => 'Резервне копіювання'; @@ -598,6 +601,51 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_nodeNameHint => 'Введіть ім\'я вузла'; + @override + String get nodeName_info => + 'Кожен байт імені на байт зменшує довжину повідомлень у каналах. Кирилиця, спецсимволи та емодзі займають понад один байт.'; + + @override + String get nodeName_messageLength => 'Довжина повідомлення'; + + @override + String get nodeName_channelMessages => 'Повідомлення в каналах'; + + @override + String get nodeName_channelMessagesSubtitle => 'Коротші на довжину імені'; + + @override + String get nodeName_directMessages => 'Особисті повідомлення'; + + @override + String get nodeName_directMessagesSubtitle => 'Не залежать від імені'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count байта доступно', + many: '$count байтів доступно', + few: '$count байти доступні', + one: '$count байт доступний', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count байта понад ліміт', + many: '$count байтів понад ліміт', + few: '$count байти понад ліміт', + one: '$count байт понад ліміт', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => 'Ім\'я оновлено'; @@ -608,6 +656,10 @@ class AppLocalizationsUk extends AppLocalizations { String get settings_radioSettingsSubtitle => 'Частота, потужність, коефіцієнт розширення'; + @override + String get settings_unsavedChangesMessage => + 'У вас є зміни, не збережені на радіо.'; + @override String get settings_radioSettingsUpdated => 'Налаштування радіо оновлено'; @@ -704,6 +756,23 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS-координати'; + @override + String get location_coordinates => 'Координати'; + + @override + String get location_coordinatesDescription => + 'Позиція вашого вузла. Показується на карті, використовується, коли ви ділитеся геопозицією, і надсилається в оголошеннях, якщо увімкнено «Геопозиція в оголошенні» (Налаштування приватності).'; + + @override + String get location_pickOnMap => 'Вибрати на карті'; + + @override + String get locationPicker_hint => + 'Перетягніть карту або торкніться, щоб поставити мітку.'; + + @override + String get locationPicker_useLocation => 'Використати це місце'; + @override String get settings_locationUpdated => 'Геопозицію оновлено'; @@ -718,10 +787,13 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_locationGPSEnableSubtitle => - 'Вмикає автоматичне оновлення геопозиції через GPS.'; + 'Оновлює геопозицію за даними GPS радіо.'; @override - String get settings_locationIntervalSec => 'Інтервал для GPS (Секунди)'; + String get settings_locationIntervalSec => 'Інтервал оновлення (секунди)'; + + @override + String get settings_locationIntervalHelper => 'від 60 до 86399 секунд'; @override String get settings_locationIntervalInvalid => @@ -788,7 +860,7 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_telemetryPerContactHint => - 'Щоб дозволити контакт, відкрийте його чат і виберіть «Налаштування контактів» в меню.'; + 'Щоб дозволити конкретний контакт, відкрийте його чат і виберіть «Налаштування контактів» в меню.'; @override String get settings_advertLocation => 'Геопозиція в оголошенні'; @@ -810,7 +882,7 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_multiAckSubtitle => - 'Надсилати додаткові ACK для кращої доставки; використовує більше часу в ефірі'; + 'Надсилати 2 підтвердження (ACK) замість 1, коли підтвердження повертається прямим маршрутом. Надійніше, але використовує більше часу в ефірі.'; @override String get settings_telemetryModeUpdated => 'Режим телеметрії оновлено'; @@ -823,7 +895,7 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Очистити всі дані шляхів у контактах.'; + 'Очистити всі дані шляхів у контактах'; @override String get settings_sendAdvertisement => 'Оголосити себе'; @@ -840,7 +912,7 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_syncTimeSubtitle => - 'Встановити час пристрою відповідно до часу телефону.'; + 'Встановити час пристрою відповідно до часу телефону'; @override String get settings_timeSynchronized => 'Час синхронізовано'; @@ -885,12 +957,12 @@ class AppLocalizationsUk extends AppLocalizations { String get settings_about => 'Про застосунок'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => 'Про застосунок'; @override - String get settings_aboutLegalese => 'Проєкт MeshCore Open Source 2026'; + String settings_aboutLegalese(String year) { + return 'Проєкт MeshCore Open Source $year'; + } @override String get settings_aboutDescription => @@ -900,6 +972,24 @@ class AppLocalizationsUk extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'Дані про висоту LOS: Open-Meteo (CC BY 4.0)'; + @override + String get about_project => 'Проєкт'; + + @override + String get about_sourceCode => 'Вихідний код'; + + @override + String get about_license => 'Ліцензія'; + + @override + String get about_openSourceLicenses => 'Ліцензії відкритого коду'; + + @override + String get about_credits => 'Подяки'; + + @override + String get about_contributors => 'Учасники'; + @override String get settings_infoName => 'Ім\'я'; @@ -934,20 +1024,19 @@ class AppLocalizationsUk extends AppLocalizations { String get settings_presets => 'Попередні налаштування'; @override - String get settings_presetCustom => 'Власний'; + String get settings_radioParameters => 'Параметри'; @override - String get settings_radioMatchWarning => - 'Усі вузли, з якими ви спілкуєтесь, мають використовувати однакові частоту, смугу пропускання та SF. Швидкість кодування (CR) може відрізнятися.'; + String get settings_presetCustom => 'Власний'; @override String get settings_frequency => 'Частота (МГц)'; @override - String get settings_frequencyHelper => '300,0 – 2500,0'; + String get settings_frequencyHelper => '150,0 - 2500,0 МГц'; @override - String get settings_frequencyInvalid => 'Некоректна частота (300-2500 МГц)'; + String get settings_frequencyInvalid => 'Некоректна частота (150-2500 МГц)'; @override String get settings_bandwidth => 'Смуга пропускання'; @@ -970,17 +1059,24 @@ class AppLocalizationsUk extends AppLocalizations { String get settings_txPowerInvalid => 'Некоректна потужність TX (0-22 дБм)'; @override - String get settings_clientRepeat => 'Автономна система'; + String get settings_clientRepeat => 'Режим повтору поза мережею'; + + @override + String get settings_clientRepeatDescription => + 'Дозволяє цьому пристрою ретранслювати пакети. Призначений для місць, де немає покриття ретрансляторів.\n\nЦей режим використовує обмежений набір частот. Після УВІМКНЕННЯ ви, ймовірно, втратите зв\'язок із загальною mesh-мережею. Усі вузли, з якими ви спілкуєтеся, мають використовувати ту саму частоту, смугу пропускання й коефіцієнт розширення (SF). Відрізнятися може лише швидкість кодування (CR).'; + + @override + String get settings_clientRepeatSwitch => 'Режим повтору'; + + @override + String get settings_clientRepeatNote => + 'Примітка: Після ВИМКНЕННЯ буде відновлено попередню частоту. Якщо потім не вдається підключитися до mesh-мережі, перевірте попередні налаштування/параметри.'; @override String settings_clientRepeatFrequencyNote(String freq) { return 'Частота $freq МГц для повтору без підключення до мережі'; } - @override - String get settings_clientRepeatSubtitle => - 'Дозвольте цьому пристрою повторювати пакети даних для інших пристроїв.'; - @override String get settings_clientRepeatFreqWarning => 'Повтор без підключення до мережі вимагає частоти 433, 869 або 918 МГц.'; @@ -1311,7 +1407,7 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_pathHashModeHelper => - 'Розмір кожного ідентифікатора вузла, який записується в шлях Flood-пакетів, які надсилає це радіо: 1 байт (256 ідентифікаторів, до 64 переходів), 2 байти (65 тис. ідентифікаторів, до 32 переходів), 3 байти (16 млн ідентифікаторів, до 21 переходу). Більші ідентифікатори зменшують кількість зіткнень, але ретранслятори з прошивкою старішою за v1.14 відкидають пакети з 2- або 3-байтовими ідентифікаторами.'; + 'Розмір ID кожного вузла в шляху Flood-пакетів, які надсилає це радіо:\n\n- 1 байт: 256 унікальних ID, до 64 переходів. \"ab\".\n- 2 байти: 65 тис. унікальних ID, до 32 переходів. \"ab12\".\n- 3 байти: 16 млн унікальних ID, до 21 переходу. \"ab12cd\".\n\nДовші ID зменшують кількість колізій, але ретранслятори з прошивкою, старішою за v1.14, відкидають пакети з 2- і 3-байтовими ID.'; @override String settings_requiresFirmware(String version) { @@ -3936,7 +4032,7 @@ class AppLocalizationsUk extends AppLocalizations { 'Тонке налаштування для досвідчених операторів'; @override - String get repeater_pathHashMode => 'Розмір ID вузла в шляхах'; + String get repeater_pathHashMode => 'Розмір хешу ID'; @override String get repeater_pathHashModeHelper => @@ -5722,11 +5818,21 @@ class AppLocalizationsUk extends AppLocalizations { 'MeshCore Open не запущено. Відкрийте його та надішліть відповідь ще раз.'; @override - String get settings_exportBookmarks => 'Експорт закладок у Markdown'; + String get export_messagesTitle => 'Повідомлення'; @override - String get settings_exportBookmarksSubtitle => - 'Поділіться закладками або збережіть їх у файл Markdown.'; + String get export_messagesDescription => + 'Повідомлення в закладках, збережені як файл Markdown.'; + + @override + String get export_locationsTitle => 'Геопозиції контактів'; + + @override + String get export_locationsDescription => + 'Контакти з відомою геопозицією, збережені як файл GPX для картографічних застосунків.'; + + @override + String get settings_exportBookmarks => 'Закладки'; @override String get settings_exportBookmarksSuccess => 'Закладки експортовано.'; @@ -5736,26 +5842,13 @@ class AppLocalizationsUk extends AppLocalizations { 'Немає закладок для експорту.'; @override - String get settings_gpxExportRepeaters => - 'Експорт ретрансляторів і серверів кімнат у GPX'; + String get settings_gpxExportRepeaters => 'Ретранслятори та кімнати'; @override - String get settings_gpxExportRepeatersSubtitle => - 'Експортує ретранслятори та сервери кімнат з геопозицією у файл GPX.'; + String get settings_gpxExportContacts => 'Користувачі / Компаньйони'; @override - String get settings_gpxExportContacts => 'Експорт контактів у GPX'; - - @override - String get settings_gpxExportContactsSubtitle => - 'Експортує контакти з геопозицією у файл GPX.'; - - @override - String get settings_gpxExportAll => 'Експорт усіх контактів у GPX'; - - @override - String get settings_gpxExportAllSubtitle => - 'Експортує всі контакти з геопозицією у файл GPX.'; + String get settings_gpxExportAll => 'Усі контакти'; @override String get settings_gpxExportSuccess => 'Успішно експортовано файл GPX.'; @@ -5809,58 +5902,42 @@ class AppLocalizationsUk extends AppLocalizations { String get contactsSettings_title => 'Налаштування контактів'; @override - String get contactsSettings_autoAddTitle => 'Автоматичне виявлення'; + String get contactsSettings_autoAddTitle => 'Автоматичне додавання контактів'; @override - String get contactsSettings_otherTitle => - 'Інші налаштування, пов\'язані з контактами'; + String get contactsSettings_autoAddDescription => + 'Вперше почуті вузли цих типів додаються до контактів радіо. Інші можна додати пізніше на екрані «Виявлені контакти».'; @override - String get contactsSettings_autoAddUsersTitle => - 'Автоматично додавати користувачів'; + String get contactsSettings_otherTitle => 'Ліміти списку контактів'; @override - String get contactsSettings_autoAddUsersSubtitle => - 'Дозволити пристрою-компаньйону автоматично додавати виявлених користувачів'; + String get contactsSettings_autoAddUsersTitle => 'Користувачі'; @override - String get contactsSettings_autoAddRepeatersTitle => - 'Автоматично додавати ретранслятори'; + String get contactsSettings_autoAddRepeatersTitle => 'Ретранслятори'; @override - String get contactsSettings_autoAddRepeatersSubtitle => - 'Дозволити пристрою-компаньйону автоматично додавати виявлені ретранслятори'; + String get contactsSettings_autoAddRoomServersTitle => 'Сервери кімнат'; @override - String get contactsSettings_autoAddRoomServersTitle => - 'Автоматично додавати сервери кімнат'; + String get contactsSettings_autoAddSensorsTitle => 'Сенсори'; @override - String get contactsSettings_autoAddRoomServersSubtitle => - 'Дозволити пристрою-компаньйону автоматично додавати виявлені сервери кімнат.'; - - @override - String get contactsSettings_autoAddSensorsTitle => - 'Автоматично додавати сенсори'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => - 'Дозволити пристрою-компаньйону автоматично додавати виявлені сенсори'; - - @override - String get contactsSettings_overwriteOldestTitle => 'Перезаписати найстаріше'; + String get contactsSettings_overwriteOldestTitle => + 'Перезаписувати найстаріші'; @override String get contactsSettings_overwriteOldestSubtitle => - 'Коли список контактів заповнений, найстарший контакт без позначки улюбленого буде замінений.'; + 'Коли список контактів радіо заповнений, замінюється найстаріший контакт, якого немає в улюблених.'; @override String get contactsSettings_evictDiscoveredContactsTitle => - 'Видаляти виявлені контакти'; + 'Обмежувати виявлені контакти'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return 'Якщо ввімкнено, застосунок видаляє найстаріші виявлені контакти, коли список виявлених контактів досягає ліміту в $limit записів.'; + return 'Застосунок обмежує список «Виявлені контакти» до $limit записів. Коли ліміт досягнуто, старіші контакти видаляються. Вимкніть, щоб зняти обмеження.'; } @override @@ -6037,7 +6114,7 @@ class AppLocalizationsUk extends AppLocalizations { @override String get radioStats_settingsSubtitle => - 'Рівень шуму, RSSI, SNR та час в ефірі.'; + 'Рівень шуму, RSSI, SNR та час в ефірі'; @override String get translation_title => 'Переклад'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index a61173b5..da104381 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -381,7 +381,10 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_export => '导出'; @override - String get settings_exportSubtitle => '将联系人和中继站导出为 GPX'; + String get settings_exportData => '导出数据'; + + @override + String get settings_exportSubtitle => '书签和联系人位置'; @override String get backupRestore_title => '备份与恢复'; @@ -561,6 +564,44 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_nodeNameHint => '请输入节点名称'; + @override + String get nodeName_info => '名称每占用 1 字节,频道消息可用空间就少 1 字节。中文字符和表情符号每个占用多个字节。'; + + @override + String get nodeName_messageLength => '消息长度'; + + @override + String get nodeName_channelMessages => '频道消息'; + + @override + String get nodeName_channelMessagesSubtitle => '因名称而减少'; + + @override + String get nodeName_directMessages => '私信'; + + @override + String get nodeName_directMessagesSubtitle => '不受名称影响'; + + @override + String nodeName_bytesAvailable(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '可用 $count 字节', + ); + return '$_temp0'; + } + + @override + String nodeName_bytesOver(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '超出上限 $count 字节', + ); + return '$_temp0'; + } + @override String get settings_nodeNameUpdated => '节点名称已更新'; @@ -570,6 +611,9 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_radioSettingsSubtitle => '频率、功率、扩频因子'; + @override + String get settings_unsavedChangesMessage => '你有尚未保存到无线电的更改。'; + @override String get settings_radioSettingsUpdated => '无线电设置已更新'; @@ -660,6 +704,22 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_locationSubtitle => 'GPS 坐标'; + @override + String get location_coordinates => '坐标'; + + @override + String get location_coordinatesDescription => + '你的节点位置。显示在地图上,并在分享位置时使用。在隐私设置中开启“广播位置”后,也会包含在广播中。'; + + @override + String get location_pickOnMap => '在地图上选择'; + + @override + String get locationPicker_hint => '拖动地图或点击以放置标记。'; + + @override + String get locationPicker_useLocation => '使用此位置'; + @override String get settings_locationUpdated => '位置和 GPS 设置已更新'; @@ -673,10 +733,13 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_locationGPSEnable => '启用 GPS'; @override - String get settings_locationGPSEnableSubtitle => '启用 GPS 以自动更新位置。'; + String get settings_locationGPSEnableSubtitle => '通过无线电的 GPS 持续更新位置。'; @override - String get settings_locationIntervalSec => 'GPS 间隔(秒)'; + String get settings_locationIntervalSec => '更新间隔(秒)'; + + @override + String get settings_locationIntervalHelper => '60 至 86399 秒'; @override String get settings_locationIntervalInvalid => '间隔时间必须至少为 60 秒,但不超过 86400 秒。'; @@ -712,7 +775,7 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_privacy => '隐私设置'; @override - String get settings_privacySubtitle => '控制要共享的信息。'; + String get settings_privacySubtitle => '控制要共享的信息'; @override String get settings_privacySettingsDescription => '选择您的设备与他人共享的信息。'; @@ -737,7 +800,7 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_telemetryPerContactHint => - '要允许某个联系人,请打开其聊天并从菜单中选择“联系人设置”。'; + '要允许特定联系人,请打开其聊天并从菜单中选择“联系人设置”。'; @override String get settings_advertLocation => '广播位置'; @@ -756,7 +819,8 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_multiAck => '多重ACK'; @override - String get settings_multiAckSubtitle => '发送额外的 ACK 以提高送达率;会占用更多空中时间'; + String get settings_multiAckSubtitle => + '当确认(ACK)经直连路径返回时,发送 2 次确认,而不是 1 次。更可靠,但会占用更多空中时间。'; @override String get settings_telemetryModeUpdated => '遥测模式已更新'; @@ -768,7 +832,7 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_deleteAllPaths => '删除所有路径'; @override - String get settings_deleteAllPathsSubtitle => '清除联系人中的所有路径数据。'; + String get settings_deleteAllPathsSubtitle => '清除联系人中的所有路径数据'; @override String get settings_sendAdvertisement => '发送广播'; @@ -822,12 +886,12 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_about => '关于'; @override - String settings_aboutVersion(String version) { - return 'MeshCore Open v$version'; - } + String get settings_aboutTheApp => '关于应用'; @override - String get settings_aboutLegalese => '2026 MeshCore 开源项目'; + String settings_aboutLegalese(String year) { + return '$year MeshCore 开源项目'; + } @override String get settings_aboutDescription => @@ -837,6 +901,24 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_aboutOpenMeteoAttribution => 'LOS 高程数据:Open-Meteo (CC BY 4.0)'; + @override + String get about_project => '项目'; + + @override + String get about_sourceCode => '源代码'; + + @override + String get about_license => '许可证'; + + @override + String get about_openSourceLicenses => '开源许可证'; + + @override + String get about_credits => '致谢'; + + @override + String get about_contributors => '贡献者'; + @override String get settings_infoName => '名称'; @@ -871,20 +953,19 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_presets => '预设'; @override - String get settings_presetCustom => '自定义'; + String get settings_radioParameters => '参数'; @override - String get settings_radioMatchWarning => - '你通信的所有节点必须使用相同的频率、带宽和扩频因子。编码速率(CR)可以不同。'; + String get settings_presetCustom => '自定义'; @override String get settings_frequency => '频率 (MHz)'; @override - String get settings_frequencyHelper => '300.0 - 2500.0'; + String get settings_frequencyHelper => '150.0 - 2500.0 MHz'; @override - String get settings_frequencyInvalid => '无效频率范围(300-2500 MHz)'; + String get settings_frequencyInvalid => '无效频率范围(150-2500 MHz)'; @override String get settings_bandwidth => '带宽'; @@ -907,16 +988,24 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_txPowerInvalid => '无效的发射功率(0-22 dBm)'; @override - String get settings_clientRepeat => '离网重复'; + String get settings_clientRepeat => '离网中继模式'; + + @override + String get settings_clientRepeatDescription => + '允许此设备转发数据包。适用于没有中继器覆盖的地区。\n\n此模式只能使用少数几个特定频率。一旦开启,很可能会与更大范围的网状网络断开连接。所有相互通信的节点必须使用相同的频率、带宽和扩频因子(SF)。只有编码速率(CR)可以不同。'; + + @override + String get settings_clientRepeatSwitch => '中继模式'; + + @override + String get settings_clientRepeatNote => + '注意:关闭后将恢复为之前的频率。如果之后无法连接到网状网络,请检查预设/参数。'; @override String settings_clientRepeatFrequencyNote(String freq) { return '为离网重复设置的频率:$freq MHz'; } - @override - String get settings_clientRepeatSubtitle => '允许此设备重复发送网状数据包给其他设备'; - @override String get settings_clientRepeatFreqWarning => '离网重复通信需要使用 433、869 或 918 兆赫兹的频率。'; @@ -1238,7 +1327,7 @@ class AppLocalizationsZh extends AppLocalizations { @override String get settings_pathHashModeHelper => - '此无线电发送的泛洪数据包在路径中记录的每个节点 ID 的大小:1 字节(256 个 ID,最多 64 跳)、2 字节(6.5 万个 ID,最多 32 跳)、3 字节(1600 万个 ID,最多 21 跳)。ID 越大冲突越少,但固件低于 v1.14 的中继器会丢弃带 2 或 3 字节 ID 的数据包。'; + '此无线电发送的泛洪数据包路径中记录的每个节点 ID 的大小:\n\n- 1 字节:256 个唯一 ID,最多 64 跳。\"ab\"。\n- 2 字节:6.5 万个唯一 ID,最多 32 跳。\"ab12\"。\n- 3 字节:1600 万个唯一 ID,最多 21 跳。\"ab12cd\"。\n\nID 越长冲突越少,但固件早于 v1.14 的中继器会丢弃使用 2 字节和 3 字节 ID 的数据包。'; @override String settings_requiresFirmware(String version) { @@ -3712,7 +3801,7 @@ class AppLocalizationsZh extends AppLocalizations { String get repeater_advancedSettingsSubtitle => '高级操作员使用的调节旋钮'; @override - String get repeater_pathHashMode => '路径哈希模式'; + String get repeater_pathHashMode => 'ID 哈希大小'; @override String get repeater_pathHashModeHelper => @@ -5310,10 +5399,19 @@ class AppLocalizationsZh extends AppLocalizations { 'MeshCore Open 未在运行。请打开它并再次发送回复。'; @override - String get settings_exportBookmarks => '将书签导出为 Markdown'; + String get export_messagesTitle => '消息'; @override - String get settings_exportBookmarksSubtitle => '将已加书签的消息分享或保存为 Markdown 文件。'; + String get export_messagesDescription => '已加书签的消息,保存为 Markdown 文件。'; + + @override + String get export_locationsTitle => '联系人位置'; + + @override + String get export_locationsDescription => '位置已知的联系人,保存为 GPX 文件,供地图应用使用。'; + + @override + String get settings_exportBookmarks => '书签'; @override String get settings_exportBookmarksSuccess => '书签已导出。'; @@ -5322,22 +5420,13 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_exportBookmarksNoBookmarks => '没有可导出的书签。'; @override - String get settings_gpxExportRepeaters => '导出转发节点/房间服务器到 GPX'; + String get settings_gpxExportRepeaters => '转发节点和房间'; @override - String get settings_gpxExportRepeatersSubtitle => '导出带位置的转发节点/房间服务器到 GPX 文件'; + String get settings_gpxExportContacts => '用户 / 伴侣设备'; @override - String get settings_gpxExportContacts => '导出伙伴到 GPX'; - - @override - String get settings_gpxExportContactsSubtitle => '导出带位置的伙伴到 GPX 文件'; - - @override - String get settings_gpxExportAll => '导出所有联系人到 GPX'; - - @override - String get settings_gpxExportAllSubtitle => '导出所有带位置的联系人到 GPX 文件'; + String get settings_gpxExportAll => '所有联系人'; @override String get settings_gpxExportSuccess => 'GPX 文件导出成功'; @@ -5387,48 +5476,40 @@ class AppLocalizationsZh extends AppLocalizations { String get contactsSettings_title => '联系人设置'; @override - String get contactsSettings_autoAddTitle => '自动发现'; + String get contactsSettings_autoAddTitle => '自动添加联系人'; @override - String get contactsSettings_otherTitle => '其他联系人相关设置'; + String get contactsSettings_autoAddDescription => + '将新听到的这些类型的节点添加到无线电的联系人中。其他节点可稍后在“已发现的联系人”中添加。'; @override - String get contactsSettings_autoAddUsersTitle => '自动添加用户'; + String get contactsSettings_otherTitle => '联系人列表上限'; @override - String get contactsSettings_autoAddUsersSubtitle => '允许伴侣自动添加发现的用户'; + String get contactsSettings_autoAddUsersTitle => '用户'; @override - String get contactsSettings_autoAddRepeatersTitle => '自动添加重复器'; + String get contactsSettings_autoAddRepeatersTitle => '转发节点'; @override - String get contactsSettings_autoAddRepeatersSubtitle => '允许伴侣自动添加发现的重复器'; + String get contactsSettings_autoAddRoomServersTitle => '房间服务器'; @override - String get contactsSettings_autoAddRoomServersTitle => '自动添加房间服务器'; + String get contactsSettings_autoAddSensorsTitle => '传感器'; @override - String get contactsSettings_autoAddRoomServersSubtitle => '允许伴侣自动添加发现的房间服务器'; - - @override - String get contactsSettings_autoAddSensorsTitle => '自动添加传感器'; - - @override - String get contactsSettings_autoAddSensorsSubtitle => '允许伴侣自动添加发现的传感器'; - - @override - String get contactsSettings_overwriteOldestTitle => '覆盖最旧的'; + String get contactsSettings_overwriteOldestTitle => '覆盖最旧的联系人'; @override String get contactsSettings_overwriteOldestSubtitle => - '当联系人列表已满时,将替换最老的非收藏联系人。'; + '无线电的联系人列表已满时,替换最旧的非收藏联系人。'; @override - String get contactsSettings_evictDiscoveredContactsTitle => '清除已发现的联系人'; + String get contactsSettings_evictDiscoveredContactsTitle => '限制已发现的联系人'; @override String contactsSettings_evictDiscoveredContactsSubtitle(int limit) { - return '启用后,当已发现联系人列表达到 $limit 条的上限时,应用会移除最旧的已发现联系人。'; + return '应用将“已发现的联系人”列表限制为 $limit 条。达到上限时会移除较旧的联系人。关闭后不限数量。'; } @override diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index d7bcbb27..d76228dc 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Nodenaam", "settings_nodeNameNotSet": "Niet ingesteld", "settings_nodeNameHint": "Voer nodenaam in", + "nodeName_info": "Elke byte in je naam is er één minder voor kanaalberichten. Speciale tekens en emoji's kunnen meer dan één byte gebruiken.", + "nodeName_messageLength": "Berichtlengte", + "nodeName_channelMessages": "Kanaalberichten", + "nodeName_channelMessagesSubtitle": "Kleiner door je naam", + "nodeName_directMessages": "Directe berichten", + "nodeName_directMessagesSubtitle": "Niet beïnvloed door je naam", + "nodeName_bytesAvailable": "{count, plural, =1{1 byte beschikbaar} other{{count} bytes beschikbaar}}", + "nodeName_bytesOver": "{count, plural, =1{1 byte boven de limiet} other{{count} bytes boven de limiet}}", "settings_nodeNameUpdated": "Naam bijgewerkt", "settings_radioSettings": "Radio Instellingen", "settings_radioSettingsSubtitle": "Frequentie, vermogen, spreadingfactor", + "settings_unsavedChangesMessage": "Je hebt wijzigingen die niet zijn opgeslagen op de radio.", "settings_radioSettingsUpdated": "Radio instellingen bijgewerkt", "settings_location": "Locatie", "settings_locationSubtitle": "GPS coördinaten", + "location_coordinates": "Coördinaten", + "location_coordinatesDescription": "De positie van je node. Deze wordt op de kaart getoond, gebruikt als je je locatie deelt en in adverts verzonden als Advert-locatie aanstaat (Privacyinstellingen).", + "location_pickOnMap": "Op kaart kiezen", + "locationPicker_hint": "Versleep de kaart of tik om de pin te plaatsen.", + "locationPicker_useLocation": "Deze locatie gebruiken", "settings_locationUpdated": "Locatie- en GPS-instellingen bijgewerkt", "settings_locationBothRequired": "Voer zowel breedte- als lengtegraad in.", "settings_locationInvalid": "Ongeldige breedtegraad of lengtegraad.", @@ -109,12 +123,12 @@ "settings_privacyModeDisabled": "Privacy modus is uitgeschakeld", "settings_actions": "Acties", "settings_deleteAllPaths": "Alle paden verwijderen", - "settings_deleteAllPathsSubtitle": "Wis alle padgegevens van contacten.", + "settings_deleteAllPathsSubtitle": "Wis alle padgegevens van contacten", "settings_sendAdvertisement": "Advert verzenden", "settings_sendAdvertisementSubtitle": "Nu aanwezigheid uitzenden", "settings_advertisementSent": "Advert verzonden", "settings_syncTime": "Tijd Synchroniseren", - "settings_syncTimeSubtitle": "Stel de apparaatklok in op de tijd van de telefoon.", + "settings_syncTimeSubtitle": "Stel de apparaatklok in op de tijd van de telefoon", "settings_timeSynchronized": "Tijd gesynchroniseerd", "settings_refreshContacts": "Contacten vernieuwen", "settings_refreshContactsSubtitle": "Contactlijst opnieuw laden van het apparaat", @@ -127,15 +141,8 @@ "settings_appDebugLog": "Debuglog van de app", "settings_appDebugLogSubtitle": "Toepassingsdebugberichten", "settings_about": "Over", - "settings_aboutVersion": "MeshCore Open versie {version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 MeshCore open-sourceproject", + "settings_aboutTheApp": "Over de app", + "settings_aboutLegalese": "{year} MeshCore open-sourceproject", "settings_aboutDescription": "Een open-source Flutter client voor MeshCore LoRa mesh netwerkapparaten.", "settings_infoName": "Naam", "settings_infoId": "ID", @@ -145,10 +152,10 @@ "settings_infoContactsCount": "Aantal Contacten", "settings_infoChannelCount": "Aantal Kanalen", "settings_presets": "Voorinstellingen", + "settings_radioParameters": "Parameters", "settings_presetCustom": "Aangepast", - "settings_radioMatchWarning": "Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte en SF gebruiken. De coderingssnelheid (CR) mag verschillen.", "settings_frequency": "Frequentie (MHz)", - "settings_frequencyHelper": "150.0 - 2500.0", + "settings_frequencyHelper": "150.0 - 2500.0 MHz", "settings_frequencyInvalid": "Ongeldige frequentie (150-2500 MHz)", "settings_bandwidth": "Bandbreedte", "settings_spreadingFactor": "Spreadingfactor", @@ -1213,7 +1220,7 @@ "repeater_floodMaxHelper": "Maximaal aantal hops dat een flood-pakket mag afleggen (0-64)", "repeater_advancedSettings": "Geavanceerd", "repeater_advancedSettingsSubtitle": "Afstelopties voor ervaren operators", - "repeater_pathHashMode": "Node-ID-grootte in paden", + "repeater_pathHashMode": "ID-hashgrootte", "repeater_pathHashModeHelper": "Grootte van de ID van deze repeater in de paden van de adverts die hij verzendt: 1 byte (256 ID's, tot 64 hops), 2 bytes (65K ID's, tot 32 hops), 3 bytes (16M ID's, tot 21 hops). Heeft geen invloed op doorsturen; repeaters met v1.14+ sturen alle groottes door, maar oudere firmware laat pakketten met 2- of 3-byte-ID's vallen.", "repeater_txDelay": "Flood-TX-vertraging", "repeater_txDelayHelper": "Tussenruimte bij het herzenden van flood-verkeer, als veelvoud van de zendtijd van het pakket (0-2, standaard 0,5). Hoger = minder botsingen maar tragere aflevering.", @@ -1651,8 +1658,9 @@ "neighbors_unknownContact": "Onbekende {pubkey}", "neighbors_heardAgo": "Gehoord: {time} geleden", "settings_locationGPSEnable": "GPS inschakelen", - "settings_locationGPSEnableSubtitle": "Activeer automatisch locatieupdates via GPS.", - "settings_locationIntervalSec": "Interval voor GPS (Seconden)", + "settings_locationGPSEnableSubtitle": "Houdt de locatie bijgewerkt via de GPS van de radio.", + "settings_locationIntervalSec": "Update-interval (seconden)", + "settings_locationIntervalHelper": "60 tot 86399 seconden", "settings_locationIntervalInvalid": "Het interval moet minstens 60 seconden en minder dan 86400 seconden zijn.", "contacts_manageRoom": "Roomserver beheren", "room_management": "Roomserverbeheer", @@ -1876,16 +1884,17 @@ }, "notification_sentGif": "GIF verstuurd", "notification_sentImage": "Afbeelding verstuurd", - "settings_gpxExportRepeatersSubtitle": "Exporteert repeaters / roomserver met een locatie naar GPX-bestand.", - "settings_gpxExportRepeaters": "Exporteer repeaters / roomserver naar GPX", + "export_messagesTitle": "Berichten", + "export_messagesDescription": "Berichten met een bladwijzer, opgeslagen als Markdown-bestand.", + "export_locationsTitle": "Contactlocaties", + "export_locationsDescription": "Contacten met een bekende locatie, opgeslagen als GPX-bestand voor kaartapps.", + "settings_gpxExportRepeaters": "Repeaters en rooms", "settings_gpxExportSuccess": "GPX-bestand succesvol geëxporteerd.", "settings_gpxExportNoContacts": "Geen contacten om te exporteren.", "settings_gpxExportNotAvailable": "Niet ondersteund op je apparaat/besturingssysteem", "settings_gpxExportError": "Er was een fout bij het exporteren.", - "settings_gpxExportContacts": "Companions exporteren naar GPX", - "settings_gpxExportAll": "Alle contacten exporteren naar GPX", - "settings_gpxExportAllSubtitle": "Exporteert alle contacten met een locatie naar een GPX-bestand.", - "settings_gpxExportContactsSubtitle": "Exporteert companions met een locatie naar een GPX-bestand.", + "settings_gpxExportContacts": "Gebruikers / Companions", + "settings_gpxExportAll": "Alle contacten", "settings_gpxExportRepeatersRoom": "Locaties van repeaters en roomservers", "settings_gpxExportChat": "Locaties van companions", "settings_gpxExportAllContacts": "Alle contactlocaties", @@ -1914,11 +1923,19 @@ "snrIndicator_unknownRepeaterHint": "Deze repeater staat nog niet in je contacten. Naam, locatie en opties verschijnen zodra je radio zijn advert ontvangt.", "snrIndicator_nearByRepeaters": "Repeaters in de buurt", "chat_ShowAllPaths": "Toon alle paden", - "settings_clientRepeat": "Off-Grid Herhalen", + "settings_clientRepeat": "Off-Grid Herhaalmodus", + "settings_clientRepeatDescription": "Laat dit apparaat pakketten herhalen. Bedoeld voor plekken zonder repeaterdekking.\n\nDeze modus gebruikt een beperkte set frequenties. Zet je hem AAN, dan verlies je waarschijnlijk de verbinding met de rest van de mesh. Alle nodes waarmee je communiceert moeten dezelfde frequentie, bandbreedte en spreadingfactor (SF) gebruiken. Alleen de coding rate (CR) mag verschillen.", + "settings_clientRepeatSwitch": "Herhaalmodus", + "settings_clientRepeatNote": "Let op: zet je hem UIT, dan wordt de vorige frequentie hersteld. Kun je daarna geen verbinding maken met de mesh, controleer dan je voorinstellingen/parameters.", "settings_clientRepeatFrequencyNote": "Frequentie ingesteld op {freq} MHz voor off-grid herhalen", - "settings_clientRepeatSubtitle": "Laat dit apparaat meshpakketten doorsturen voor anderen", "settings_clientRepeatFreqWarning": "Off-grid herhalen vereist een frequentie van 433, 869,495 of 918 MHz", "settings_aboutOpenMeteoAttribution": "LOS-hoogtegegevens: Open-Meteo (CC BY 4.0)", + "about_project": "Project", + "about_sourceCode": "Broncode", + "about_license": "Licentie", + "about_openSourceLicenses": "Opensourcelicenties", + "about_credits": "Credits", + "about_contributors": "Bijdragers", "appSettings_unitsTitle": "Eenheden", "appSettings_unitsMetric": "Metrisch (m / km)", "appSettings_unitsImperial": "Imperiaal (ft / mi)", @@ -2106,20 +2123,17 @@ "contacts_searchUsers": "Zoek {number}{str} gebruikers...", "contacts_searchFavorites": "Zoek {number}{str} favorieten...", "contacts_searchRoomServers": "Zoek {number}{str} Room servers...", - "contactsSettings_autoAddUsersTitle": "Gebruikers automatisch toevoegen", + "contactsSettings_autoAddUsersTitle": "Gebruikers", "contactsSettings_title": "Instellingen voor contacten", "settings_contactSettings": "Contactinstellingen", - "contactsSettings_otherTitle": "Andere instellingen voor contactgerelateerde zaken", - "contactsSettings_autoAddRepeatersSubtitle": "Sta toe dat de companion automatisch ontdekte repeaters toevoegt", - "contactsSettings_autoAddRoomServersTitle": "Roomservers automatisch toevoegen", - "contactsSettings_autoAddRoomServersSubtitle": "Sta toe dat de companion automatisch ontdekte roomservers toevoegt.", - "contactsSettings_autoAddSensorsTitle": "Automatisch sensoren toevoegen", + "contactsSettings_otherTitle": "Contactlijstlimieten", + "contactsSettings_autoAddRoomServersTitle": "Roomservers", + "contactsSettings_autoAddSensorsTitle": "Sensoren", "settings_contactSettingsSubtitle": "Instellingen voor het toevoegen van contacten", - "contactsSettings_autoAddTitle": "Automatische detectie", - "contactsSettings_autoAddSensorsSubtitle": "Sta toe dat de companion automatisch ontdekte sensoren toevoegt", - "contactsSettings_autoAddUsersSubtitle": "Sta toe dat de companion automatisch ontdekte gebruikers toevoegt", - "contactsSettings_autoAddRepeatersTitle": "Repeaters automatisch toevoegen", - "contactsSettings_overwriteOldestTitle": "Overschrijf Oudste", + "contactsSettings_autoAddTitle": "Contacten automatisch toevoegen", + "contactsSettings_autoAddDescription": "Nieuw gehoorde nodes van deze typen toevoegen aan de contacten van de radio. Andere kun je later toevoegen via Ontdekte contacten.", + "contactsSettings_autoAddRepeatersTitle": "Repeaters", + "contactsSettings_overwriteOldestTitle": "Oudste overschrijven", "discoveredContacts_noMatching": "Geen overeenkomende contacten", "discoveredContacts_addContact": "Contact toevoegen", "discoveredContacts_copyContact": "Kopieer contact naar klembord", @@ -2165,9 +2179,9 @@ } } }, - "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.", + "contactsSettings_overwriteOldestSubtitle": "Als de contactenlijst van de radio vol is, het oudste contact vervangen dat geen favoriet is.", + "contactsSettings_evictDiscoveredContactsTitle": "Ontdekte contacten beperken", + "contactsSettings_evictDiscoveredContactsSubtitle": "De app beperkt de lijst \"Ontdekte contacten\" tot {limit} items. Bij het bereiken van de limiet worden oudere contacten verwijderd. Schakel uit om de limiet op te heffen.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2257,7 +2271,7 @@ "settings_privacySubtitle": "Beheer welke informatie wordt gedeeld", "settings_telemetryLocationMode": "Wie mag mijn locatie opvragen", "settings_telemetryEnvironmentMode": "Wie mag sensordata opvragen", - "settings_telemetryPerContactHint": "Om een contact toe te staan, open je de chat en kies je Contactinstellingen in het menu.", + "settings_telemetryPerContactHint": "Om een specifiek contact toe te staan, open je de chat en kies je Contactinstellingen in het menu.", "settings_advertLocation": "Advert-locatie", "settings_advertLocationSubtitle": "Locatie opnemen in advert", "settings_privacySettingsDescription": "Kies welke informatie je apparaat met anderen deelt.", @@ -2297,7 +2311,7 @@ "path_routeWeight": "{weight}/{max}", "settings_telemetryModeUpdated": "Telemetrie-modus bijgewerkt", "settings_multiAck": "Multi-ACKs", - "settings_multiAckSubtitle": "Stuur extra ACKs voor betere aflevering; gebruikt meer zendtijd", + "settings_multiAckSubtitle": "Stuur 2 bevestigingen (ACKs) in plaats van 1 wanneer de bevestiging via een direct pad teruggaat. Betrouwbaarder, maar gebruikt meer zendtijd.", "map_showOverlaps": "Overlappende repeatersleutels", "map_runTraceWithReturnPath": "Terugkeren op hetzelfde pad.", "@radioStats_noiseFloor": { @@ -2942,7 +2956,7 @@ "repeater_pathHashModeOption1": "2 bytes", "repeater_pathHashModeOption2": "3 bytes", "repeater_pathHashModeOption3": "4 bytes", - "settings_pathHashModeHelper": "Grootte van elke node-ID die wordt vastgelegd in het pad van flood-pakketten die deze radio verzendt: 1 byte (256 ID's, tot 64 hops), 2 bytes (65K ID's, tot 32 hops), 3 bytes (16M ID's, tot 21 hops). Grotere ID's verminderen botsingen, maar repeaters met firmware ouder dan v1.14 laten pakketten met 2- of 3-byte-ID's vallen.", + "settings_pathHashModeHelper": "Grootte van elke node-ID die wordt vastgelegd in het pad van flood-pakketten die deze radio verzendt:\n\n- 1 byte: 256 unieke ID's, tot 64 hops. \"ab\".\n- 2 bytes: 65K unieke ID's, tot 32 hops. \"ab12\".\n- 3 bytes: 16M unieke ID's, tot 21 hops. \"ab12cd\".\n\nGrotere ID's verminderen botsingen, maar repeaters met firmware ouder dan v1.14 laten pakketten met 2- en 3-byte-ID's vallen.", "settings_requiresFirmware": "Vereist firmware {version} of nieuwer", "appSettings_channelMinHops": "Kanaalberichten opnieuw verzenden tot ze ver genoeg komen", "appSettings_channelMinHopsSubtitle": "Als je bericht niet via genoeg repeaters terug wordt gehoord, verstuur het dan opnieuw. Gebruikt meer zendtijd.", @@ -3613,7 +3627,8 @@ "routing_modeDirect": "Direct", "routing_modeDirectHint": "Verstuurt altijd rechtstreeks naar dit contact, zonder repeater-hops. Gebruik dit als diegene binnen radiobereik is.", "settings_export": "Exporteren", - "settings_exportSubtitle": "Contacten en repeaters exporteren als GPX", + "settings_exportData": "Gegevens exporteren", + "settings_exportSubtitle": "Bladwijzers en contactlocaties", "backupRestore_title": "Back-up en herstel", "backupRestore_subtitle": "App-gegevens en radio-instellingen opslaan of herstellen", "backupRestore_import": "Importeren", @@ -3833,7 +3848,7 @@ "bookmarks_channel": "Kanaal", "bookmarks_contact": "Contact", "bookmarks_remove": "Bladwijzer verwijderen", - "settings_exportBookmarks": "Bladwijzers exporteren naar Markdown", + "settings_exportBookmarks": "Bladwijzers", "settings_exportBookmarksSubtitle": "Deel of bewaar berichten met bladwijzer als Markdown-bestand.", "settings_exportBookmarksSuccess": "Bladwijzers geëxporteerd.", "settings_exportBookmarksNoBookmarks": "Geen bladwijzers om te exporteren.", diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index 0799a9e5..8530ef0e 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Nazwa węzła", "settings_nodeNameNotSet": "Nie ustawione", "settings_nodeNameHint": "Wprowadź nazwę węzła", + "nodeName_info": "Każdy bajt nazwy to o bajt mniej w wiadomościach na kanałach. Polskie litery, znaki specjalne i emoji mogą zajmować więcej niż jeden bajt.", + "nodeName_messageLength": "Długość wiadomości", + "nodeName_channelMessages": "Wiadomości na kanałach", + "nodeName_channelMessagesSubtitle": "Nazwa je skraca", + "nodeName_directMessages": "Wiadomości prywatne", + "nodeName_directMessagesSubtitle": "Nazwa nie ma na nie wpływu", + "nodeName_bytesAvailable": "{count, plural, =1{1 bajt dostępny} few{{count} bajty dostępne} many{{count} bajtów dostępnych} other{{count} bajta dostępnego}}", + "nodeName_bytesOver": "{count, plural, =1{1 bajt ponad limit} few{{count} bajty ponad limit} many{{count} bajtów ponad limit} other{{count} bajta ponad limit}}", "settings_nodeNameUpdated": "Nazwa zaktualizowana", "settings_radioSettings": "Ustawienia radia", "settings_radioSettingsSubtitle": "Częstotliwość, moc, współczynnik rozpraszania", + "settings_unsavedChangesMessage": "Masz zmiany, które nie zostały zapisane w radiu.", "settings_radioSettingsUpdated": "Ustawienia radia zostały zaktualizowane", "settings_location": "Lokalizacja", "settings_locationSubtitle": "Koordynaty GPS", + "location_coordinates": "Współrzędne", + "location_coordinatesDescription": "Pozycja Twojego węzła. Jest widoczna na mapie, używana przy udostępnianiu lokalizacji i wysyłana w rozgłoszeniach, gdy włączona jest „Lokalizacja rozgłoszenia” (Ustawienia prywatności).", + "location_pickOnMap": "Wybierz na mapie", + "locationPicker_hint": "Przesuń mapę lub dotknij, aby umieścić pinezkę.", + "locationPicker_useLocation": "Użyj tej lokalizacji", "settings_locationUpdated": "Lokalizacja zaktualizowana", "settings_locationBothRequired": "Wprowadź zarówno szerokość, jak i długość geograficzną.", "settings_locationInvalid": "Nieprawidłowa szerokość geograficzna lub długość geograficzna.", @@ -109,12 +123,12 @@ "settings_privacyModeDisabled": "Tryb prywatności wyłączony", "settings_actions": "Działania", "settings_deleteAllPaths": "Usuń wszystkie ścieżki", - "settings_deleteAllPathsSubtitle": "Wyczyść wszystkie dane ścieżek z kontaktów.", + "settings_deleteAllPathsSubtitle": "Wyczyść wszystkie dane ścieżek z kontaktów", "settings_sendAdvertisement": "Wyślij rozgłoszenie", "settings_sendAdvertisementSubtitle": "Nadaj obecność teraz", "settings_advertisementSent": "Rozgłoszenie wysłane", "settings_syncTime": "Synchronizacja czasu", - "settings_syncTimeSubtitle": "Ustaw zegar urządzenia na czas telefonu.", + "settings_syncTimeSubtitle": "Ustaw zegar urządzenia na czas telefonu", "settings_timeSynchronized": "Czas zsynchronizowany", "settings_refreshContacts": "Odśwież Kontakty", "settings_refreshContactsSubtitle": "Odśwież listę kontaktów z urządzenia", @@ -127,15 +141,8 @@ "settings_appDebugLog": "Dziennik debugowania aplikacji", "settings_appDebugLogSubtitle": "Komunikaty debugowania aplikacji", "settings_about": "O aplikacji", - "settings_aboutVersion": "MeshCore Open w wersji {version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Projekt MeshCore Open Source 2026", + "settings_aboutTheApp": "O aplikacji", + "settings_aboutLegalese": "Projekt MeshCore Open Source {year}", "settings_aboutDescription": "Otwartoźródłowy klient Flutter dla urządzeń MeshCore LoRa do sieci mesh.", "settings_infoName": "Nazwa", "settings_infoId": "ID", @@ -145,9 +152,10 @@ "settings_infoContactsCount": "Liczba kontaktów", "settings_infoChannelCount": "Liczba kanałów", "settings_presets": "Presety", + "settings_radioParameters": "Parametry", "settings_frequency": "Częstotliwość (MHz)", - "settings_frequencyHelper": "300,0 - 2500,0", - "settings_frequencyInvalid": "Nieprawidłowa częstotliwość (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Nieprawidłowa częstotliwość (150-2500 MHz)", "settings_bandwidth": "Przepustowość", "settings_spreadingFactor": "Współczynnik rozpraszania", "settings_codingRate": "Współczynnik kodowania", @@ -1196,7 +1204,7 @@ "repeater_floodMaxHelper": "Maksymalna liczba pakietów, które mogą przemieszczać się w jednym strumieniu (0-64)", "repeater_advancedSettings": "Zaawansowany", "repeater_advancedSettingsSubtitle": "Regulowane pokrętła dla doświadczonych operatorów", - "repeater_pathHashMode": "Tryb haszujący ścieżkę", + "repeater_pathHashMode": "Rozmiar hasza ID", "repeater_pathHashModeHelper": "Bajty używane do kodowania identyfikatora tego repeatera w tagach ścieżki flood/wykrywania pętli. 0=1 bajt (256 identyfikatorów, do 64 skoków), 1=2 bajty (65 000 identyfikatorów, do 32 skoków), 2=3 bajty (16 milionów identyfikatorów, do 21 skoków). Firmware sprzed v1.14 zawsze używał ścieżek 1-bajtowych; v1.14 i nowsze można skonfigurować na ścieżki 2- lub 3-bajtowe.", "repeater_txDelay": "Opóźnienie w Flood, TX", "repeater_txDelayHelper": "Ustawienie odstępu dla ruchu flood, jako mnożnik czasu przesyłania pakietu (0-2, domyślnie 0,5). Wyższe wartości oznaczają mniejszą liczbę kolizji, ale wolniejszą prędkość przesyłania.", @@ -1631,8 +1639,9 @@ "neighbors_heardAgo": "Usłyszano: {time} temu", "neighbors_unknownContact": "Nieznana {pubkey}", "settings_locationGPSEnable": "Włącz GPS", - "settings_locationGPSEnableSubtitle": "Włącza automatyczne aktualizowanie pozycji za pomocą GPS.", - "settings_locationIntervalSec": "Interwał dla GPS (Sekundy)", + "settings_locationGPSEnableSubtitle": "Na bieżąco aktualizuje pozycję z GPS radia.", + "settings_locationIntervalSec": "Interwał aktualizacji (sekundy)", + "settings_locationIntervalHelper": "od 60 do 86399 sekund", "settings_locationIntervalInvalid": "Interwał musi wynosić co najmniej 60 sekund i mniej niż 86400 sekund.", "contacts_manageRoom": "Zarządzaj Serwerem Pokoju", "room_management": "Zarządzanie Serwerem Pokoju", @@ -1879,16 +1888,17 @@ }, "notification_sentGif": "Wysłał(a) GIF", "notification_sentImage": "Wysłał(a) obraz", - "settings_gpxExportContacts": "Eksportuj towarzyszy do GPX", - "settings_gpxExportRepeaters": "Eksportuj przekaźniki / roomservery do GPX", - "settings_gpxExportRepeatersSubtitle": "Eksportuje przekaźniki / roomservery z lokalizacją do pliku GPX.", + "settings_gpxExportContacts": "Użytkownicy / Companiony", + "export_messagesTitle": "Wiadomości", + "export_messagesDescription": "Wiadomości dodane do zakładek, zapisane jako plik Markdown.", + "export_locationsTitle": "Lokalizacje kontaktów", + "export_locationsDescription": "Kontakty ze znaną lokalizacją, zapisane jako plik GPX dla aplikacji z mapami.", + "settings_gpxExportRepeaters": "Przekaźniki i pokoje", "settings_gpxExportSuccess": "Pomyślnie wyeksportowano plik GPX.", "settings_gpxExportNotAvailable": "Nie obsługiwane na Twoim urządzeniu/systemie operacyjnym", "settings_gpxExportError": "Wystąpił błąd podczas eksportowania.", "settings_gpxExportRepeatersRoom": "Lokalizacje przekaźników i roomserverów", - "settings_gpxExportContactsSubtitle": "Eksportuje towarzyszy z lokalizacją do pliku GPX.", - "settings_gpxExportAll": "Eksportuj wszystkie kontakty do GPX", - "settings_gpxExportAllSubtitle": "Eksportuje wszystkie kontakty z lokalizacją do pliku GPX.", + "settings_gpxExportAll": "Wszystkie kontakty", "settings_gpxExportAllContacts": "Wszystkie lokalizacje kontaktów", "settings_gpxExportNoContacts": "Brak kontaktów do wyeksportowania.", "settings_gpxExportChat": "Lokalizacje towarzyszy", @@ -1914,10 +1924,18 @@ "snrIndicator_lastSeen": "Ostatnio widziany", "snrIndicator_nearByRepeaters": "Pobliskie przekaźniki", "chat_ShowAllPaths": "Pokaż wszystkie ścieżki", - "settings_clientRepeatSubtitle": "Pozwól temu urządzeniu powtarzać pakiety danych dla innych urządzeń.", - "settings_clientRepeat": "Powtórzenie: Niezależne od sieci", + "settings_clientRepeat": "Tryb powtarzania poza siecią", + "settings_clientRepeatDescription": "Pozwala temu urządzeniu retransmitować pakiety. Jest przeznaczony do użytku tam, gdzie nie ma zasięgu przekaźników.\n\nTen tryb korzysta z ograniczonego zestawu częstotliwości. Po jego WŁĄCZENIU prawdopodobnie stracisz połączenie z szerszą siecią mesh. Wszystkie węzły, z którymi się komunikujesz, muszą używać tej samej częstotliwości, przepustowości i współczynnika rozpraszania (SF). Różnić się może tylko współczynnik kodowania (CR).", + "settings_clientRepeatSwitch": "Tryb powtarzania", + "settings_clientRepeatNote": "Uwaga: Po WYŁĄCZENIU zostanie przywrócona poprzednia częstotliwość. Jeśli potem nie możesz połączyć się z siecią mesh, sprawdź presety/parametry.", "settings_clientRepeatFreqWarning": "Powtórka poza siecią wymaga częstotliwości 433, 869 lub 918 MHz.", "settings_aboutOpenMeteoAttribution": "Dane wysokościowe LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Projekt", + "about_sourceCode": "Kod źródłowy", + "about_license": "Licencja", + "about_openSourceLicenses": "Licencje open source", + "about_credits": "Podziękowania", + "about_contributors": "Współtwórcy", "appSettings_unitsTitle": "Jednostki", "appSettings_unitsMetric": "Metryczne (m / km)", "appSettings_unitsImperial": "Imperialne (ft / mi)", @@ -2107,23 +2125,20 @@ "contacts_searchRepeaters": "Wyszukaj {number}{str} przekaźników...", "contactsSettings_title": "Ustawienia kontaktów", "settings_contactSettingsSubtitle": "Ustawienia dotyczące sposobu dodawania kontaktów", - "contactsSettings_autoAddUsersSubtitle": "Pozwól towarzyszowi automatycznie dodawać znalezione użytkowników.", - "contactsSettings_autoAddRepeatersTitle": "Automatyczne dodawanie przekaźników", - "contactsSettings_autoAddRepeatersSubtitle": "Zezwól towarzyszowi na automatyczne dodawanie odkrytych przekaźników.", - "contactsSettings_autoAddRoomServersTitle": "Automatycznie dodaj roomservery", - "contactsSettings_autoAddUsersTitle": "Automatycznie dodaj użytkowników", + "contactsSettings_autoAddRepeatersTitle": "Przekaźniki", + "contactsSettings_autoAddRoomServersTitle": "Serwery pokoju", + "contactsSettings_autoAddUsersTitle": "Użytkownicy", "settings_contactSettings": "Ustawienia kontaktów", - "contactsSettings_otherTitle": "Inne ustawienia związane z kontaktami", - "contactsSettings_autoAddTitle": "Automatyczne odnajdywanie", - "contactsSettings_autoAddRoomServersSubtitle": "Zezwól towarzyszowi na automatyczne dodawanie znalezionych roomserverów.", - "contactsSettings_autoAddSensorsTitle": "Automatycznie dodaj czujniki", + "contactsSettings_otherTitle": "Limity listy kontaktów", + "contactsSettings_autoAddTitle": "Automatyczne dodawanie kontaktów", + "contactsSettings_autoAddDescription": "Nowo usłyszane węzły tych typów zostaną dodane do kontaktów radia. Pozostałe możesz dodać później z ekranu „Odkryte Kontakty”.", + "contactsSettings_autoAddSensorsTitle": "Czujniki", "discoveredContacts_searchHint": "Wyszukaj odkryte kontakty", "discoveredContacts_contactAdded": "Kontakt dodany", "discoveredContacts_addContact": "Dodaj kontakt", "discoveredContacts_copyContact": "Kopiuj kontakt do schowka", - "contactsSettings_overwriteOldestTitle": "Nadpisz najstarszy", + "contactsSettings_overwriteOldestTitle": "Nadpisuj najstarsze", "discoveredContacts_Title": "Odkryte Kontakty", - "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", @@ -2164,9 +2179,9 @@ "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.", + "contactsSettings_overwriteOldestSubtitle": "Gdy lista kontaktów w radiu jest pełna, najstarszy kontakt spoza ulubionych zostanie zastąpiony.", + "contactsSettings_evictDiscoveredContactsTitle": "Ogranicz odkryte kontakty", + "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikacja ogranicza listę „Odkryte Kontakty” do {limit} pozycji. Po osiągnięciu limitu starsze kontakty są usuwane. Wyłącz, aby znieść limit.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2256,7 +2271,7 @@ "settings_advertLocation": "Lokalizacja rozgłoszenia", "settings_advertLocationSubtitle": "Uwzględnij lokalizację w ogłoszeniu", "settings_denyAll": "Odmów wszystkim", - "settings_privacySubtitle": "Kontroluj jakie informacje są udostępniane.", + "settings_privacySubtitle": "Kontroluj jakie informacje są udostępniane", "settings_privacy": "Ustawienia prywatności", "settings_privacySettingsDescription": "Wybierz jakie informacje urządzenie udostępni innym.", "contact_info": "Informacje kontaktowe", @@ -3086,10 +3101,9 @@ "settings_regionDefault": "Domyślny region", "settings_regionDefaultSubtitle": "Używany przez kanały bez własnego regionu", "settings_regionDefaultNone": "Brak", - "settings_telemetryPerContactHint": "Aby zezwolić kontaktowi, otwórz jego czat i wybierz Ustawienia kontaktów z menu.", - "settings_multiAckSubtitle": "Wysyłaj dodatkowe potwierdzenia ACK dla lepszego dostarczenia; zużywa więcej czasu w eterze", + "settings_telemetryPerContactHint": "Aby zezwolić konkretnemu kontaktowi, otwórz jego czat i wybierz Ustawienia kontaktów z menu.", + "settings_multiAckSubtitle": "Wysyłaj 2 potwierdzenia (ACK) zamiast 1, gdy potwierdzenie wraca ścieżką bezpośrednią. Zwiększa niezawodność, ale zużywa więcej czasu w eterze.", "settings_presetCustom": "Niestandardowy", - "settings_radioMatchWarning": "Wszystkie węzły, z którymi rozmawiasz, muszą używać tej samej częstotliwości, przepustowości i SF. Współczynnik kodowania (CR) może się różnić.", "settings_txPowerRangeHelper": "{min} do {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3109,7 +3123,7 @@ } } }, - "settings_pathHashModeHelper": "Rozmiar identyfikatora węzła zapisywanego w ścieżce wysyłanych pakietów flood: 1 bajt (256 identyfikatorów, do 64 skoków), 2 bajty (65 tys., do 32 skoków), 3 bajty (16 mln, do 21 skoków). Większe identyfikatory zmniejszają kolizje, ale przekaźniki z oprogramowaniem starszym niż v1.14 odrzucają pakiety z identyfikatorami 2- lub 3-bajtowymi.", + "settings_pathHashModeHelper": "Rozmiar identyfikatora każdego węzła w ścieżce pakietów flood wysyłanych przez to radio:\n\n- 1 bajt: 256 unikalnych identyfikatorów, do 64 skoków. \"ab\".\n- 2 bajty: 65 tys. unikalnych identyfikatorów, do 32 skoków. \"ab12\".\n- 3 bajty: 16 mln unikalnych identyfikatorów, do 21 skoków. \"ab12cd\".\n\nWiększe identyfikatory zmniejszają kolizje, ale przekaźniki z oprogramowaniem starszym niż v1.14 odrzucają pakiety z identyfikatorami 2- i 3-bajtowymi.", "settings_requiresFirmware": "Wymaga oprogramowania w wersji {version} lub nowszej", "@settings_requiresFirmware": { "placeholders": { @@ -3951,7 +3965,8 @@ "routing_modeDirect": "Bezpośrednio", "routing_modeDirectHint": "Zawsze wysyła prosto do tego kontaktu, bez przeskoków przez repeatery. Użyj, gdy kontakt jest w zasięgu radia.", "settings_export": "Eksportuj", - "settings_exportSubtitle": "Eksportuj kontakty i przekaźniki jako GPX", + "settings_exportData": "Eksportuj dane", + "settings_exportSubtitle": "Zakładki i lokalizacje kontaktów", "backupRestore_title": "Kopia zapasowa i przywracanie", "backupRestore_subtitle": "Zapisz lub przywróć dane aplikacji i ustawienia radia", "backupRestore_import": "Importuj", @@ -4171,9 +4186,9 @@ "bookmarks_channel": "Kanał", "bookmarks_contact": "Kontakt", "bookmarks_remove": "Usuń zakładkę", - "settings_exportBookmarks": "Eksportuj zakładki do Markdown", + "settings_exportBookmarks": "Zakładki", "settings_exportBookmarksSubtitle": "Udostępnij lub zapisz wiadomości z zakładek jako plik Markdown.", - "settings_exportBookmarksSuccess": "Zakładki wyeksportowane.", + "settings_exportBookmarksSuccess": "Wyeksportowano zakładki.", "settings_exportBookmarksNoBookmarks": "Brak zakładek do wyeksportowania.", "receivedImage_packetEchoes": "Pakiet {number}: {count, plural, =0{żaden przekaźnik nie usłyszał} one{powtórzony raz} few{powtórzony {count} razy} many{powtórzony {count} razy} other{powtórzony {count} razy}}", "receivedImage_recoveryPacketEchoes": "Pakiet odzyskiwania: {count, plural, =0{żaden przekaźnik nie usłyszał} one{powtórzony raz} few{powtórzony {count} razy} many{powtórzony {count} razy} other{powtórzony {count} razy}}", diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index a0de670f..fd628855 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Nome do Nó", "settings_nodeNameNotSet": "Não definido", "settings_nodeNameHint": "Insira o nome do nó", + "nodeName_info": "Cada byte do seu nome é um a menos para mensagens de canal. Caracteres especiais e emojis podem ocupar mais de um byte.", + "nodeName_messageLength": "Tamanho da mensagem", + "nodeName_channelMessages": "Mensagens de canal", + "nodeName_channelMessagesSubtitle": "Reduzido pelo seu nome", + "nodeName_directMessages": "Mensagens diretas", + "nodeName_directMessagesSubtitle": "Não afetado pelo seu nome", + "nodeName_bytesAvailable": "{count, plural, =1{1 byte disponível} other{{count} bytes disponíveis}}", + "nodeName_bytesOver": "{count, plural, =1{1 byte acima do limite} other{{count} bytes acima do limite}}", "settings_nodeNameUpdated": "Nome atualizado", "settings_radioSettings": "Configurações de Rádio", "settings_radioSettingsSubtitle": "Frequência, potência, fator de espalhamento", + "settings_unsavedChangesMessage": "Você tem alterações que não foram salvas no rádio.", "settings_radioSettingsUpdated": "Configurações de rádio atualizadas", "settings_location": "Localização", "settings_locationSubtitle": "Coordenadas GPS", + "location_coordinates": "Coordenadas", + "location_coordinatesDescription": "A posição do seu nó. Ela é exibida no mapa, usada quando você compartilha sua localização e enviada nos anúncios quando a opção Localização do Anúncio está ativada (Configurações de Privacidade).", + "location_pickOnMap": "Escolher no mapa", + "locationPicker_hint": "Arraste o mapa ou toque para posicionar o pin.", + "locationPicker_useLocation": "Usar esta localização", "settings_locationUpdated": "Localização atualizada", "settings_locationBothRequired": "Insira a latitude e a longitude.", "settings_locationInvalid": "Latitude ou longitude inválidos.", @@ -109,7 +123,7 @@ "settings_privacyModeDisabled": "Modo de privacidade desativado", "settings_actions": "Ações", "settings_deleteAllPaths": "Excluir todos os caminhos", - "settings_deleteAllPathsSubtitle": "Limpar todos os dados de caminhos dos contatos.", + "settings_deleteAllPathsSubtitle": "Limpar todos os dados de caminhos dos contatos", "settings_sendAdvertisement": "Enviar Anúncio", "settings_sendAdvertisementSubtitle": "Presença de transmissão agora", "settings_advertisementSent": "Anúncio enviado", @@ -127,15 +141,8 @@ "settings_appDebugLog": "Log de Depuração do Aplicativo", "settings_appDebugLogSubtitle": "Mensagens de depuração do aplicativo", "settings_about": "Sobre", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Projeto MeshCore de Código Aberto 2024", + "settings_aboutTheApp": "Sobre o app", + "settings_aboutLegalese": "Projeto MeshCore de Código Aberto {year}", "settings_aboutDescription": "Um cliente Flutter de código aberto para dispositivos de rede mesh LoRa Core da MeshCore.", "settings_infoName": "Nome", "settings_infoId": "ID", @@ -145,9 +152,10 @@ "settings_infoContactsCount": "Número de Contatos", "settings_infoChannelCount": "Número do Canal", "settings_presets": "Configurações pré-definidas", + "settings_radioParameters": "Parâmetros", "settings_frequency": "Frequência (MHz)", - "settings_frequencyHelper": "300,0 - 2500,0", - "settings_frequencyInvalid": "Frequência inválida (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Frequência inválida (150-2500 MHz)", "settings_bandwidth": "Largura de banda", "settings_spreadingFactor": "Fator de Dispersão", "settings_codingRate": "Taxa de Codificação", @@ -1178,7 +1186,7 @@ "repeater_floodMaxHelper": "Número máximo de saltos que um pacote Flood pode percorrer (0-64)", "repeater_advancedSettings": "Avançado", "repeater_advancedSettingsSubtitle": "Controles de ajuste para operadores experientes", - "repeater_pathHashMode": "Modo de hash de caminho", + "repeater_pathHashMode": "Tamanho do hash de ID", "repeater_pathHashModeHelper": "Bytes usados para codificar o ID deste repetidor nas tags de caminho flood/detecção de loop. 0=1 byte (256 IDs, até 64 saltos), 1=2 bytes (65.000 IDs, até 32 saltos), 2=3 bytes (16 milhões de IDs, até 21 saltos). O firmware anterior à v1.14 sempre usava caminhos de 1 byte; v1.14 e versões mais recentes podem ser configuradas para caminhos de 2 ou 3 bytes.", "repeater_txDelay": "Atraso de TX Flood", "repeater_txDelayHelper": "Ajuste de espaçamento para tráfego Flood, como um multiplicador do tempo de transmissão (0-2, padrão 0,5). Quanto maior, menos colisões, mas uma entrega mais lenta.", @@ -1593,9 +1601,10 @@ "neighbors_heardAgo": "Ouvido: {time} atrás", "neighbors_unknownContact": "{pubkey} Desconhecido", "settings_locationGPSEnable": "Ativar GPS", - "settings_locationGPSEnableSubtitle": "Habilita a atualização automática da localização via GPS.", + "settings_locationGPSEnableSubtitle": "Mantém a localização atualizada pelo GPS do rádio.", "settings_locationIntervalInvalid": "O intervalo deve ser de pelo menos 60 segundos e inferior a 86400 segundos.", - "settings_locationIntervalSec": "Intervalo para GPS (Segundos)", + "settings_locationIntervalSec": "Intervalo de atualização (segundos)", + "settings_locationIntervalHelper": "60 a 86399 segundos", "contacts_manageRoom": "Gerenciar Servidor de Sala", "room_management": "Gerenciamento de Servidor de Sala", "@community_joinConfirmation": { @@ -1778,15 +1787,16 @@ "notification_newNodesCount": "{count} {count, plural, =1{novo nó} other{novos nós}}", "notification_newTypeDiscovered": "Novo {contactType} descoberto", "notification_receivedNewMessage": "Nova mensagem recebida", - "settings_gpxExportRepeaters": "Exportar repetidores / servidor de sala para GPX", - "settings_gpxExportRepeatersSubtitle": "Exporta repetidores / roomserver com localização para arquivo GPX.", + "export_messagesTitle": "Mensagens", + "export_messagesDescription": "Mensagens nos favoritos, salvas como arquivo Markdown.", + "export_locationsTitle": "Localizações de contatos", + "export_locationsDescription": "Contatos com localização conhecida, salvos como arquivo GPX para apps de mapas.", + "settings_gpxExportRepeaters": "Repetidores e salas", "settings_gpxExportSuccess": "Arquivo GPX exportado com sucesso.", - "settings_gpxExportAllSubtitle": "Exporta todos os contatos com uma localização para um arquivo GPX.", "settings_gpxExportNotAvailable": "Não suportado no seu dispositivo/SO", "settings_gpxExportError": "Ocorreu um erro ao exportar.", - "settings_gpxExportAll": "Exportar todos os contatos para GPX", - "settings_gpxExportContacts": "Exportar companheiros para GPX", - "settings_gpxExportContactsSubtitle": "Exporta companheiros com uma localização para um arquivo GPX.", + "settings_gpxExportAll": "Todos os contatos", + "settings_gpxExportContacts": "Usuários / Companheiros", "settings_gpxExportRepeatersRoom": "Localizações do servidor de repetidor e sala", "settings_gpxExportChat": "Localizações de companheiros", "settings_gpxExportNoContacts": "Nenhum contato para exportar.", @@ -1808,9 +1818,17 @@ "snrIndicator_lastSeen": "Visto pela última vez", "chat_ShowAllPaths": "Mostrar todos os caminhos", "settings_clientRepeatFreqWarning": "A repetição fora da rede requer frequências de 433, 869 ou 918 MHz.", - "settings_clientRepeat": "Repetição sem rede", - "settings_clientRepeatSubtitle": "Permita que este dispositivo repita pacotes de rede para outros dispositivos.", + "settings_clientRepeat": "Modo de repetição fora da rede", + "settings_clientRepeatDescription": "Permite que este dispositivo repita pacotes. Pensado para locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVAR, você provavelmente vai perder a conexão com o resto da malha. Todos os nós com que você se comunica devem usar a mesma frequência, largura de banda e fator de dispersão (SF). Só a taxa de codificação (CR) pode ser diferente.", + "settings_clientRepeatSwitch": "Modo de repetição", + "settings_clientRepeatNote": "Nota: Ao DESATIVAR, a frequência anterior é restaurada. Se depois você não conseguir se conectar à malha, verifique as configurações pré-definidas/parâmetros.", "settings_aboutOpenMeteoAttribution": "Dados de elevação LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Projeto", + "about_sourceCode": "Código-fonte", + "about_license": "Licença", + "about_openSourceLicenses": "Licenças de código aberto", + "about_credits": "Créditos", + "about_contributors": "Colaboradores", "appSettings_unitsTitle": "Unidades", "appSettings_unitsMetric": "Métrico (m/km)", "appSettings_unitsImperial": "Imperial (ft/mi)", @@ -1999,22 +2017,19 @@ "contacts_unread": "Não lido", "contacts_searchRoomServers": "Pesquisar {number}{str} servidores de sala...", "settings_contactSettings": "Configurações de Contato", - "contactsSettings_otherTitle": "Outras configurações relacionadas a contatos", + "contactsSettings_otherTitle": "Limites das listas de contatos", "contactsSettings_title": "Configurações de contatos", - "contactsSettings_autoAddTitle": "Descoberta Automática", + "contactsSettings_autoAddTitle": "Adicionar contatos automaticamente", + "contactsSettings_autoAddDescription": "Adiciona aos contatos do rádio os nós destes tipos ouvidos pela primeira vez. Os demais podem ser adicionados depois em Contatos Descobertos.", "settings_contactSettingsSubtitle": "Configurações para como os contatos são adicionados", - "contactsSettings_autoAddUsersTitle": "Adicionar usuários automaticamente", - "contactsSettings_autoAddRepeatersSubtitle": "Permitir que o companheiro adicione automaticamente os repetidores descobertos.", - "contactsSettings_autoAddRoomServersTitle": "Adicionar automaticamente servidores de sala", - "contactsSettings_overwriteOldestTitle": "Sobrescrever o Mais Antigo", - "contactsSettings_autoAddSensorsTitle": "Adicionar sensores automaticamente", + "contactsSettings_autoAddUsersTitle": "Usuários", + "contactsSettings_autoAddRoomServersTitle": "Servidores de sala", + "contactsSettings_overwriteOldestTitle": "Sobrescrever o mais antigo", + "contactsSettings_autoAddSensorsTitle": "Sensores", "discoveredContacts_Title": "Contatos Descobertos", - "contactsSettings_autoAddUsersSubtitle": "Permitir que o companheiro adicione automaticamente os usuários descobertos.", - "contactsSettings_autoAddRepeatersTitle": "Adicionar repetidores automaticamente", + "contactsSettings_autoAddRepeatersTitle": "Repetidores", "discoveredContacts_noMatching": "Nenhum contato correspondente", - "contactsSettings_autoAddRoomServersSubtitle": "Permitir que o companheiro adicione automaticamente os servidores de salas descobertos.", "discoveredContacts_searchHint": "Pesquisar contatos descobertos", - "contactsSettings_autoAddSensorsSubtitle": "Permitir que o companheiro adicione automaticamente sensores descobertos.", "discoveredContacts_copyContact": "Copiar Contato para a área de transferência", "discoveredContacts_deleteContact": "Excluir Contato", "discoveredContacts_contactAdded": "Contato adicionado", @@ -2057,9 +2072,9 @@ } } }, - "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.", + "contactsSettings_overwriteOldestSubtitle": "Quando a lista de contatos do rádio estiver cheia, substitui o contato mais antigo que não seja favorito.", + "contactsSettings_evictDiscoveredContactsTitle": "Limitar contatos descobertos", + "contactsSettings_evictDiscoveredContactsSubtitle": "O app limita a lista \"Contatos Descobertos\" a {limit} entradas. Ao atingir o limite, os contatos mais antigos são removidos. Desative para remover o limite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2148,7 +2163,7 @@ "settings_telemetryEnvironmentMode": "Modo de Ambiente de Telemetria", "settings_advertLocation": "Localização do Anúncio", "settings_advertLocationSubtitle": "Incluir localização no anúncio", - "settings_privacySubtitle": "Controle o que é compartilhado.", + "settings_privacySubtitle": "Controle o que é compartilhado", "settings_denyAll": "Negar todos", "settings_allowAll": "Permitir todos", "settings_privacy": "Configurações de Privacidade", @@ -2943,10 +2958,9 @@ "settings_regionDefault": "Região padrão", "settings_regionDefaultSubtitle": "Usada pelos canais sem região própria", "settings_regionDefaultNone": "Nenhuma", - "settings_telemetryPerContactHint": "Para permitir um contato, abra o chat dele e escolha Configurações de Contato no menu.", - "settings_multiAckSubtitle": "Enviar confirmações adicionais para melhorar a entrega; usa mais tempo de transmissão", + "settings_telemetryPerContactHint": "Para permitir um contato específico, abra o chat dele e escolha Configurações de Contato no menu.", + "settings_multiAckSubtitle": "Enviar 2 confirmações (ACKs) em vez de 1 quando a confirmação volta por um caminho direto. Mais confiável, mas usa mais tempo de transmissão.", "settings_presetCustom": "Personalizado", - "settings_radioMatchWarning": "Todos os nós com os quais você fala devem usar a mesma frequência, largura de banda e SF. A taxa de codificação (CR) pode ser diferente.", "settings_txPowerRangeHelper": "{min} a {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -2966,7 +2980,7 @@ } } }, - "settings_pathHashModeHelper": "Tamanho de cada ID de nó registado no caminho dos pacotes Flood que este rádio envia: 1 byte (256 IDs, até 64 saltos), 2 bytes (65.000 IDs, até 32 saltos), 3 bytes (16 milhões de IDs, até 21 saltos). IDs maiores reduzem as colisões, mas os repetidores com firmware anterior à v1.14 descartam os pacotes com IDs de 2 ou 3 bytes.", + "settings_pathHashModeHelper": "Tamanho do ID de cada nó registrado no caminho dos pacotes Flood que este rádio envia:\n\n- 1 byte: 256 IDs únicos, até 64 saltos. \"ab\".\n- 2 bytes: 65.000 IDs únicos, até 32 saltos. \"ab12\".\n- 3 bytes: 16 milhões de IDs únicos, até 21 saltos. \"ab12cd\".\n\nIDs maiores reduzem colisões, mas repetidores com firmware anterior à v1.14 descartam pacotes com IDs de 2 e 3 bytes.", "settings_requiresFirmware": "Requer o firmware {version} ou mais recente", "@settings_requiresFirmware": { "placeholders": { @@ -3764,7 +3778,8 @@ "routing_modeDirect": "Direto", "routing_modeDirectHint": "Envia sempre diretamente a este contato, sem saltos de repetidor. Use quando ele estiver ao alcance do rádio.", "settings_export": "Exportar", - "settings_exportSubtitle": "Exportar contatos e repetidores como GPX", + "settings_exportData": "Exportar dados", + "settings_exportSubtitle": "Favoritos e localizações de contatos", "backupRestore_title": "Backup e restauração", "backupRestore_subtitle": "Salve ou restaure dados do app e configurações do rádio", "backupRestore_import": "Importar", @@ -3984,10 +3999,10 @@ "bookmarks_channel": "Canal", "bookmarks_contact": "Contato", "bookmarks_remove": "Remover marcador", - "settings_exportBookmarks": "Exportar marcadores para Markdown", + "settings_exportBookmarks": "Favoritos", "settings_exportBookmarksSubtitle": "Compartilhe ou salve as mensagens marcadas como um arquivo Markdown.", - "settings_exportBookmarksSuccess": "Marcadores exportados.", - "settings_exportBookmarksNoBookmarks": "Não há marcadores para exportar.", + "settings_exportBookmarksSuccess": "Favoritos exportados.", + "settings_exportBookmarksNoBookmarks": "Nenhum favorito para exportar.", "receivedImage_packetEchoes": "Pacote {number}: {count, plural, =0{nenhum repetidor ouviu} =1{repetido uma vez} other{repetido {count} vezes}}", "receivedImage_recoveryPacketEchoes": "Pacote de recuperação: {count, plural, =0{nenhum repetidor ouviu} =1{repetido uma vez} other{repetido {count} vezes}}", "imageSend_preparingPreview": "Preparando a prévia…", diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index 0c741ddd..db33d8fd 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -115,7 +115,8 @@ "settings_appSettings": "Definições da app", "settings_appSettingsSubtitle": "Notificações, mensagens e preferências do mapa", "settings_export": "Exportar", - "settings_exportSubtitle": "Exportar contactos e repetidores como GPX", + "settings_exportData": "Exportar dados", + "settings_exportSubtitle": "Marcadores e localizações de contactos", "backupRestore_title": "Cópia e restauro", "backupRestore_subtitle": "Guardar ou restaurar dados da app e definições do rádio", "backupRestore_import": "Importar", @@ -173,9 +174,18 @@ "settings_nodeName": "Nome do nó", "settings_nodeNameNotSet": "Não definido", "settings_nodeNameHint": "Introduza o nome do nó", + "nodeName_info": "Cada byte do seu nome é menos um para as mensagens de canal. Os caracteres especiais e os emojis podem ocupar mais do que um byte.", + "nodeName_messageLength": "Tamanho da mensagem", + "nodeName_channelMessages": "Mensagens de canal", + "nodeName_channelMessagesSubtitle": "Reduzido pelo seu nome", + "nodeName_directMessages": "Mensagens diretas", + "nodeName_directMessagesSubtitle": "Não afetado pelo seu nome", + "nodeName_bytesAvailable": "{count, plural, =1{1 byte disponível} other{{count} bytes disponíveis}}", + "nodeName_bytesOver": "{count, plural, =1{1 byte acima do limite} other{{count} bytes acima do limite}}", "settings_nodeNameUpdated": "Nome atualizado", "settings_radioSettings": "Definições de rádio", "settings_radioSettingsSubtitle": "Frequência, potência, fator de espalhamento", + "settings_unsavedChangesMessage": "Tem alterações que não foram guardadas no rádio.", "settings_radioSettingsUpdated": "Definições de rádio atualizadas", "settings_radioSettingsNotApplied": "O rádio não aplicou estas definições", "settings_pathHashModeNotApplied": "As definições de rádio foram aplicadas, mas o rádio não confirmou o novo tamanho do hash do caminho", @@ -204,24 +214,30 @@ "settings_deleteRegionConfirm": "Remover \"{region}\" da lista de regiões?", "settings_location": "Localização", "settings_locationSubtitle": "Coordenadas GPS", + "location_coordinates": "Coordenadas", + "location_coordinatesDescription": "A posição do seu nó. É mostrada no mapa, usada quando partilha a sua localização e enviada nos anúncios quando a opção Localização no anúncio está ativa (Definições de privacidade).", + "location_pickOnMap": "Escolher no mapa", + "locationPicker_hint": "Arraste o mapa ou toque para colocar o marcador.", + "locationPicker_useLocation": "Usar esta localização", "settings_locationUpdated": "Localização e definições de GPS atualizadas", "settings_locationBothRequired": "Introduza a latitude e a longitude.", "settings_locationInvalid": "Latitude ou longitude inválida.", "settings_locationGPSEnable": "Ativar GPS", - "settings_locationGPSEnableSubtitle": "Ativa o GPS para atualizar a localização automaticamente.", - "settings_locationIntervalSec": "Intervalo do GPS (segundos)", + "settings_locationGPSEnableSubtitle": "Mantém a localização atualizada a partir do GPS do rádio.", + "settings_locationIntervalSec": "Intervalo de atualização (segundos)", + "settings_locationIntervalHelper": "60 a 86399 segundos", "settings_locationIntervalInvalid": "O intervalo tem de ser de pelo menos 60 segundos e inferior a 86400 segundos.", "settings_latitude": "Latitude", "settings_longitude": "Longitude", "settings_contactSettings": "Definições de contactos", - "settings_contactSettingsSubtitle": "Definições de como os contactos são adicionados.", + "settings_contactSettingsSubtitle": "Definições de como os contactos são adicionados", "settings_privacyMode": "Modo de privacidade", "settings_privacyModeSubtitle": "Ocultar nome/localização nos anúncios", "settings_privacyModeToggle": "Alterne o modo de privacidade para ocultar o seu nome e localização nos anúncios.", "settings_privacyModeEnabled": "Modo de privacidade ativado", "settings_privacyModeDisabled": "Modo de privacidade desativado", "settings_privacy": "Definições de privacidade", - "settings_privacySubtitle": "Controle que informações são partilhadas.", + "settings_privacySubtitle": "Controle que informações são partilhadas", "settings_privacySettingsDescription": "Escolha que informações o seu dispositivo partilha com outros.", "settings_denyAll": "Recusar todos", "settings_allowByContact": "Só contactos permitidos", @@ -229,17 +245,17 @@ "settings_telemetryBaseMode": "Quem pode pedir bateria e estado", "settings_telemetryLocationMode": "Quem pode pedir a minha localização", "settings_telemetryEnvironmentMode": "Quem pode pedir dados de sensores", - "settings_telemetryPerContactHint": "Para permitir um contacto, abra a conversa e escolha Definições do contacto no menu.", + "settings_telemetryPerContactHint": "Para permitir um contacto específico, abra a conversa e escolha Definições do contacto no menu.", "settings_advertLocation": "Localização no anúncio", "settings_advertLocationSubtitle": "Incluir localização no anúncio.", "settings_autoZeroHopAdvertOnGpsUpdate": "Anúncio Zero Hop automático ao atualizar GPS", "settings_autoZeroHopAdvertOnGpsUpdateSubtitle": "Definição da app: quando a sua posição GPS muda, anuncia automaticamente a nova localização apenas a nós próximos (requer Localização no anúncio).", "settings_multiAck": "ACKs múltiplos", - "settings_multiAckSubtitle": "Envia ACKs extra para melhor entrega; usa mais airtime", + "settings_multiAckSubtitle": "Envia 2 confirmações (ACKs) em vez de 1 quando a confirmação volta por um caminho direto. Mais fiável, mas usa mais airtime.", "settings_telemetryModeUpdated": "Modo de telemetria atualizado", "settings_actions": "Ações", "settings_deleteAllPaths": "Eliminar todos os caminhos", - "settings_deleteAllPathsSubtitle": "Limpar todos os dados de caminhos dos contactos.", + "settings_deleteAllPathsSubtitle": "Limpar todos os dados de caminhos dos contactos", "settings_sendAdvertisement": "Enviar anúncio", "settings_sendAdvertisementSubtitle": "Difundir presença agora", "settings_advertisementSent": "Anúncio enviado", @@ -257,10 +273,16 @@ "settings_appDebugLog": "Registo de depuração da app", "settings_appDebugLogSubtitle": "Mensagens de depuração da aplicação", "settings_about": "Acerca de", - "settings_aboutVersion": "MeshCore Open v{version}", - "settings_aboutLegalese": "2026 MeshCore Open Source Project", + "settings_aboutTheApp": "Acerca da app", + "settings_aboutLegalese": "{year} MeshCore Open Source Project", "settings_aboutDescription": "Um cliente Flutter de código aberto para dispositivos de rede mesh LoRa MeshCore.", "settings_aboutOpenMeteoAttribution": "Dados de elevação LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Projeto", + "about_sourceCode": "Código-fonte", + "about_license": "Licença", + "about_openSourceLicenses": "Licenças de código aberto", + "about_credits": "Créditos", + "about_contributors": "Contribuidores", "settings_infoName": "Nome", "settings_infoId": "ID", "settings_infoStatus": "Estado", @@ -272,10 +294,10 @@ "settings_infoHardware": "Hardware", "settings_infoFirmware": "Firmware", "settings_presets": "Predefinições", + "settings_radioParameters": "Parâmetros", "settings_presetCustom": "Personalizado", - "settings_radioMatchWarning": "Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e SF. O coding rate (CR) pode ser diferente.", "settings_frequency": "Frequência (MHz)", - "settings_frequencyHelper": "150.0 - 2500.0", + "settings_frequencyHelper": "150.0 - 2500.0 MHz", "settings_frequencyInvalid": "Frequência inválida (150-2500 MHz)", "settings_bandwidth": "Largura de banda", "settings_spreadingFactor": "Fator de espalhamento", @@ -283,9 +305,11 @@ "settings_txPower": "Potência TX (dBm)", "settings_txPowerRangeHelper": "{min} a {max} dBm", "settings_txPowerInvalid": "Potência TX inválida", - "settings_clientRepeat": "Repetição off-grid", + "settings_clientRepeat": "Modo de repetição off-grid", + "settings_clientRepeatDescription": "Permite que este dispositivo repita pacotes. Destina-se a locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVÁ-LO, é provável que perca a ligação ao resto da mesh. Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e fator de espalhamento (SF). Só o coding rate (CR) pode ser diferente.", + "settings_clientRepeatSwitch": "Modo de repetição", + "settings_clientRepeatNote": "Nota: Ao DESATIVÁ-LO, é reposta a frequência anterior. Se depois não conseguir ligar-se à mesh, verifique as predefinições/parâmetros.", "settings_clientRepeatFrequencyNote": "Frequência definida para {freq} MHz para repetição off-grid", - "settings_clientRepeatSubtitle": "Permitir que este dispositivo repita pacotes mesh para outros", "settings_clientRepeatFreqWarning": "A repetição off-grid requer a frequência 433, 869.495 ou 918 MHz", "settings_error": "Erro: {message}", "appSettings_title": "Definições da app", @@ -387,7 +411,7 @@ "repeater_pathHashModeOption1": "2 bytes", "repeater_pathHashModeOption2": "3 bytes", "repeater_pathHashModeOption3": "4 bytes", - "settings_pathHashModeHelper": "Tamanho de cada ID de nó registado no caminho dos pacotes flood enviados por este rádio: 1 byte (256 IDs, até 64 hops), 2 bytes (65K IDs, até 32 hops), 3 bytes (16M IDs, até 21 hops). IDs maiores reduzem colisões, mas os repetidores com firmware anterior à v1.14 descartam pacotes com IDs de 2 ou 3 bytes.", + "settings_pathHashModeHelper": "Tamanho do ID de cada nó registado no caminho dos pacotes flood que este rádio envia:\n\n- 1 byte: 256 IDs únicos, até 64 hops. \"ab\".\n- 2 bytes: 65K IDs únicos, até 32 hops. \"ab12\".\n- 3 bytes: 16M IDs únicos, até 21 hops. \"ab12cd\".\n\nIDs maiores reduzem colisões, mas os repetidores com firmware anterior à v1.14 descartam pacotes com IDs de 2 e 3 bytes.", "settings_requiresFirmware": "Requer firmware {version} ou posterior", "appSettings_channelMinHops": "Reenviar mensagens de canal até viajarem o suficiente", "appSettings_channelMinHopsSubtitle": "Se a sua mensagem não for ouvida de volta através de repetidores suficientes, é enviada novamente. Usa mais airtime.", @@ -1088,7 +1112,7 @@ "repeater_floodMaxHelper": "Máximo de hops que um pacote Flood pode percorrer (0-64)", "repeater_advancedSettings": "Avançado", "repeater_advancedSettingsSubtitle": "Ajustes para operadores experientes", - "repeater_pathHashMode": "Tamanho do ID do nó nos caminhos", + "repeater_pathHashMode": "Tamanho do hash do ID", "repeater_pathHashModeHelper": "Tamanho do ID deste repetidor nos caminhos dos anúncios que envia: 1 byte (256 IDs, até 64 hops), 2 bytes (65K IDs, até 32 hops), 3 bytes (16M IDs, até 21 hops). Não afeta o reencaminhamento; os repetidores v1.14+ reencaminham todos os tamanhos, mas o firmware mais antigo descarta pacotes com IDs de 2 ou 3 bytes.", "repeater_keySettings": "Alterar chaves de identidade", "repeater_keySettingsSubtitle": "Alterar o par de chaves pública/privada", @@ -1555,12 +1579,13 @@ "notification_replyUnavailable": "Esta conversa já não está no rádio ligado.", "notification_replySendFailed": "A resposta pode não ter sido enviada. Verifique no MeshCore Open e tente novamente.", "notification_replyAppNotRunning": "O MeshCore Open não está em execução. Abra-o e envie novamente a resposta.", - "settings_gpxExportRepeaters": "Exportar repetidores / room servers para GPX", - "settings_gpxExportRepeatersSubtitle": "Exporta para ficheiro GPX os repetidores / room servers com localização.", - "settings_gpxExportContacts": "Exportar companions para GPX", - "settings_gpxExportContactsSubtitle": "Exporta para ficheiro GPX os companions com localização.", - "settings_gpxExportAll": "Exportar todos os contactos para GPX", - "settings_gpxExportAllSubtitle": "Exporta para ficheiro GPX todos os contactos com localização.", + "export_messagesTitle": "Mensagens", + "export_messagesDescription": "Mensagens marcadas, guardadas como ficheiro Markdown.", + "export_locationsTitle": "Localizações de contactos", + "export_locationsDescription": "Contactos com localização conhecida, guardados como ficheiro GPX para aplicações de mapas.", + "settings_gpxExportRepeaters": "Repetidores e salas", + "settings_gpxExportContacts": "Utilizadores / Companions", + "settings_gpxExportAll": "Todos os contactos", "settings_gpxExportSuccess": "Ficheiro GPX exportado com sucesso.", "settings_gpxExportNoContacts": "Sem contactos para exportar.", "settings_gpxExportNotAvailable": "Não suportado no seu dispositivo/SO", @@ -1576,20 +1601,17 @@ "snrIndicator_unknownRepeater": "Repetidor desconhecido", "snrIndicator_unknownRepeaterHint": "Este repetidor ainda não está nos seus contactos. O nome, a localização e as opções aparecem quando o seu rádio receber o respetivo anúncio.", "contactsSettings_title": "Definições de contactos", - "contactsSettings_autoAddTitle": "Descoberta automática", - "contactsSettings_otherTitle": "Outras definições de contactos", - "contactsSettings_autoAddUsersTitle": "Adicionar utilizadores automaticamente", - "contactsSettings_autoAddUsersSubtitle": "Permite que o companion adicione automaticamente os utilizadores descobertos.", - "contactsSettings_autoAddRepeatersTitle": "Adicionar repetidores automaticamente", - "contactsSettings_autoAddRepeatersSubtitle": "Permite que o companion adicione automaticamente os repetidores descobertos.", - "contactsSettings_autoAddRoomServersTitle": "Adicionar room servers automaticamente", - "contactsSettings_autoAddRoomServersSubtitle": "Permite que o companion adicione automaticamente os room servers descobertos.", - "contactsSettings_autoAddSensorsTitle": "Adicionar sensores automaticamente", - "contactsSettings_autoAddSensorsSubtitle": "Permite que o companion adicione automaticamente os sensores descobertos.", + "contactsSettings_autoAddTitle": "Adicionar contactos automaticamente", + "contactsSettings_autoAddDescription": "Adiciona aos contactos do rádio os nós destes tipos ouvidos pela primeira vez. Os restantes podem ser adicionados mais tarde em Contactos descobertos.", + "contactsSettings_otherTitle": "Limites das listas de contactos", + "contactsSettings_autoAddUsersTitle": "Utilizadores", + "contactsSettings_autoAddRepeatersTitle": "Repetidores", + "contactsSettings_autoAddRoomServersTitle": "Servidores de sala", + "contactsSettings_autoAddSensorsTitle": "Sensores", "contactsSettings_overwriteOldestTitle": "Substituir o mais antigo", - "contactsSettings_overwriteOldestSubtitle": "Quando a lista de contactos estiver cheia, o contacto mais antigo que não seja favorito será substituído.", - "contactsSettings_evictDiscoveredContactsTitle": "Remover contactos descobertos", - "contactsSettings_evictDiscoveredContactsSubtitle": "Quando ativado, a app remove os contactos descobertos mais antigos assim que a lista de descoberta atingir o limite de {limit} entradas.", + "contactsSettings_overwriteOldestSubtitle": "Quando a lista de contactos do rádio estiver cheia, substitui o contacto mais antigo que não seja favorito.", + "contactsSettings_evictDiscoveredContactsTitle": "Limitar contactos descobertos", + "contactsSettings_evictDiscoveredContactsSubtitle": "A app limita a lista \"Contactos descobertos\" a {limit} entradas. Ao atingir o limite, os contactos mais antigos são removidos. Desative para remover o limite.", "discoveredContacts_Title": "Contactos descobertos", "discoveredContacts_noMatching": "Sem contactos correspondentes", "discoveredContacts_searchHint": "Pesquisar contactos descobertos", @@ -2211,7 +2233,7 @@ "bookmarks_channel": "Canal", "bookmarks_contact": "Contacto", "bookmarks_remove": "Remover marcador", - "settings_exportBookmarks": "Exportar marcadores para Markdown", + "settings_exportBookmarks": "Marcadores", "settings_exportBookmarksSubtitle": "Partilhe ou guarde as mensagens marcadas como um ficheiro Markdown.", "settings_exportBookmarksSuccess": "Marcadores exportados.", "settings_exportBookmarksNoBookmarks": "Não há marcadores para exportar.", diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index 267a7d12..36fda42a 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -62,18 +62,33 @@ "settings_nodeName": "Имя ноды", "settings_nodeNameNotSet": "Не установлено", "settings_nodeNameHint": "Введите имя ноды", + "nodeName_info": "Каждый байт имени отнимает байт у сообщений в каналах. Кириллица, спецсимволы и эмодзи занимают больше одного байта.", + "nodeName_messageLength": "Длина сообщения", + "nodeName_channelMessages": "Сообщения в каналах", + "nodeName_channelMessagesSubtitle": "Короче на длину имени", + "nodeName_directMessages": "Личные сообщения", + "nodeName_directMessagesSubtitle": "Не зависят от имени", + "nodeName_bytesAvailable": "{count, plural, one{{count} байт доступен} few{{count} байта доступно} many{{count} байт доступно} other{{count} байта доступно}}", + "nodeName_bytesOver": "{count, plural, one{{count} байт сверх лимита} few{{count} байта сверх лимита} many{{count} байт сверх лимита} other{{count} байта сверх лимита}}", "settings_nodeNameUpdated": "Имя обновлено", "settings_radioSettings": "Настройки радио", "settings_radioSettingsSubtitle": "Частота, мощность и коэффициент распространения", + "settings_unsavedChangesMessage": "У вас есть изменения, не сохранённые на радио.", "settings_radioSettingsUpdated": "Настройки радио обновлены", "settings_location": "Позиция", "settings_locationSubtitle": "Координаты GPS", + "location_coordinates": "Координаты", + "location_coordinatesDescription": "Позиция вашего узла. Отображается на карте, используется, когда вы делитесь местоположением, и передаётся в анонсах, если включено «Местоположение анонса» (Настройки конфиденциальности).", + "location_pickOnMap": "Выбрать на карте", + "locationPicker_hint": "Перетащите карту или нажмите, чтобы поставить метку.", + "locationPicker_useLocation": "Использовать это место", "settings_locationUpdated": "Позиция и настройки GPS обновлены", "settings_locationBothRequired": "Введите широту и долготу.", "settings_locationInvalid": "Неверная широта или долгота.", "settings_locationGPSEnable": "Включить GPS", - "settings_locationGPSEnableSubtitle": "Включение GPS для автоматического обновления позиции.", - "settings_locationIntervalSec": "Интервал для позиционирования GPS (секунды)", + "settings_locationGPSEnableSubtitle": "Обновляет местоположение по данным GPS радио.", + "settings_locationIntervalSec": "Интервал обновления (секунды)", + "settings_locationIntervalHelper": "от 60 до 86399 секунд", "settings_locationIntervalInvalid": "Интервал должен составлять не менее 60 секунд и не более 86400 секунд.", "settings_latitude": "Широта", "settings_longitude": "Долгота", @@ -86,7 +101,7 @@ "settings_privacyModeDisabled": "Режим конфиденциальности выключен", "settings_actions": "Действия", "settings_deleteAllPaths": "Удалить все пути", - "settings_deleteAllPathsSubtitle": "Очистить все данные путей в контактах.", + "settings_deleteAllPathsSubtitle": "Очистить все данные путей в контактах", "settings_sendAdvertisement": "Отправить анонсирование", "settings_sendAdvertisementSubtitle": "Отправить анонсирование о присутствии сейчас", "settings_advertisementSent": "Анонсирование отправлено", @@ -104,8 +119,8 @@ "settings_appDebugLog": "Журнал отладки приложения", "settings_appDebugLogSubtitle": "Сообщения отладки приложения", "settings_about": "О программе", - "settings_aboutVersion": "MeshCore Open v{version}", - "settings_aboutLegalese": "2026 MeshCore Open Source Project", + "settings_aboutTheApp": "О приложении", + "settings_aboutLegalese": "{year} MeshCore Open Source Project", "settings_aboutDescription": "Открытое клиентское приложение на Flutter для устройств MeshCore с LoRa-сетями.", "settings_infoName": "Имя", "settings_infoId": "ID", @@ -115,9 +130,10 @@ "settings_infoContactsCount": "Количество контактов", "settings_infoChannelCount": "Количество каналов", "settings_presets": "Пресеты", + "settings_radioParameters": "Параметры", "settings_frequency": "Частота (МГц)", - "settings_frequencyHelper": "300.0 – 2500.0", - "settings_frequencyInvalid": "Недопустимая частота (300–2500 МГц)", + "settings_frequencyHelper": "150.0 - 2500.0 МГц", + "settings_frequencyInvalid": "Недопустимая частота (150-2500 МГц)", "settings_bandwidth": "Полоса пропускания", "settings_spreadingFactor": "Коэффициент расширения", "settings_codingRate": "Коэффициент кодирования", @@ -1013,16 +1029,17 @@ }, "notification_sentGif": "Отправил GIF", "notification_sentImage": "Отправил изображение", - "settings_gpxExportRepeaters": "Экспортировать рипитеры / сервер комнаты в GPX", - "settings_gpxExportRepeatersSubtitle": "Экспортирует ретрансляторы / сервер комнат с местоположением в файл GPX.", - "settings_gpxExportContacts": "Экспортировать спутников в GPX", + "export_messagesTitle": "Сообщения", + "export_messagesDescription": "Сообщения в закладках, сохранённые как файл Markdown.", + "export_locationsTitle": "Местоположения контактов", + "export_locationsDescription": "Контакты с известным местоположением, сохранённые как файл GPX для картографических приложений.", + "settings_gpxExportRepeaters": "Репитеры и комнаты", + "settings_gpxExportContacts": "Пользователи / Компаньоны", "settings_gpxExportNotAvailable": "Не поддерживается на вашем устройстве/ОС", "settings_gpxExportError": "Произошла ошибка при экспорте.", "settings_gpxExportRepeatersRoom": "Местоположения повторителей и серверов комнат", "settings_gpxExportChat": "Местоположения спутников", - "settings_gpxExportContactsSubtitle": "Экспортирует спутников с местоположением в файл GPX.", - "settings_gpxExportAll": "Экспортировать все контакты в GPX", - "settings_gpxExportAllSubtitle": "Экспортирует все контакты с местоположением в файл GPX.", + "settings_gpxExportAll": "Все контакты", "settings_gpxExportAllContacts": "Все местоположения контактов", "settings_gpxExportSuccess": "Успешно экспортирован файл GPX.", "settings_gpxExportNoContacts": "Нет контактов для экспорта.", @@ -1049,9 +1066,17 @@ "snrIndicator_lastSeen": "Последний раз видели", "chat_ShowAllPaths": "Показать все пути", "settings_clientRepeatFreqWarning": "Для работы в режиме \"без подключения к сети\" требуется частота 433, 869 или 918 МГц.", - "settings_clientRepeatSubtitle": "Позвольте этому устройству повторять пакеты данных для других устройств.", - "settings_clientRepeat": "Повторение \"вне сети\"", + "settings_clientRepeat": "Режим повторения вне сети", + "settings_clientRepeatDescription": "Позволяет этому устройству ретранслировать пакеты. Предназначен для мест, где нет покрытия ретрансляторов.\n\nЭтот режим использует ограниченный набор частот. После ВКЛЮЧЕНИЯ вы, скорее всего, потеряете связь с общей mesh-сетью. Все узлы, с которыми вы общаетесь, должны использовать одну и ту же частоту, полосу пропускания и коэффициент расширения (SF). Отличаться может только коэффициент кодирования (CR).", + "settings_clientRepeatSwitch": "Режим повторения", + "settings_clientRepeatNote": "Примечание: После ВЫКЛЮЧЕНИЯ восстановится прежняя частота. Если затем не удаётся подключиться к mesh-сети, проверьте пресеты/параметры.", "settings_aboutOpenMeteoAttribution": "Данные о высоте LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Проект", + "about_sourceCode": "Исходный код", + "about_license": "Лицензия", + "about_openSourceLicenses": "Лицензии открытого ПО", + "about_credits": "Благодарности", + "about_contributors": "Участники", "appSettings_unitsTitle": "Единицы", "appSettings_unitsMetric": "Метрическая (м/км)", "appSettings_unitsImperial": "Имперская (ft / mi)", @@ -1241,18 +1266,15 @@ "contacts_searchUsers": "Поиск {number}{str} пользователей...", "settings_contactSettings": "Настройки контактов", "settings_contactSettingsSubtitle": "Настройки добавления контактов", - "contactsSettings_autoAddTitle": "Автоматическое обнаружение", + "contactsSettings_autoAddTitle": "Автодобавление контактов", + "contactsSettings_autoAddDescription": "Впервые услышанные узлы этих типов добавляются в контакты радио. Остальные можно добавить позже на экране «Обнаруженные контакты».", "contactsSettings_title": "Настройки контактов", - "contactsSettings_otherTitle": "Другие настройки, связанные с контактами", - "contactsSettings_autoAddUsersSubtitle": "Разрешить компаньону автоматически добавлять обнаруженных пользователей", - "contactsSettings_autoAddRoomServersTitle": "Автоматически добавлять серверы комнат", - "contactsSettings_autoAddSensorsTitle": "Автоматически добавлять датчики", - "contactsSettings_autoAddSensorsSubtitle": "Разрешить компаньону автоматически добавлять обнаруженные датчики", - "contactsSettings_autoAddUsersTitle": "Автоматически добавлять пользователей", - "contactsSettings_overwriteOldestTitle": "Перезаписать самое старое", - "contactsSettings_autoAddRepeatersTitle": "Автоматически добавлять ретрансляторы", - "contactsSettings_autoAddRepeatersSubtitle": "Разрешить спутнику автоматически добавлять обнаруженные ретрансляторы", - "contactsSettings_autoAddRoomServersSubtitle": "Разрешить компаньону автоматически добавлять обнаруженные сервера комнат.", + "contactsSettings_otherTitle": "Лимиты списка контактов", + "contactsSettings_autoAddRoomServersTitle": "Серверы комнат", + "contactsSettings_autoAddSensorsTitle": "Датчики", + "contactsSettings_autoAddUsersTitle": "Пользователи", + "contactsSettings_overwriteOldestTitle": "Перезаписывать самые старые", + "contactsSettings_autoAddRepeatersTitle": "Репитеры", "discoveredContacts_noMatching": "Нет совпадающих контактов", "discoveredContacts_searchHint": "Найденные контакты поиска", "discoveredContacts_contactAdded": "Контакт добавлен", @@ -1298,9 +1320,9 @@ "discoveredContacts_importInvalidFile": "Файл не является экспортом обнаруженных контактов.", "discoveredContacts_importSummary": "Импортировано: {imported}, пропущено уже известных: {skipped}, нечитаемых записей: {invalid}.", "discoveredContacts_importTooLarge": "Файл импорта слишком большой (максимум {maxMb} МБ).", - "contactsSettings_overwriteOldestSubtitle": "Когда список контактов заполнен, будет заменен самый старый контакт, который не находится в избранном.", - "contactsSettings_evictDiscoveredContactsTitle": "Удалять обнаруженные контакты", - "contactsSettings_evictDiscoveredContactsSubtitle": "Если включено, приложение удаляет самые старые обнаруженные контакты, когда список обнаруженных достигает лимита в {limit} записей.", + "contactsSettings_overwriteOldestSubtitle": "Когда список контактов радио заполнен, заменяется самый старый контакт не из избранного.", + "contactsSettings_evictDiscoveredContactsTitle": "Ограничивать обнаруженные контакты", + "contactsSettings_evictDiscoveredContactsSubtitle": "Приложение ограничивает список «Обнаруженные контакты» до {limit} записей. При достижении лимита старые контакты удаляются. Отключите, чтобы снять ограничение.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -1384,7 +1406,7 @@ } }, "settings_privacy": "Настройки конфиденциальности", - "settings_privacySubtitle": "Контролируйте, какую информацию делиться.", + "settings_privacySubtitle": "Контролируйте, какую информацию делиться", "settings_telemetryLocationMode": "Режим местоположения телеметрии", "settings_telemetryEnvironmentMode": "Режим среды телеметрии", "settings_advertLocation": "Местоположение анонса", @@ -1665,7 +1687,7 @@ "repeater_floodMaxHelper": "Максимум хопов для Flood-пакета (0-64)", "repeater_advancedSettings": "Продвинутый", "repeater_advancedSettingsSubtitle": "Регуляторы для опытных операторов", - "repeater_pathHashMode": "Режим хеширования пути", + "repeater_pathHashMode": "Размер хеша ID", "repeater_pathHashModeHelper": "Байты, используемые для кодирования идентификатора этого ретранслятора в тегах Flood-маршрута/обнаружения циклов. 0 = 1 байт (256 идентификаторов, до 64 хопов), 1 = 2 байта (65 000 идентификаторов, до 32 хопов), 2 = 3 байта (16 миллионов идентификаторов, до 21 хопа). Прошивки до v1.14 всегда использовали 1-байтовые маршруты; v1.14 и новее можно настроить на 2- или 3-байтовые маршруты.", "repeater_txDelay": "Задержка в работе системы Flood TX", "repeater_txDelayHelper": "Задержка повторной передачи для трафика при Flood, в качестве коэффициента, умножающего время передачи пакета (от 0 до 2, по умолчанию 0,5). Более высокое значение означает меньшее количество столкновений, но более медленную передачу.", @@ -1724,13 +1746,6 @@ } } }, - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, "@telemetry_temperatureValue": { "placeholders": { "celsius": { @@ -1842,7 +1857,7 @@ "repeater_cliHelpStatsPackets": "(Только для серийной версии) Отображает статистику на уровне пакетов.", "repeater_cliHelpStatsRadio": "(Только для серий) Отображает статистику радио.", "repeater_cliHelpStatsCore": "(Только для серийного оборудования) Отображает основные статистические данные прошивки.", - "settings_companionDebugLogSubtitle": "Команды, ответы и необработанные данные, используемые для протоколов BLE, TCP и USB.", + "settings_companionDebugLogSubtitle": "Команды, ответы и необработанные данные, используемые для протоколов BLE, TCP и USB", "repeater_chanUtil": "Использование канала", "settings_companionDebugLog": "Журнал отладки (для сопутствующего приложения)", "@routing_lastWorked": { @@ -2350,10 +2365,9 @@ "settings_regionDefault": "Регион по умолчанию", "settings_regionDefaultSubtitle": "Используется каналами без собственного региона", "settings_regionDefaultNone": "Нет", - "settings_telemetryPerContactHint": "Чтобы разрешить контакт, откройте его чат и выберите «Настройки контактов» в меню.", - "settings_multiAckSubtitle": "Отправлять дополнительные ACK для лучшей доставки; расходует больше времени в эфире", + "settings_telemetryPerContactHint": "Чтобы разрешить конкретный контакт, откройте его чат и выберите «Настройки контактов» в меню.", + "settings_multiAckSubtitle": "Отправлять 2 подтверждения (ACK) вместо 1, когда подтверждение возвращается по прямому маршруту. Надёжнее, но расходует больше времени в эфире.", "settings_presetCustom": "Пользовательский", - "settings_radioMatchWarning": "Все узлы, с которыми вы общаетесь, должны использовать одинаковые частоту, полосу пропускания и SF. Скорость кодирования (CR) может отличаться.", "settings_txPowerRangeHelper": "от {min} до {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -2373,7 +2387,7 @@ } } }, - "settings_pathHashModeHelper": "Размер каждого идентификатора узла, записываемого в маршрут Flood-пакетов, отправляемых этим радио: 1 байт (256 идентификаторов, до 64 хопов), 2 байта (65 тыс. идентификаторов, до 32 хопов), 3 байта (16 млн идентификаторов, до 21 хопа). Более длинные идентификаторы уменьшают число коллизий, но ретрансляторы с прошивкой старше v1.14 отбрасывают пакеты с 2- или 3-байтовыми идентификаторами.", + "settings_pathHashModeHelper": "Размер идентификатора каждого узла в маршруте Flood-пакетов, отправляемых этим радио:\n\n- 1 байт: 256 уникальных идентификаторов, до 64 хопов. \"ab\".\n- 2 байта: 65 тыс. уникальных идентификаторов, до 32 хопов. \"ab12\".\n- 3 байта: 16 млн уникальных идентификаторов, до 21 хопа. \"ab12cd\".\n\nБолее длинные идентификаторы уменьшают число коллизий, но ретрансляторы с прошивкой ниже v1.14 отбрасывают пакеты с 2- и 3-байтовыми идентификаторами.", "settings_requiresFirmware": "Требуется прошивка {version} или новее", "@settings_requiresFirmware": { "placeholders": { @@ -3009,7 +3023,8 @@ "routing_modeDirect": "Прямой", "routing_modeDirectHint": "Всегда отправляет напрямую этому контакту, без промежуточных ретрансляторов. Используйте, если он в зоне радиосвязи.", "settings_export": "Экспорт", - "settings_exportSubtitle": "Экспорт контактов и репитеров в GPX", + "settings_exportData": "Экспорт данных", + "settings_exportSubtitle": "Закладки и местоположения контактов", "backupRestore_title": "Резервное копирование", "backupRestore_subtitle": "Сохранение и восстановление данных приложения и настроек радио", "backupRestore_import": "Импорт", @@ -3229,7 +3244,7 @@ "bookmarks_channel": "Канал", "bookmarks_contact": "Контакт", "bookmarks_remove": "Убрать из закладок", - "settings_exportBookmarks": "Экспорт закладок в Markdown", + "settings_exportBookmarks": "Закладки", "settings_exportBookmarksSubtitle": "Поделитесь закладками или сохраните их в файл Markdown.", "settings_exportBookmarksSuccess": "Закладки экспортированы.", "settings_exportBookmarksNoBookmarks": "Нет закладок для экспорта.", diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb index 83c1fa67..d0154f79 100644 --- a/lib/l10n/app_sk.arb +++ b/lib/l10n/app_sk.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Názov uzla", "settings_nodeNameNotSet": "Nezriadené", "settings_nodeNameHint": "Zadajte názov uzla", + "nodeName_info": "Každý bajt názvu znamená o bajt menej pre správy v kanáloch. Písmená s diakritikou, špeciálne znaky a emoji môžu zaberať viac ako jeden bajt.", + "nodeName_messageLength": "Dĺžka správy", + "nodeName_channelMessages": "Správy v kanáloch", + "nodeName_channelMessagesSubtitle": "Názov ich skracuje", + "nodeName_directMessages": "Priame správy", + "nodeName_directMessagesSubtitle": "Názov na ne nemá vplyv", + "nodeName_bytesAvailable": "{count, plural, =1{1 bajt k dispozícii} few{{count} bajty k dispozícii} many{{count} bajtu k dispozícii} other{{count} bajtov k dispozícii}}", + "nodeName_bytesOver": "{count, plural, =1{1 bajt nad limit} few{{count} bajty nad limit} many{{count} bajtu nad limit} other{{count} bajtov nad limit}}", "settings_nodeNameUpdated": "Meno aktualizované", "settings_radioSettings": "Nastavenia rádia", "settings_radioSettingsSubtitle": "Frekvencia, výkon, rozptylovací faktor", + "settings_unsavedChangesMessage": "Máte zmeny, ktoré neboli uložené do rádia.", "settings_radioSettingsUpdated": "Nastavenia rádia aktualizované", "settings_location": "Lokalita", "settings_locationSubtitle": "GPS súradnice", + "location_coordinates": "Súradnice", + "location_coordinatesDescription": "Poloha vášho uzla. Zobrazuje sa na mape, používa sa pri zdieľaní polohy a odosiela sa v inzerátoch, keď je zapnuté „Umiestnenie inzerátu“ (Nastavenia súkromia).", + "location_pickOnMap": "Vybrať na mape", + "locationPicker_hint": "Posuňte mapu alebo klepnutím umiestnite značku.", + "locationPicker_useLocation": "Použiť túto polohu", "settings_locationUpdated": "Lokalita aktualizovaná", "settings_locationBothRequired": "Zadajte obidve zložky zemyslenia a zložky meracieho kruhu.", "settings_locationInvalid": "Neplatná šírka alebo dĺžka.", @@ -109,7 +123,7 @@ "settings_privacyModeDisabled": "Ochranný režim je vypnutý", "settings_actions": "Možné akcie", "settings_deleteAllPaths": "Odstrániť všetky cesty", - "settings_deleteAllPathsSubtitle": "Vymazať všetky údaje o cestách z kontaktov.", + "settings_deleteAllPathsSubtitle": "Vymazať všetky údaje o cestách z kontaktov", "settings_sendAdvertisement": "Odoslať inzerát", "settings_sendAdvertisementSubtitle": "Momentálne priezornejšie.", "settings_advertisementSent": "Inzerát odoslaný", @@ -119,23 +133,16 @@ "settings_refreshContacts": "Načítať Kontakty", "settings_refreshContactsSubtitle": "Načítať zoznam kontaktov z zariadenia", "settings_rebootDevice": "Restartovať zariadenie", - "settings_rebootDeviceSubtitle": "Restartujte zariadenie MeshCore.", + "settings_rebootDeviceSubtitle": "Restartujte zariadenie MeshCore", "settings_rebootDeviceConfirm": "Ste si istý, že chcete zariadenie reštartovať? Budete odpojení.", "settings_debug": "Ladenie", "settings_bleDebugLog": "Log BLE Debug", "settings_bleDebugLogSubtitle": "Príkazy BLE, odpovede a surové dáta", "settings_appDebugLog": "Záznam ladenia aplikácie", "settings_appDebugLogSubtitle": "Správy z ladenia aplikácie", - "settings_about": "O nás", - "settings_aboutVersion": "MeshCore, verzia {version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "MeshCore Open Source Projekt 2024", + "settings_about": "O aplikácii", + "settings_aboutTheApp": "O aplikácii", + "settings_aboutLegalese": "MeshCore Open Source Projekt {year}", "settings_aboutDescription": "Otvorený zdrojový Flutter klient pre MeshCore LoRa sieťové zariadenia.", "settings_infoName": "Meno", "settings_infoId": "Identifikátor", @@ -145,12 +152,13 @@ "settings_infoContactsCount": "Počet kontaktov", "settings_infoChannelCount": "Počet kanálov", "settings_presets": "Prednastavenia", + "settings_radioParameters": "Parametre", "settings_frequency": "Frekvencia (MHz)", - "settings_frequencyHelper": "300,0 – 2500,0", - "settings_frequencyInvalid": "Neplatná frekvencia (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Neplatná frekvencia (150-2500 MHz)", "settings_bandwidth": "Šírka pásma", - "settings_spreadingFactor": "Rozptýľovací faktor", - "settings_codingRate": "Cenový kurz pre programovanie", + "settings_spreadingFactor": "Rozptyľovací faktor", + "settings_codingRate": "Rýchlosť kódovania", "settings_txPower": "TX Výkon (dBm)", "settings_txPowerHelper": "0 – 22", "settings_txPowerInvalid": "Neplatná hodnota výkonu TX (0-22 dBm)", @@ -1195,7 +1203,7 @@ "repeater_floodMaxHelper": "Maximálny počet skokov, ktoré môže prejsť flood paket (0-64)", "repeater_advancedSettings": "Pokročilé", "repeater_advancedSettingsSubtitle": "Doladenie pre skúsených prevádzkovateľov", - "repeater_pathHashMode": "Veľkosť ID uzla v cestách", + "repeater_pathHashMode": "Veľkosť hashu ID", "repeater_pathHashModeHelper": "Veľkosť ID tohto opakovača v cestách inzerátov, ktoré odosiela: 1 bajt (256 ID, až 64 skokov), 2 bajty (65 tisíc ID, až 32 skokov), 3 bajty (16 miliónov ID, až 21 skokov). Neovplyvňuje preposielanie; opakovače v1.14+ preposielajú všetky veľkosti, staršie firmvéry však zahadzujú pakety s 2- alebo 3-bajtovými ID.", "repeater_txDelay": "Oneskorenie Flood TX", "repeater_txDelayHelper": "Rozostup opakovaného vysielania pre flood prevádzku ako násobok vysielacieho času paketu (0-2, predvolene 0,5). Vyššia hodnota = menej kolízií, ale pomalšie doručovanie.", @@ -1629,9 +1637,10 @@ }, "neighbors_heardAgo": "Počuli sme to: {time} dozadu", "neighbors_unknownContact": "Neznáma {pubkey}", - "settings_locationGPSEnable": "Aktivovať GPS", - "settings_locationGPSEnableSubtitle": "Povolí automatické aktualizovanie polohy pomocou GPS.", - "settings_locationIntervalSec": "Interval pre GPS (Sekundy)", + "settings_locationGPSEnable": "Povoliť GPS", + "settings_locationGPSEnableSubtitle": "Priebežne aktualizuje polohu z GPS rádia.", + "settings_locationIntervalSec": "Interval aktualizácie (sekundy)", + "settings_locationIntervalHelper": "60 až 86399 sekúnd", "settings_locationIntervalInvalid": "Interval musí byť aspoň 60 sekúnd a menej ako 86400 sekúnd.", "contacts_manageRoom": "Spravovať server miestnosti", "room_management": "Správa servera miestnosti", @@ -1850,17 +1859,14 @@ }, "notification_sentGif": "Odoslal(a) GIF", "notification_sentImage": "Odoslal(a) obrázok", - "settings_gpxExportRepeatersSubtitle": "Exportuje repeater / roomserver s lokalitou do súboru GPX.", - "settings_gpxExportContacts": "Export sprievodcov do GPX", + "settings_gpxExportContacts": "Používatelia / Companiony", "settings_gpxExportSuccess": "Úspešne exportovaný súbor GPX.", "settings_gpxExportNoContacts": "Žiadne kontakty na export.", "settings_gpxExportNotAvailable": "Nie je podporované na vašom zariadení/operáciomnom systéme", "settings_gpxExportRepeatersRoom": "Umiestnenia opakovačov a serverov miestností", "settings_gpxExportError": "Vyskytol sa chyba počas exportu.", - "settings_gpxExportAllSubtitle": "Exportuje všetky kontakty s lokalitou do súboru GPX.", - "settings_gpxExportContactsSubtitle": "Exportuje sprievodcov s umiestnením do súboru GPX.", - "settings_gpxExportRepeaters": "Exportovať repeater / server miestnosti do GPX", - "settings_gpxExportAll": "Exportovať všetky kontakty do GPX", + "settings_gpxExportRepeaters": "Opakovače a miestnosti", + "settings_gpxExportAll": "Všetky kontakty", "settings_gpxExportAllContacts": "Všetky kontaktné lokality", "settings_gpxExportChat": "Lokácie sprievodcov", "settings_gpxExportShareText": "Mapové údaje exportované z meshcore-open", @@ -1885,10 +1891,18 @@ "snrIndicator_lastSeen": "Naposledy videný", "snrIndicator_nearByRepeaters": "Miestne opakovače", "chat_ShowAllPaths": "Zobraziť všetky cesty", - "settings_clientRepeat": "Opätovné použitie bez elektrickej siete", + "settings_clientRepeat": "Režim off-grid opakovania", + "settings_clientRepeatDescription": "Umožňuje tomuto zariadeniu preposielať pakety. Je určený na miesta bez pokrytia opakovačmi.\n\nTento režim používa obmedzenú sadu frekvencií. Jeho ZAPNUTIE vás pravdepodobne odpojí od širšej siete mesh. Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma a rozptyľovací faktor (SF). Líšiť sa môže len rýchlosť kódovania (CR).", + "settings_clientRepeatSwitch": "Režim opakovania", + "settings_clientRepeatNote": "Poznámka: Po VYPNUTÍ sa obnoví predchádzajúca frekvencia. Ak sa potom nemôžete pripojiť k sieti mesh, skontrolujte prednastavenia/parametre.", "settings_clientRepeatFreqWarning": "Použitie off-grid systému vyžaduje frekvencie 433, 869 alebo 918 MHz.", - "settings_clientRepeatSubtitle": "Umožnite, aby toto zariadenie opakovávalo siete pre ostatných.", "settings_aboutOpenMeteoAttribution": "Údaje o nadmorskej výške LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Projekt", + "about_sourceCode": "Zdrojový kód", + "about_license": "Licencia", + "about_openSourceLicenses": "Licencie open source", + "about_credits": "Poďakovanie", + "about_contributors": "Prispievatelia", "appSettings_unitsTitle": "Jednotky", "appSettings_unitsMetric": "Metrické (m / km)", "appSettings_unitsImperial": "Imperiálne (ft / mi)", @@ -2076,26 +2090,23 @@ "contacts_searchUsers": "Hľadať {number}{str} používateľov...", "contacts_searchContactsNoNumber": "Hľadať kontakty...", "contacts_unread": "Neprečítané", - "settings_contactSettingsSubtitle": "Nastavenia pre pridávanie kontaktov.", - "contactsSettings_autoAddUsersTitle": "Automaticky pridávať užívateľov", - "contactsSettings_autoAddUsersSubtitle": "Povoliť spoločníkovi automaticky pridávať objavených užívateľov.", - "contactsSettings_autoAddRepeatersTitle": "Automaticky pridávať opakovače", - "contactsSettings_autoAddRoomServersTitle": "Automaticky pridávať server miestnosti", - "contactsSettings_autoAddRoomServersSubtitle": "Povoliť spoločníkovi automaticky pridať objavené serverové miestnosti.", - "contactsSettings_autoAddTitle": "Automatické zisťovanie", + "settings_contactSettingsSubtitle": "Nastavenia pre pridávanie kontaktov", + "contactsSettings_autoAddUsersTitle": "Používatelia", + "contactsSettings_autoAddRepeatersTitle": "Opakovače", + "contactsSettings_autoAddRoomServersTitle": "Servery miestností", + "contactsSettings_autoAddTitle": "Automaticky pridávať kontakty", + "contactsSettings_autoAddDescription": "Novo počuté uzly týchto typov sa pridajú do kontaktov rádia. Ostatné môžete pridať neskôr z obrazovky „Objavené kontakty“.", "contactsSettings_title": "Nastavenia kontaktov", - "contactsSettings_otherTitle": "Ďalšie nastavenia súvisiace s kontaktami", + "contactsSettings_otherTitle": "Limity zoznamu kontaktov", "settings_contactSettings": "Nastavenia kontaktov", - "contactsSettings_autoAddSensorsTitle": "Automaticky pridávať senzory", + "contactsSettings_autoAddSensorsTitle": "Senzory", "discoveredContacts_noMatching": "Žiadne zhodné kontakty", "discoveredContacts_searchHint": "Vyhľadať objavené kontakty", - "contactsSettings_autoAddRepeatersSubtitle": "Povoliť spoločníkovi automaticky pridávať objavené repeater.", "discoveredContacts_contactAdded": "Kontakt bol pridaný", "discoveredContacts_copyContact": "Kopírovať kontakt do schránky", "discoveredContacts_deleteContact": "Zmazať kontakt", - "contactsSettings_autoAddSensorsSubtitle": "Povoliť spoločníkovi automaticky pridávať objavené senzory.", "discoveredContacts_Title": "Objavené kontakty", - "contactsSettings_overwriteOldestTitle": "Prepísať najstaršie", + "contactsSettings_overwriteOldestTitle": "Prepisovať najstaršie", "discoveredContacts_addContact": "Pridať kontakt", "discoveredContacts_export": "Exportovať objavené kontakty", "discoveredContacts_import": "Importovať objavené kontakty", @@ -2135,9 +2146,9 @@ } } }, - "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.", + "contactsSettings_overwriteOldestSubtitle": "Keď je zoznam kontaktov v rádiu plný, nahradí sa najstarší kontakt, ktorý nie je obľúbený.", + "contactsSettings_evictDiscoveredContactsTitle": "Obmedziť objavené kontakty", + "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikácia obmedzuje zoznam „Objavené kontakty“ na {limit} položiek. Po dosiahnutí limitu sa staršie kontakty odstránia. Vypnite pre zrušenie limitu.", "@contactsSettings_evictDiscoveredContactsSubtitle": { "placeholders": { "limit": { @@ -2221,7 +2232,7 @@ } }, "settings_privacy": "Nastavenia súkromia", - "settings_privacySubtitle": "Ovládni, aké informácie sa zdieľajú.", + "settings_privacySubtitle": "Ovládni, aké informácie sa zdieľajú", "settings_telemetryLocationMode": "Režim umiestnenia telemetrie", "settings_telemetryBaseMode": "Základný režim telemetrie", "settings_advertLocation": "Umiestnenie inzerátu", @@ -3063,10 +3074,9 @@ "settings_regionDefault": "Predvolený región", "settings_regionDefaultSubtitle": "Používa sa kanálmi bez vlastného regiónu", "settings_regionDefaultNone": "Žiadny", - "settings_telemetryPerContactHint": "Ak chcete povoliť kontaktu, otvorte jeho chat a v ponuke vyberte Nastavenia kontaktov.", - "settings_multiAckSubtitle": "Odosielajte ďalšie ACK pre lepšie doručenie; spotrebuje viac času vysielania", + "settings_telemetryPerContactHint": "Ak chcete povoliť konkrétnemu kontaktu, otvorte jeho chat a v ponuke vyberte Nastavenia kontaktov.", + "settings_multiAckSubtitle": "Odosiela 2 potvrdenia (ACK) namiesto 1, keď sa potvrdenie vracia priamou cestou. Spoľahlivejšie, ale spotrebuje viac času vysielania.", "settings_presetCustom": "Vlastné", - "settings_radioMatchWarning": "Všetky uzly, s ktorými komunikujete, musia používať rovnakú frekvenciu, šírku pásma a SF. Rýchlosť kódovania (CR) sa môže líšiť.", "settings_txPowerRangeHelper": "{min} až {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3086,7 +3096,7 @@ } } }, - "settings_pathHashModeHelper": "Veľkosť ID uzla zaznamenávaného v ceste odosielaných flood paketov: 1 bajt (256 ID, až 64 skokov), 2 bajty (65 tis., až 32 skokov), 3 bajty (16 mil., až 21 skokov). Väčšie ID znižujú kolízie, ale opakovače s firmvérom starším ako v1.14 odhadzujú pakety s 2- alebo 3-bajtovými ID.", + "settings_pathHashModeHelper": "Veľkosť ID každého uzla v ceste flood paketov odosielaných týmto rádiom:\n\n- 1 bajt: 256 jedinečných ID, až 64 skokov. \"ab\".\n- 2 bajty: 65 tis. jedinečných ID, až 32 skokov. \"ab12\".\n- 3 bajty: 16 mil. jedinečných ID, až 21 skokov. \"ab12cd\".\n\nVäčšie ID znižujú kolízie, ale opakovače s firmvérom starším ako v1.14 zahadzujú pakety s 2- a 3-bajtovými ID.", "settings_requiresFirmware": "Vyžaduje firmvér {version} alebo novší", "@settings_requiresFirmware": { "placeholders": { @@ -3182,8 +3192,11 @@ "notification_replyUnavailable": "Táto konverzácia už nie je na pripojenom rádiu.", "notification_replySendFailed": "Vaša odpoveď možno nebola odoslaná. Skontrolujte to v MeshCore Open a skúste to znova.", "notification_replyAppNotRunning": "MeshCore Open nebeží. Otvorte ho a odošlite odpoveď ešte raz.", - "settings_exportBookmarks": "Exportovať záložky do Markdownu", - "settings_exportBookmarksSubtitle": "Zdieľať alebo uložiť správy so záložkou ako súbor Markdown.", + "export_messagesTitle": "Správy", + "export_messagesDescription": "Správy v záložkách, uložené ako súbor Markdown.", + "export_locationsTitle": "Polohy kontaktov", + "export_locationsDescription": "Kontakty so známou polohou, uložené ako súbor GPX pre mapové aplikácie.", + "settings_exportBookmarks": "Záložky", "settings_exportBookmarksSuccess": "Záložky boli exportované.", "settings_exportBookmarksNoBookmarks": "Nie sú žiadne záložky na export.", "snrIndicator_nearByRepeatersDescription": "Opakovače, ktoré vaše rádio počulo priamo, najskôr tie naposledy počuté.", @@ -3787,7 +3800,8 @@ "routing_modeDirect": "Priamo", "routing_modeDirectHint": "Vždy odosiela priamo tomuto kontaktu, bez prechodov cez opakovače. Použite, ak je v dosahu rádia.", "settings_export": "Exportovať", - "settings_exportSubtitle": "Exportovať kontakty a opakovače ako GPX", + "settings_exportData": "Exportovať dáta", + "settings_exportSubtitle": "Záložky a polohy kontaktov", "backupRestore_title": "Zálohovanie a obnovenie", "backupRestore_subtitle": "Uložte alebo obnovte dáta aplikácie a nastavenia rádia", "backupRestore_import": "Importovať", diff --git a/lib/l10n/app_sl.arb b/lib/l10n/app_sl.arb index 967ccff4..7e0e7222 100644 --- a/lib/l10n/app_sl.arb +++ b/lib/l10n/app_sl.arb @@ -84,17 +84,31 @@ "settings_title": "Nastavitve", "settings_deviceInfo": "Informacije o napravei", "settings_appSettings": "Nastavitve aplikacije", - "settings_appSettingsSubtitle": "Obveščanja, sporoščanje in zemljevidi.", + "settings_appSettingsSubtitle": "Obveščanja, sporoščanje in zemljevidi", "settings_nodeSettings": "Nastavitev časa", "settings_nodeName": "Ime node-a", "settings_nodeNameNotSet": "Ni nastavljeno", "settings_nodeNameHint": "Vnesite ime node-a", + "nodeName_info": "Vsak bajt v vašem imenu je en bajt manj za sporočila v kanalih. Črke s strešicami, posebni znaki in emoji lahko porabijo več kot en bajt.", + "nodeName_messageLength": "Dolžina sporočila", + "nodeName_channelMessages": "Sporočila v kanalih", + "nodeName_channelMessagesSubtitle": "Vaše ime jih skrajša", + "nodeName_directMessages": "Neposredna sporočila", + "nodeName_directMessagesSubtitle": "Vaše ime nanje ne vpliva", + "nodeName_bytesAvailable": "{count, plural, one{{count} bajt na voljo} two{{count} bajta na voljo} few{{count} bajti na voljo} other{{count} bajtov na voljo}}", + "nodeName_bytesOver": "{count, plural, one{{count} bajt čez omejitev} two{{count} bajta čez omejitev} few{{count} bajti čez omejitev} other{{count} bajtov čez omejitev}}", "settings_nodeNameUpdated": "Ime posodobljeno", "settings_radioSettings": "Nastavitve radija", "settings_radioSettingsSubtitle": "Frekvenca, moč, razširitveni faktor", + "settings_unsavedChangesMessage": "Imate spremembe, ki niso shranjene v radiu.", "settings_radioSettingsUpdated": "Radio nastavitve posodobljene", "settings_location": "Lokacija", "settings_locationSubtitle": "GPS koordinate", + "location_coordinates": "Koordinate", + "location_coordinatesDescription": "Položaj vašega vozlišča. Prikazan je na zemljevidu, uporabljen pri deljenju lokacije in poslan v oglasih, ko je vklopljena »Lokacija oglasa« (Nastavitve zasebnosti).", + "location_pickOnMap": "Izberi na zemljevidu", + "locationPicker_hint": "Povlecite zemljevid ali tapnite, da postavite oznako.", + "locationPicker_useLocation": "Uporabi to lokacijo", "settings_locationUpdated": "Lokacija posodobljena", "settings_locationBothRequired": "Vnesite širino in dolžino.", "settings_locationInvalid": "Neveljavna zemeljska širina ali dolžina.", @@ -109,7 +123,7 @@ "settings_privacyModeDisabled": "Privatni način je onemogočen.", "settings_actions": "Akcije", "settings_deleteAllPaths": "Izbriši vse poti", - "settings_deleteAllPathsSubtitle": "Počisti vse podatke o poteh iz stikov.", + "settings_deleteAllPathsSubtitle": "Počisti vse podatke o poteh iz stikov", "settings_sendAdvertisement": "Pošlji Oglas", "settings_sendAdvertisementSubtitle": "Trenutna prisotnost v oddajah", "settings_advertisementSent": "Oglas poslan", @@ -126,16 +140,9 @@ "settings_bleDebugLogSubtitle": "BLE ukazi, odgovori in surovi podatki", "settings_appDebugLog": "Logi aplikacije", "settings_appDebugLogSubtitle": "Debug sporočila aplikacije", - "settings_about": "Oglejte si", - "settings_aboutVersion": "MeshCore, različ {version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Odprtokodni projekt MeshCore 2024", + "settings_about": "O aplikaciji", + "settings_aboutTheApp": "O aplikaciji", + "settings_aboutLegalese": "Odprtokodni projekt MeshCore {year}", "settings_aboutDescription": "Odprtokodni Flutter klient za naprave za LoRa omrežje MeshCore.", "settings_infoName": "Ime", "settings_infoId": "ID", @@ -145,12 +152,13 @@ "settings_infoContactsCount": "Število stikov", "settings_infoChannelCount": "Število kanalov", "settings_presets": "Prednastavitve", + "settings_radioParameters": "Parametri", "settings_frequency": "Frekvenca (MHz)", - "settings_frequencyHelper": "300,00 - 2500,00", - "settings_frequencyInvalid": "Neveljavna frekvenca (300-2500 MHz)", + "settings_frequencyHelper": "150,00 - 2500,00 MHz", + "settings_frequencyInvalid": "Neveljavna frekvenca (150-2500 MHz)", "settings_bandwidth": "Pasovna širina", "settings_spreadingFactor": "Razširitveni faktor", - "settings_codingRate": "Programska hitrost", + "settings_codingRate": "Kodirna hitrost", "settings_txPower": "TX Moč (dBm)", "settings_txPowerHelper": "0 – 22", "settings_txPowerInvalid": "Neveljavna TX moč (0-22 dBm)", @@ -1178,7 +1186,7 @@ "repeater_floodMaxHelper": "Največje število skokov, ki jih lahko prepotuje flood paket (0-64)", "repeater_advancedSettings": "Napredno", "repeater_advancedSettingsSubtitle": "Gumbi za nastavljanje za izkušene uporabnike", - "repeater_pathHashMode": "Velikost ID-ja vozlišča v poteh", + "repeater_pathHashMode": "Velikost zgoščene vrednosti ID-ja", "repeater_pathHashModeHelper": "Velikost ID-ja tega repetitorja v poteh oglasov, ki jih pošilja: 1 bajt (256 ID-jev, do 64 skokov), 2 bajta (65 tisoč ID-jev, do 32 skokov), 3 bajti (16 milijonov ID-jev, do 21 skokov). Ne vpliva na posredovanje; repetitorji v1.14+ posredujejo vse velikosti, starejša vdelana programska oprema pa zavrže pakete z 2- ali 3-bajtnimi ID-ji.", "repeater_txDelay": "Flood TX zakasnitev", "repeater_txDelayHelper": "Razmik med ponovnimi oddajami flood prometa kot množitelj časa oddajanja paketa (0-2, privzeto 0,5). Višje = manj trkov, a počasnejša dostava.", @@ -1593,8 +1601,9 @@ "neighbors_unknownContact": "Nepoznano {pubkey}", "neighbors_heardAgo": "Udeleženec je prejel sporočilo {time} nazaj.", "settings_locationGPSEnable": "Omogoči GPS", - "settings_locationGPSEnableSubtitle": "Omogoči samodejno posodabljanje lokacije z GPS-jem.", - "settings_locationIntervalSec": "Interval za GPS (Sekunde)", + "settings_locationGPSEnableSubtitle": "Sproti posodablja lokacijo iz GPS-a radia.", + "settings_locationIntervalSec": "Interval posodabljanja (sekunde)", + "settings_locationIntervalHelper": "od 60 do 86399 sekund", "settings_locationIntervalInvalid": "Intervallo mora biti vsaj 60 sekund in manj kot 86400 sekund.", "contacts_manageRoom": "Upravljajte strežnik sobe", "room_management": "Upravljanje stremlišča", @@ -1778,16 +1787,17 @@ "notification_newNodesCount": "{count} {count, plural, =1{novo vozlišče} =2{novi vozlišči} few{nova vozlišča} other{novih vozlišč}}", "notification_newTypeDiscovered": "Odkrito novo {contactType}", "notification_receivedNewMessage": "Prejeto novo sporočilo", - "settings_gpxExportAll": "Izvozi vse kontakte v GPX", - "settings_gpxExportContacts": "Izvoz spremljevalcev v GPX", - "settings_gpxExportRepeatersSubtitle": "Izvozi ponovljene oddajnike / strežnik sobe z lokacijo v datoteko GPX.", - "settings_gpxExportRepeaters": "Izvoz ponoviteljev / strežnika sobe v GPX", + "settings_gpxExportAll": "Vsi stiki", + "settings_gpxExportContacts": "Uporabniki / Spremljevalci", + "export_messagesTitle": "Sporočila", + "export_messagesDescription": "Sporočila z zaznamkom, shranjena kot datoteka Markdown.", + "export_locationsTitle": "Lokacije stikov", + "export_locationsDescription": "Stiki z znano lokacijo, shranjeni kot datoteka GPX za aplikacije z zemljevidi.", + "settings_gpxExportRepeaters": "Repetitorji in sobe", "settings_gpxExportError": "Pri izvozu je prišlo do napake.", "settings_gpxExportRepeatersRoom": "Lokacije ponovljivca in strežnika sobe", "settings_gpxExportChat": "Lokacije spremljevalcev", "settings_gpxExportAllContacts": "Lokacije vseh stikov", - "settings_gpxExportContactsSubtitle": "Izvozi spremljevalce z lokacijo v datoteko GPX.", - "settings_gpxExportAllSubtitle": "Izvozi vse kontakte z lokacijo v datoteko GPX.", "settings_gpxExportSuccess": "Uspešno izvoz GPX datoteke.", "settings_gpxExportShareText": "Podatki kart izvoženi iz meshcore-open", "settings_gpxExportNoContacts": "Ni stikov za izvoz.", @@ -1808,9 +1818,17 @@ "snrIndicator_nearByRepeaters": "Bližnji ponovitelji", "chat_ShowAllPaths": "Prikaži vse poti", "settings_clientRepeatFreqWarning": "Za ponovni prenos na brezžični način so potrebne frekvence 433, 869 ali 918 MHz.", - "settings_clientRepeatSubtitle": "Omogočite temu naprave, da ponavlja paketne sporočila za druge.", - "settings_clientRepeat": "Neovadno ponavljanje", + "settings_clientRepeat": "Način ponavljanja brez omrežja", + "settings_clientRepeatDescription": "Tej napravi omogoča posredovanje paketov. Namenjen je uporabi tam, kjer ni pokritosti z repetitorji.\n\nTa način uporablja omejen nabor frekvenc. Ko ga VKLOPITE, boste verjetno izgubili povezavo s širšo mrežo mesh. Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino in razširitveni faktor (SF). Razlikuje se lahko le kodirna hitrost (CR).", + "settings_clientRepeatSwitch": "Način ponavljanja", + "settings_clientRepeatNote": "Opomba: Ko ga IZKLOPITE, se obnovi prejšnja frekvenca. Če se nato ne morete povezati z mrežo mesh, preverite prednastavitve/parametre.", "settings_aboutOpenMeteoAttribution": "Podatki o višini LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Projekt", + "about_sourceCode": "Izvorna koda", + "about_license": "Licenca", + "about_openSourceLicenses": "Odprtokodne licence", + "about_credits": "Zahvale", + "about_contributors": "Sodelavci", "appSettings_unitsTitle": "Enote", "appSettings_unitsMetric": "Metrična (m/km)", "appSettings_unitsImperial": "Imperialno (ft / mi)", @@ -1999,19 +2017,16 @@ "contacts_searchRepeaters": "Išči {number}{str} ponavljalnike...", "contacts_searchUsers": "Išči {number}{str} uporabnikov...", "settings_contactSettings": "Nastavitve stika", - "contactsSettings_autoAddTitle": "Avtomatsko odkrivanje", - "contactsSettings_autoAddUsersTitle": "Avtomatsko dodaj uporabnike", - "contactsSettings_autoAddRepeatersTitle": "Avtomatsko dodaj ponovitelje", - "contactsSettings_autoAddRepeatersSubtitle": "Dovoli spremljevalcu, da samodejno doda odkrite ponovitelje.", - "contactsSettings_autoAddRoomServersTitle": "Avtomatsko dodaj strežnike sob", - "contactsSettings_autoAddRoomServersSubtitle": "Dovoli spremljevalcu, da samodejno doda odkrite strežnike sob.", - "contactsSettings_otherTitle": "Druge nastavitve v zvezi s stiki", - "settings_contactSettingsSubtitle": "Nastavitve za dodajanje stikov.", + "contactsSettings_autoAddTitle": "Avtomatsko dodajanje stikov", + "contactsSettings_autoAddDescription": "Na novo slišana vozlišča teh vrst se dodajo med stike radia. Druge lahko dodate pozneje na zaslonu »Odkriti stiki«.", + "contactsSettings_autoAddUsersTitle": "Uporabniki", + "contactsSettings_autoAddRepeatersTitle": "Repetitorji", + "contactsSettings_autoAddRoomServersTitle": "Strežniki sob", + "contactsSettings_otherTitle": "Omejitve seznama stikov", + "settings_contactSettingsSubtitle": "Nastavitve za dodajanje stikov", "contactsSettings_title": "Nastavitve stikov", - "contactsSettings_autoAddSensorsTitle": "Avtomatsko dodaj senzorje", - "contactsSettings_autoAddUsersSubtitle": "Dovoli spremljevalcu, da samodejno doda odkrite uporabnike.", + "contactsSettings_autoAddSensorsTitle": "Senzorji", "discoveredContacts_noMatching": "Ni ujemajočih stikov", - "contactsSettings_autoAddSensorsSubtitle": "Dovoli spremljevalcu, da samodejno doda odkrite senzorje.", "discoveredContacts_addContact": "Dodaj stik", "discoveredContacts_contactAdded": "Kontakt dodan", "discoveredContacts_copyContact": "Kopiraj stik v odložišče", @@ -2057,9 +2072,9 @@ } } }, - "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.", + "contactsSettings_overwriteOldestSubtitle": "Ko je seznam stikov v radiu poln, se zamenja najstarejši stik, ki ni med priljubljenimi.", + "contactsSettings_evictDiscoveredContactsTitle": "Omeji odkrite stike", + "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikacija omeji seznam »Odkriti stiki« na {limit} vnosov. Ko je omejitev dosežena, se starejši stiki odstranijo. Izklopite za odpravo omejitve.", "common_deleteAll": "Izbriši vse", "discoveredContacts_deleteContactAllContent": "Ste prepričani, da želite izbrisati vse odkrite kontakte?", "discoveredContacts_deleteContactAll": "Izbriši vse odkrite kontakte", @@ -2144,7 +2159,7 @@ "settings_allowByContact": "Dovoli po kontaktnih zastavah", "settings_denyAll": "Zavrniti vse", "settings_allowAll": "Dovoli vse", - "settings_privacySubtitle": "Kontrolirajte, katere informacije so deljene.", + "settings_privacySubtitle": "Kontrolirajte, katere informacije so deljene", "contact_info": "Kontaktni podatki", "contact_teleBase": "Baza telemetrije", "contact_teleBaseSubtitle": "Dovoli deljenje stanja baterije in osnovne telemetrije", @@ -2454,7 +2469,7 @@ "settings_companionDebugLog": "Log zapis za odpravljanje napak", "chat_markAsUnread": "Označiti kot neneobdelano", "chat_newMessages": "Nove novice", - "settings_companionDebugLogSubtitle": "Navodila, odgovori in surova podatka za BLE/TCP/USB.", + "settings_companionDebugLogSubtitle": "Navodila, odgovori in surova podatka za BLE/TCP/USB", "repeater_chanUtil": "Uporaba kanala", "@routing_lastWorked": { "placeholders": { @@ -2944,10 +2959,9 @@ "settings_regionDefault": "Privzeta regija", "settings_regionDefaultSubtitle": "Uporabljajo jo kanali brez lastne regije", "settings_regionDefaultNone": "Brez", - "settings_telemetryPerContactHint": "Da stiku dovolite, odprite njegov klepet in v meniju izberite Nastavitve stika.", - "settings_multiAckSubtitle": "Pošiljajte dodatna potrdila ACK za boljšo dostavo; porabi več časa v etru", + "settings_telemetryPerContactHint": "Da določenemu stiku dovolite, odprite njegov klepet in v meniju izberite Nastavitve stika.", + "settings_multiAckSubtitle": "Pošlje 2 potrdili (ACK) namesto 1, ko se potrditev vrača po neposredni poti. Bolj zanesljivo, vendar porabi več časa v etru.", "settings_presetCustom": "Po meri", - "settings_radioMatchWarning": "Vsa vozlišča, s katerimi komunicirate, morajo uporabljati enako frekvenco, pasovno širino in SF. Hitrost kodiranja (CR) se lahko razlikuje.", "settings_txPowerRangeHelper": "Od {min} do {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -2967,7 +2981,7 @@ } } }, - "settings_pathHashModeHelper": "Velikost ID vozlišča, zapisanega v poti pošiljanih paketov flood: 1 bajt (256 ID, do 64 skokov), 2 bajta (65 tisoč, do 32 skokov), 3 bajti (16 milijonov, do 21 skokov). Večja ID zmanjšajo trčenja, vendar ponovitelji s programsko opremo, starejšo od v1.14, zavrnejo pakete z 2- ali 3-bajtnimi ID.", + "settings_pathHashModeHelper": "Velikost ID-ja vsakega vozlišča v poti paketov flood, ki jih pošilja ta radio:\n\n- 1 bajt: 256 edinstvenih ID-jev, do 64 skokov. \"ab\".\n- 2 bajta: 65 tisoč edinstvenih ID-jev, do 32 skokov. \"ab12\".\n- 3 bajti: 16 milijonov edinstvenih ID-jev, do 21 skokov. \"ab12cd\".\n\nVečji ID-ji zmanjšajo trke, vendar repetitorji z vdelano programsko opremo, starejšo od v1.14, zavržejo pakete z 2- in 3-bajtnimi ID-ji.", "settings_requiresFirmware": "Zahteva vdelano programsko opremo {version} ali novejšo", "@settings_requiresFirmware": { "placeholders": { @@ -3919,7 +3933,8 @@ "routing_modeDirect": "Neposredno", "routing_modeDirectHint": "Vedno pošlje neposredno temu stiku, brez skokov prek repetitorjev. Uporabite, če je v radijskem dosegu.", "settings_export": "Izvozi", - "settings_exportSubtitle": "Izvozi kontakte in repetitorje kot GPX", + "settings_exportData": "Izvozi podatke", + "settings_exportSubtitle": "Zaznamki in lokacije stikov", "backupRestore_title": "Varnostna kopija in obnovitev", "backupRestore_subtitle": "Shranite ali obnovite podatke aplikacije in nastavitve radia", "backupRestore_import": "Uvozi", @@ -4139,7 +4154,7 @@ "bookmarks_channel": "Kanal", "bookmarks_contact": "Stik", "bookmarks_remove": "Odstrani zaznamek", - "settings_exportBookmarks": "Izvozi zaznamke v Markdown", + "settings_exportBookmarks": "Zaznamki", "settings_exportBookmarksSubtitle": "Deli ali shrani sporočila z zaznamki kot datoteko Markdown.", "settings_exportBookmarksSuccess": "Zaznamki so izvoženi.", "settings_exportBookmarksNoBookmarks": "Ni zaznamkov za izvoz.", diff --git a/lib/l10n/app_sv.arb b/lib/l10n/app_sv.arb index 7f9f1dc6..0962936c 100644 --- a/lib/l10n/app_sv.arb +++ b/lib/l10n/app_sv.arb @@ -89,12 +89,26 @@ "settings_nodeName": "Nodnamn", "settings_nodeNameNotSet": "Inte angivet", "settings_nodeNameHint": "Ange nodnamn", + "nodeName_info": "Varje byte i ditt namn är en byte mindre för kanalmeddelanden. Specialtecken som å, ä och ö samt emojis kan ta mer än en byte.", + "nodeName_messageLength": "Meddelandelängd", + "nodeName_channelMessages": "Kanalmeddelanden", + "nodeName_channelMessagesSubtitle": "Minskas av ditt namn", + "nodeName_directMessages": "Direktmeddelanden", + "nodeName_directMessagesSubtitle": "Påverkas inte av ditt namn", + "nodeName_bytesAvailable": "{count, plural, =1{1 byte tillgänglig} other{{count} byte tillgängliga}}", + "nodeName_bytesOver": "{count, plural, =1{1 byte över gränsen} other{{count} byte över gränsen}}", "settings_nodeNameUpdated": "Namn uppdaterat", "settings_radioSettings": "Radioinställningar", "settings_radioSettingsSubtitle": "Frekvens, effekt, spridningsfaktor", + "settings_unsavedChangesMessage": "Du har ändringar som inte har sparats på radion.", "settings_radioSettingsUpdated": "Radioinställningarna har uppdaterats", "settings_location": "Plats", "settings_locationSubtitle": "GPS-koordinater", + "location_coordinates": "Koordinater", + "location_coordinatesDescription": "Din nods position. Den visas på kartan, används när du delar din plats och skickas i annonser när Plats i annons är på (Inställningar för sekretess).", + "location_pickOnMap": "Välj på kartan", + "locationPicker_hint": "Dra kartan eller tryck för att placera markören.", + "locationPicker_useLocation": "Använd den här platsen", "settings_locationUpdated": "Plats uppdaterad", "settings_locationBothRequired": "Ange både latitud och longitud.", "settings_locationInvalid": "Ogiltig latitud eller longitud.", @@ -109,7 +123,7 @@ "settings_privacyModeDisabled": "Privatläge är avstängt", "settings_actions": "Åtgärder", "settings_deleteAllPaths": "Radera alla rutter", - "settings_deleteAllPathsSubtitle": "Rensa all ruttdata från kontakter.", + "settings_deleteAllPathsSubtitle": "Rensa all ruttdata från kontakter", "settings_sendAdvertisement": "Skicka annons", "settings_sendAdvertisementSubtitle": "Sänd din närvaro nu", "settings_advertisementSent": "Annons skickad", @@ -127,15 +141,8 @@ "settings_appDebugLog": "Appens felsökningslogg", "settings_appDebugLogSubtitle": "Felsökningsmeddelanden från appen", "settings_about": "Om", - "settings_aboutVersion": "MeshCore Open version {version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 MeshCore Open Source-projekt", + "settings_aboutTheApp": "Om appen", + "settings_aboutLegalese": "{year} MeshCore Open Source-projekt", "settings_aboutDescription": "En Flutter-klient med öppen källkod för MeshCore-enheter i LoRa-meshnät.", "settings_infoName": "Namn", "settings_infoId": "ID", @@ -145,9 +152,10 @@ "settings_infoContactsCount": "Antal kontakter", "settings_infoChannelCount": "Antal kanaler", "settings_presets": "Fördefinierade inställningar", + "settings_radioParameters": "Parametrar", "settings_frequency": "Frekvens (MHz)", - "settings_frequencyHelper": "300,0 - 2500,0", - "settings_frequencyInvalid": "Ogiltig frekvens (300-2500 MHz)", + "settings_frequencyHelper": "150,0 - 2500,0 MHz", + "settings_frequencyInvalid": "Ogiltig frekvens (150-2500 MHz)", "settings_bandwidth": "Bandbredd", "settings_spreadingFactor": "Spridningsfaktor", "settings_codingRate": "Kodningsgrad", @@ -1179,7 +1187,7 @@ "repeater_floodMaxHelper": "Maximalt antal hopp som ett flood-paket får färdas (0–64)", "repeater_advancedSettings": "Avancerad", "repeater_advancedSettingsSubtitle": "Ställjusteringsknappar för erfarna användare", - "repeater_pathHashMode": "Läge för rutthash", + "repeater_pathHashMode": "ID-hashstorlek", "repeater_pathHashModeHelper": "Byte som används för att koda repeaterns ID i flood-ruttens/loopdetekteringens taggar. 0=1 byte (256 ID:n, upp till 64 hopp), 1=2 byte (65K ID:n, upp till 32 hopp), 2=3 byte (16M ID:n, upp till 21 hopp). Firmware före v1.14 använde alltid 1-byte-rutter; v1.14 och senare kan konfigureras för 2- eller 3-byte-rutter.", "repeater_txDelay": "Flood-TX-fördröjning", "repeater_txDelayHelper": "Intervall mellan vidarebefordringar för flood-trafik, som en multiplikator av paketets sändningstid (0–2, standard 0,5). Högre = färre kollisioner men långsammare leverans.", @@ -1594,8 +1602,9 @@ "neighbors_heardAgo": "Hördes: {time} sedan", "neighbors_unknownContact": "Okänd {pubkey}", "settings_locationGPSEnable": "Aktivera GPS", - "settings_locationGPSEnableSubtitle": "Aktivera automatiska uppdateringar av platsen med hjälp av GPS.", - "settings_locationIntervalSec": "Interval för GPS (Sekunder)", + "settings_locationGPSEnableSubtitle": "Håller platsen uppdaterad från radions GPS.", + "settings_locationIntervalSec": "Uppdateringsintervall (sekunder)", + "settings_locationIntervalHelper": "60 till 86399 sekunder", "settings_locationIntervalInvalid": "Intervalet måste vara minst 60 sekunder och mindre än 86400 sekunder.", "contacts_manageRoom": "Hantera rumsserver", "room_management": "Rumsserverhantering", @@ -1779,16 +1788,17 @@ "notification_newNodesCount": "{count} {count, plural, =1{ny nod} other{nya noder}}", "notification_newTypeDiscovered": "Ny {contactType} upptäckt", "notification_receivedNewMessage": "Nytt meddelande mottaget", - "settings_gpxExportAll": "Exportera alla kontakter till GPX", - "settings_gpxExportRepeatersSubtitle": "Exporterar repeatrar/rumsservrar med position till en GPX-fil.", + "settings_gpxExportAll": "Alla kontakter", "settings_gpxExportSuccess": "Har exporterat GPX-fil med framgång", "settings_gpxExportNoContacts": "Inga kontakter att exportera.", "settings_gpxExportNotAvailable": "Stöds inte på din enhet/operativsystem", "settings_gpxExportRepeatersRoom": "Repeater- och rumsserverplatser", - "settings_gpxExportRepeaters": "Exportera repeatrar/rumsservrar till GPX", - "settings_gpxExportAllSubtitle": "Exporterar alla kontakter med en plats till GPX-fil.", - "settings_gpxExportContacts": "Exportera Companion-kontakter till GPX", - "settings_gpxExportContactsSubtitle": "Exporterar Companion-enheter med position till en GPX-fil.", + "export_messagesTitle": "Meddelanden", + "export_messagesDescription": "Bokmärkta meddelanden, sparade som en Markdown-fil.", + "export_locationsTitle": "Kontakters platser", + "export_locationsDescription": "Kontakter med känd plats, sparade som en GPX-fil för kartappar.", + "settings_gpxExportRepeaters": "Repeatrar och rum", + "settings_gpxExportContacts": "Användare / Companions", "settings_gpxExportChat": "Companion-positioner", "settings_gpxExportError": "Det uppstod ett fel när data exporterades.", "settings_gpxExportAllContacts": "Alla kontakters platser", @@ -1808,10 +1818,18 @@ "snrIndicator_lastSeen": "Senast sedd", "snrIndicator_nearByRepeaters": "Närliggande repeatrar", "chat_ShowAllPaths": "Visa alla rutter", - "settings_clientRepeatSubtitle": "Låt enheten repetera nätpaket för andra användare.", - "settings_clientRepeat": "Upprepa utan elnät", + "settings_clientRepeat": "Off-grid-repeteringsläge", + "settings_clientRepeatDescription": "Låter den här enheten repetera paket. Avsett för platser utan repeatertäckning.\n\nDet här läget använder ett begränsat urval av frekvenser. Om du slår PÅ det kopplas du troligen bort från resten av meshnätet. Alla noder du pratar med måste använda samma frekvens, bandbredd och spridningsfaktor (SF). Endast kodningsgraden (CR) får skilja sig åt.", + "settings_clientRepeatSwitch": "Repeteringsläge", + "settings_clientRepeatNote": "Obs: Om du slår AV det återställs den tidigare frekvensen. Kontrollera fördefinierade inställningar/parametrar om du inte kan ansluta till meshnätet efteråt.", "settings_clientRepeatFreqWarning": "För att kunna kommunicera utanför elnätet krävs frekvenserna 433, 869 eller 918 MHz.", "settings_aboutOpenMeteoAttribution": "LOS-höjddata: Open-Meteo (CC BY 4.0)", + "about_project": "Projekt", + "about_sourceCode": "Källkod", + "about_license": "Licens", + "about_openSourceLicenses": "Licenser för öppen källkod", + "about_credits": "Erkännanden", + "about_contributors": "Bidragsgivare", "appSettings_unitsTitle": "Enheter", "appSettings_unitsMetric": "Metriskt (m/km)", "appSettings_unitsImperial": "Imperialt (ft / mi)", @@ -1999,20 +2017,17 @@ "contacts_searchFavorites": "Sök {number}{str} Favoriter...", "contacts_searchUsers": "Sök {number}{str} användare...", "contacts_searchRoomServers": "Sök {number}{str} rumsservrar…", - "settings_contactSettingsSubtitle": "Inställningar för hur kontakter läggs till.", + "settings_contactSettingsSubtitle": "Inställningar för hur kontakter läggs till", "settings_contactSettings": "Kontaktinställningar", - "contactsSettings_autoAddTitle": "Automatisk upptäckt", - "contactsSettings_otherTitle": "Andra inställningar relaterade till kontakt", - "contactsSettings_autoAddUsersSubtitle": "Tillåt Companion-enheten att automatiskt lägga till upptäckta användare.", - "contactsSettings_autoAddRepeatersTitle": "Lägg till repeatrar automatiskt", - "contactsSettings_autoAddRoomServersSubtitle": "Tillåt Companion-enheten att automatiskt lägga till upptäckta rumsservrar.", - "contactsSettings_autoAddSensorsTitle": "Lägg till sensorer automatiskt", - "contactsSettings_autoAddUsersTitle": "Lägg till användare automatiskt", + "contactsSettings_autoAddTitle": "Lägg till kontakter automatiskt", + "contactsSettings_autoAddDescription": "Lägg till nyligen hörda noder av dessa typer i radions kontakter. Andra kan läggas till senare från Upptäckta kontakter.", + "contactsSettings_otherTitle": "Kontaktlistgränser", + "contactsSettings_autoAddRepeatersTitle": "Repeatrar", + "contactsSettings_autoAddSensorsTitle": "Sensorer", + "contactsSettings_autoAddUsersTitle": "Användare", "contactsSettings_title": "Kontaktinställningar", - "contactsSettings_autoAddSensorsSubtitle": "Tillåt Companion-enheten att automatiskt lägga till upptäckta sensorer.", "contactsSettings_overwriteOldestTitle": "Skriv över äldsta", - "contactsSettings_autoAddRepeatersSubtitle": "Tillåt Companion-enheten att automatiskt lägga till upptäckta repeatrar.", - "contactsSettings_autoAddRoomServersTitle": "Lägg automatiskt till rumsservrar", + "contactsSettings_autoAddRoomServersTitle": "Rumsservrar", "discoveredContacts_noMatching": "Inga matchande kontakter", "discoveredContacts_searchHint": "Sök bland upptäckta kontakter", "discoveredContacts_deleteContact": "Ta bort kontakt", @@ -2058,9 +2073,9 @@ "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.", + "contactsSettings_overwriteOldestSubtitle": "När radions kontaktlista är full ersätts den äldsta kontakten som inte är en favorit.", + "contactsSettings_evictDiscoveredContactsTitle": "Begränsa upptäckta kontakter", + "contactsSettings_evictDiscoveredContactsSubtitle": "Appen begränsar listan ”Upptäckta kontakter” till {limit} poster. När gränsen nås tas äldre kontakter bort. Stäng av för att ta bort gränsen.", "common_deleteAll": "Ta bort alla", "discoveredContacts_deleteContactAllContent": "Är du säker på att du vill ta bort alla upptäckta kontakter?", "discoveredContacts_deleteContactAll": "Ta bort alla upptäckta kontakter", @@ -2138,11 +2153,11 @@ }, "settings_privacy": "Inställningar för sekretess", "settings_allowAll": "Tillåt alla", - "settings_privacySubtitle": "Kontrollera vilken information som delas.", + "settings_privacySubtitle": "Kontrollera vilken information som delas", "settings_telemetryEnvironmentMode": "Telemetriläge för miljö", "settings_telemetryBaseMode": "Telemetribasläge", "settings_telemetryLocationMode": "Telemetriläge för position", - "settings_advertLocation": "Annonsplacering", + "settings_advertLocation": "Plats i annons", "contact_info": "Kontaktinformation", "contact_settings": "Kontaktinställningar", "contact_telemetry": "Telemetri", @@ -2938,10 +2953,9 @@ "settings_regionDefault": "Standardregion", "settings_regionDefaultSubtitle": "Används av kanaler som saknar egen region", "settings_regionDefaultNone": "Ingen", - "settings_telemetryPerContactHint": "För att tillåta en kontakt öppnar du chatten och väljer Kontaktinställningar i menyn.", - "settings_multiAckSubtitle": "Skicka extra ACK för bättre leverans; använder mer sändningstid", + "settings_telemetryPerContactHint": "För att tillåta en specifik kontakt öppnar du chatten och väljer Kontaktinställningar i menyn.", + "settings_multiAckSubtitle": "Skicka 2 bekräftelser (ACK) i stället för 1 när bekräftelsen går tillbaka via en direkt rutt. Mer tillförlitligt, men använder mer sändningstid.", "settings_presetCustom": "Anpassad", - "settings_radioMatchWarning": "Alla noder du kommunicerar med måste använda samma frekvens, bandbredd och SF. Kodningshastigheten (CR) får skilja sig.", "settings_txPowerRangeHelper": "{min} till {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -2961,7 +2975,7 @@ } } }, - "settings_pathHashModeHelper": "Storleken på varje nod-ID som registreras i rutten för de flood-paket som den här radion skickar: 1 byte (256 ID:n, upp till 64 hopp), 2 byte (65K ID:n, upp till 32 hopp), 3 byte (16M ID:n, upp till 21 hopp). Större ID:n minskar kollisioner, men repeatrar med firmware äldre än v1.14 tappar paket med 2- eller 3-byte-ID:n.", + "settings_pathHashModeHelper": "Storleken på varje nods ID som sparas i rutten för flood-paket som den här radion skickar:\n\n- 1 byte: 256 unika ID:n, upp till 64 hopp. \"ab\".\n- 2 byte: 65K unika ID:n, upp till 32 hopp. \"ab12\".\n- 3 byte: 16M unika ID:n, upp till 21 hopp. \"ab12cd\".\n\nStörre ID:n minskar kollisioner, men repeatrar med firmware äldre än v1.14 tappar paket med 2- och 3-byte-ID:n.", "settings_requiresFirmware": "Kräver firmware {version} eller senare", "@settings_requiresFirmware": { "placeholders": { @@ -3759,7 +3773,8 @@ "routing_modeDirect": "Direkt", "routing_modeDirectHint": "Skickar alltid direkt till den här kontakten utan repeaterhopp. Använd när kontakten är inom radioräckvidd.", "settings_export": "Exportera", - "settings_exportSubtitle": "Exportera kontakter och repeatrar som GPX", + "settings_exportData": "Exportera data", + "settings_exportSubtitle": "Bokmärken och kontakters platser", "backupRestore_title": "Säkerhetskopia och återställning", "backupRestore_subtitle": "Spara eller återställ appdata och radioinställningar", "backupRestore_import": "Importera", @@ -3979,7 +3994,7 @@ "bookmarks_channel": "Kanal", "bookmarks_contact": "Kontakt", "bookmarks_remove": "Ta bort bokmärke", - "settings_exportBookmarks": "Exportera bokmärken till Markdown", + "settings_exportBookmarks": "Bokmärken", "settings_exportBookmarksSubtitle": "Dela eller spara bokmärkta meddelanden som en Markdown-fil.", "settings_exportBookmarksSuccess": "Bokmärken exporterade.", "settings_exportBookmarksNoBookmarks": "Inga bokmärken att exportera.", diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index 4f448cf5..fa657172 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -90,12 +90,26 @@ "settings_nodeName": "Ім'я вузла", "settings_nodeNameNotSet": "Не встановлено", "settings_nodeNameHint": "Введіть ім'я вузла", + "nodeName_info": "Кожен байт імені на байт зменшує довжину повідомлень у каналах. Кирилиця, спецсимволи та емодзі займають понад один байт.", + "nodeName_messageLength": "Довжина повідомлення", + "nodeName_channelMessages": "Повідомлення в каналах", + "nodeName_channelMessagesSubtitle": "Коротші на довжину імені", + "nodeName_directMessages": "Особисті повідомлення", + "nodeName_directMessagesSubtitle": "Не залежать від імені", + "nodeName_bytesAvailable": "{count, plural, one{{count} байт доступний} few{{count} байти доступні} many{{count} байтів доступно} other{{count} байта доступно}}", + "nodeName_bytesOver": "{count, plural, one{{count} байт понад ліміт} few{{count} байти понад ліміт} many{{count} байтів понад ліміт} other{{count} байта понад ліміт}}", "settings_nodeNameUpdated": "Ім'я оновлено", "settings_radioSettings": "Налаштування радіо", "settings_radioSettingsSubtitle": "Частота, потужність, коефіцієнт розширення", + "settings_unsavedChangesMessage": "У вас є зміни, не збережені на радіо.", "settings_radioSettingsUpdated": "Налаштування радіо оновлено", "settings_location": "Геопозиція", "settings_locationSubtitle": "GPS-координати", + "location_coordinates": "Координати", + "location_coordinatesDescription": "Позиція вашого вузла. Показується на карті, використовується, коли ви ділитеся геопозицією, і надсилається в оголошеннях, якщо увімкнено «Геопозиція в оголошенні» (Налаштування приватності).", + "location_pickOnMap": "Вибрати на карті", + "locationPicker_hint": "Перетягніть карту або торкніться, щоб поставити мітку.", + "locationPicker_useLocation": "Використати це місце", "settings_locationUpdated": "Геопозицію оновлено", "settings_locationBothRequired": "Введіть широту та довготу.", "settings_locationInvalid": "Некоректна широта або довгота.", @@ -110,12 +124,12 @@ "settings_privacyModeDisabled": "Режим приватності вимкнено", "settings_actions": "Дії", "settings_deleteAllPaths": "Видалити всі шляхи", - "settings_deleteAllPathsSubtitle": "Очистити всі дані шляхів у контактах.", + "settings_deleteAllPathsSubtitle": "Очистити всі дані шляхів у контактах", "settings_sendAdvertisement": "Оголосити себе", "settings_sendAdvertisementSubtitle": "Транслювати присутність зараз", "settings_advertisementSent": "Оголошення надіслано", "settings_syncTime": "Синхронізація часу", - "settings_syncTimeSubtitle": "Встановити час пристрою відповідно до часу телефону.", + "settings_syncTimeSubtitle": "Встановити час пристрою відповідно до часу телефону", "settings_timeSynchronized": "Час синхронізовано", "settings_refreshContacts": "Оновити контакти", "settings_refreshContactsSubtitle": "Перезавантажити список контактів з пристрою", @@ -128,15 +142,8 @@ "settings_appDebugLog": "Журнал налагодження застосунку", "settings_appDebugLogSubtitle": "Повідомлення налагодження застосунку", "settings_about": "Про застосунок", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "Проєкт MeshCore Open Source 2026", + "settings_aboutTheApp": "Про застосунок", + "settings_aboutLegalese": "Проєкт MeshCore Open Source {year}", "settings_aboutDescription": "Клієнт Flutter з відкритим вихідним кодом для пристроїв мережі MeshCore LoRa.", "settings_infoName": "Ім'я", "settings_infoId": "Ідентифікатор", @@ -146,9 +153,10 @@ "settings_infoContactsCount": "Кількість контактів", "settings_infoChannelCount": "Кількість каналів", "settings_presets": "Попередні налаштування", + "settings_radioParameters": "Параметри", "settings_frequency": "Частота (МГц)", - "settings_frequencyHelper": "300,0 – 2500,0", - "settings_frequencyInvalid": "Некоректна частота (300-2500 МГц)", + "settings_frequencyHelper": "150,0 - 2500,0 МГц", + "settings_frequencyInvalid": "Некоректна частота (150-2500 МГц)", "settings_bandwidth": "Смуга пропускання", "settings_spreadingFactor": "Коефіцієнт розширення", "settings_codingRate": "Швидкість кодування", @@ -1196,7 +1204,7 @@ "repeater_floodMaxHelper": "Максимальна кількість переходів, яку може пройти Flood-пакет (0-64)", "repeater_advancedSettings": "Додатково", "repeater_advancedSettingsSubtitle": "Тонке налаштування для досвідчених операторів", - "repeater_pathHashMode": "Розмір ID вузла в шляхах", + "repeater_pathHashMode": "Розмір хешу ID", "repeater_pathHashModeHelper": "Розмір ID цього ретранслятора в шляхах оголошень, які він надсилає: 1 байт (256 ID, до 64 переходів), 2 байти (65 тис. ID, до 32 переходів), 3 байти (16 млн ID, до 21 переходу). Не впливає на пересилання; ретранслятори v1.14+ пересилають усі розміри, але старіша прошивка відкидає пакети з 2- або 3-байтовими ID.", "repeater_txDelay": "Затримка TX для Flood", "repeater_txDelayHelper": "Затримка повторного надсилання для Flood-трафіку, як множник від часу передачі пакета (0-2, за замовчуванням 0,5). Чим вище значення, тим менше конфліктів, але повільніше передавання.", @@ -1632,8 +1640,9 @@ "neighbors_unknownContact": "Невідомий відкритий ключ {pubkey}", "neighbors_heardAgo": "Почуто: {time} тому", "settings_locationGPSEnable": "Увімкнути GPS", - "settings_locationGPSEnableSubtitle": "Вмикає автоматичне оновлення геопозиції через GPS.", - "settings_locationIntervalSec": "Інтервал для GPS (Секунди)", + "settings_locationGPSEnableSubtitle": "Оновлює геопозицію за даними GPS радіо.", + "settings_locationIntervalSec": "Інтервал оновлення (секунди)", + "settings_locationIntervalHelper": "від 60 до 86399 секунд", "settings_locationIntervalInvalid": "Інтервал має бути не менше 60 секунд і менше 86400 секунд.", "contacts_manageRoom": "Керувати сервером кімнати", "room_management": "Адміністрування сервера кімнати", @@ -1851,16 +1860,17 @@ }, "notification_sentGif": "Надіслав(-ла) GIF", "notification_sentImage": "Надіслав(-ла) зображення", - "settings_gpxExportRepeaters": "Експорт ретрансляторів і серверів кімнат у GPX", - "settings_gpxExportRepeatersSubtitle": "Експортує ретранслятори та сервери кімнат з геопозицією у файл GPX.", + "export_messagesTitle": "Повідомлення", + "export_messagesDescription": "Повідомлення в закладках, збережені як файл Markdown.", + "export_locationsTitle": "Геопозиції контактів", + "export_locationsDescription": "Контакти з відомою геопозицією, збережені як файл GPX для картографічних застосунків.", + "settings_gpxExportRepeaters": "Ретранслятори та кімнати", "settings_gpxExportSuccess": "Успішно експортовано файл GPX.", "settings_gpxExportNoContacts": "Немає контактів для експорту.", "settings_gpxExportNotAvailable": "Не підтримується на вашому пристрої/операційній системі", "settings_gpxExportError": "Сталась помилка під час експорту.", - "settings_gpxExportAllSubtitle": "Експортує всі контакти з геопозицією у файл GPX.", - "settings_gpxExportAll": "Експорт усіх контактів у GPX", - "settings_gpxExportContactsSubtitle": "Експортує контакти з геопозицією у файл GPX.", - "settings_gpxExportContacts": "Експорт контактів у GPX", + "settings_gpxExportAll": "Усі контакти", + "settings_gpxExportContacts": "Користувачі / Компаньйони", "settings_gpxExportRepeatersRoom": "Геопозиції ретрансляторів та серверів кімнат", "settings_gpxExportChat": "Геопозиції контактів", "settings_gpxExportShareText": "Дані карти експортовані з meshcore-open", @@ -1887,9 +1897,17 @@ "snrIndicator_nearByRepeaters": "Найближчі ретранслятори", "chat_ShowAllPaths": "Показати всі шляхи", "settings_clientRepeatFreqWarning": "Повтор без підключення до мережі вимагає частоти 433, 869 або 918 МГц.", - "settings_clientRepeatSubtitle": "Дозвольте цьому пристрою повторювати пакети даних для інших пристроїв.", - "settings_clientRepeat": "Автономна система", + "settings_clientRepeat": "Режим повтору поза мережею", + "settings_clientRepeatDescription": "Дозволяє цьому пристрою ретранслювати пакети. Призначений для місць, де немає покриття ретрансляторів.\n\nЦей режим використовує обмежений набір частот. Після УВІМКНЕННЯ ви, ймовірно, втратите зв'язок із загальною mesh-мережею. Усі вузли, з якими ви спілкуєтеся, мають використовувати ту саму частоту, смугу пропускання й коефіцієнт розширення (SF). Відрізнятися може лише швидкість кодування (CR).", + "settings_clientRepeatSwitch": "Режим повтору", + "settings_clientRepeatNote": "Примітка: Після ВИМКНЕННЯ буде відновлено попередню частоту. Якщо потім не вдається підключитися до mesh-мережі, перевірте попередні налаштування/параметри.", "settings_aboutOpenMeteoAttribution": "Дані про висоту LOS: Open-Meteo (CC BY 4.0)", + "about_project": "Проєкт", + "about_sourceCode": "Вихідний код", + "about_license": "Ліцензія", + "about_openSourceLicenses": "Ліцензії відкритого коду", + "about_credits": "Подяки", + "about_contributors": "Учасники", "appSettings_unitsTitle": "Одиниці", "appSettings_unitsMetric": "Метричні (м / км)", "appSettings_unitsImperial": "Імперські (ft / mi)", @@ -2079,20 +2097,17 @@ "contacts_unread": "Непрочитане", "settings_contactSettingsSubtitle": "Налаштування для додавання контактів", "settings_contactSettings": "Налаштування контактів", - "contactsSettings_autoAddUsersSubtitle": "Дозволити пристрою-компаньйону автоматично додавати виявлених користувачів", - "contactsSettings_autoAddRepeatersTitle": "Автоматично додавати ретранслятори", - "contactsSettings_autoAddRepeatersSubtitle": "Дозволити пристрою-компаньйону автоматично додавати виявлені ретранслятори", - "contactsSettings_autoAddRoomServersTitle": "Автоматично додавати сервери кімнат", - "contactsSettings_otherTitle": "Інші налаштування, пов'язані з контактами", - "contactsSettings_autoAddTitle": "Автоматичне виявлення", - "contactsSettings_autoAddUsersTitle": "Автоматично додавати користувачів", + "contactsSettings_autoAddRepeatersTitle": "Ретранслятори", + "contactsSettings_autoAddRoomServersTitle": "Сервери кімнат", + "contactsSettings_otherTitle": "Ліміти списку контактів", + "contactsSettings_autoAddTitle": "Автоматичне додавання контактів", + "contactsSettings_autoAddDescription": "Вперше почуті вузли цих типів додаються до контактів радіо. Інші можна додати пізніше на екрані «Виявлені контакти».", + "contactsSettings_autoAddUsersTitle": "Користувачі", "contactsSettings_title": "Налаштування контактів", - "contactsSettings_autoAddRoomServersSubtitle": "Дозволити пристрою-компаньйону автоматично додавати виявлені сервери кімнат.", - "contactsSettings_autoAddSensorsTitle": "Автоматично додавати сенсори", + "contactsSettings_autoAddSensorsTitle": "Сенсори", "discoveredContacts_searchHint": "Знайти виявлені контакти", "discoveredContacts_contactAdded": "Контакт додано", - "contactsSettings_autoAddSensorsSubtitle": "Дозволити пристрою-компаньйону автоматично додавати виявлені сенсори", - "contactsSettings_overwriteOldestTitle": "Перезаписати найстаріше", + "contactsSettings_overwriteOldestTitle": "Перезаписувати найстаріші", "discoveredContacts_Title": "Виявлені контакти", "discoveredContacts_noMatching": "Відповідних контактів не знайдено", "discoveredContacts_deleteContact": "Видалити контакт", @@ -2136,9 +2151,9 @@ "discoveredContacts_importInvalidFile": "Файл не є експортом виявлених контактів.", "discoveredContacts_importSummary": "Імпортовано: {imported}, пропущено вже відомих: {skipped}, нечитабельних записів: {invalid}.", "discoveredContacts_importTooLarge": "Файл імпорту завеликий (максимум {maxMb} МБ).", - "contactsSettings_overwriteOldestSubtitle": "Коли список контактів заповнений, найстарший контакт без позначки улюбленого буде замінений.", - "contactsSettings_evictDiscoveredContactsTitle": "Видаляти виявлені контакти", - "contactsSettings_evictDiscoveredContactsSubtitle": "Якщо ввімкнено, застосунок видаляє найстаріші виявлені контакти, коли список виявлених контактів досягає ліміту в {limit} записів.", + "contactsSettings_overwriteOldestSubtitle": "Коли список контактів радіо заповнений, замінюється найстаріший контакт, якого немає в улюблених.", + "contactsSettings_evictDiscoveredContactsTitle": "Обмежувати виявлені контакти", + "contactsSettings_evictDiscoveredContactsSubtitle": "Застосунок обмежує список «Виявлені контакти» до {limit} записів. Коли ліміт досягнуто, старіші контакти видаляються. Вимкніть, щоб зняти обмеження.", "common_deleteAll": "Видалити все", "discoveredContacts_deleteContactAll": "Видалити всі виявлені контакти", "discoveredContacts_deleteContactAllContent": "Ви впевнені, що хочете видалити всі виявлені контакти?", @@ -2322,7 +2337,7 @@ "radioStats_stripNoise": "Рівень шуму: {noiseDbm} дБм", "radioStats_stripWaiting": "Отримано статистику радіо…", "radioStats_settingsTile": "Статистика радіо", - "radioStats_settingsSubtitle": "Рівень шуму, RSSI, SNR та час в ефірі.", + "radioStats_settingsSubtitle": "Рівень шуму, RSSI, SNR та час в ефірі", "@translation_downloadFailed": { "placeholders": { "error": { @@ -3033,10 +3048,9 @@ "settings_regionDefault": "Регіон за замовчуванням", "settings_regionDefaultSubtitle": "Використовується каналами без власного регіону", "settings_regionDefaultNone": "Немає", - "settings_telemetryPerContactHint": "Щоб дозволити контакт, відкрийте його чат і виберіть «Налаштування контактів» в меню.", - "settings_multiAckSubtitle": "Надсилати додаткові ACK для кращої доставки; використовує більше часу в ефірі", + "settings_telemetryPerContactHint": "Щоб дозволити конкретний контакт, відкрийте його чат і виберіть «Налаштування контактів» в меню.", + "settings_multiAckSubtitle": "Надсилати 2 підтвердження (ACK) замість 1, коли підтвердження повертається прямим маршрутом. Надійніше, але використовує більше часу в ефірі.", "settings_presetCustom": "Власний", - "settings_radioMatchWarning": "Усі вузли, з якими ви спілкуєтесь, мають використовувати однакові частоту, смугу пропускання та SF. Швидкість кодування (CR) може відрізнятися.", "settings_txPowerRangeHelper": "від {min} до {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -3056,7 +3070,7 @@ } } }, - "settings_pathHashModeHelper": "Розмір кожного ідентифікатора вузла, який записується в шлях Flood-пакетів, які надсилає це радіо: 1 байт (256 ідентифікаторів, до 64 переходів), 2 байти (65 тис. ідентифікаторів, до 32 переходів), 3 байти (16 млн ідентифікаторів, до 21 переходу). Більші ідентифікатори зменшують кількість зіткнень, але ретранслятори з прошивкою старішою за v1.14 відкидають пакети з 2- або 3-байтовими ідентифікаторами.", + "settings_pathHashModeHelper": "Розмір ID кожного вузла в шляху Flood-пакетів, які надсилає це радіо:\n\n- 1 байт: 256 унікальних ID, до 64 переходів. \"ab\".\n- 2 байти: 65 тис. унікальних ID, до 32 переходів. \"ab12\".\n- 3 байти: 16 млн унікальних ID, до 21 переходу. \"ab12cd\".\n\nДовші ID зменшують кількість колізій, але ретранслятори з прошивкою, старішою за v1.14, відкидають пакети з 2- і 3-байтовими ID.", "settings_requiresFirmware": "Потрібна прошивка {version} або новіша", "@settings_requiresFirmware": { "placeholders": { @@ -3692,7 +3706,8 @@ "routing_modeDirect": "Напряму", "routing_modeDirectHint": "Завжди надсилає напряму цьому контакту, без проміжних ретрансляторів. Використовуйте, якщо він у зоні радіозв'язку.", "settings_export": "Експорт", - "settings_exportSubtitle": "Експорт контактів і репітерів у GPX", + "settings_exportData": "Експорт даних", + "settings_exportSubtitle": "Закладки та геопозиції контактів", "backupRestore_title": "Резервне копіювання", "backupRestore_subtitle": "Збереження та відновлення даних застосунку й налаштувань радіо", "backupRestore_import": "Імпорт", @@ -3912,7 +3927,7 @@ "bookmarks_channel": "Канал", "bookmarks_contact": "Контакт", "bookmarks_remove": "Прибрати із закладок", - "settings_exportBookmarks": "Експорт закладок у Markdown", + "settings_exportBookmarks": "Закладки", "settings_exportBookmarksSubtitle": "Поділіться закладками або збережіть їх у файл Markdown.", "settings_exportBookmarksSuccess": "Закладки експортовано.", "settings_exportBookmarksNoBookmarks": "Немає закладок для експорту.", diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 8edf56cd..018b2b7d 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -90,18 +90,33 @@ "settings_nodeName": "节点名称", "settings_nodeNameNotSet": "未设置", "settings_nodeNameHint": "请输入节点名称", + "nodeName_info": "名称每占用 1 字节,频道消息可用空间就少 1 字节。中文字符和表情符号每个占用多个字节。", + "nodeName_messageLength": "消息长度", + "nodeName_channelMessages": "频道消息", + "nodeName_channelMessagesSubtitle": "因名称而减少", + "nodeName_directMessages": "私信", + "nodeName_directMessagesSubtitle": "不受名称影响", + "nodeName_bytesAvailable": "{count, plural, other{可用 {count} 字节}}", + "nodeName_bytesOver": "{count, plural, other{超出上限 {count} 字节}}", "settings_nodeNameUpdated": "节点名称已更新", "settings_radioSettings": "无线电设置", "settings_radioSettingsSubtitle": "频率、功率、扩频因子", + "settings_unsavedChangesMessage": "你有尚未保存到无线电的更改。", "settings_radioSettingsUpdated": "无线电设置已更新", "settings_location": "位置", "settings_locationSubtitle": "GPS 坐标", + "location_coordinates": "坐标", + "location_coordinatesDescription": "你的节点位置。显示在地图上,并在分享位置时使用。在隐私设置中开启“广播位置”后,也会包含在广播中。", + "location_pickOnMap": "在地图上选择", + "locationPicker_hint": "拖动地图或点击以放置标记。", + "locationPicker_useLocation": "使用此位置", "settings_locationUpdated": "位置和 GPS 设置已更新", "settings_locationBothRequired": "请输入经度和纬度", "settings_locationInvalid": "无效的经度和纬度", "settings_locationGPSEnable": "启用 GPS", - "settings_locationGPSEnableSubtitle": "启用 GPS 以自动更新位置。", - "settings_locationIntervalSec": "GPS 间隔(秒)", + "settings_locationGPSEnableSubtitle": "通过无线电的 GPS 持续更新位置。", + "settings_locationIntervalSec": "更新间隔(秒)", + "settings_locationIntervalHelper": "60 至 86399 秒", "settings_locationIntervalInvalid": "间隔时间必须至少为 60 秒,但不超过 86400 秒。", "settings_latitude": "纬度", "settings_longitude": "经度", @@ -114,7 +129,7 @@ "settings_privacyModeDisabled": "隐私模式已关闭", "settings_actions": "操作", "settings_deleteAllPaths": "删除所有路径", - "settings_deleteAllPathsSubtitle": "清除联系人中的所有路径数据。", + "settings_deleteAllPathsSubtitle": "清除联系人中的所有路径数据", "settings_sendAdvertisement": "发送广播", "settings_sendAdvertisementSubtitle": "立即发送广播", "settings_advertisementSent": "已发送广播", @@ -132,15 +147,8 @@ "settings_appDebugLog": "应用调试日志", "settings_appDebugLogSubtitle": "应用调试消息", "settings_about": "关于", - "settings_aboutVersion": "MeshCore Open v{version}", - "@settings_aboutVersion": { - "placeholders": { - "version": { - "type": "String" - } - } - }, - "settings_aboutLegalese": "2026 MeshCore 开源项目", + "settings_aboutTheApp": "关于应用", + "settings_aboutLegalese": "{year} MeshCore 开源项目", "settings_aboutDescription": "一个开源的 Flutter 客户端,用于 MeshCore LoRa 无线网络设备。", "settings_infoName": "名称", "settings_infoId": "MAC ID", @@ -150,12 +158,13 @@ "settings_infoContactsCount": "联系人数量", "settings_infoChannelCount": "频道数量", "settings_presets": "预设", + "settings_radioParameters": "参数", "settings_preset915Mhz": "915 MHz", "settings_preset868Mhz": "868 MHz", "settings_preset433Mhz": "433 MHz", "settings_frequency": "频率 (MHz)", - "settings_frequencyHelper": "300.0 - 2500.0", - "settings_frequencyInvalid": "无效频率范围(300-2500 MHz)", + "settings_frequencyHelper": "150.0 - 2500.0 MHz", + "settings_frequencyInvalid": "无效频率范围(150-2500 MHz)", "settings_bandwidth": "带宽", "settings_spreadingFactor": "扩频因子", "settings_codingRate": "编码速率", @@ -1208,7 +1217,7 @@ "repeater_floodMaxHelper": "一个泛洪包中,最大可以传输的跳数 (0-64)", "repeater_advancedSettings": "高级", "repeater_advancedSettingsSubtitle": "高级操作员使用的调节旋钮", - "repeater_pathHashMode": "路径哈希模式", + "repeater_pathHashMode": "ID 哈希大小", "repeater_pathHashModeHelper": "用于在洪泛路径/环路检测标签中编码此中继器 ID 的字节数。0=1 字节(256 个 ID,最多 64 跳),1=2 字节(65K 个 ID,最多 32 跳),2=3 字节(16M 个 ID,最多 21 跳)。v1.14 之前的固件始终使用 1 字节路径;v1.14 及更新版本可配置为 2 或 3 字节路径。", "repeater_txDelay": "泛洪 TX 延迟", "repeater_txDelayHelper": "对于泛洪流量,重新传输间隔应设置为包的传输时间(0-2,默认值为0.5)的倍数。 较高的值意味着更少的冲突,但传输速度会变慢。", @@ -1783,17 +1792,18 @@ "notification_newNodesCount": "{count} 个新节点", "notification_newTypeDiscovered": "发现新 {contactType}", "notification_receivedNewMessage": "收到新消息", - "settings_gpxExportRepeaters": "导出转发节点/房间服务器到 GPX", - "settings_gpxExportRepeatersSubtitle": "导出带位置的转发节点/房间服务器到 GPX 文件", - "settings_gpxExportContactsSubtitle": "导出带位置的伙伴到 GPX 文件", + "export_messagesTitle": "消息", + "export_messagesDescription": "已加书签的消息,保存为 Markdown 文件。", + "export_locationsTitle": "联系人位置", + "export_locationsDescription": "位置已知的联系人,保存为 GPX 文件,供地图应用使用。", + "settings_gpxExportRepeaters": "转发节点和房间", "settings_gpxExportNotAvailable": "您的设备/操作系统不支持", "settings_gpxExportSuccess": "GPX 文件导出成功", "settings_gpxExportError": "导出时出错", "settings_gpxExportRepeatersRoom": "转发节点与房间服务器位置", "settings_gpxExportChat": "伙伴位置", - "settings_gpxExportAll": "导出所有联系人到 GPX", - "settings_gpxExportContacts": "导出伙伴到 GPX", - "settings_gpxExportAllSubtitle": "导出所有带位置的联系人到 GPX 文件", + "settings_gpxExportAll": "所有联系人", + "settings_gpxExportContacts": "用户 / 伴侣设备", "settings_gpxExportAllContacts": "所有联系人位置", "settings_gpxExportNoContacts": "没有可导出的联系人", "settings_gpxExportShareText": "来自 MeshCore Open 的地图数据导出", @@ -1812,10 +1822,18 @@ "snrIndicator_lastSeen": "最近访问", "snrIndicator_nearByRepeaters": "附近的重复器", "chat_ShowAllPaths": "显示所有路径", - "settings_clientRepeat": "离网重复", - "settings_clientRepeatSubtitle": "允许此设备重复发送网状数据包给其他设备", + "settings_clientRepeat": "离网中继模式", + "settings_clientRepeatDescription": "允许此设备转发数据包。适用于没有中继器覆盖的地区。\n\n此模式只能使用少数几个特定频率。一旦开启,很可能会与更大范围的网状网络断开连接。所有相互通信的节点必须使用相同的频率、带宽和扩频因子(SF)。只有编码速率(CR)可以不同。", + "settings_clientRepeatSwitch": "中继模式", + "settings_clientRepeatNote": "注意:关闭后将恢复为之前的频率。如果之后无法连接到网状网络,请检查预设/参数。", "settings_clientRepeatFreqWarning": "离网重复通信需要使用 433、869 或 918 兆赫兹的频率。", "settings_aboutOpenMeteoAttribution": "LOS 高程数据:Open-Meteo (CC BY 4.0)", + "about_project": "项目", + "about_sourceCode": "源代码", + "about_license": "许可证", + "about_openSourceLicenses": "开源许可证", + "about_credits": "致谢", + "about_contributors": "贡献者", "appSettings_unitsTitle": "单位", "appSettings_unitsMetric": "公制(米/公里)", "appSettings_unitsImperial": "英制 (ft / mi)", @@ -2005,19 +2023,16 @@ "contacts_searchFavorites": "搜索 {number}{str} 收藏...", "settings_contactSettings": "联系人设置", "contactsSettings_title": "联系人设置", - "contactsSettings_autoAddUsersTitle": "自动添加用户", - "contactsSettings_otherTitle": "其他联系人相关设置", - "contactsSettings_autoAddUsersSubtitle": "允许伴侣自动添加发现的用户", - "contactsSettings_autoAddRepeatersSubtitle": "允许伴侣自动添加发现的重复器", - "contactsSettings_autoAddSensorsTitle": "自动添加传感器", - "contactsSettings_autoAddRoomServersSubtitle": "允许伴侣自动添加发现的房间服务器", - "contactsSettings_autoAddRepeatersTitle": "自动添加重复器", - "contactsSettings_autoAddTitle": "自动发现", + "contactsSettings_autoAddUsersTitle": "用户", + "contactsSettings_otherTitle": "联系人列表上限", + "contactsSettings_autoAddSensorsTitle": "传感器", + "contactsSettings_autoAddRepeatersTitle": "转发节点", + "contactsSettings_autoAddTitle": "自动添加联系人", + "contactsSettings_autoAddDescription": "将新听到的这些类型的节点添加到无线电的联系人中。其他节点可稍后在“已发现的联系人”中添加。", "settings_contactSettingsSubtitle": "添加联系人的设置", - "contactsSettings_overwriteOldestTitle": "覆盖最旧的", - "contactsSettings_autoAddSensorsSubtitle": "允许伴侣自动添加发现的传感器", + "contactsSettings_overwriteOldestTitle": "覆盖最旧的联系人", "discoveredContacts_searchHint": "搜索已发现的联系人", - "contactsSettings_autoAddRoomServersTitle": "自动添加房间服务器", + "contactsSettings_autoAddRoomServersTitle": "房间服务器", "discoveredContacts_contactAdded": "联系人已添加", "discoveredContacts_deleteContact": "删除联系人", "discoveredContacts_addContact": "添加联系人", @@ -2062,9 +2077,9 @@ } } }, - "contactsSettings_overwriteOldestSubtitle": "当联系人列表已满时,将替换最老的非收藏联系人。", - "contactsSettings_evictDiscoveredContactsTitle": "清除已发现的联系人", - "contactsSettings_evictDiscoveredContactsSubtitle": "启用后,当已发现联系人列表达到 {limit} 条的上限时,应用会移除最旧的已发现联系人。", + "contactsSettings_overwriteOldestSubtitle": "无线电的联系人列表已满时,替换最旧的非收藏联系人。", + "contactsSettings_evictDiscoveredContactsTitle": "限制已发现的联系人", + "contactsSettings_evictDiscoveredContactsSubtitle": "应用将“已发现的联系人”列表限制为 {limit} 条。达到上限时会移除较旧的联系人。关闭后不限数量。", "common_deleteAll": "删除全部", "discoveredContacts_deleteContactAllContent": "您确定要删除所有发现的联系人吗?", "discoveredContacts_deleteContactAll": "删除所有发现的联系人", @@ -2140,7 +2155,7 @@ } } }, - "settings_privacySubtitle": "控制要共享的信息。", + "settings_privacySubtitle": "控制要共享的信息", "settings_privacySettingsDescription": "选择您的设备与他人共享的信息。", "settings_telemetryBaseMode": "遥测基础模式", "settings_telemetryLocationMode": "遥测位置模式", @@ -2948,10 +2963,9 @@ "settings_regionDefault": "默认地区", "settings_regionDefaultSubtitle": "用于未设置自己地区的频道", "settings_regionDefaultNone": "无", - "settings_telemetryPerContactHint": "要允许某个联系人,请打开其聊天并从菜单中选择“联系人设置”。", - "settings_multiAckSubtitle": "发送额外的 ACK 以提高送达率;会占用更多空中时间", + "settings_telemetryPerContactHint": "要允许特定联系人,请打开其聊天并从菜单中选择“联系人设置”。", + "settings_multiAckSubtitle": "当确认(ACK)经直连路径返回时,发送 2 次确认,而不是 1 次。更可靠,但会占用更多空中时间。", "settings_presetCustom": "自定义", - "settings_radioMatchWarning": "你通信的所有节点必须使用相同的频率、带宽和扩频因子。编码速率(CR)可以不同。", "settings_txPowerRangeHelper": "{min} 至 {max} dBm", "@settings_txPowerRangeHelper": { "placeholders": { @@ -2971,7 +2985,7 @@ } } }, - "settings_pathHashModeHelper": "此无线电发送的泛洪数据包在路径中记录的每个节点 ID 的大小:1 字节(256 个 ID,最多 64 跳)、2 字节(6.5 万个 ID,最多 32 跳)、3 字节(1600 万个 ID,最多 21 跳)。ID 越大冲突越少,但固件低于 v1.14 的中继器会丢弃带 2 或 3 字节 ID 的数据包。", + "settings_pathHashModeHelper": "此无线电发送的泛洪数据包路径中记录的每个节点 ID 的大小:\n\n- 1 字节:256 个唯一 ID,最多 64 跳。\"ab\"。\n- 2 字节:6.5 万个唯一 ID,最多 32 跳。\"ab12\"。\n- 3 字节:1600 万个唯一 ID,最多 21 跳。\"ab12cd\"。\n\nID 越长冲突越少,但固件早于 v1.14 的中继器会丢弃使用 2 字节和 3 字节 ID 的数据包。", "settings_requiresFirmware": "需要固件 {version} 或更高版本", "@settings_requiresFirmware": { "placeholders": { @@ -3769,7 +3783,8 @@ "routing_modeDirect": "直连", "routing_modeDirectHint": "始终直接发送给该联系人,不经过中继跳。在对方处于无线电范围内时使用。", "settings_export": "导出", - "settings_exportSubtitle": "将联系人和中继站导出为 GPX", + "settings_exportData": "导出数据", + "settings_exportSubtitle": "书签和联系人位置", "backupRestore_title": "备份与恢复", "backupRestore_subtitle": "保存或恢复应用数据和无线电设置", "backupRestore_import": "导入", @@ -3989,7 +4004,7 @@ "bookmarks_channel": "频道", "bookmarks_contact": "联系人", "bookmarks_remove": "移除书签", - "settings_exportBookmarks": "将书签导出为 Markdown", + "settings_exportBookmarks": "书签", "settings_exportBookmarksSubtitle": "将已加书签的消息分享或保存为 Markdown 文件。", "settings_exportBookmarksSuccess": "书签已导出。", "settings_exportBookmarksNoBookmarks": "没有可导出的书签。", diff --git a/lib/review_mode/review_script.dart b/lib/review_mode/review_script.dart index c37a1acf..f2949cbf 100644 --- a/lib/review_mode/review_script.dart +++ b/lib/review_mode/review_script.dart @@ -73,7 +73,8 @@ class ReviewScript { static const String selfName = 'Review Radio'; static const int selfLatitudeE6 = 45515232; static const int selfLongitudeE6 = -122678385; - static const int frequencyHz = 910525000; + // In kHz, as the firmware sends it (910.525 MHz). + static const int frequencyHz = 910525; static const int bandwidthHz = 62500; static const int spreadingFactor = 7; static const int codingRate = 5; diff --git a/lib/screens/about_screen.dart b/lib/screens/about_screen.dart new file mode 100644 index 00000000..feea9c4e --- /dev/null +++ b/lib/screens/about_screen.dart @@ -0,0 +1,204 @@ +import 'package:flutter/material.dart'; +import 'package:package_info_plus/package_info_plus.dart'; +import 'package:url_launcher/url_launcher.dart'; + +import '../helpers/snack_bar_builder.dart'; +import '../l10n/l10n.dart'; +import '../theme/mesh_theme.dart'; +import '../widgets/adaptive_app_bar_title.dart'; +import '../widgets/mesh_nav_tile.dart'; +import '../widgets/mesh_ui.dart'; + +const String _sourceCodeHost = 'github.com/zjs81/meshcore-open'; +final Uri _sourceCodeUrl = Uri.https('github.com', '/zjs81/meshcore-open'); +final Uri _licenseUrl = Uri.https( + 'github.com', + '/zjs81/meshcore-open/blob/HEAD/LICENSE', +); +final Uri _contributorsUrl = Uri.https( + 'github.com', + '/zjs81/meshcore-open/graphs/contributors', +); + +/// Version label for Settings and About. +Future loadAppVersionLabel() async { + final info = await PackageInfo.fromPlatform(); + return '${info.version} BETA'; +} + +/// App name, version, description, source code, licenses and credits. +class AboutScreen extends StatefulWidget { + const AboutScreen({super.key}); + + @override + State createState() => _AboutScreenState(); +} + +class _AboutScreenState extends State { + String? _version; + + @override + void initState() { + super.initState(); + loadAppVersionLabel().then((version) { + if (mounted) setState(() => _version = version); + }); + } + + Future _open(Uri url) async { + final opened = await launchUrl(url, mode: LaunchMode.externalApplication); + if (opened || !mounted) return; + showDismissibleSnackBar( + context, + content: Text(context.l10n.chat_couldNotOpenLink(url.toString())), + ); + } + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + final theme = Theme.of(context); + final scheme = theme.colorScheme; + final version = _version ?? l10n.common_loading; + // The current year, so the notice doesn't go stale between releases. + final legalese = l10n.settings_aboutLegalese('${DateTime.now().year}'); + return Scaffold( + appBar: AppBar( + title: AdaptiveAppBarTitle(l10n.settings_about), + centerTitle: true, + ), + body: MeshSettingsTileTheme( + child: SafeArea( + top: false, + child: ListView( + padding: const EdgeInsets.fromLTRB(0, 8, 0, 24), + children: [ + MeshCard( + padding: const EdgeInsets.all(16), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + ClipRRect( + borderRadius: BorderRadius.circular(MeshRadii.sm), + child: Image.asset( + 'assets/images/mesh-icon.png', + width: 56, + height: 56, + excludeFromSemantics: true, + ), + ), + const SizedBox(width: 16), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + l10n.appTitle, + style: theme.textTheme.titleLarge?.copyWith( + fontWeight: FontWeight.w600, + ), + ), + const SizedBox(height: 2), + Text( + version, + style: MeshTheme.mono( + fontSize: 14, + color: scheme.onSurfaceVariant, + ), + ), + const SizedBox(height: 8), + Text( + l10n.settings_aboutDescription, + style: theme.textTheme.bodyMedium, + ), + ], + ), + ), + ], + ), + ), + SectionHeader(l10n.about_project), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + MeshNavTile( + icon: Icons.code, + title: l10n.about_sourceCode, + subtitle: _sourceCodeHost, + trailing: Icon( + Icons.open_in_new, + size: 24, + color: scheme.onSurfaceVariant, + ), + onTap: () => _open(_sourceCodeUrl), + ), + const Divider(height: 1, indent: 16), + MeshNavTile( + icon: Icons.gavel_outlined, + title: l10n.about_license, + trailing: Icon( + Icons.open_in_new, + size: 24, + color: scheme.onSurfaceVariant, + ), + onTap: () => _open(_licenseUrl), + ), + const Divider(height: 1, indent: 16), + MeshNavTile( + icon: Icons.description_outlined, + title: l10n.about_openSourceLicenses, + onTap: () => showLicensePage( + context: context, + applicationName: l10n.appTitle, + applicationVersion: version, + applicationLegalese: legalese, + ), + ), + ], + ), + ), + SectionHeader(l10n.about_credits), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + MeshNavTile( + icon: Icons.people_outline, + title: l10n.about_contributors, + trailing: Icon( + Icons.open_in_new, + size: 24, + color: scheme.onSurfaceVariant, + ), + onTap: () => _open(_contributorsUrl), + ), + const Divider(height: 1, indent: 16), + ListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, + ), + leading: const Icon(Icons.terrain_outlined, size: 24), + title: Text(l10n.settings_aboutOpenMeteoAttribution), + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.fromLTRB(16, 20, 16, 0), + child: Text( + legalese, + textAlign: TextAlign.center, + style: theme.textTheme.bodySmall?.copyWith( + color: scheme.onSurfaceVariant, + ), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/lib/screens/add_contact_screen.dart b/lib/screens/add_contact_screen.dart index 353d9ab7..7aaf6a7c 100644 --- a/lib/screens/add_contact_screen.dart +++ b/lib/screens/add_contact_screen.dart @@ -236,8 +236,6 @@ class _AddContactScreenState extends State { @override Widget build(BuildContext context) { final l10n = context.l10n; - final theme = Theme.of(context); - final scheme = theme.colorScheme; return Scaffold( appBar: AppBar( @@ -264,31 +262,7 @@ class _AddContactScreenState extends State { child: ListView( padding: const EdgeInsets.fromLTRB(0, 8, 0, 24), children: [ - MeshCard( - padding: const EdgeInsets.symmetric( - horizontal: 16, - vertical: 14, - ), - child: Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Icon( - Icons.info_outline, - size: 24, - color: scheme.onSurfaceVariant, - ), - const SizedBox(width: 16), - Expanded( - child: Text( - l10n.addContact_infoBanner, - style: theme.textTheme.bodyMedium?.copyWith( - color: scheme.onSurface, - ), - ), - ), - ], - ), - ), + MeshInfoCard(l10n.addContact_infoBanner), const SizedBox(height: 8), MeshCard( padding: EdgeInsets.zero, diff --git a/lib/screens/contact_settings_screen.dart b/lib/screens/contact_settings_screen.dart new file mode 100644 index 00000000..37fd8c9c --- /dev/null +++ b/lib/screens/contact_settings_screen.dart @@ -0,0 +1,188 @@ +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import '../connector/meshcore_connector.dart'; +import '../connector/meshcore_protocol.dart'; +import '../helpers/snack_bar_builder.dart'; +import '../l10n/l10n.dart'; +import '../services/app_settings_service.dart'; +import '../theme/theme_icons.dart'; +import '../widgets/mesh_ui.dart'; +import '../widgets/unsaved_changes_guard.dart'; + +typedef _ContactForm = ({ + bool autoAddUsers, + bool autoAddRepeaters, + bool autoAddRoomServers, + bool autoAddSensors, + bool overwriteOldest, + bool evictDiscovered, +}); + +/// Contact auto-add and overflow options. Sent on Save. +class ContactSettingsScreen extends StatefulWidget { + const ContactSettingsScreen({super.key}); + + @override + State createState() => _ContactSettingsScreenState(); +} + +class _ContactSettingsScreenState extends State { + late bool _autoAddUsers; + late bool _autoAddRepeaters; + late bool _autoAddRoomServers; + late bool _autoAddSensors; + late bool _overwriteOldest; + late bool _evictDiscovered; + late _ContactForm _savedForm; + + @override + void initState() { + super.initState(); + final connector = context.read(); + _autoAddUsers = connector.autoAddUsers ?? false; + _autoAddRepeaters = connector.autoAddRepeaters ?? false; + _autoAddRoomServers = connector.autoAddRoomServers ?? false; + _autoAddSensors = connector.autoAddSensors ?? false; + _overwriteOldest = connector.autoAddOverwriteOldest ?? false; + _evictDiscovered = context + .read() + .settings + .evictDiscoveredContactsEnabled; + _savedForm = _form; + } + + _ContactForm get _form => ( + autoAddUsers: _autoAddUsers, + autoAddRepeaters: _autoAddRepeaters, + autoAddRoomServers: _autoAddRoomServers, + autoAddSensors: _autoAddSensors, + overwriteOldest: _overwriteOldest, + evictDiscovered: _evictDiscovered, + ); + + Future _save() async { + final l10n = context.l10n; + final connector = context.read(); + final settingsService = context.read(); + final form = _form; + await connector.sendFrame( + buildSetAutoAddConfigFrame( + autoAddChat: form.autoAddUsers, + autoAddRepeater: form.autoAddRepeaters, + autoAddRoomServer: form.autoAddRoomServers, + autoAddSensor: form.autoAddSensors, + overwriteOldest: form.overwriteOldest, + ), + ); + await connector.sendFrame(buildGetAutoAddFlagsFrame()); + await settingsService.setEvictDiscoveredContactsEnabled( + form.evictDiscovered, + ); + if (form.evictDiscovered) { + await connector.trimDiscoveredContactsToLimit(); + } + if (!mounted) return true; + setState(() => _savedForm = form); + showDismissibleSnackBar( + context, + content: Text(l10n.settings_contactSettingsSaved), + ); + return true; + } + + Widget _switch({ + required Widget icon, + required String title, + String? subtitle, + required bool value, + required ValueChanged onChanged, + }) { + return SwitchListTile( + contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4), + secondary: icon, + title: Text(title), + subtitle: subtitle == null ? null : Text(subtitle), + value: value, + onChanged: (value) => setState(() => onChanged(value)), + ); + } + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + const divider = Divider(height: 1, indent: 16); + return SaveToRadioPage( + title: l10n.settings_contactSettings, + hasChanges: _form != _savedForm, + onSave: _save, + children: [ + SectionHeader( + l10n.contactsSettings_autoAddTitle, + description: l10n.contactsSettings_autoAddDescription, + ), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + // Same icons as the contact list and map. + _switch( + icon: const Icon(Icons.person, size: 24), + title: l10n.contactsSettings_autoAddUsersTitle, + value: _autoAddUsers, + onChanged: (v) => _autoAddUsers = v, + ), + divider, + _switch( + icon: const ThemedIcon(ThemeIconSlot.repeater, size: 24), + title: l10n.contactsSettings_autoAddRepeatersTitle, + value: _autoAddRepeaters, + onChanged: (v) => _autoAddRepeaters = v, + ), + divider, + _switch( + icon: const ThemedIcon(ThemeIconSlot.room, size: 24), + title: l10n.contactsSettings_autoAddRoomServersTitle, + value: _autoAddRoomServers, + onChanged: (v) => _autoAddRoomServers = v, + ), + divider, + _switch( + icon: const ThemedIcon(ThemeIconSlot.sensor, size: 24), + title: l10n.contactsSettings_autoAddSensorsTitle, + value: _autoAddSensors, + onChanged: (v) => _autoAddSensors = v, + ), + ], + ), + ), + SectionHeader(l10n.contactsSettings_otherTitle), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + _switch( + icon: const ThemedIcon(ThemeIconSlot.contacts, size: 24), + title: l10n.contactsSettings_overwriteOldestTitle, + subtitle: l10n.contactsSettings_overwriteOldestSubtitle, + value: _overwriteOldest, + onChanged: (v) => _overwriteOldest = v, + ), + divider, + _switch( + // The Discovered Contacts icon. + icon: const Icon(Icons.person_add_rounded, size: 24), + title: l10n.contactsSettings_evictDiscoveredContactsTitle, + subtitle: l10n.contactsSettings_evictDiscoveredContactsSubtitle( + MeshCoreConnector.maxDiscoveredContacts, + ), + value: _evictDiscovered, + onChanged: (v) => _evictDiscovered = v, + ), + ], + ), + ), + ], + ); + } +} diff --git a/lib/screens/coordinate_map_screen.dart b/lib/screens/coordinate_map_screen.dart index da3240c1..3b14915e 100644 --- a/lib/screens/coordinate_map_screen.dart +++ b/lib/screens/coordinate_map_screen.dart @@ -159,19 +159,19 @@ class _CoordinateMapScreenState extends State { right: 12, child: Column( children: [ - _CoordinateMapControlButton( + CoordinateMapControlButton( icon: Icons.add, tooltip: l10n.map_zoomIn, onPressed: () => _zoomBy(1), ), const SizedBox(height: 8), - _CoordinateMapControlButton( + CoordinateMapControlButton( icon: Icons.remove, tooltip: l10n.map_zoomOut, onPressed: () => _zoomBy(-1), ), const SizedBox(height: 8), - _CoordinateMapControlButton( + CoordinateMapControlButton( icon: Icons.my_location, tooltip: l10n.map_centerMap, onPressed: () => _mapController.move(_position, _initialZoom), @@ -227,12 +227,14 @@ class _CoordinateMapScreenState extends State { } } -class _CoordinateMapControlButton extends StatelessWidget { +/// Zoom and recenter button floating over a full-screen map. +class CoordinateMapControlButton extends StatelessWidget { final IconData icon; final String tooltip; final VoidCallback onPressed; - const _CoordinateMapControlButton({ + const CoordinateMapControlButton({ + super.key, required this.icon, required this.tooltip, required this.onPressed, diff --git a/lib/screens/export_screen.dart b/lib/screens/export_screen.dart index d56ec029..5d8cde45 100644 --- a/lib/screens/export_screen.dart +++ b/lib/screens/export_screen.dart @@ -11,10 +11,11 @@ import '../connector/meshcore_connector.dart'; import '../helpers/snack_bar_builder.dart'; import '../l10n/l10n.dart'; import '../services/app_settings_service.dart'; +import '../theme/theme_icons.dart'; import '../utils/bookmark_markdown_export.dart'; import '../utils/platform_info.dart'; import '../utils/share_origin.dart'; -import '../widgets/app_bar.dart'; +import '../widgets/adaptive_app_bar_title.dart'; import '../widgets/mesh_ui.dart'; import '../widgets/mesh_nav_tile.dart'; import '../widgets/sync_progress_overlay.dart'; @@ -34,11 +35,7 @@ class ExportScreen extends StatelessWidget { final connector = context.read(); return Scaffold( appBar: AppBar( - title: AppBarTitle( - l10n.settings_export, - indicators: false, - subtitle: false, - ), + title: AdaptiveAppBarTitle(l10n.settings_exportData), centerTitle: true, bottom: const SyncProgressAppBarBottom(), ), @@ -47,25 +44,32 @@ class ExportScreen extends StatelessWidget { child: ListView( padding: const EdgeInsets.fromLTRB(0, 8, 0, 24), children: [ - SectionHeader(l10n.settings_export), + SectionHeader( + l10n.export_messagesTitle, + description: l10n.export_messagesDescription, + ), MeshCard( padding: EdgeInsets.zero, child: MeshNavTile( + // The bookmark icon used in chats. icon: Icons.bookmark_border, title: l10n.settings_exportBookmarks, - subtitle: l10n.settings_exportBookmarksSubtitle, onTap: () => _exportBookmarks(context), ), ), - const SizedBox(height: 16), + SectionHeader( + l10n.export_locationsTitle, + description: l10n.export_locationsDescription, + ), MeshCard( padding: EdgeInsets.zero, child: Column( children: [ + // Same icons as the contact list and Contact Settings. MeshNavTile( - icon: Icons.download_outlined, + icon: Icons.cell_tower, + iconSlot: ThemeIconSlot.repeater, title: l10n.settings_gpxExportRepeaters, - subtitle: l10n.settings_gpxExportRepeatersSubtitle, onTap: () { final exporter = GpxExport(connector)..addRepeaters(); _gpxExport( @@ -79,9 +83,8 @@ class ExportScreen extends StatelessWidget { ), const Divider(height: 1, indent: 16), MeshNavTile( - icon: Icons.download_outlined, + icon: Icons.person, title: l10n.settings_gpxExportContacts, - subtitle: l10n.settings_gpxExportContactsSubtitle, onTap: () { final exporter = GpxExport(connector)..addContacts(); _gpxExport( @@ -95,9 +98,9 @@ class ExportScreen extends StatelessWidget { ), const Divider(height: 1, indent: 16), MeshNavTile( - icon: Icons.download_outlined, + icon: Icons.people_outline, + iconSlot: ThemeIconSlot.contacts, title: l10n.settings_gpxExportAll, - subtitle: l10n.settings_gpxExportAllSubtitle, onTap: () { final exporter = GpxExport(connector)..addAll(); _gpxExport( diff --git a/lib/screens/location_picker_screen.dart b/lib/screens/location_picker_screen.dart new file mode 100644 index 00000000..8bc20035 --- /dev/null +++ b/lib/screens/location_picker_screen.dart @@ -0,0 +1,192 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_map/flutter_map.dart'; +import 'package:latlong2/latlong.dart'; +import 'package:provider/provider.dart'; + +import '../l10n/l10n.dart'; +import '../services/map_tile_cache_service.dart'; +import '../theme/mesh_theme.dart'; +import '../widgets/adaptive_app_bar_title.dart'; +import 'coordinate_map_screen.dart'; +import 'map_screen.dart'; + +/// Map with a fixed centre pin. Pops the chosen [LatLng], or null on back. +class LocationPickerScreen extends StatefulWidget { + /// Start position; defaults to the Map tab's last camera. + final LatLng? initial; + + const LocationPickerScreen({super.key, this.initial}); + + @override + State createState() => _LocationPickerScreenState(); +} + +class _LocationPickerScreenState extends State { + static const double _minZoom = 2.0; + static const double _maxZoom = 18.0; + static const double _pinnedZoom = 15.0; + static const double _pinSize = 48.0; + + final MapController _mapController = MapController(); + late final ({LatLng center, double zoom}) _initialCamera; + late LatLng _center; + + @override + void initState() { + super.initState(); + final initial = widget.initial; + _initialCamera = initial != null + ? (center: initial, zoom: _pinnedZoom) + : savedMapCamera() ?? (center: const LatLng(20, 0), zoom: _minZoom); + _center = _initialCamera.center; + } + + @override + void dispose() { + _mapController.dispose(); + super.dispose(); + } + + void _zoomBy(double delta) { + final camera = _mapController.camera; + final nextZoom = (camera.zoom + delta).clamp(_minZoom, _maxZoom).toDouble(); + _mapController.move(camera.center, nextZoom); + } + + /// Wraps longitude to ±180 (the camera can go past it) and clamps latitude. + LatLng get _normalizedCenter { + final lon = ((_center.longitude + 180) % 360 + 360) % 360 - 180; + return LatLng(_center.latitude.clamp(-90.0, 90.0), lon); + } + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + final theme = Theme.of(context); + final scheme = theme.colorScheme; + final mapTheme = MeshMapTheme.of(context); + final tileCache = context.read(); + final center = _normalizedCenter; + + return Scaffold( + appBar: AppBar( + centerTitle: true, + title: AdaptiveAppBarTitle(l10n.location_pickOnMap), + ), + // Scrolls at large text sizes instead of covering the map. + body: LayoutBuilder( + builder: (context, constraints) => Column( + children: [ + Expanded( + child: Stack( + children: [ + FlutterMap( + mapController: _mapController, + options: MapOptions( + initialCenter: _initialCamera.center, + initialZoom: _initialCamera.zoom, + minZoom: _minZoom, + maxZoom: _maxZoom, + interactionOptions: const InteractionOptions( + flags: ~InteractiveFlag.rotate, + ), + onPositionChanged: (camera, _) => + setState(() => _center = camera.center), + onTap: (_, point) => _mapController.move( + point, + _mapController.camera.zoom, + ), + ), + children: [tileCache.buildTileLayer(context)], + ), + // Pin tip at the map centre. + Center( + child: IgnorePointer( + child: Transform.translate( + offset: const Offset(0, -_pinSize / 2), + child: Icon( + Icons.location_on, + size: _pinSize, + color: mapTheme.followsTheme + ? mapTheme.accent + : MapPalette.batteryLow, + shadows: const [ + Shadow( + color: MapPalette.markerShadow, + blurRadius: 8, + offset: Offset(0, 3), + ), + ], + ), + ), + ), + ), + Positioned( + top: 12, + right: 12, + child: Column( + children: [ + CoordinateMapControlButton( + icon: Icons.add, + tooltip: l10n.map_zoomIn, + onPressed: () => _zoomBy(1), + ), + const SizedBox(height: 8), + CoordinateMapControlButton( + icon: Icons.remove, + tooltip: l10n.map_zoomOut, + onPressed: () => _zoomBy(-1), + ), + ], + ), + ), + ], + ), + ), + ConstrainedBox( + constraints: BoxConstraints( + maxHeight: constraints.maxHeight * 0.6, + ), + child: Material( + color: scheme.surfaceContainerLow, + child: SafeArea( + top: false, + child: SingleChildScrollView( + padding: const EdgeInsets.fromLTRB(16, 12, 16, 12), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Text( + l10n.locationPicker_hint, + style: theme.textTheme.bodyMedium?.copyWith( + color: scheme.onSurfaceVariant, + ), + ), + const SizedBox(height: 4), + Text( + '${center.latitude.toStringAsFixed(6)}, ' + '${center.longitude.toStringAsFixed(6)}', + style: MeshTheme.mono( + fontSize: 15, + fontWeight: FontWeight.w600, + color: scheme.onSurface, + ), + ), + const SizedBox(height: 12), + FilledButton.icon( + onPressed: () => Navigator.pop(context, center), + icon: const Icon(Icons.check), + label: Text(l10n.locationPicker_useLocation), + ), + ], + ), + ), + ), + ), + ), + ], + ), + ), + ); + } +} diff --git a/lib/screens/location_settings_screen.dart b/lib/screens/location_settings_screen.dart new file mode 100644 index 00000000..db251ea0 --- /dev/null +++ b/lib/screens/location_settings_screen.dart @@ -0,0 +1,329 @@ +import 'package:flutter/material.dart'; +import 'package:latlong2/latlong.dart'; +import 'package:provider/provider.dart'; + +import '../connector/meshcore_connector.dart'; +import '../helpers/guessed_location_estimator.dart'; +import '../helpers/snack_bar_builder.dart'; +import '../l10n/l10n.dart'; +import '../services/app_settings_service.dart'; +import '../widgets/mesh_nav_tile.dart'; +import '../widgets/mesh_ui.dart'; +import '../widgets/unsaved_changes_guard.dart'; +import 'location_picker_screen.dart'; + +/// Form values compared to detect unsaved edits. +typedef _LocationForm = ({ + String latitude, + String longitude, + String interval, + bool gpsEnabled, +}); + +/// Advertised location and, with GPS hardware, GPS settings. Sent on Save. +class LocationSettingsScreen extends StatefulWidget { + const LocationSettingsScreen({super.key}); + + @override + State createState() => _LocationSettingsScreenState(); +} + +class _LocationSettingsScreenState extends State { + final _latController = TextEditingController(); + final _lonController = TextEditingController(); + final _intervalController = TextEditingController(); + late final bool _hasGps; + bool _gpsEnabled = false; + double? _deviceLatitude; + double? _deviceLongitude; + late _LocationForm _savedForm; + String? _latError; + String? _lonError; + String? _intervalError; + + @override + void initState() { + super.initState(); + final connector = context.read(); + final settingsService = context.read(); + // Null until the device answers. + final customVars = connector.currentCustomVars ?? {}; + _hasGps = customVars.containsKey('gps'); + _gpsEnabled = customVars['gps'] == '1'; + _deviceLatitude = connector.selfLatitude; + _deviceLongitude = connector.selfLongitude; + if (_hasLocation) { + _latController.text = _deviceLatitude!.toStringAsFixed(6); + _lonController.text = _deviceLongitude!.toStringAsFixed(6); + } + _intervalController.text = settingsService + .resolvedGpsIntervalSeconds(customVars) + .toString(); + _savedForm = _currentForm(); + } + + @override + void dispose() { + _latController.dispose(); + _lonController.dispose(); + _intervalController.dispose(); + super.dispose(); + } + + /// Firmware stores "no location" as 0,0 (the default for a fresh node), so + /// that pair is shown as empty fields rather than a real coordinate. + bool get _hasLocation { + final lat = _deviceLatitude; + final lon = _deviceLongitude; + return lat != null && lon != null && !(lat == 0 && lon == 0); + } + + _LocationForm _currentForm() => ( + latitude: _latController.text.trim(), + longitude: _lonController.text.trim(), + interval: _hasGps ? _intervalController.text.trim() : '', + gpsEnabled: _hasGps && _gpsEnabled, + ); + + /// Valid field coordinates, else the radio's location. + LatLng? get _pickerStart { + final lat = double.tryParse(_latController.text.trim()); + final lon = double.tryParse(_lonController.text.trim()); + if (lat != null && lon != null && isPlausibleLocation(lat, lon)) { + return LatLng(lat, lon); + } + return _hasLocation ? LatLng(_deviceLatitude!, _deviceLongitude!) : null; + } + + Future _pickOnMap() async { + final picked = await Navigator.push( + context, + MaterialPageRoute( + builder: (_) => LocationPickerScreen(initial: _pickerStart), + ), + ); + if (picked == null || !mounted) return; + setState(() { + _latController.text = picked.latitude.toStringAsFixed(6); + _lonController.text = picked.longitude.toStringAsFixed(6); + _latError = null; + _lonError = null; + }); + } + + /// Validates all fields, then sends GPS (if changed), interval and location. + Future _save() async { + final l10n = context.l10n; + // Validate first so a typo doesn't leave half the changes applied. + int? interval; + String? intervalError; + if (_hasGps) { + final intervalText = _intervalController.text.trim(); + if (intervalText.isNotEmpty) { + interval = int.tryParse(intervalText); + if (interval == null || interval < 60 || interval >= 86400) { + intervalError = l10n.settings_locationIntervalInvalid; + } + } + } + + final latText = _latController.text.trim(); + final lonText = _lonController.text.trim(); + double? lat; + double? lon; + String? latError; + String? lonError; + var clearsLocation = false; + if (latText.isEmpty && lonText.isEmpty) { + // Clearing both fields removes the location. Companion firmware has no + // dedicated "clear" command: CMD_SET_ADVERT_LATLON with 0,0 restores + // the factory default, which firmware and this app treat as unset. + if (_hasLocation) { + lat = 0; + lon = 0; + clearsLocation = true; + } + } else { + // One empty field keeps the device's current value for that axis. + lat = latText.isNotEmpty + ? double.tryParse(latText) + : (_hasLocation ? _deviceLatitude : null); + lon = lonText.isNotEmpty + ? double.tryParse(lonText) + : (_hasLocation ? _deviceLongitude : null); + if (lat == null) { + latError = latText.isEmpty + ? l10n.settings_locationBothRequired + : l10n.settings_locationInvalid; + } else if (lat < -90 || lat > 90) { + latError = l10n.settings_locationInvalid; + } + if (lon == null) { + lonError = lonText.isEmpty + ? l10n.settings_locationBothRequired + : l10n.settings_locationInvalid; + } else if (lon < -180 || lon > 180) { + lonError = l10n.settings_locationInvalid; + } + } + + if (intervalError != null || latError != null || lonError != null) { + setState(() { + _intervalError = intervalError; + _latError = latError; + _lonError = lonError; + }); + return false; + } + + // An empty interval leaves the stored one; show it again. + if (_hasGps && _intervalController.text.trim().isEmpty) { + _intervalController.text = _savedForm.interval; + } + final gpsChanged = _hasGps && _gpsEnabled != _savedForm.gpsEnabled; + if (!gpsChanged && interval == null && (lat == null || lon == null)) { + // Nothing to send, like the old dialog. + setState(() => _savedForm = _currentForm()); + return true; + } + + final connector = context.read(); + final settingsService = context.read(); + if (gpsChanged) { + await connector.setCustomVar(_gpsEnabled ? "gps:1" : "gps:0"); + } + if (interval != null) { + await settingsService.setGpsIntervalSeconds( + interval, + writeToDevice: (value) => connector.setCustomVar("gps_interval:$value"), + ); + } + if (lat != null && lon != null) { + await connector.setNodeLocation(lat: lat, lon: lon); + } + await connector.refreshDeviceInfo(); + if (!mounted) return true; + setState(() { + if (lat != null && lon != null) { + _deviceLatitude = lat; + _deviceLongitude = lon; + } + _savedForm = _currentForm(); + }); + showDismissibleSnackBar( + context, + content: Text( + clearsLocation + ? l10n.settings_locationCleared + : l10n.settings_locationUpdated, + ), + ); + return true; + } + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + const coordinateKeyboard = TextInputType.numberWithOptions( + decimal: true, + signed: true, + ); + return SaveToRadioPage( + title: l10n.settings_location, + hasChanges: _currentForm() != _savedForm, + onSave: _save, + children: [ + SectionHeader( + l10n.location_coordinates, + description: l10n.location_coordinatesDescription, + ), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + Padding( + padding: const EdgeInsets.all(14), + child: Column( + children: [ + TextField( + controller: _latController, + onTapOutside: (_) => FocusScope.of(context).unfocus(), + onChanged: (_) => setState(() => _latError = null), + decoration: InputDecoration( + labelText: l10n.settings_latitude, + errorText: _latError, + errorMaxLines: 2, + ), + keyboardType: coordinateKeyboard, + ), + const SizedBox(height: 16), + TextField( + controller: _lonController, + onTapOutside: (_) => FocusScope.of(context).unfocus(), + onChanged: (_) => setState(() => _lonError = null), + decoration: InputDecoration( + labelText: l10n.settings_longitude, + helperText: l10n.settings_locationClearHelper, + helperMaxLines: 2, + errorText: _lonError, + errorMaxLines: 2, + ), + keyboardType: coordinateKeyboard, + ), + ], + ), + ), + const Divider(height: 1, indent: 16), + MeshNavTile( + icon: Icons.map_outlined, + title: l10n.location_pickOnMap, + onTap: _pickOnMap, + ), + ], + ), + ), + if (_hasGps) ...[ + SectionHeader(l10n.telemetry_gpsLabel), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + SwitchListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, + ), + secondary: const Icon(Icons.gps_fixed, size: 24), + title: Text(l10n.settings_locationGPSEnable), + subtitle: Text(l10n.settings_locationGPSEnableSubtitle), + value: _gpsEnabled, + // Sent on Save. + onChanged: (value) => setState(() => _gpsEnabled = value), + ), + const Divider(height: 1, indent: 16), + Padding( + padding: const EdgeInsets.all(14), + child: TextField( + controller: _intervalController, + onTapOutside: (_) => FocusScope.of(context).unfocus(), + onChanged: (_) => setState(() => _intervalError = null), + decoration: InputDecoration( + labelText: l10n.settings_locationIntervalSec, + helperText: l10n.settings_locationIntervalHelper, + errorText: _intervalError, + errorMaxLines: 2, + ), + keyboardType: const TextInputType.numberWithOptions( + decimal: false, + signed: false, + ), + ), + ), + ], + ), + ), + ], + ], + ); + } +} diff --git a/lib/screens/map_screen.dart b/lib/screens/map_screen.dart index 65d0e781..4857fbc9 100644 --- a/lib/screens/map_screen.dart +++ b/lib/screens/map_screen.dart @@ -54,6 +54,17 @@ import '../helpers/utf8_length_limiter.dart'; import 'line_of_sight_map_screen.dart'; import '../theme/theme_icons.dart'; +const String _lastCameraKey = 'map_last_camera'; + +/// The Map tab's last camera, or null if never saved. +({LatLng center, double zoom})? savedMapCamera() { + final saved = PrefsManager.instance.getStringList(_lastCameraKey); + if (saved == null || saved.length != 3) return null; + final values = saved.map(double.tryParse).toList(); + if (values.contains(null)) return null; + return (center: LatLng(values[0]!, values[1]!), zoom: values[2]!); +} + class MapScreen extends StatefulWidget { final LatLng? highlightPosition; final String? highlightLabel; @@ -133,7 +144,6 @@ class _MapScreenState extends State with WidgetsBindingObserver { // been positioned once. ({LatLng center, double zoom})? _initialCamera; - static const String _lastCameraKey = 'map_last_camera'; static const Duration _cameraSaveDelay = Duration(milliseconds: 500); Timer? _cameraSaveTimer; List? _pendingCamera; @@ -144,14 +154,7 @@ class _MapScreenState extends State with WidgetsBindingObserver { if (lat != null && lon != null && isPlausibleLocation(lat, lon)) { return (center: LatLng(lat, lon), zoom: 12.0); } - final saved = PrefsManager.instance.getStringList(_lastCameraKey); - if (saved != null && saved.length == 3) { - final values = saved.map(double.tryParse).toList(); - if (!values.contains(null)) { - return (center: LatLng(values[0]!, values[1]!), zoom: values[2]!); - } - } - return (center: const LatLng(20, 0), zoom: _mapMinZoom); + return savedMapCamera() ?? (center: const LatLng(20, 0), zoom: _mapMinZoom); } void _scheduleCameraSave() { diff --git a/lib/screens/node_name_screen.dart b/lib/screens/node_name_screen.dart new file mode 100644 index 00000000..7a1e05f4 --- /dev/null +++ b/lib/screens/node_name_screen.dart @@ -0,0 +1,196 @@ +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import '../connector/meshcore_connector.dart'; +import '../connector/meshcore_protocol.dart'; +import '../helpers/snack_bar_builder.dart'; +import '../helpers/utf8_length_limiter.dart'; +import '../l10n/l10n.dart'; +import '../theme/mesh_theme.dart'; +import '../widgets/mesh_nav_tile.dart'; +import '../widgets/mesh_ui.dart'; +import '../widgets/unsaved_changes_guard.dart'; + +/// Node name editor showing the bytes left for messages. +class NodeNameScreen extends StatefulWidget { + const NodeNameScreen({super.key}); + + @override + State createState() => _NodeNameScreenState(); +} + +class _NodeNameScreenState extends State { + final _page = GlobalKey(); + late final TextEditingController _controller; + late String _savedName; + + @override + void initState() { + super.initState(); + final name = context.read().selfName ?? ''; + // Compared trimmed, like the field. + _savedName = name.trim(); + _controller = TextEditingController(text: name) + ..addListener(() => setState(() {})); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + String get _name => _controller.text.trim(); + + Future _save() async { + final l10n = context.l10n; + final connector = context.read(); + final name = _name; + await connector.setNodeName(name); + await connector.refreshDeviceInfo(); + if (!mounted) return true; + setState(() => _savedName = name); + showDismissibleSnackBar( + context, + content: Text(l10n.settings_nodeNameUpdated), + ); + return true; + } + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + final scheme = Theme.of(context).colorScheme; + final bytes = utf8ByteLength(_name); + final over = bytes - maxRadioNameBytes; + return SaveToRadioPage( + key: _page, + title: l10n.settings_nodeName, + hasChanges: _name != _savedName, + canSave: _name.isNotEmpty && over <= 0, + onSave: _save, + children: [ + SectionHeader(l10n.settings_nodeName), + MeshCard( + child: TextField( + controller: _controller, + autofocus: _savedName.isEmpty, + textInputAction: TextInputAction.done, + onSubmitted: (_) => _page.currentState?.save(), + onTapOutside: (_) => FocusScope.of(context).unfocus(), + // No length limit: an over-long name shows how far over it is + // instead of silently refusing input. + decoration: InputDecoration( + labelText: l10n.settings_infoName, + hintText: l10n.settings_nodeNameHint, + errorText: over > 0 ? l10n.nodeName_bytesOver(over) : null, + suffixIcon: Padding( + padding: const EdgeInsetsDirectional.only(start: 8, end: 12), + child: Text( + '$bytes / $maxRadioNameBytes', + style: TextStyle( + fontSize: 12, + color: over > 0 ? scheme.error : scheme.onSurfaceVariant, + ), + ), + ), + suffixIconConstraints: const BoxConstraints(), + ), + ), + ), + SectionHeader( + l10n.nodeName_messageLength, + description: l10n.nodeName_info, + ), + _buildMessageLimits(context), + ], + ); + } + + Widget _buildMessageLimits(BuildContext context) { + final l10n = context.l10n; + final name = _name; + // Empty or over-long names can't be saved. + final channelValue = + name.isEmpty || utf8ByteLength(name) > maxRadioNameBytes + ? l10n.common_notAvailable + : l10n.nodeName_bytesAvailable(maxChannelMessageBytes(name)); + return MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + _LimitRow( + icon: Icons.forum_outlined, + title: l10n.nodeName_channelMessages, + value: channelValue, + subtitle: l10n.nodeName_channelMessagesSubtitle, + ), + const Divider(height: 1, indent: 16), + _LimitRow( + icon: Icons.chat_bubble_outline, + title: l10n.nodeName_directMessages, + value: l10n.nodeName_bytesAvailable(maxContactMessageBytes()), + subtitle: l10n.nodeName_directMessagesSubtitle, + ), + ], + ), + ); + } +} + +/// Settings row with a read-only value: icon, title, the value in mono 15 +/// (like the Settings device info values) and a subtitle. +class _LimitRow extends StatelessWidget { + final IconData icon; + final String title; + final String value; + final String subtitle; + + const _LimitRow({ + required this.icon, + required this.title, + required this.value, + required this.subtitle, + }); + + @override + Widget build(BuildContext context) { + final theme = Theme.of(context); + final scheme = theme.colorScheme; + return MergeSemantics( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), + child: Row( + children: [ + Icon(icon, size: 24, color: scheme.onSurfaceVariant), + const SizedBox(width: 16), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(title, style: meshTileTitleStyle(theme)), + const SizedBox(height: 2), + Text( + value, + style: MeshTheme.mono( + fontSize: 15, + fontWeight: FontWeight.w500, + color: scheme.onSurface, + ), + ), + const SizedBox(height: 2), + Text( + subtitle, + style: theme.textTheme.bodyMedium?.copyWith( + color: scheme.onSurfaceVariant, + ), + ), + ], + ), + ), + ], + ), + ), + ); + } +} diff --git a/lib/screens/privacy_settings_screen.dart b/lib/screens/privacy_settings_screen.dart new file mode 100644 index 00000000..1210810d --- /dev/null +++ b/lib/screens/privacy_settings_screen.dart @@ -0,0 +1,205 @@ +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; + +import '../connector/meshcore_connector.dart'; +import '../connector/meshcore_protocol.dart'; +import '../helpers/snack_bar_builder.dart'; +import '../l10n/l10n.dart'; +import '../services/app_settings_service.dart'; +import '../widgets/mesh_ui.dart'; +import '../widgets/settings_reveal.dart'; +import '../widgets/unsaved_changes_guard.dart'; + +typedef _PrivacyForm = ({ + bool advertLocation, + bool autoZeroHopAdvert, + int multiAcks, + int telemetryBase, + int telemetryLocation, + int telemetryEnvironment, +}); + +/// Location sharing, ACKs and telemetry permissions. Sent on Save. +class PrivacySettingsScreen extends StatefulWidget { + const PrivacySettingsScreen({super.key}); + + @override + State createState() => _PrivacySettingsScreenState(); +} + +class _PrivacySettingsScreenState extends State { + late bool _advertLocation; + late bool _autoZeroHopAdvert; + // Raw value: firmware also accepts 2, kept unless the switch is changed. + late int _multiAcks; + late int _telemetryBase; + late int _telemetryLocation; + late int _telemetryEnvironment; + late _PrivacyForm _savedForm; + + @override + void initState() { + super.initState(); + final connector = context.read(); + _advertLocation = connector.advertLocationPolicy != 0; + _autoZeroHopAdvert = context + .read() + .settings + .autoSendZeroHopAdvertOnGpsUpdate; + _multiAcks = connector.multiAcks; + _telemetryBase = connector.telemetryModeBase; + _telemetryLocation = connector.telemetryModeLoc; + _telemetryEnvironment = connector.telemetryModeEnv; + _savedForm = _form; + } + + _PrivacyForm get _form => ( + advertLocation: _advertLocation, + autoZeroHopAdvert: _autoZeroHopAdvert, + multiAcks: _multiAcks, + telemetryBase: _telemetryBase, + telemetryLocation: _telemetryLocation, + telemetryEnvironment: _telemetryEnvironment, + ); + + Future _save() async { + final l10n = context.l10n; + final connector = context.read(); + final settingsService = context.read(); + final form = _form; + await connector.setTelemetryModeBase( + form.telemetryBase, + form.telemetryLocation, + form.telemetryEnvironment, + form.advertLocation ? 1 : 0, + form.multiAcks, + ); + await settingsService.setAutoSendZeroHopAdvertOnGpsUpdate( + form.autoZeroHopAdvert, + ); + await connector.refreshDeviceInfo(); + if (!mounted) return true; + setState(() => _savedForm = form); + showDismissibleSnackBar( + context, + content: Text(l10n.settings_telemetryModeUpdated), + ); + return true; + } + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + const switchPadding = EdgeInsets.symmetric(horizontal: 16, vertical: 4); + return SaveToRadioPage( + title: l10n.settings_privacy, + hasChanges: _form != _savedForm, + onSave: _save, + children: [ + const SizedBox(height: 8), + MeshInfoCard(l10n.settings_privacySettingsDescription), + SectionHeader(l10n.settings_location), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + SwitchListTile( + contentPadding: switchPadding, + // Same icon as the Location row in Settings. + secondary: const Icon(Icons.location_on_outlined, size: 24), + title: Text(l10n.settings_advertLocation), + subtitle: Text(l10n.settings_advertLocationSubtitle), + value: _advertLocation, + onChanged: (value) => setState(() => _advertLocation = value), + ), + SettingsReveal( + visible: _advertLocation, + children: [ + SwitchListTile( + contentPadding: switchPadding, + // Same icon as the zero-hop advert action in Contacts. + secondary: const Icon( + Icons.connect_without_contact, + size: 24, + ), + title: Text(l10n.settings_autoZeroHopAdvertOnGpsUpdate), + subtitle: Text( + l10n.settings_autoZeroHopAdvertOnGpsUpdateSubtitle, + ), + value: _autoZeroHopAdvert, + onChanged: (value) => + setState(() => _autoZeroHopAdvert = value), + ), + ], + ), + ], + ), + ), + SectionHeader(l10n.appSettings_messaging), + MeshCard( + padding: EdgeInsets.zero, + child: SwitchListTile( + contentPadding: switchPadding, + // Double form of the delivered tick used in chats. + secondary: const Icon(Icons.done_all, size: 24), + title: Text(l10n.settings_multiAck), + subtitle: Text(l10n.settings_multiAckSubtitle), + value: _multiAcks == 1, + onChanged: (value) => setState(() => _multiAcks = value ? 1 : 0), + ), + ), + SectionHeader(l10n.contact_telemetry), + MeshInfoCard(l10n.settings_telemetryPerContactHint), + MeshCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _telemetryField( + label: l10n.settings_telemetryBaseMode, + value: _telemetryBase, + onChanged: (value) => _telemetryBase = value, + ), + const SizedBox(height: 16), + _telemetryField( + label: l10n.settings_telemetryLocationMode, + value: _telemetryLocation, + onChanged: (value) => _telemetryLocation = value, + ), + const SizedBox(height: 16), + _telemetryField( + label: l10n.settings_telemetryEnvironmentMode, + value: _telemetryEnvironment, + onChanged: (value) => _telemetryEnvironment = value, + ), + ], + ), + ), + ], + ); + } + + Widget _telemetryField({ + required String label, + required int value, + required ValueChanged onChanged, + }) { + final l10n = context.l10n; + DropdownMenuItem item(int mode, String text) => DropdownMenuItem( + value: mode, + child: Text(text, maxLines: 1, overflow: TextOverflow.ellipsis), + ); + return DropdownButtonFormField( + initialValue: value, + isExpanded: true, + decoration: InputDecoration(labelText: label), + items: [ + item(teleModeDeny, l10n.settings_denyAll), + item(teleModeAllowFlags, l10n.settings_allowByContact), + item(teleModeAllowAll, l10n.settings_allowAll), + ], + onChanged: (mode) { + if (mode != null) setState(() => onChanged(mode)); + }, + ); + } +} diff --git a/lib/widgets/radio_settings_dialog.dart b/lib/screens/radio_settings_screen.dart similarity index 67% rename from lib/widgets/radio_settings_dialog.dart rename to lib/screens/radio_settings_screen.dart index a248bafc..21a348e4 100644 --- a/lib/widgets/radio_settings_dialog.dart +++ b/lib/screens/radio_settings_screen.dart @@ -8,7 +8,10 @@ import '../helpers/snack_bar_builder.dart'; import '../l10n/l10n.dart'; import '../models/radio_settings.dart'; import '../services/app_debug_log_service.dart'; -import '../utils/radio_guard.dart'; +import '../theme/mesh_theme.dart'; +import '../theme/theme_icons.dart'; +import '../widgets/mesh_ui.dart'; +import '../widgets/unsaved_changes_guard.dart'; /// Convert device coding-rate value (1-4 on some firmware, 5-8 on others) /// to the UI enum range (always 5-8). @@ -31,19 +34,29 @@ bool _isAllowedRepeatFreqKHz(MeshCoreConnector connector, int freqKHz) { /// Lowest TX power companion firmware accepts (CMD_SET_RADIO_TX_POWER). const int _minTxPowerDbm = -9; -/// Radio parameter editor (preset, frequency, bandwidth, SF, CR, TX power, -/// path-hash size and off-grid client repeat). Stays open when the radio -/// rejects or fails to apply the settings so the user's edits are not lost. -class RadioSettingsDialog extends StatefulWidget { +/// Form values compared to detect unsaved edits. Numbers are compared parsed +/// ("869.6" equals "869.600"). +typedef _RadioForm = ({ + Object frequency, + LoRaBandwidth bandwidth, + LoRaSpreadingFactor spreadingFactor, + LoRaCodingRate codingRate, + Object txPower, + bool clientRepeat, + int pathHashByteWidth, +}); + +/// Radio parameters, sent on Save. Edits stay if the radio rejects them. +class RadioSettingsScreen extends StatefulWidget { final MeshCoreConnector connector; - const RadioSettingsDialog({super.key, required this.connector}); + const RadioSettingsScreen({super.key, required this.connector}); @override - State createState() => _RadioSettingsDialogState(); + State createState() => _RadioSettingsScreenState(); } -class _RadioSettingsDialogState extends State { +class _RadioSettingsScreenState extends State { final _frequencyController = TextEditingController(); LoRaBandwidth _bandwidth = LoRaBandwidth.bw125; LoRaSpreadingFactor _spreadingFactor = LoRaSpreadingFactor.sf7; @@ -55,6 +68,7 @@ class _RadioSettingsDialogState extends State { _RadioSettingsSnapshot? _lastNonRepeatSnapshot; String? _frequencyError; String? _txPowerError; + late _RadioForm _savedForm; bool get _supportsPathHashMode => widget.connector.supportsPathHashMode; @@ -123,12 +137,32 @@ class _RadioSettingsDialogState extends State { } else { _lastNonRepeatSnapshot = _nonRepeatSnapshotForCurrentSelection(); } + _savedForm = _currentForm(); WidgetsBinding.instance.addPostFrameCallback((_) { if (!mounted) return; - _logRadioSettingsState('Dialog initialized'); + _logRadioSettingsState('Page initialized'); }); } + _RadioForm _currentForm() { + final frequencyText = _frequencyController.text.trim(); + final frequencyMHz = double.tryParse(frequencyText); + final txPowerText = _txPowerController.text.trim(); + return ( + frequency: frequencyMHz == null + ? frequencyText + : (frequencyMHz * 1000).round(), + bandwidth: _bandwidth, + spreadingFactor: _spreadingFactor, + codingRate: _codingRate, + txPower: int.tryParse(txPowerText) ?? txPowerText, + clientRepeat: _clientRepeat, + pathHashByteWidth: _pathHashByteWidth, + ); + } + + bool get _hasChanges => _currentForm() != _savedForm; + @override void dispose() { _frequencyController.dispose(); @@ -382,8 +416,8 @@ class _RadioSettingsDialogState extends State { _logRadioSettingsState('Off-grid repeat toggle applied'); } - Future _saveSettings() async { - if (!ensureRadioConnected(context)) return; + /// Returns whether the radio applied every change. + Future _saveSettings() async { final l10n = context.l10n; final freqMHz = double.tryParse(_frequencyController.text); final txPower = int.tryParse(_txPowerController.text); @@ -393,7 +427,7 @@ class _RadioSettingsDialogState extends State { context, content: Text(l10n.settings_frequencyInvalid), ); - return; + return false; } final maxTxPower = widget.connector.maxTxPower ?? 22; @@ -404,7 +438,7 @@ class _RadioSettingsDialogState extends State { l10n.settings_txPowerInvalidRange(_minTxPowerDbm, maxTxPower), ), ); - return; + return false; } final freqHz = (freqMHz * 1000).round(); @@ -422,7 +456,7 @@ class _RadioSettingsDialogState extends State { context, content: Text(l10n.settings_clientRepeatFreqWarning), ); - return; + return false; } } @@ -437,12 +471,12 @@ class _RadioSettingsDialogState extends State { ); if (!accepted) { _logRadioSettingsState('Radio rejected requested settings'); - if (!mounted) return; + if (!mounted) return false; showDismissibleSnackBar( context, content: Text(l10n.settings_radioSettingsNotApplied), ); - return; + return false; } await widget.connector.sendFrame(buildSetRadioTxPowerFrame(txPower)); // setPathHashMode updates the local width optimistically; the refreshed @@ -485,23 +519,23 @@ class _RadioSettingsDialogState extends State { ); if (!radioApplied) { _logRadioSettingsState('Radio did not apply requested settings'); - if (!mounted) return; + if (!mounted) return false; showDismissibleSnackBar( context, content: Text(l10n.settings_radioSettingsNotApplied), ); - return; + return false; } if (!pathHashApplied) { // Radio params and TX power were already applied; only the path // hash size is outstanding, so say that rather than a generic error. _logRadioSettingsState('Radio did not apply requested path hash size'); - if (!mounted) return; + if (!mounted) return false; showDismissibleSnackBar( context, content: Text(l10n.settings_pathHashModeNotApplied), ); - return; + return false; } final rememberedSnapshot = _clientRepeat ? _lastNonRepeatSnapshot @@ -512,22 +546,23 @@ class _RadioSettingsDialogState extends State { ); } - if (!mounted) return; + if (!mounted) return true; _logRadioSettingsState('Radio settings saved successfully'); + setState(() => _savedForm = _currentForm()); showDismissibleSnackBar( context, content: Text(l10n.settings_radioSettingsUpdated), ); - Navigator.pop(context); + return true; } catch (e) { _appLog.warn('Radio settings save failed: $e', tag: 'RadioSettings'); - if (!mounted) return; - // Keep the dialog open, like the rejected/not-applied paths, so the - // user's edits survive a transient failure and can be retried. + if (!mounted) return false; + // Keep the edits so the user can retry. showDismissibleSnackBar( context, content: Text(l10n.settings_error(e.toString())), ); + return false; } } @@ -590,231 +625,262 @@ class _RadioSettingsDialogState extends State { @override Widget build(BuildContext context) { final l10n = context.l10n; - return AlertDialog( - title: Text(l10n.settings_radioSettings), - content: SingleChildScrollView( - child: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - DropdownButtonFormField( - key: ValueKey(_selectedPresetIndex), - initialValue: _selectedPresetIndex ?? -1, - isExpanded: true, - decoration: InputDecoration( - labelText: l10n.settings_presets, - border: const OutlineInputBorder(), - ), - items: [ - if (_selectedPresetIndex == null) - DropdownMenuItem( - value: -1, - child: Text(l10n.settings_presetCustom), - ), - for (final i in _visiblePresetIndexes()) - DropdownMenuItem( - value: i, - child: Text( - RadioSettings.presets[i].$1, - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), + return SaveToRadioPage( + title: l10n.settings_radioSettings, + hasChanges: _hasChanges, + canSave: _frequencyError == null && _txPowerError == null, + onSave: _saveSettings, + children: [ + SectionHeader(l10n.settings_radioParameters), + MeshCard(child: _buildPresetField(context)), + MeshCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: _buildParameterFields(context), + ), + ), + if (widget.connector.clientRepeat != null) ...[ + SectionHeader(l10n.settings_clientRepeat), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _offGridText(context, l10n.settings_clientRepeatDescription), + const Divider(height: 1, indent: 16, endIndent: 16), + SwitchListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, ), + secondary: const ThemedIcon(ThemeIconSlot.repeater, size: 24), + title: Text(l10n.settings_clientRepeatSwitch), + value: _clientRepeat, + onChanged: _handleClientRepeatChanged, + ), + const Divider(height: 1, indent: 16, endIndent: 16), + _offGridText(context, l10n.settings_clientRepeatNote), ], - onChanged: (index) { - if (index != null && index >= 0) { - _applyPreset(index); - } - }, ), - const SizedBox(height: 16), - TextField( - controller: _frequencyController, - onChanged: (_) => _handleManualSettingsChanged('frequency'), - decoration: InputDecoration( - labelText: l10n.settings_frequency, - border: const OutlineInputBorder(), - helperText: _clientRepeat - ? l10n.settings_clientRepeatFrequencyNote( - _frequencyController.text, - ) - : l10n.settings_frequencyHelper, - errorText: _frequencyError, - ), - keyboardType: const TextInputType.numberWithOptions( - decimal: true, - ), - ), - const SizedBox(height: 16), - DropdownButtonFormField( - isExpanded: true, - initialValue: _bandwidth, - decoration: InputDecoration( - labelText: l10n.settings_bandwidth, - border: const OutlineInputBorder(), - ), - items: LoRaBandwidth.values - .map( - (bw) => DropdownMenuItem( - value: bw, - child: Text(bw.label, overflow: TextOverflow.ellipsis), - ), - ) - .toList(), - onChanged: (value) { - if (value != null) { - setState(() { - _bandwidth = value; - _syncPresetSelection(); - }); - _logRadioSettingsState('Manual settings edit: bandwidth'); - } - }, - ), - const SizedBox(height: 16), - DropdownButtonFormField( - isExpanded: true, - initialValue: _spreadingFactor, - decoration: InputDecoration( - labelText: l10n.settings_spreadingFactor, - border: const OutlineInputBorder(), - ), - items: LoRaSpreadingFactor.values - .map( - (sf) => DropdownMenuItem( - value: sf, - child: Text(sf.label, overflow: TextOverflow.ellipsis), - ), - ) - .toList(), - onChanged: (value) { - if (value != null) { - setState(() { - _spreadingFactor = value; - _syncPresetSelection(); - }); - _logRadioSettingsState( - 'Manual settings edit: spreading factor', - ); - } - }, - ), - const SizedBox(height: 16), - DropdownButtonFormField( - isExpanded: true, - initialValue: _codingRate, - decoration: InputDecoration( - labelText: l10n.settings_codingRate, - border: const OutlineInputBorder(), - ), - items: LoRaCodingRate.values - .map( - (cr) => DropdownMenuItem( - value: cr, - child: Text(cr.label, overflow: TextOverflow.ellipsis), - ), - ) - .toList(), - onChanged: (value) { - if (value != null) { - setState(() { - _codingRate = value; - _syncPresetSelection(); - }); - _logRadioSettingsState('Manual settings edit: coding rate'); - } - }, - ), - const SizedBox(height: 16), - if (_supportsPathHashMode) ...[ - // Values are path hash modes (0-2, byte width - 1), matching - // the selectors in settings_screen and repeater_settings_screen. - DropdownButtonFormField( - isExpanded: true, - initialValue: (_pathHashByteWidth - 1).clamp(0, 2).toInt(), - decoration: InputDecoration( - labelText: l10n.repeater_pathHashMode, - helperText: l10n.settings_pathHashModeHelper, - helperMaxLines: 5, - border: const OutlineInputBorder(), - ), - items: [ - DropdownMenuItem( - value: 0, - child: Text( - l10n.repeater_pathHashModeOption0, - overflow: TextOverflow.ellipsis, - ), - ), - DropdownMenuItem( - value: 1, - child: Text( - l10n.repeater_pathHashModeOption1, - overflow: TextOverflow.ellipsis, - ), - ), - DropdownMenuItem( - value: 2, - child: Text( - l10n.repeater_pathHashModeOption2, - overflow: TextOverflow.ellipsis, - ), - ), - ], - onChanged: (value) { - if (value == null) return; - setState(() => _pathHashByteWidth = value + 1); - _logRadioSettingsState( - 'Manual settings edit: path hash size', - ); - }, - ), - const SizedBox(height: 16), - ], - TextField( - controller: _txPowerController, - onChanged: (_) => _handleManualSettingsChanged('tx power'), - decoration: InputDecoration( - labelText: l10n.settings_txPower, - border: const OutlineInputBorder(), - helperText: l10n.settings_txPowerRangeHelper( - _minTxPowerDbm, - widget.connector.maxTxPower ?? 22, - ), - errorText: _txPowerError, - ), - keyboardType: TextInputType.number, - ), - if (widget.connector.clientRepeat != null) ...[ - const SizedBox(height: 16), - SwitchListTile( - title: Text(l10n.settings_clientRepeat), - subtitle: Text(l10n.settings_clientRepeatSubtitle), - value: _clientRepeat, - onChanged: _handleClientRepeatChanged, - contentPadding: EdgeInsets.zero, - ), - ], - const SizedBox(height: 16), - Text( - l10n.settings_radioMatchWarning, - style: Theme.of(context).textTheme.bodyMedium, - ), - ], + ), + ], + ], + ); + } + + /// Explanation text in the Off-Grid card, styled like tile subtitles. + Widget _offGridText(BuildContext context, String text) { + final theme = Theme.of(context); + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14), + child: Text( + text, + style: theme.textTheme.bodyMedium?.copyWith( + color: theme.colorScheme.onSurfaceVariant, ), ), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), + ); + } + + Widget _buildPresetField(BuildContext context) { + final l10n = context.l10n; + return DropdownButtonFormField( + key: ValueKey(_selectedPresetIndex), + initialValue: _selectedPresetIndex ?? -1, + isExpanded: true, + decoration: InputDecoration(labelText: l10n.settings_presets), + items: [ + if (_selectedPresetIndex == null) + DropdownMenuItem(value: -1, child: Text(l10n.settings_presetCustom)), + for (final i in _visiblePresetIndexes()) + DropdownMenuItem( + value: i, + child: Text( + RadioSettings.presets[i].$1, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + ), + ], + onChanged: (index) { + if (index != null && index >= 0) { + _applyPreset(index); + } + }, + ); + } + + List _buildParameterFields(BuildContext context) { + final l10n = context.l10n; + return [ + TextField( + controller: _frequencyController, + onTapOutside: (_) => FocusScope.of(context).unfocus(), + onChanged: (_) => _handleManualSettingsChanged('frequency'), + decoration: InputDecoration( + labelText: l10n.settings_frequency, + helperText: _clientRepeat + ? l10n.settings_clientRepeatFrequencyNote( + _frequencyController.text, + ) + : l10n.settings_frequencyHelper, + helperMaxLines: 3, + errorText: _frequencyError, + errorMaxLines: 3, ), - FilledButton( - onPressed: (_frequencyError != null || _txPowerError != null) - ? null - : _saveSettings, - child: Text(l10n.common_save), + keyboardType: const TextInputType.numberWithOptions(decimal: true), + ), + const SizedBox(height: 16), + DropdownButtonFormField( + isExpanded: true, + initialValue: _bandwidth, + decoration: InputDecoration(labelText: l10n.settings_bandwidth), + items: LoRaBandwidth.values + .map( + (bw) => DropdownMenuItem( + value: bw, + child: Text(bw.label, overflow: TextOverflow.ellipsis), + ), + ) + .toList(), + onChanged: (value) { + if (value != null) { + setState(() { + _bandwidth = value; + _syncPresetSelection(); + }); + _logRadioSettingsState('Manual settings edit: bandwidth'); + } + }, + ), + const SizedBox(height: 16), + DropdownButtonFormField( + isExpanded: true, + initialValue: _spreadingFactor, + decoration: InputDecoration(labelText: l10n.settings_spreadingFactor), + items: LoRaSpreadingFactor.values + .map( + (sf) => DropdownMenuItem( + value: sf, + child: Text(sf.label, overflow: TextOverflow.ellipsis), + ), + ) + .toList(), + onChanged: (value) { + if (value != null) { + setState(() { + _spreadingFactor = value; + _syncPresetSelection(); + }); + _logRadioSettingsState('Manual settings edit: spreading factor'); + } + }, + ), + const SizedBox(height: 16), + DropdownButtonFormField( + isExpanded: true, + initialValue: _codingRate, + decoration: InputDecoration(labelText: l10n.settings_codingRate), + items: LoRaCodingRate.values + .map( + (cr) => DropdownMenuItem( + value: cr, + child: Text(cr.label, overflow: TextOverflow.ellipsis), + ), + ) + .toList(), + onChanged: (value) { + if (value != null) { + setState(() { + _codingRate = value; + _syncPresetSelection(); + }); + _logRadioSettingsState('Manual settings edit: coding rate'); + } + }, + ), + const SizedBox(height: 16), + TextField( + controller: _txPowerController, + onTapOutside: (_) => FocusScope.of(context).unfocus(), + onChanged: (_) => _handleManualSettingsChanged('tx power'), + decoration: InputDecoration( + labelText: l10n.settings_txPower, + helperText: l10n.settings_txPowerRangeHelper( + _minTxPowerDbm, + widget.connector.maxTxPower ?? 22, + ), + helperMaxLines: 3, + errorText: _txPowerError, + errorMaxLines: 3, + ), + keyboardType: TextInputType.number, + ), + if (_supportsPathHashMode) ...[ + const SizedBox(height: 16), + _buildPathHashField(context), + ], + ]; + } + + /// The helper text, with the quoted example IDs ("ab12") in monospace like + /// other hashes. A widget helper has no line limit. + Widget _pathHashHelper(BuildContext context, String text) { + final theme = Theme.of(context); + final style = theme.textTheme.bodySmall?.copyWith( + color: theme.colorScheme.onSurfaceVariant, + ); + final mono = MeshTheme.mono(fontSize: style?.fontSize, color: style?.color); + final spans = []; + var last = 0; + for (final m in RegExp(r'"[^"\n]+"').allMatches(text)) { + spans.add(TextSpan(text: text.substring(last, m.start))); + spans.add(TextSpan(text: m[0], style: mono)); + last = m.end; + } + spans.add(TextSpan(text: text.substring(last))); + return Text.rich(TextSpan(style: style, children: spans)); + } + + Widget _buildPathHashField(BuildContext context) { + final l10n = context.l10n; + // Values are path hash modes (0-2, byte width - 1), matching the + // selector in repeater_settings_screen. + return DropdownButtonFormField( + isExpanded: true, + initialValue: (_pathHashByteWidth - 1).clamp(0, 2).toInt(), + decoration: InputDecoration( + labelText: l10n.repeater_pathHashMode, + helper: _pathHashHelper(context, l10n.settings_pathHashModeHelper), + ), + items: [ + DropdownMenuItem( + value: 0, + child: Text( + l10n.repeater_pathHashModeOption0, + overflow: TextOverflow.ellipsis, + ), + ), + DropdownMenuItem( + value: 1, + child: Text( + l10n.repeater_pathHashModeOption1, + overflow: TextOverflow.ellipsis, + ), + ), + DropdownMenuItem( + value: 2, + child: Text( + l10n.repeater_pathHashModeOption2, + overflow: TextOverflow.ellipsis, + ), ), ], + onChanged: (value) { + if (value == null) return; + setState(() => _pathHashByteWidth = value + 1); + _logRadioSettingsState('Manual settings edit: path hash size'); + }, ); } } diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index 1be0b39f..fb4bd1f4 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -1,22 +1,23 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:meshcore_open/widgets/elements_ui.dart'; import 'package:provider/provider.dart'; -import 'package:package_info_plus/package_info_plus.dart'; import '../connector/meshcore_connector.dart'; import '../connector/meshcore_protocol.dart'; import '../l10n/l10n.dart'; -import '../services/app_settings_service.dart'; import '../theme/mesh_theme.dart'; -import '../widgets/app_bar.dart'; import '../helpers/snack_bar_builder.dart'; -import '../helpers/utf8_length_limiter.dart'; import '../widgets/mesh_nav_tile.dart'; +import '../widgets/adaptive_app_bar_title.dart'; import '../widgets/mesh_ui.dart'; import '../widgets/settings_reveal.dart'; -import '../widgets/radio_settings_dialog.dart'; +import 'about_screen.dart'; import 'app_settings_screen.dart'; +import 'contact_settings_screen.dart'; +import 'location_settings_screen.dart'; +import 'node_name_screen.dart'; +import 'privacy_settings_screen.dart'; +import 'radio_settings_screen.dart'; import 'app_debug_log_screen.dart'; import 'message_filter_settings_screen.dart'; import 'ble_debug_log_screen.dart'; @@ -38,20 +39,8 @@ class SettingsScreen extends StatefulWidget { class _SettingsScreenState extends State { bool _showBatteryVoltage = false; bool _deviceInfoExpanded = false; - String _appVersion = ''; - - @override - void initState() { - super.initState(); - _loadVersionInfo(); - } - - Future _loadVersionInfo() async { - final packageInfo = await PackageInfo.fromPlatform(); - if (!mounted) return; - setState(() { - _appVersion = '${packageInfo.version} BETA'; - }); + void _push(BuildContext context, Widget page) { + Navigator.push(context, MaterialPageRoute(builder: (_) => page)); } @override @@ -59,11 +48,8 @@ class _SettingsScreenState extends State { final l10n = context.l10n; return Scaffold( appBar: AppBar( - title: AppBarTitle( - l10n.settings_title, - indicators: false, - subtitle: false, - ), + // A plain title: AppBarTitle fills the bar and stays left-aligned. + title: AdaptiveAppBarTitle(l10n.settings_title), centerTitle: true, bottom: const SyncProgressAppBarBottom(), ), @@ -186,7 +172,7 @@ class _SettingsScreenState extends State { const Divider(height: 1, indent: 16), MeshNavTile( icon: Icons.download_outlined, - title: l10n.settings_export, + title: l10n.settings_exportData, subtitle: l10n.settings_exportSubtitle, onTap: () => Navigator.push( context, @@ -210,12 +196,8 @@ class _SettingsScreenState extends State { padding: EdgeInsets.zero, child: MeshNavTile( icon: Icons.info_outline, - title: l10n.settings_about, - subtitle: l10n.settings_aboutVersion( - _appVersion.isEmpty ? l10n.common_loading : _appVersion, - ), - showChevron: false, - onTap: () => _showAbout(context), + title: l10n.settings_aboutTheApp, + onTap: () => _push(context, const AboutScreen()), ), ), ], @@ -549,7 +531,9 @@ class _SettingsScreenState extends State { subtitle: connected ? connector.selfName ?? l10n.settings_nodeNameNotSet : offline, - onTap: connected ? () => _editNodeName(context, connector) : null, + onTap: connected + ? () => _push(context, const NodeNameScreen()) + : null, ), const Divider(height: 1, indent: 16), MeshNavTile( @@ -557,7 +541,7 @@ class _SettingsScreenState extends State { title: l10n.settings_radioSettings, subtitle: connected ? l10n.settings_radioSettingsSubtitle : offline, onTap: connected - ? () => _showRadioSettings(context, connector) + ? () => _push(context, RadioSettingsScreen(connector: connector)) : null, ), const Divider(height: 1, indent: 16), @@ -606,7 +590,9 @@ class _SettingsScreenState extends State { icon: Icons.location_on_outlined, title: l10n.settings_location, subtitle: connected ? l10n.settings_locationSubtitle : offline, - onTap: connected ? () => _editLocation(context, connector) : null, + onTap: connected + ? () => _push(context, const LocationSettingsScreen()) + : null, ), const Divider(height: 1, indent: 16), MeshNavTile( @@ -614,7 +600,7 @@ class _SettingsScreenState extends State { title: l10n.settings_contactSettings, subtitle: connected ? l10n.settings_contactSettingsSubtitle : offline, onTap: connected - ? () => _editAutoAddConfig(context, connector) + ? () => _push(context, const ContactSettingsScreen()) : null, ), const Divider(height: 1, indent: 16), @@ -622,7 +608,9 @@ class _SettingsScreenState extends State { icon: Icons.visibility_off_outlined, title: l10n.settings_privacy, subtitle: connected ? l10n.settings_privacySubtitle : offline, - onTap: connected ? () => _privacySettings(context, connector) : null, + onTap: connected + ? () => _push(context, const PrivacySettingsScreen()) + : null, ), ], ); @@ -707,105 +695,6 @@ class _SettingsScreenState extends State { ); } - Future _editNodeName( - BuildContext context, - MeshCoreConnector connector, - ) async { - final l10n = context.l10n; - final name = await showDialog( - context: context, - builder: (_) => _NodeNameDialog(initialName: connector.selfName ?? ''), - ); - if (name == null || !context.mounted) return; - if (!_ensureConnected(context, connector)) return; - try { - await connector.setNodeName(name); - await connector.refreshDeviceInfo(); - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(l10n.settings_nodeNameUpdated), - ); - } catch (e) { - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(l10n.settings_error(e.toString())), - ); - } - } - - void _showRadioSettings(BuildContext context, MeshCoreConnector connector) { - showDialog( - context: context, - builder: (context) => RadioSettingsDialog(connector: connector), - ); - } - - Future _editLocation( - BuildContext context, - MeshCoreConnector connector, - ) async { - final l10n = context.l10n; - final settingsService = context.read(); - - // Safe access to custom vars - may be null before device responds - final customVars = connector.currentCustomVars ?? {}; - final bool hasGPS = customVars.containsKey("gps"); - final bool initialGPSEnabled = customVars["gps"] == "1"; - - final edit = await showDialog<_LocationEdit>( - context: context, - builder: (_) => _LocationDialog( - latitude: connector.selfLatitude, - longitude: connector.selfLongitude, - hasGPS: hasGPS, - initialGPSEnabled: initialGPSEnabled, - initialIntervalSeconds: settingsService.resolvedGpsIntervalSeconds( - customVars, - ), - ), - ); - if (edit == null || !edit.hasChanges || !context.mounted) return; - if (!_ensureConnected(context, connector)) return; - - try { - final gpsEnabled = edit.gpsEnabled; - if (gpsEnabled != null) { - await connector.setCustomVar(gpsEnabled ? "gps:1" : "gps:0"); - } - final interval = edit.intervalSeconds; - if (interval != null) { - await settingsService.setGpsIntervalSeconds( - interval, - writeToDevice: (value) => - connector.setCustomVar("gps_interval:$value"), - ); - } - final lat = edit.latitude; - final lon = edit.longitude; - if (lat != null && lon != null) { - await connector.setNodeLocation(lat: lat, lon: lon); - } - await connector.refreshDeviceInfo(); - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text( - edit.clearsLocation - ? l10n.settings_locationCleared - : l10n.settings_locationUpdated, - ), - ); - } catch (e) { - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(l10n.settings_error(e.toString())), - ); - } - } - Future _syncTime( BuildContext context, MeshCoreConnector connector, @@ -886,671 +775,4 @@ class _SettingsScreenState extends State { ), ); } - - void _showAbout(BuildContext context) { - final l10n = context.l10n; - showAboutDialog( - context: context, - applicationName: l10n.appTitle, - applicationVersion: _appVersion.isEmpty - ? l10n.common_loading - : _appVersion, - applicationLegalese: l10n.settings_aboutLegalese, - children: [ - const SizedBox(height: 16), - Text(l10n.settings_aboutDescription), - ], - ); - } - - void _editAutoAddConfig(BuildContext context, MeshCoreConnector connector) { - final l10n = context.l10n; - // The dialog's context is gone once it pops; report through the screen. - final screenContext = context; - bool autoAddChat = false; - bool autoAddRepeater = false; - bool autoAddRoomServer = false; - bool autoAddSensor = false; - bool overwriteOldest = false; - final appSettingsService = context.read(); - bool evictDiscoveredContactsEnabled = - appSettingsService.settings.evictDiscoveredContactsEnabled; - bool saving = false; - - final connector = context.read(); - autoAddChat = connector.autoAddUsers ?? false; - autoAddRepeater = connector.autoAddRepeaters ?? false; - autoAddRoomServer = connector.autoAddRoomServers ?? false; - autoAddSensor = connector.autoAddSensors ?? false; - overwriteOldest = connector.autoAddOverwriteOldest ?? false; - - showDialog( - context: context, - builder: (dialogContext) => StatefulBuilder( - builder: (context, setDialogState) => AlertDialog( - title: Text(l10n.contactsSettings_autoAddTitle), - content: SingleChildScrollView( - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - FeatureToggleRow( - title: l10n.contactsSettings_autoAddUsersTitle, - subtitle: l10n.contactsSettings_autoAddUsersSubtitle, - value: autoAddChat, - onChanged: (value) { - setDialogState(() => autoAddChat = value); - }, - ), - const SizedBox(height: 8), - FeatureToggleRow( - title: l10n.contactsSettings_autoAddRepeatersTitle, - subtitle: l10n.contactsSettings_autoAddRepeatersSubtitle, - value: autoAddRepeater, - onChanged: (value) { - setDialogState(() => autoAddRepeater = value); - }, - ), - const SizedBox(height: 8), - FeatureToggleRow( - title: l10n.contactsSettings_autoAddRoomServersTitle, - subtitle: l10n.contactsSettings_autoAddRoomServersSubtitle, - value: autoAddRoomServer, - onChanged: (value) { - setDialogState(() => autoAddRoomServer = value); - }, - ), - const SizedBox(height: 8), - FeatureToggleRow( - title: l10n.contactsSettings_autoAddSensorsTitle, - subtitle: l10n.contactsSettings_autoAddSensorsSubtitle, - value: autoAddSensor, - onChanged: (value) { - setDialogState(() => autoAddSensor = value); - }, - ), - const Divider(height: 4), - FeatureToggleRow( - title: l10n.contactsSettings_overwriteOldestTitle, - subtitle: l10n.contactsSettings_overwriteOldestSubtitle, - value: overwriteOldest, - onChanged: (value) { - setDialogState(() => overwriteOldest = value); - }, - ), - const Divider(height: 4), - FeatureToggleRow( - title: l10n.contactsSettings_evictDiscoveredContactsTitle, - subtitle: l10n - .contactsSettings_evictDiscoveredContactsSubtitle( - MeshCoreConnector.maxDiscoveredContacts, - ), - value: evictDiscoveredContactsEnabled, - onChanged: (value) { - setDialogState( - () => evictDiscoveredContactsEnabled = value, - ); - }, - ), - ], - ), - ), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), - ), - TextButton( - onPressed: saving - ? null - : () async { - if (!_ensureConnected(context, connector)) return; - setDialogState(() => saving = true); - try { - await _sendSettings( - connector, - autoAddChat, - autoAddRepeater, - autoAddRoomServer, - autoAddSensor, - overwriteOldest, - ); - await appSettingsService - .setEvictDiscoveredContactsEnabled( - evictDiscoveredContactsEnabled, - ); - if (evictDiscoveredContactsEnabled) { - await connector.trimDiscoveredContactsToLimit(); - } - } catch (e) { - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(l10n.settings_error(e.toString())), - ); - setDialogState(() => saving = false); - return; - } - if (!context.mounted) return; - Navigator.pop(context); - showDismissibleSnackBar( - screenContext, - content: Text(l10n.settings_contactSettingsSaved), - ); - }, - child: Text(l10n.common_save), - ), - ], - ), - ), - ); - } - - Future _sendSettings( - MeshCoreConnector connector, - bool autoAddChat, - bool autoAddRepeater, - bool autoAddRoomServer, - bool autoAddSensor, - bool overwriteOldest, - ) async { - final frame = buildSetAutoAddConfigFrame( - autoAddChat: autoAddChat, - autoAddRepeater: autoAddRepeater, - autoAddRoomServer: autoAddRoomServer, - autoAddSensor: autoAddSensor, - overwriteOldest: overwriteOldest, - ); - await connector.sendFrame(frame); - await connector.sendFrame(buildGetAutoAddFlagsFrame()); - } -} - -void _privacySettings(BuildContext context, MeshCoreConnector connector) { - final l10n = context.l10n; - final settingsService = context.read(); - - int telemetryMode = connector.telemetryModeBase; - int telemetryLocMode = connector.telemetryModeLoc; - int telemetryEnvMode = connector.telemetryModeEnv; - bool advertLocPolicy = connector.advertLocationPolicy == 0 ? false : true; - int multiAcks = connector.multiAcks; - bool autoZeroHopAdvertOnGpsUpdate = - settingsService.settings.autoSendZeroHopAdvertOnGpsUpdate; - - final telemModeBase = [ - DropdownMenuItem( - value: teleModeDeny, - child: Text( - l10n.settings_denyAll, - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - ), - DropdownMenuItem( - value: teleModeAllowFlags, - child: Text( - l10n.settings_allowByContact, - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - ), - DropdownMenuItem( - value: teleModeAllowAll, - child: Text( - l10n.settings_allowAll, - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - ), - ]; - - showDialog( - context: context, - builder: (dialogContext) => StatefulBuilder( - builder: (builderContext, setDialogState) => AlertDialog( - insetPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 24), - title: Text(l10n.settings_privacy), - content: SingleChildScrollView( - child: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text(l10n.settings_privacySettingsDescription), - const SizedBox(height: 16), - FeatureToggleRow( - title: l10n.settings_advertLocation, - subtitle: l10n.settings_advertLocationSubtitle, - value: advertLocPolicy, - onChanged: (value) { - setDialogState(() => advertLocPolicy = value); - }, - ), - const SizedBox(height: 8), - FeatureToggleRow( - title: l10n.settings_autoZeroHopAdvertOnGpsUpdate, - subtitle: l10n.settings_autoZeroHopAdvertOnGpsUpdateSubtitle, - value: autoZeroHopAdvertOnGpsUpdate, - enabled: advertLocPolicy, - onChanged: advertLocPolicy - ? (value) { - setDialogState( - () => autoZeroHopAdvertOnGpsUpdate = value, - ); - } - : null, - ), - const SizedBox(height: 8), - FeatureToggleRow( - title: l10n.settings_multiAck, - subtitle: l10n.settings_multiAckSubtitle, - value: multiAcks == 1, - onChanged: (value) { - setDialogState(() => multiAcks = value ? 1 : 0); - }, - ), - const SizedBox(height: 16), - DropdownButtonFormField( - initialValue: telemetryMode, - isExpanded: true, - decoration: InputDecoration( - labelText: l10n.settings_telemetryBaseMode, - border: const OutlineInputBorder(), - ), - items: telemModeBase, - onChanged: (value) { - if (value != null) { - setDialogState(() => telemetryMode = value); - } - }, - ), - const SizedBox(height: 16), - DropdownButtonFormField( - initialValue: telemetryLocMode, - isExpanded: true, - decoration: InputDecoration( - labelText: l10n.settings_telemetryLocationMode, - border: const OutlineInputBorder(), - ), - items: telemModeBase, - onChanged: (value) { - if (value != null) { - setDialogState(() => telemetryLocMode = value); - } - }, - ), - const SizedBox(height: 16), - DropdownButtonFormField( - initialValue: telemetryEnvMode, - isExpanded: true, - decoration: InputDecoration( - labelText: l10n.settings_telemetryEnvironmentMode, - border: const OutlineInputBorder(), - ), - items: telemModeBase, - onChanged: (value) { - if (value != null) { - setDialogState(() => telemetryEnvMode = value); - } - }, - ), - const SizedBox(height: 8), - Text( - l10n.settings_telemetryPerContactHint, - style: Theme.of(context).textTheme.bodyMedium, - ), - ], - ), - ), - actions: [ - TextButton( - onPressed: () => Navigator.pop(dialogContext), - child: Text(l10n.common_cancel), - ), - TextButton( - onPressed: () async { - Navigator.pop(dialogContext); - if (!connector.isConnected) { - showDismissibleSnackBar( - context, - content: Text(l10n.settings_notConnectedError), - ); - return; - } - try { - await connector.setTelemetryModeBase( - telemetryMode, - telemetryLocMode, - telemetryEnvMode, - advertLocPolicy ? 1 : 0, - multiAcks, - ); - await settingsService.setAutoSendZeroHopAdvertOnGpsUpdate( - autoZeroHopAdvertOnGpsUpdate, - ); - await connector.refreshDeviceInfo(); - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(l10n.settings_telemetryModeUpdated), - ); - } catch (e) { - if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(l10n.settings_error(e.toString())), - ); - } - }, - child: Text(l10n.common_save), - ), - ], - ), - ), - ); -} - -/// Node-name editor. Owns (and disposes) its controller; pops with the -/// trimmed name on Save, or null on Cancel. -class _NodeNameDialog extends StatefulWidget { - final String initialName; - - const _NodeNameDialog({required this.initialName}); - - @override - State<_NodeNameDialog> createState() => _NodeNameDialogState(); -} - -class _NodeNameDialogState extends State<_NodeNameDialog> { - late final TextEditingController _controller = TextEditingController( - text: widget.initialName, - ); - - @override - void dispose() { - _controller.dispose(); - super.dispose(); - } - - @override - Widget build(BuildContext context) { - final l10n = context.l10n; - return AlertDialog( - title: Text(l10n.settings_nodeName), - content: TextField( - controller: _controller, - decoration: InputDecoration( - hintText: l10n.settings_nodeNameHint, - border: const OutlineInputBorder(), - ), - inputFormatters: const [ - Utf8LengthLimitingTextInputFormatter(maxRadioNameBytes), - ], - ), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), - ), - ListenableBuilder( - listenable: _controller, - builder: (context, _) { - final name = _controller.text.trim(); - return TextButton( - onPressed: name.isEmpty - ? null - : () => Navigator.pop(context, name), - child: Text(l10n.common_save), - ); - }, - ), - ], - ); - } -} - -/// What the location dialog asks the screen to apply. Null fields are left -/// unchanged on the device. -class _LocationEdit { - final bool? gpsEnabled; - final int? intervalSeconds; - final double? latitude; - final double? longitude; - final bool clearsLocation; - - const _LocationEdit({ - this.gpsEnabled, - this.intervalSeconds, - this.latitude, - this.longitude, - this.clearsLocation = false, - }); - - bool get hasChanges => - gpsEnabled != null || - intervalSeconds != null || - (latitude != null && longitude != null); -} - -/// Location / GPS editor. Owns (and disposes) its controllers and validates -/// every field before closing, reporting each error under the field it -/// belongs to. -class _LocationDialog extends StatefulWidget { - final double? latitude; - final double? longitude; - final bool hasGPS; - final bool initialGPSEnabled; - final int initialIntervalSeconds; - - const _LocationDialog({ - required this.latitude, - required this.longitude, - required this.hasGPS, - required this.initialGPSEnabled, - required this.initialIntervalSeconds, - }); - - @override - State<_LocationDialog> createState() => _LocationDialogState(); -} - -class _LocationDialogState extends State<_LocationDialog> { - late final TextEditingController _latController; - late final TextEditingController _lonController; - late final TextEditingController _intervalController; - late bool _isGPSEnabled = widget.initialGPSEnabled; - String? _latError; - String? _lonError; - String? _intervalError; - - /// Firmware stores "no location" as 0,0 (the default for a fresh node), so - /// that pair is shown as empty fields rather than a real coordinate. - bool get _hasLocation { - final lat = widget.latitude; - final lon = widget.longitude; - return lat != null && lon != null && !(lat == 0 && lon == 0); - } - - @override - void initState() { - super.initState(); - _latController = TextEditingController( - text: _hasLocation ? widget.latitude!.toStringAsFixed(6) : '', - ); - _lonController = TextEditingController( - text: _hasLocation ? widget.longitude!.toStringAsFixed(6) : '', - ); - _intervalController = TextEditingController( - text: widget.initialIntervalSeconds.toString(), - ); - } - - @override - void dispose() { - _latController.dispose(); - _lonController.dispose(); - _intervalController.dispose(); - super.dispose(); - } - - void _save() { - final l10n = context.l10n; - // Validate every field before closing so a typo doesn't discard the - // input or leave half the changes applied. - int? interval; - String? intervalError; - if (widget.hasGPS) { - final intervalText = _intervalController.text.trim(); - if (intervalText.isNotEmpty) { - interval = int.tryParse(intervalText); - if (interval == null || interval < 60 || interval >= 86400) { - intervalError = l10n.settings_locationIntervalInvalid; - } - } - } - - final latText = _latController.text.trim(); - final lonText = _lonController.text.trim(); - double? lat; - double? lon; - String? latError; - String? lonError; - var clearsLocation = false; - if (latText.isEmpty && lonText.isEmpty) { - // Clearing both fields removes the location. Companion firmware has no - // dedicated "clear" command: CMD_SET_ADVERT_LATLON with 0,0 restores - // the factory default, which firmware and this app treat as unset. - if (_hasLocation) { - lat = 0; - lon = 0; - clearsLocation = true; - } - } else { - // One empty field keeps the device's current value for that axis. - lat = latText.isNotEmpty - ? double.tryParse(latText) - : (_hasLocation ? widget.latitude : null); - lon = lonText.isNotEmpty - ? double.tryParse(lonText) - : (_hasLocation ? widget.longitude : null); - if (lat == null) { - latError = latText.isEmpty - ? l10n.settings_locationBothRequired - : l10n.settings_locationInvalid; - } else if (lat < -90 || lat > 90) { - latError = l10n.settings_locationInvalid; - } - if (lon == null) { - lonError = lonText.isEmpty - ? l10n.settings_locationBothRequired - : l10n.settings_locationInvalid; - } else if (lon < -180 || lon > 180) { - lonError = l10n.settings_locationInvalid; - } - } - - if (intervalError != null || latError != null || lonError != null) { - setState(() { - _intervalError = intervalError; - _latError = latError; - _lonError = lonError; - }); - return; - } - - Navigator.pop( - context, - _LocationEdit( - gpsEnabled: widget.hasGPS && _isGPSEnabled != widget.initialGPSEnabled - ? _isGPSEnabled - : null, - intervalSeconds: interval, - latitude: lat, - longitude: lon, - clearsLocation: clearsLocation, - ), - ); - } - - @override - Widget build(BuildContext context) { - final l10n = context.l10n; - const coordinateKeyboard = TextInputType.numberWithOptions( - decimal: true, - signed: true, - ); - return AlertDialog( - title: Text(l10n.settings_location), - content: SingleChildScrollView( - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - TextField( - controller: _latController, - onChanged: (_) { - if (_latError != null) setState(() => _latError = null); - }, - decoration: InputDecoration( - labelText: l10n.settings_latitude, - border: const OutlineInputBorder(), - errorText: _latError, - errorMaxLines: 2, - ), - keyboardType: coordinateKeyboard, - ), - const SizedBox(height: 16), - TextField( - controller: _lonController, - onChanged: (_) { - if (_lonError != null) setState(() => _lonError = null); - }, - decoration: InputDecoration( - labelText: l10n.settings_longitude, - border: const OutlineInputBorder(), - helperText: l10n.settings_locationClearHelper, - helperMaxLines: 2, - errorText: _lonError, - errorMaxLines: 2, - ), - keyboardType: coordinateKeyboard, - ), - if (widget.hasGPS) ...[ - const SizedBox(height: 16), - TextField( - controller: _intervalController, - onChanged: (_) { - if (_intervalError != null) { - setState(() => _intervalError = null); - } - }, - decoration: InputDecoration( - labelText: l10n.settings_locationIntervalSec, - border: const OutlineInputBorder(), - errorText: _intervalError, - ), - keyboardType: const TextInputType.numberWithOptions( - decimal: false, - signed: false, - ), - ), - const SizedBox(height: 16), - FeatureToggleRow( - title: l10n.settings_locationGPSEnable, - subtitle: l10n.settings_locationGPSEnableSubtitle, - value: _isGPSEnabled, - // Applied on Save so Cancel leaves the device untouched. - onChanged: (value) => setState(() => _isGPSEnabled = value), - ), - ], - ], - ), - ), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), - ), - TextButton(onPressed: _save, child: Text(l10n.common_save)), - ], - ); - } } diff --git a/lib/utils/gpx_export.dart b/lib/utils/gpx_export.dart index 0a33fbae..0dcf54f4 100644 --- a/lib/utils/gpx_export.dart +++ b/lib/utils/gpx_export.dart @@ -119,6 +119,40 @@ class GpxExport { } } + /// The contacts added so far, in export order. + @visibleForTesting + List get contacts => List.unmodifiable(_contacts); + + /// The GPX document for the added contacts. + @visibleForTesting + String buildGpx(String name, String description) { + final gpx = Gpx() + ..version = '1.1' + ..creator = 'meshcore-open exporter' + ..metadata = Metadata( + name: name, + desc: description, + time: DateTime.now().toUtc(), + ); + + gpx.wpts = _contacts + .map( + (c) => Wpt( + lat: c.lat, + lon: c.lon, + ele: c.ele, + name: c.name, + desc: c.desc, + extensions: { + "meshcore": {"url": c.url}, + }, + ), + ) + .toList(); + + return GpxWriter().asString(gpx, pretty: true); + } + Future exportGPX( String name, String description, @@ -137,32 +171,7 @@ class GpxExport { } try { - // 1. Build GPX content (your existing logic – unchanged here) - final gpx = Gpx() - ..version = '1.1' - ..creator = 'meshcore-open exporter' - ..metadata = Metadata( - name: name, - desc: description, - time: DateTime.now().toUtc(), - ); - - gpx.wpts = _contacts - .map( - (c) => Wpt( - lat: c.lat, - lon: c.lon, - ele: c.ele, - name: c.name, - desc: c.desc, - extensions: { - "meshcore": {"url": c.url}, - }, - ), - ) - .toList(); - - final xml = GpxWriter().asString(gpx, pretty: true); + final xml = buildGpx(name, description); // 2. Save to file final timestamp = DateTime.now() diff --git a/lib/widgets/elements_ui.dart b/lib/widgets/elements_ui.dart deleted file mode 100644 index f77b90a6..00000000 --- a/lib/widgets/elements_ui.dart +++ /dev/null @@ -1,112 +0,0 @@ -import 'package:flutter/material.dart'; - -class FeatureToggleRow extends StatefulWidget { - final String title; - final String subtitle; - final bool value; - final bool enabled; - final bool hasRefreshing; - final bool isRefreshing; - final ValueChanged? onChanged; - final VoidCallback? onRefresh; - final String? refreshTooltip; - - const FeatureToggleRow({ - super.key, - required this.title, - required this.subtitle, - required this.value, - this.enabled = true, - this.hasRefreshing = false, - this.isRefreshing = false, - this.onChanged, - this.onRefresh, - this.refreshTooltip, - }); - - @override - State createState() => _FeatureToggleRow(); -} - -class _FeatureToggleRow extends State { - @override - Widget build(BuildContext context) { - final scheme = Theme.of(context).colorScheme; - final textTheme = Theme.of(context).textTheme; - final isEnabled = widget.enabled; - final titleColor = isEnabled - ? scheme.onSurface - : scheme.onSurfaceVariant.withValues(alpha: 0.7); - final subtitleColor = isEnabled - ? scheme.onSurfaceVariant - : scheme.onSurfaceVariant.withValues(alpha: 0.55); - - return Padding( - padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10), - child: Row( - children: [ - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - widget.title, - style: textTheme.bodyMedium?.copyWith( - fontWeight: FontWeight.w600, - color: titleColor, - ), - ), - const SizedBox(height: 2), - Text( - widget.subtitle, - style: textTheme.bodySmall?.copyWith(color: subtitleColor), - ), - ], - ), - ), - const SizedBox(width: 8), - Row( - mainAxisSize: MainAxisSize.min, - children: [ - Switch( - value: widget.value, - onChanged: isEnabled ? widget.onChanged : null, - thumbColor: !isEnabled - ? WidgetStatePropertyAll(scheme.onSurfaceVariant) - : null, - trackColor: !isEnabled - ? WidgetStatePropertyAll( - scheme.onSurfaceVariant.withValues(alpha: 0.35), - ) - : null, - ), - if (widget.hasRefreshing) ...[ - const SizedBox(width: 4), - widget.isRefreshing - ? SizedBox( - width: 18, - height: 18, - child: CircularProgressIndicator( - strokeWidth: 1.8, - color: scheme.primary, - ), - ) - : IconButton( - icon: const Icon(Icons.refresh, size: 18), - onPressed: isEnabled ? widget.onRefresh : null, - tooltip: widget.refreshTooltip, - visualDensity: VisualDensity.compact, - padding: EdgeInsets.zero, - constraints: const BoxConstraints( - minWidth: 32, - minHeight: 32, - ), - ), - ], - ], - ), - ], - ), - ); - } -} diff --git a/lib/widgets/mesh_nav_tile.dart b/lib/widgets/mesh_nav_tile.dart index f5771371..584f9d2c 100644 --- a/lib/widgets/mesh_nav_tile.dart +++ b/lib/widgets/mesh_nav_tile.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; +import '../theme/theme_icons.dart'; + /// Title style of settings rows: [MeshNavTile] and, through /// [MeshSettingsTileTheme], stock [ListTile]s and [SwitchListTile]s. TextStyle? meshTileTitleStyle(ThemeData theme) => @@ -32,6 +34,10 @@ class MeshSettingsTileTheme extends StatelessWidget { /// looks identical to one that can. class MeshNavTile extends StatelessWidget { final IconData icon; + + /// Theme icon to show instead of [icon], so the row follows the user's + /// theme like the contact list does. + final ThemeIconSlot? iconSlot; final String title; final String? subtitle; final VoidCallback? onTap; @@ -45,6 +51,7 @@ class MeshNavTile extends StatelessWidget { const MeshNavTile({ super.key, required this.icon, + this.iconSlot, required this.title, this.subtitle, this.onTap, @@ -66,7 +73,9 @@ class MeshNavTile extends StatelessWidget { final row = Row( children: [ - Icon(icon, size: 24, color: effectiveIconColor), + iconSlot == null + ? Icon(icon, size: 24, color: effectiveIconColor) + : ThemedIcon(iconSlot!, size: 24, color: effectiveIconColor), const SizedBox(width: 16), Expanded( child: Column( diff --git a/lib/widgets/mesh_ui.dart b/lib/widgets/mesh_ui.dart index d9060d5b..187855de 100644 --- a/lib/widgets/mesh_ui.dart +++ b/lib/widgets/mesh_ui.dart @@ -12,44 +12,64 @@ import 'contact_visuals.dart'; /// MeshCore shared design kit. /// /// Building blocks used across all screens so the app reads as one product: -/// [SectionHeader], [MeshCard], [StatusChip], [StatTile], [AvatarCircle], +/// [SectionHeader], [MeshCard], [MeshInfoCard], [StatusChip], [StatTile], +/// [AvatarCircle], /// [SignalBars], [RouteChip], [PulseDot], [BottomSheetHeader] + /// [showMeshSheet], [ErrorRetryCard], [ListEntrance], [MeshSegmentLabel] /// and [MeshMenuItemRow]. -/// Small-caps mono section label, optionally with a trailing widget. +/// Small-caps mono section label, optionally with a trailing widget and a +/// short [description] under it. class SectionHeader extends StatelessWidget { final String label; final Widget? trailing; + final String? description; final EdgeInsetsGeometry padding; const SectionHeader( this.label, { super.key, this.trailing, + this.description, this.padding = const EdgeInsets.fromLTRB(16, 20, 16, 8), }); @override Widget build(BuildContext context) { - final scheme = Theme.of(context).colorScheme; + final theme = Theme.of(context); + final scheme = theme.colorScheme; + final row = Row( + children: [ + Expanded( + child: Text( + label.toUpperCase(), + style: MeshTheme.accentLabel( + color: scheme.onSurfaceVariant, + fontSize: 13, + ), + overflow: TextOverflow.ellipsis, + ), + ), + ?trailing, + ], + ); return Padding( padding: padding, - child: Row( - children: [ - Expanded( - child: Text( - label.toUpperCase(), - style: MeshTheme.accentLabel( - color: scheme.onSurfaceVariant, - fontSize: 13, - ), - overflow: TextOverflow.ellipsis, + child: description == null + ? row + : Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + row, + const SizedBox(height: 4), + Text( + description!, + style: theme.textTheme.bodyMedium?.copyWith( + color: scheme.onSurfaceVariant, + ), + ), + ], ), - ), - ?trailing, - ], - ), ); } } @@ -109,6 +129,37 @@ class MeshCard extends StatelessWidget { } } +/// [MeshCard] with an info icon and a short note, for the top of a page. +class MeshInfoCard extends StatelessWidget { + final String text; + + const MeshInfoCard(this.text, {super.key}); + + @override + Widget build(BuildContext context) { + final theme = Theme.of(context); + final scheme = theme.colorScheme; + return MeshCard( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Icon(Icons.info_outline, size: 24, color: scheme.onSurfaceVariant), + const SizedBox(width: 16), + Expanded( + child: Text( + text, + style: theme.textTheme.bodyMedium?.copyWith( + color: scheme.onSurface, + ), + ), + ), + ], + ), + ); + } +} + /// Tinted pill chip for statuses: a dot or icon plus a short label. /// Contrast ratio between two opaque colors (WCAG definition). double meshContrastRatio(Color a, Color b) { diff --git a/lib/widgets/unsaved_changes_guard.dart b/lib/widgets/unsaved_changes_guard.dart new file mode 100644 index 00000000..322d2929 --- /dev/null +++ b/lib/widgets/unsaved_changes_guard.dart @@ -0,0 +1,195 @@ +import 'package:flutter/material.dart'; + +import '../helpers/snack_bar_builder.dart'; +import '../l10n/l10n.dart'; +import '../utils/radio_guard.dart'; +import 'adaptive_app_bar_title.dart'; +import 'mesh_nav_tile.dart'; +import 'radio_disconnected_banner.dart'; + +/// Asks before leaving with unsaved edits: Cancel, Discard or Save. A +/// successful save closes the page. +class UnsavedChangesGuard extends StatelessWidget { + final bool hasChanges; + + /// Whether the dialog offers Save. + final bool canSave; + + /// Returns whether the save succeeded. + final Future Function() onSave; + + /// Dialog body. + final String message; + + final Widget child; + + const UnsavedChangesGuard({ + super.key, + required this.hasChanges, + required this.canSave, + required this.onSave, + required this.message, + required this.child, + }); + + @override + Widget build(BuildContext context) { + return PopScope( + canPop: !hasChanges, + onPopInvokedWithResult: (didPop, _) { + if (!didPop) _confirmLeave(context); + }, + child: child, + ); + } + + Future _confirmLeave(BuildContext context) async { + final l10n = context.l10n; + final save = await showDialog( + context: context, + builder: (dialogContext) => AlertDialog( + title: Text(l10n.repeater_unsavedChangesTitle), + content: Text(message), + actions: [ + TextButton( + onPressed: () => Navigator.pop(dialogContext), + child: Text(l10n.common_cancel), + ), + TextButton( + onPressed: () => Navigator.pop(dialogContext, false), + style: TextButton.styleFrom( + foregroundColor: Theme.of(dialogContext).colorScheme.error, + ), + child: Text(l10n.repeater_discardChanges), + ), + FilledButton( + onPressed: canSave + ? () => Navigator.pop(dialogContext, true) + : null, + child: Text(l10n.common_save), + ), + ], + ), + ); + if (save == null || !context.mounted) return; + if (save && !await onSave()) return; + if (!context.mounted) return; + // Navigator.pop skips the PopScope check. + Navigator.of(context).pop(); + } +} + +/// App bar Save button: hidden without changes, a spinner while [saving]. +class SaveChangesAction extends StatelessWidget { + final bool visible; + final bool saving; + final VoidCallback? onPressed; + + const SaveChangesAction({ + super.key, + required this.visible, + this.saving = false, + required this.onPressed, + }); + + @override + Widget build(BuildContext context) { + if (!visible) return const SizedBox.shrink(); + return TextButton.icon( + onPressed: saving ? null : onPressed, + icon: saving + ? const SizedBox( + width: 18, + height: 18, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Icon(Icons.save), + label: Text(context.l10n.common_save), + ); + } +} + +/// Page for settings saved to the radio: app bar Save, disconnected banner +/// and [UnsavedChangesGuard]. Errors thrown by [onSave] go to a snackbar. +class SaveToRadioPage extends StatefulWidget { + final String title; + final bool hasChanges; + + /// False while a field is invalid. + final bool canSave; + + /// Sends the edits. Returns false if nothing was sent (failed validation). + final Future Function() onSave; + + final List children; + + const SaveToRadioPage({ + super.key, + required this.title, + required this.hasChanges, + this.canSave = true, + required this.onSave, + required this.children, + }); + + @override + State createState() => SaveToRadioPageState(); +} + +class SaveToRadioPageState extends State { + bool _saving = false; + + /// Saves valid, unsaved edits; returns whether it did. + Future save() async { + if (_saving || !widget.hasChanges || !widget.canSave) return false; + if (!ensureRadioConnected(context)) return false; + final l10n = context.l10n; + setState(() => _saving = true); + try { + return await widget.onSave(); + } catch (e) { + if (mounted) { + showDismissibleSnackBar( + context, + content: Text(l10n.settings_error(e.toString())), + ); + } + return false; + } finally { + if (mounted) setState(() => _saving = false); + } + } + + @override + Widget build(BuildContext context) { + final canSave = widget.canSave && !context.radioReadOnly && !_saving; + return UnsavedChangesGuard( + hasChanges: widget.hasChanges, + canSave: canSave, + message: context.l10n.settings_unsavedChangesMessage, + onSave: save, + child: Scaffold( + appBar: AppBar( + title: AdaptiveAppBarTitle(widget.title), + centerTitle: true, + actions: [ + SaveChangesAction( + visible: widget.hasChanges, + saving: _saving, + onPressed: canSave ? save : null, + ), + ], + ), + body: MeshSettingsTileTheme( + child: SafeArea( + top: false, + child: ListView( + padding: const EdgeInsets.only(bottom: 24), + children: [const RadioDisconnectedBanner(), ...widget.children], + ), + ), + ), + ), + ); + } +} diff --git a/test/review_mode/review_radio_test.dart b/test/review_mode/review_radio_test.dart index f7281ee4..c89449e4 100644 --- a/test/review_mode/review_radio_test.dart +++ b/test/review_mode/review_radio_test.dart @@ -78,7 +78,7 @@ void main() { expect(reader.readInt32LE(), ReviewScript.selfLatitudeE6); expect(reader.readInt32LE(), ReviewScript.selfLongitudeE6); reader.skipBytes(4); - expect(reader.readUInt32LE(), 910525000); + expect(reader.readUInt32LE(), 910525); expect(reader.readUInt32LE(), 62500); expect(reader.readByte(), 7); expect(reader.readByte(), 5); diff --git a/test/screens/export_test.dart b/test/screens/export_test.dart new file mode 100644 index 00000000..eaabe3c3 --- /dev/null +++ b/test/screens/export_test.dart @@ -0,0 +1,150 @@ +import 'dart:io'; + +import 'package:flutter/services.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:gpx/gpx.dart'; +import 'package:shared_preferences/shared_preferences.dart'; + +import 'package:meshcore_open/connector/meshcore_connector.dart'; +import 'package:meshcore_open/connector/meshcore_protocol.dart'; +import 'package:meshcore_open/helpers/message_url_image_helper.dart'; +import 'package:meshcore_open/models/bookmarked_message.dart'; +import 'package:meshcore_open/review_mode/review_radio.dart'; +import 'package:meshcore_open/services/app_settings_service.dart'; +import 'package:meshcore_open/services/message_retry_service.dart'; +import 'package:meshcore_open/services/path_history_service.dart'; +import 'package:meshcore_open/services/storage_service.dart'; +import 'package:meshcore_open/services/translation_service.dart'; +import 'package:meshcore_open/storage/prefs_manager.dart'; +import 'package:meshcore_open/utils/bookmark_markdown_export.dart'; +import 'package:meshcore_open/utils/gpx_export.dart'; + +// The Export page's data: which contacts each GPX option picks and what the +// file holds, and bookmarks round-tripping into the Markdown export. Uses the +// review-mode radio's sample contacts and messages. +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + final tempDir = Directory.systemTemp.createTempSync('export_test'); + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler( + const MethodChannel('plugins.flutter.io/path_provider'), + (call) async => tempDir.path, + ); + + late MeshCoreConnector connector; + + // Created here, outside any test's fake time, so its futures always run. + setUpAll(() async { + SharedPreferences.setMockInitialValues({}); + PrefsManager.reset(); + await PrefsManager.initialize(); + final settings = AppSettingsService(); + await settings.loadSettings(); + connector = MeshCoreConnector() + ..initialize( + retryService: MessageRetryService(), + pathHistoryService: PathHistoryService(StorageService()), + appSettingsService: settings, + translationService: TranslationService(settings), + ) + ..reviewRadioFactoryForTest = () => ReviewRadio( + scheduledMessageInterval: const Duration(hours: 1), + ackDelay: const Duration(milliseconds: 50), + replyDelay: const Duration(hours: 1), + ); + await connector.connectReview(); + final end = DateTime.now().add(const Duration(seconds: 8)); + while (connector.selfName == null && DateTime.now().isBefore(end)) { + await Future.delayed(const Duration(milliseconds: 25)); + } + }); + + Set names(Iterable contacts) => + contacts.map((c) => c.name).toSet(); + + test('GPX: repeaters and rooms, users / companions, all contacts', () async { + final located = connector.allContacts + .where((c) => c.latitude != null && c.longitude != null) + .toList(); + Set expected(bool Function(int type) keep) => + located.where((c) => keep(c.type)).map((c) => c.name.trim()).toSet(); + + final repeaters = GpxExport(connector)..addRepeaters(); + expect( + names(repeaters.contacts), + expected((t) => t == advTypeRepeater || t == advTypeRoom), + ); + expect( + names(repeaters.contacts), + containsAll(['Hilltop Repeater', 'Trailhead Room']), + ); + + final users = GpxExport(connector)..addContacts(); + expect(names(users.contacts), expected((t) => t == advTypeChat)); + expect(names(users.contacts), contains('Maya')); + expect(names(users.contacts), isNot(contains('Hilltop Repeater'))); + + final all = GpxExport(connector)..addAll(); + expect(names(all.contacts), expected((_) => true)); + expect( + all.contacts.length, + repeaters.contacts.length + users.contacts.length, + ); + + // One waypoint per contact with its name, position, type, public key and + // meshcore:// link. + final xml = all.buildGpx('All contacts', 'Locations'); + final gpx = GpxReader().fromString(xml); + expect(gpx.metadata?.name, 'All contacts'); + expect(gpx.wpts, hasLength(located.length)); + for (final c in located) { + final wpt = gpx.wpts.singleWhere((w) => w.name == c.name.trim()); + expect(wpt.lat, closeTo(c.latitude!, 1e-9)); + expect(wpt.lon, closeTo(c.longitude!, 1e-9)); + expect(wpt.desc, contains(c.publicKeyHex)); + expect(wpt.desc, contains(c.typeLabelRaw)); + if (c.rawPacket != null) expect(xml, contains('meshcore://')); + } + + // Nothing selected: "no contacts", and no file is written. + expect( + await GpxExport(connector).exportGPX('n', 'd', 'f', 't', 's'), + gpxExportNoContacts, + ); + }); + + test('Bookmarks: a bookmarked message is found and exported', () async { + final previous = MessageUrlImageHelper.loadLinkImages.value; + MessageUrlImageHelper.loadLinkImages.value = false; + addTearDown(() => MessageUrlImageHelper.loadLinkImages.value = previous); + + final contact = connector.contacts.firstWhere( + (c) => connector.getMessages(c).any((m) => m.text.isNotEmpty), + ); + final message = connector + .getMessages(contact) + .firstWhere((m) => m.text.isNotEmpty); + final bookmark = BookmarkedMessage.fromContact( + message: message, + contactKey: contact.publicKeyHex, + contactName: contact.name, + senderName: contact.name, + ); + + await connector.setBookmarkedMessage(bookmark, isBookmarked: true); + final saved = await connector.loadBookmarkedMessages(); + expect(saved.map((b) => b.messageId), contains(message.messageId)); + + final markdown = await buildBookmarksMarkdown( + saved, + publicGateway: '', + exportedAt: DateTime(2026, 11, 23), + ); + expect(markdown, contains(contact.name)); + expect(markdown, contains(message.text)); + + await connector.setBookmarkedMessage(bookmark, isBookmarked: false); + final after = await connector.loadBookmarkedMessages(); + expect(after.map((b) => b.messageId), isNot(contains(message.messageId))); + }); +} diff --git a/test/screens/message_filter_settings_screen_test.dart b/test/screens/message_filter_settings_screen_test.dart index df47b996..521e008d 100644 --- a/test/screens/message_filter_settings_screen_test.dart +++ b/test/screens/message_filter_settings_screen_test.dart @@ -57,7 +57,7 @@ void main() { testWidgets('renders every section with defaults', (tester) async { await pumpScreen(tester); - expect(find.text('Message filter'), findsOneWidget); + expect(find.text('Message Filter'), findsOneWidget); expect(find.text('Filter messages'), findsOneWidget); expect(find.text('Show a small placeholder'), findsOneWidget); expect(find.text('Hide completely'), findsOneWidget); diff --git a/test/screens/settings_pages_test.dart b/test/screens/settings_pages_test.dart new file mode 100644 index 00000000..bd2c298f --- /dev/null +++ b/test/screens/settings_pages_test.dart @@ -0,0 +1,391 @@ +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:provider/provider.dart'; +import 'package:shared_preferences/shared_preferences.dart'; + +import 'package:meshcore_open/connector/meshcore_connector.dart'; +import 'package:meshcore_open/connector/meshcore_protocol.dart'; +import 'package:meshcore_open/l10n/app_localizations.dart'; +import 'package:meshcore_open/l10n/app_localizations_en.dart'; +import 'package:meshcore_open/review_mode/review_radio.dart'; +import 'package:meshcore_open/screens/about_screen.dart'; +import 'package:meshcore_open/screens/contact_settings_screen.dart'; +import 'package:meshcore_open/screens/location_picker_screen.dart'; +import 'package:meshcore_open/screens/location_settings_screen.dart'; +import 'package:meshcore_open/screens/node_name_screen.dart'; +import 'package:meshcore_open/screens/privacy_settings_screen.dart'; +import 'package:meshcore_open/screens/radio_settings_screen.dart'; +import 'package:meshcore_open/screens/settings_screen.dart'; +import 'package:meshcore_open/services/app_debug_log_service.dart'; +import 'package:meshcore_open/services/app_settings_service.dart'; +import 'package:meshcore_open/services/ble_debug_log_service.dart'; +import 'package:meshcore_open/services/map_tile_cache_service.dart'; +import 'package:meshcore_open/services/message_retry_service.dart'; +import 'package:meshcore_open/services/path_history_service.dart'; +import 'package:meshcore_open/services/storage_service.dart'; +import 'package:meshcore_open/services/translation_service.dart'; +import 'package:meshcore_open/services/ui_view_state_service.dart'; +import 'package:meshcore_open/storage/prefs_manager.dart'; +import 'package:meshcore_open/theme/mesh_theme.dart'; +import 'package:meshcore_open/widgets/unsaved_changes_guard.dart'; + +final _l10n = AppLocalizationsEn(); + +MeshCoreConnector? _sharedConnector; +AppSettingsService? _sharedSettings; + +Future _connectedConnector(WidgetTester tester) async { + if (_sharedConnector != null) return _sharedConnector!; + final storage = StorageService(); + final connector = MeshCoreConnector(); + final settings = AppSettingsService(); + final translation = TranslationService(settings); + await tester.runAsync(() async { + await settings.loadSettings(); + connector.initialize( + retryService: MessageRetryService(), + pathHistoryService: PathHistoryService(storage), + appSettingsService: settings, + translationService: translation, + ); + connector.reviewRadioFactoryForTest = () => ReviewRadio( + scheduledMessageInterval: const Duration(hours: 1), + ackDelay: const Duration(milliseconds: 50), + replyDelay: const Duration(hours: 1), + ); + await connector.connectReview(); + final end = DateTime.now().add(const Duration(seconds: 8)); + while (connector.selfName == null && DateTime.now().isBefore(end)) { + await Future.delayed(const Duration(milliseconds: 25)); + } + }); + _sharedSettings = settings; + return _sharedConnector = connector; +} + +Widget _app(MeshCoreConnector connector, Widget home) { + final settings = _sharedSettings ?? AppSettingsService(); + final storage = StorageService(); + return MultiProvider( + providers: [ + ChangeNotifierProvider.value(value: connector), + ChangeNotifierProvider.value(value: settings), + ChangeNotifierProvider(create: (_) => PathHistoryService(storage)), + ChangeNotifierProvider(create: (_) => BleDebugLogService()), + ChangeNotifierProvider(create: (_) => AppDebugLogService()), + ChangeNotifierProvider(create: (_) => UiViewStateService()), + Provider.value(value: storage), + ChangeNotifierProvider( + create: (_) => MapTileCacheService(appSettingsService: settings), + ), + ], + child: MaterialApp( + theme: MeshTheme.light(), + locale: const Locale('en'), + localizationsDelegates: const [ + AppLocalizations.delegate, + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + ], + supportedLocales: AppLocalizations.supportedLocales, + home: home, + ), + ); +} + +/// A home screen with one button that pushes [page], so tests can check +/// whether leaving the page really closes it. +Widget _launcher(Widget page) => Builder( + builder: (context) => Scaffold( + body: Center( + child: TextButton( + onPressed: () => Navigator.push( + context, + MaterialPageRoute(builder: (_) => page), + ), + child: const Text('open'), + ), + ), + ), +); + +Future _open(WidgetTester tester) async { + await tester.tap(find.text('open')); + await tester.pumpAndSettle(); +} + +Future _waitFor(WidgetTester tester, bool Function() done) async { + await tester.runAsync(() async { + final end = DateTime.now().add(const Duration(seconds: 5)); + while (!done() && DateTime.now().isBefore(end)) { + await Future.delayed(const Duration(milliseconds: 25)); + } + }); + await tester.pumpAndSettle(); +} + +Finder get _saveAction => find.widgetWithText(TextButton, _l10n.common_save); + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + final tempDir = Directory.systemTemp.createTempSync('settings_pages_test'); + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler( + const MethodChannel('plugins.flutter.io/path_provider'), + (call) async => tempDir.path, + ); + + setUpAll(() async { + SharedPreferences.setMockInitialValues({}); + PrefsManager.reset(); + await PrefsManager.initialize(); + }); + + group('UnsavedChangesGuard', () { + Widget guarded({required Future Function() onSave}) => + UnsavedChangesGuard( + hasChanges: true, + canSave: true, + message: 'msg', + onSave: onSave, + child: Scaffold(appBar: AppBar(), body: const Text('page')), + ); + + Future pumpGuarded( + WidgetTester tester, + Future Function() onSave, + ) async { + await tester.pumpWidget( + _app(MeshCoreConnector(), _launcher(guarded(onSave: onSave))), + ); + await _open(tester); + await tester.pageBack(); + await tester.pumpAndSettle(); + expect(find.text(_l10n.repeater_unsavedChangesTitle), findsOneWidget); + } + + testWidgets('Cancel stays and Discard leaves', (tester) async { + await pumpGuarded(tester, () async => true); + await tester.tap(find.text(_l10n.common_cancel)); + await tester.pumpAndSettle(); + expect(find.text('page'), findsOneWidget); + + await tester.pageBack(); + await tester.pumpAndSettle(); + await tester.tap(find.text(_l10n.repeater_discardChanges)); + await tester.pumpAndSettle(); + expect(find.text('page'), findsNothing); + expect(find.text('open'), findsOneWidget); + }); + + testWidgets('Save leaves only when saving succeeds', (tester) async { + var result = false; + var saves = 0; + await pumpGuarded(tester, () async { + saves++; + return result; + }); + await tester.tap(find.widgetWithText(FilledButton, _l10n.common_save)); + await tester.pumpAndSettle(); + expect(saves, 1); + expect(find.text('page'), findsOneWidget); + + result = true; + await tester.pageBack(); + await tester.pumpAndSettle(); + await tester.tap(find.widgetWithText(FilledButton, _l10n.common_save)); + await tester.pumpAndSettle(); + expect(saves, 2); + expect(find.text('page'), findsNothing); + }); + }); + + testWidgets('SaveToRadioPage reports a failed save and keeps the page', ( + tester, + ) async { + final connector = await _connectedConnector(tester); + await tester.pumpWidget( + _app( + connector, + _launcher( + SaveToRadioPage( + title: 'Page', + hasChanges: true, + onSave: () async => throw StateError('rejected'), + children: const [Text('field')], + ), + ), + ), + ); + await _open(tester); + await tester.tap(_saveAction); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 300)); + expect( + find.text(_l10n.settings_error('Bad state: rejected')), + findsOneWidget, + ); + expect(find.text('field'), findsOneWidget); + expect(tester.widget(_saveAction).onPressed, isNotNull); + }); + + testWidgets('Settings rows open pages, not dialogs', (tester) async { + final connector = await _connectedConnector(tester); + // The connected status dot pulses forever, so pump for a fixed time + // instead of waiting for the screen to settle. + Future settle() async { + for (var i = 0; i < 8; i++) { + await tester.pump(const Duration(milliseconds: 100)); + } + } + + await tester.pumpWidget(_app(connector, const SettingsScreen())); + await settle(); + + final rows = { + _l10n.settings_nodeName: NodeNameScreen, + _l10n.settings_radioSettings: RadioSettingsScreen, + _l10n.settings_location: LocationSettingsScreen, + _l10n.settings_contactSettings: ContactSettingsScreen, + _l10n.settings_privacy: PrivacySettingsScreen, + _l10n.settings_aboutTheApp: AboutScreen, + }; + for (final MapEntry(key: title, value: page) in rows.entries) { + await tester.scrollUntilVisible( + find.text(title), + 200, + scrollable: find + .descendant( + of: find.byType(ListView), + matching: find.byType(Scrollable), + ) + .first, + ); + await settle(); + await tester.tap(find.text(title)); + await settle(); + expect(find.byType(page), findsOneWidget, reason: title); + expect(find.byType(AlertDialog), findsNothing, reason: title); + await tester.pageBack(); + await settle(); + expect(find.byType(page), findsNothing, reason: title); + } + await tester.pumpWidget(const SizedBox()); + }); + + testWidgets('Radio Settings shows Save only while something differs', ( + tester, + ) async { + final connector = await _connectedConnector(tester); + await tester.pumpWidget( + _app(connector, RadioSettingsScreen(connector: connector)), + ); + await tester.pumpAndSettle(); + expect(_saveAction, findsNothing); + + final txField = find.widgetWithText(TextField, _l10n.settings_txPower); + final original = tester.widget(txField).controller!.text; + final changed = original == '10' ? '11' : '10'; + await tester.enterText(txField, changed); + await tester.pump(); + expect(_saveAction, findsOneWidget); + + await tester.enterText(txField, original); + await tester.pump(); + expect(_saveAction, findsNothing); + await tester.pumpWidget(const SizedBox()); + }); + + testWidgets('Location picker fills the coordinate fields', (tester) async { + final connector = await _connectedConnector(tester); + await tester.pumpWidget( + _app(connector, _launcher(const LocationSettingsScreen())), + ); + await _open(tester); + + await tester.enterText( + find.widgetWithText(TextField, _l10n.settings_latitude), + '45.5', + ); + await tester.enterText( + find.widgetWithText(TextField, _l10n.settings_longitude), + '-122.6', + ); + await tester.tap(find.text(_l10n.location_pickOnMap)); + await tester.pumpAndSettle(); + expect(find.byType(LocationPickerScreen), findsOneWidget); + expect(find.text('45.500000, -122.600000'), findsOneWidget); + + await tester.tap(find.text(_l10n.locationPicker_useLocation)); + await tester.pumpAndSettle(); + expect(find.byType(LocationPickerScreen), findsNothing); + expect(find.text('45.500000'), findsOneWidget); + expect(find.text('-122.600000'), findsOneWidget); + expect(_saveAction, findsOneWidget); + + // Unsaved coordinates are not dropped silently. + await tester.pageBack(); + await tester.pumpAndSettle(); + await tester.tap(find.text(_l10n.repeater_discardChanges)); + await tester.pumpAndSettle(); + expect(find.byType(LocationSettingsScreen), findsNothing); + await tester.pumpWidget(const SizedBox()); + }); + + testWidgets('Node Name counts bytes and saves to the radio', (tester) async { + final connector = await _connectedConnector(tester); + final originalName = connector.selfName!; + await tester.pumpWidget(_app(connector, _launcher(const NodeNameScreen()))); + await _open(tester); + expect(_saveAction, findsNothing); + expect( + find.text(_l10n.nodeName_bytesAvailable(maxContactMessageBytes())), + findsOneWidget, + ); + + // "Ab" is two bytes and the emoji four. + const newName = 'Ab😀'; + await tester.enterText(find.byType(TextField), newName); + await tester.pump(); + expect(find.text('6 / 31'), findsOneWidget); + expect( + find.text(_l10n.nodeName_bytesAvailable(maxChannelMessageBytes(newName))), + findsOneWidget, + ); + expect(maxChannelMessageBytes(newName), 158 - 6); + expect(_saveAction, findsOneWidget); + + await tester.tap(_saveAction); + await _waitFor(tester, () => connector.selfName == newName); + expect(connector.selfName, newName); + expect(find.text(_l10n.settings_nodeNameUpdated), findsOneWidget); + expect(_saveAction, findsNothing); + + // Longer names are accepted but can't be saved, and say how far over + // the limit they are. + final longName = 'x' * 33; + await tester.enterText(find.byType(TextField), longName); + await tester.pump(); + expect(find.text(longName), findsOneWidget); + expect(find.text('33 / 31'), findsOneWidget); + expect(find.text(_l10n.nodeName_bytesOver(2)), findsOneWidget); + expect(tester.widget(_saveAction).onPressed, isNull); + + // Saving from the leave dialog sends the edit, then closes the page. + await tester.enterText(find.byType(TextField), originalName); + await tester.pump(); + await tester.pageBack(); + await tester.pumpAndSettle(); + await tester.tap(find.widgetWithText(FilledButton, _l10n.common_save)); + await _waitFor(tester, () => connector.selfName == originalName); + expect(connector.selfName, originalName); + expect(find.byType(NodeNameScreen), findsNothing); + await tester.pumpWidget(const SizedBox()); + }); +} diff --git a/test/screens/small_screen_layout_test.dart b/test/screens/small_screen_layout_test.dart index a0d66913..ef0f0a40 100644 --- a/test/screens/small_screen_layout_test.dart +++ b/test/screens/small_screen_layout_test.dart @@ -22,6 +22,7 @@ import 'package:meshcore_open/games/hash_chain.dart'; import 'package:meshcore_open/l10n/app_localizations.dart'; import 'package:meshcore_open/models/contact.dart'; import 'package:meshcore_open/review_mode/review_radio.dart'; +import 'package:meshcore_open/screens/about_screen.dart'; import 'package:meshcore_open/screens/add_contact_screen.dart'; import 'package:meshcore_open/screens/app_debug_log_screen.dart'; import 'package:meshcore_open/screens/app_settings_screen.dart'; @@ -32,14 +33,20 @@ import 'package:meshcore_open/screens/channels_screen.dart'; import 'package:meshcore_open/screens/chat_screen.dart'; import 'package:meshcore_open/screens/chrome_required_screen.dart'; import 'package:meshcore_open/screens/companion_radio_stats_screen.dart'; +import 'package:meshcore_open/screens/contact_settings_screen.dart'; import 'package:meshcore_open/screens/contacts_screen.dart'; import 'package:meshcore_open/screens/coordinate_map_screen.dart'; import 'package:meshcore_open/screens/discovery_screen.dart'; import 'package:meshcore_open/screens/line_of_sight_map_screen.dart'; +import 'package:meshcore_open/screens/location_picker_screen.dart'; +import 'package:meshcore_open/screens/location_settings_screen.dart'; import 'package:meshcore_open/screens/map_cache_screen.dart'; import 'package:meshcore_open/screens/map_screen.dart'; import 'package:meshcore_open/screens/neighbors_screen.dart'; +import 'package:meshcore_open/screens/node_name_screen.dart'; import 'package:meshcore_open/screens/path_trace_map.dart'; +import 'package:meshcore_open/screens/privacy_settings_screen.dart'; +import 'package:meshcore_open/screens/radio_settings_screen.dart'; import 'package:meshcore_open/screens/region_management_screen.dart'; import 'package:meshcore_open/screens/repeater_cli_screen.dart'; import 'package:meshcore_open/screens/repeater_hub_screen.dart'; @@ -245,6 +252,14 @@ final Map _screens = { 'Channels': (_) => const ChannelsScreen(), 'Settings': (_) => const SettingsScreen(), 'AppSettings': (_) => const AppSettingsScreen(), + 'NodeName': (_) => const NodeNameScreen(), + 'RadioSettings': (c) => RadioSettingsScreen(connector: c), + 'LocationSettings': (_) => const LocationSettingsScreen(), + 'LocationPicker': (_) => + const LocationPickerScreen(initial: LatLng(45.515232, -122.678385)), + 'ContactSettings': (_) => const ContactSettingsScreen(), + 'PrivacySettings': (_) => const PrivacySettingsScreen(), + 'About': (_) => const AboutScreen(), 'Discovery': (_) => const DiscoveryScreen(), 'RegionManagement': (_) => const RegionManagementScreen(), 'MapCache': (_) => const MapCacheScreen(), @@ -325,9 +340,9 @@ void main() { final variants = [ for (final entry in _screens.entries) (entry, false), - // Repeater screens add a banner while the companion radio is offline; - // the main and chat screens swap in the Connect button and the - // read-only composer bar. + // Repeater screens and the radio settings pages add a banner while the + // companion radio is offline; the main and chat screens swap in the + // Connect button and the read-only composer bar. for (final entry in _screens.entries) if (entry.key.startsWith('Repeater') || const { @@ -339,6 +354,11 @@ void main() { 'ChannelChat', 'ChessGame', 'Settings', + 'NodeName', + 'RadioSettings', + 'LocationSettings', + 'ContactSettings', + 'PrivacySettings', }.contains(entry.key)) (entry, true), ]; From 6a5d15209bd978d8aa37d7fbbbab7757ef9c1e54 Mon Sep 17 00:00:00 2001 From: celsoazevedo Date: Mon, 23 Nov 2026 22:12:10 +0000 Subject: [PATCH 04/17] Contact Settings: add Hop limit Sets the companion firmware's autoadd_max_hops (optional third byte of CMD_SET_AUTOADD_CONFIG). The radio only auto-adds contacts heard in fewer hops than the limit; 0 means no limit. Shown only when the radio reports the value. Review mode stores it like the firmware. Co-Authored-By: Claude Opus 5.5 --- documentation/design.md | 1 + documentation/settings.md | 1 + lib/l10n/app_bg.arb | 3 + lib/l10n/app_cs.arb | 3 + lib/l10n/app_de.arb | 3 + lib/l10n/app_en.arb | 10 +++ lib/l10n/app_es.arb | 3 + lib/l10n/app_fr.arb | 3 + lib/l10n/app_hu.arb | 3 + lib/l10n/app_it.arb | 3 + lib/l10n/app_ja.arb | 3 + lib/l10n/app_ko.arb | 3 + lib/l10n/app_localizations.dart | 18 +++++ lib/l10n/app_localizations_bg.dart | 19 +++++ lib/l10n/app_localizations_cs.dart | 19 +++++ lib/l10n/app_localizations_de.dart | 19 +++++ lib/l10n/app_localizations_en.dart | 19 +++++ lib/l10n/app_localizations_es.dart | 19 +++++ lib/l10n/app_localizations_fr.dart | 19 +++++ lib/l10n/app_localizations_hu.dart | 19 +++++ lib/l10n/app_localizations_it.dart | 19 +++++ lib/l10n/app_localizations_ja.dart | 19 +++++ lib/l10n/app_localizations_ko.dart | 19 +++++ lib/l10n/app_localizations_nl.dart | 19 +++++ lib/l10n/app_localizations_pl.dart | 19 +++++ lib/l10n/app_localizations_pt.dart | 38 ++++++++++ lib/l10n/app_localizations_ru.dart | 19 +++++ lib/l10n/app_localizations_sk.dart | 19 +++++ lib/l10n/app_localizations_sl.dart | 19 +++++ lib/l10n/app_localizations_sv.dart | 19 +++++ lib/l10n/app_localizations_uk.dart | 19 +++++ lib/l10n/app_localizations_zh.dart | 19 +++++ lib/l10n/app_nl.arb | 3 + lib/l10n/app_pl.arb | 3 + lib/l10n/app_pt.arb | 3 + lib/l10n/app_pt_PT.arb | 3 + lib/l10n/app_ru.arb | 3 + lib/l10n/app_sk.arb | 3 + lib/l10n/app_sl.arb | 3 + lib/l10n/app_sv.arb | 3 + lib/l10n/app_uk.arb | 3 + lib/l10n/app_zh.arb | 3 + lib/review_mode/review_radio.dart | 11 ++- lib/screens/contact_settings_screen.dart | 45 ++++++++++++ .../connector/auto_add_config_frame_test.dart | 33 +++++++++ test/screens/settings_pages_test.dart | 73 +++++++++++++++++++ 46 files changed, 628 insertions(+), 1 deletion(-) create mode 100644 test/connector/auto_add_config_frame_test.dart diff --git a/documentation/design.md b/documentation/design.md index 6d1443dd..9ee05c93 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -124,6 +124,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act | Switch that reveals more controls | `SettingsReveal` | 200ms height ease, `surfaceContainerHighest`, 16px start indent. See [Reveal on enable](#reveal-on-enable) | | Settings slider | `SettingsValueSlider` | Requires a 24px `icon` (`ListTile.leading`). The title includes the selected number, so it stays visible. The drag bubble repeats it | | Read-only value in a settings row | 24px `onSurfaceVariant` icon, title (`meshTileTitleStyle`), the value on its own line in `MeshTheme.mono` 15 w500 `onSurface`, subtitle `bodyMedium` `onSurfaceVariant` | Same value style as the Settings device info card; not `StatTile`, which is for status screens (Node Name message length) | +| Settings choice from a long list | `ListTile` with a 24px `leading` icon, title and subtitle, and a `DropdownButtonFormField` under the subtitle | Same row shape as `SettingsValueSlider`; no label or helper inside the field (Hop limit in Contact Settings) | | Settings saved to a radio | `SaveToRadioPage(title:, hasChanges:, onSave:, children:)` | See [Settings pages](#settings-pages). A custom scaffold uses `UnsavedChangesGuard` + `SaveChangesAction` | | Section explanation | `SectionHeader(label, description:)` | One or two short sentences in `bodyMedium` `onSurfaceVariant` under the label, for a note that belongs to one section (Node Name, Location) | | Option that needs a longer explanation | `MeshCard(padding: EdgeInsets.zero)`: explanation text, `Divider(height: 1, indent: 16, endIndent: 16)`, the switch row, divider, optional note | Text in `bodyMedium` `onSurfaceVariant`, padding 16 / 14, so it reads like tile subtitles. The dividers are inset on both sides to match the text (Off-Grid Repeat Mode) | diff --git a/documentation/settings.md b/documentation/settings.md index 5bb31f73..0bb7a47c 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -92,6 +92,7 @@ The location is shown on the map, used when you share your location, and sent in - **Auto-add contacts**: users, repeaters, room servers and sensors. Newly heard nodes of the enabled types are added to the radio's contacts; others can be added later from Discovered Contacts - **Contact List Limits**: - **Overwrite oldest** (radio): when the radio's contact list is full, the oldest non-favorited contact is replaced + - **Hop limit** (radio): dropdown with No limit (default), 1 (direct only) and 2-64. The radio only auto-adds contacts heard in fewer hops than this; contacts beyond it still appear in Discovered Contacts. Only shown when the firmware reports the setting - **Limit discovered contacts** (app, not the radio; saved with the rest): keeps up to 500 discovered contacts, removing the ones heard longest ago. When off, there's no limit ### Privacy diff --git a/lib/l10n/app_bg.arb b/lib/l10n/app_bg.arb index ea97fbda..90b8c6fe 100644 --- a/lib/l10n/app_bg.arb +++ b/lib/l10n/app_bg.arb @@ -2142,6 +2142,9 @@ "discoveredContacts_importSummary": "Импортирани: {imported}, пропуснати вече известни: {skipped}, нечетими записи: {invalid}.", "discoveredContacts_importTooLarge": "Файлът за импортиране е твърде голям (максимум {maxMb} MB).", "contactsSettings_overwriteOldestSubtitle": "Когато списъкът с контакти на радиото е пълен, най-старият контакт извън любимите се заменя.", + "contactsSettings_hopLimit": "Ограничение на скоковете", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Без ограничение} =1{1 (само директно)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Радиото добавя автоматично само контакти с по-малко скокове от тази стойност. В „Открити контакти“ пак се запазват всички.", "contactsSettings_evictDiscoveredContactsTitle": "Ограничаване на откритите контакти", "contactsSettings_evictDiscoveredContactsSubtitle": "Приложението ограничава списъка „Открити контакти“ до {limit} записа. При достигане на лимита по-старите контакти се премахват. Изключете, за да премахнете ограничението.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_cs.arb b/lib/l10n/app_cs.arb index 899b0710..507e4a3e 100644 --- a/lib/l10n/app_cs.arb +++ b/lib/l10n/app_cs.arb @@ -2975,6 +2975,9 @@ "contactsSettings_autoAddSensorsTitle": "Senzory", "contactsSettings_overwriteOldestTitle": "Přepisovat nejstarší", "contactsSettings_overwriteOldestSubtitle": "Když je seznam kontaktů v rádiu plný, nahradí se nejstarší kontakt, který není oblíbený.", + "contactsSettings_hopLimit": "Limit skoků", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Bez omezení} =1{1 (pouze přímo)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Rádio automaticky přidá jen kontakty s menším počtem skoků, než je tato hodnota. Seznam „Objevené kontakty“ přesto uloží všechny.", "contactsSettings_evictDiscoveredContactsTitle": "Omezit objevené kontakty", "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikace omezuje seznam „Objevené kontakty“ na {limit} položek. Po dosažení limitu jsou starší kontakty odstraněny. Vypněte pro zrušení limitu.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 57c2f44b..19fd6939 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -2231,6 +2231,9 @@ "discoveredContacts_copyContact": "Kontakt in die Zwischenablage kopieren", "contactsSettings_overwriteOldestTitle": "Ältesten überschreiben", "contactsSettings_overwriteOldestSubtitle": "Wenn die Kontaktliste des Funkgeräts voll ist, den ältesten Kontakt ersetzen, der kein Favorit ist.", + "contactsSettings_hopLimit": "Sprunglimit", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Kein Limit} =1{1 (nur direkt)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Das Funkgerät fügt nur Kontakte mit weniger Sprüngen als diesem Wert automatisch hinzu. Unter „Entdeckte Kontakte“ werden trotzdem alle gespeichert.", "contactsSettings_evictDiscoveredContactsTitle": "Entdeckte Kontakte begrenzen", "contactsSettings_evictDiscoveredContactsSubtitle": "Die App begrenzt die Liste „Entdeckte Kontakte“ auf {limit} Einträge. Ist das Limit erreicht, werden ältere Kontakte entfernt. Deaktivieren, um das Limit aufzuheben.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 642d7f16..08a22c0f 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -3287,6 +3287,16 @@ "contactsSettings_autoAddSensorsTitle": "Sensors", "contactsSettings_overwriteOldestTitle": "Overwrite oldest", "contactsSettings_overwriteOldestSubtitle": "Replace the oldest non-favorited contact when the radio's contact list is full.", + "contactsSettings_hopLimit": "Hop limit", + "contactsSettings_hopLimitOption": "{hops, plural, =0{No limit} =1{1 (direct only)} other{{hops}}}", + "@contactsSettings_hopLimitOption": { + "placeholders": { + "hops": { + "type": "int" + } + } + }, + "contactsSettings_hopLimitSubtitle": "The radio only auto-adds contacts under this many hops. Discovered Contacts still saves them all.", "contactsSettings_evictDiscoveredContactsTitle": "Limit discovered contacts", "contactsSettings_evictDiscoveredContactsSubtitle": "The app sets a {limit} entry limit to the discovered contacts list, older contacts are evicted when the limit is reached. Disable to have no limits.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index e04d9993..ff107824 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -2162,6 +2162,9 @@ "discoveredContacts_searchHint": "Buscar contactos descubiertos", "discoveredContacts_addContact": "Agregar contacto", "contactsSettings_overwriteOldestSubtitle": "Cuando la lista de contactos de la radio esté llena, reemplaza el contacto no favorito más antiguo.", + "contactsSettings_hopLimit": "Límite de saltos", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Sin límite} =1{1 (solo directo)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "La radio solo añade automáticamente contactos con menos saltos que este valor. En Contactos descubiertos se siguen guardando todos.", "contactsSettings_evictDiscoveredContactsTitle": "Limitar contactos descubiertos", "contactsSettings_evictDiscoveredContactsSubtitle": "La app limita la lista \"Contactos descubiertos\" a {limit} entradas. Al alcanzar el límite, se eliminan los contactos más antiguos. Desactivar para quitar el límite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index dd0f5e45..393797fb 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -2155,6 +2155,9 @@ "discoveredContacts_Title": "Contacts découverts", "discoveredContacts_searchHint": "Rechercher des contacts découverts", "contactsSettings_overwriteOldestSubtitle": "Lorsque la liste de contacts de la radio est pleine, remplace le plus ancien contact non favori.", + "contactsSettings_hopLimit": "Limite de sauts", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Aucune limite} =1{1 (direct uniquement)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "La radio n'ajoute automatiquement que les contacts situés à moins de sauts que cette valeur. Ils sont quand même tous enregistrés dans Contacts découverts.", "contactsSettings_evictDiscoveredContactsTitle": "Limiter les contacts découverts", "contactsSettings_evictDiscoveredContactsSubtitle": "L'application limite la liste « Contacts découverts » à {limit} entrées. Une fois la limite atteinte, les contacts les plus anciens sont supprimés. Désactivez pour supprimer la limite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_hu.arb b/lib/l10n/app_hu.arb index 81cb437b..d1db6dc5 100644 --- a/lib/l10n/app_hu.arb +++ b/lib/l10n/app_hu.arb @@ -2227,6 +2227,9 @@ "contactsSettings_autoAddSensorsTitle": "Érzékelők", "contactsSettings_overwriteOldestTitle": "A legrégebbi felülírása", "contactsSettings_overwriteOldestSubtitle": "Ha a rádió kapcsolatlistája megtelt, a legrégebbi, nem kedvenc kapcsolat lecserélődik.", + "contactsSettings_hopLimit": "Ugráskorlát", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Nincs korlát} =1{1 (csak közvetlen)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "A rádió csak az ennél kevesebb ugrásra lévő kapcsolatokat adja hozzá automatikusan. A „Felfedezett kapcsolatok” lista továbbra is mindet elmenti.", "contactsSettings_evictDiscoveredContactsTitle": "Felfedezett kapcsolatok korlátozása", "contactsSettings_evictDiscoveredContactsSubtitle": "Az alkalmazás a „Felfedezett kapcsolatok” listát {limit} bejegyzésre korlátozza. A korlát elérésekor a régebbi kapcsolatok törlődnek. Kikapcsolva nincs korlát.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index 131b24b1..12366623 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -2204,6 +2204,9 @@ } }, "contactsSettings_overwriteOldestSubtitle": "Quando l'elenco dei contatti della radio è pieno, sostituisce il contatto più vecchio non tra i preferiti.", + "contactsSettings_hopLimit": "Limite di salti", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Nessun limite} =1{1 (solo diretto)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "La radio aggiunge automaticamente solo i contatti con meno salti di questo valore. In Contatti scoperti vengono comunque salvati tutti.", "contactsSettings_evictDiscoveredContactsTitle": "Limita i contatti scoperti", "contactsSettings_evictDiscoveredContactsSubtitle": "L'app limita l'elenco \"Contatti scoperti\" a {limit} voci. Al raggiungimento del limite, i contatti più vecchi vengono rimossi. Disattiva per rimuovere il limite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index 36c9c25f..b49fe02d 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -2237,6 +2237,9 @@ "contactsSettings_autoAddSensorsTitle": "センサー", "contactsSettings_overwriteOldestTitle": "最も古い連絡先を上書き", "contactsSettings_overwriteOldestSubtitle": "ラジオの連絡先リストが満杯になったら、お気に入り以外で最も古い連絡先を置き換えます。", + "contactsSettings_hopLimit": "ホップ数の上限", + "contactsSettings_hopLimitOption": "{hops, plural, =0{制限なし} =1{1(直接のみ)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "ラジオはこの値より少ないホップ数の連絡先のみ自動追加します。「連絡先が見つかった」にはすべて保存されます。", "contactsSettings_evictDiscoveredContactsTitle": "発見された連絡先を制限", "contactsSettings_evictDiscoveredContactsSubtitle": "アプリは「連絡先が見つかった」リストを {limit} 件に制限します。上限に達すると古い連絡先から削除されます。オフにすると上限はなくなります。", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb index dfed602f..9e9b84d1 100644 --- a/lib/l10n/app_ko.arb +++ b/lib/l10n/app_ko.arb @@ -2142,6 +2142,9 @@ "contactsSettings_autoAddSensorsTitle": "센서", "contactsSettings_overwriteOldestTitle": "가장 오래된 연락처 덮어쓰기", "contactsSettings_overwriteOldestSubtitle": "라디오의 연락처 목록이 가득 차면 즐겨찾기가 아닌 가장 오래된 연락처를 교체합니다.", + "contactsSettings_hopLimit": "홉 수 제한", + "contactsSettings_hopLimitOption": "{hops, plural, =0{제한 없음} =1{1 (직접 연결만)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "라디오는 이 값보다 적은 홉의 연락처만 자동 추가합니다. '연락처 찾기'에는 모두 저장됩니다.", "contactsSettings_evictDiscoveredContactsTitle": "발견된 연락처 제한", "contactsSettings_evictDiscoveredContactsSubtitle": "앱은 \"연락처 찾기\" 목록을 {limit}개 항목으로 제한합니다. 한도에 도달하면 오래된 연락처부터 삭제됩니다. 끄면 제한이 없습니다.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index b5c8ad8e..6757c170 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -10025,6 +10025,24 @@ abstract class AppLocalizations { /// **'Replace the oldest non-favorited contact when the radio\'s contact list is full.'** String get contactsSettings_overwriteOldestSubtitle; + /// No description provided for @contactsSettings_hopLimit. + /// + /// In en, this message translates to: + /// **'Hop limit'** + String get contactsSettings_hopLimit; + + /// No description provided for @contactsSettings_hopLimitOption. + /// + /// In en, this message translates to: + /// **'{hops, plural, =0{No limit} =1{1 (direct only)} other{{hops}}}'** + String contactsSettings_hopLimitOption(int hops); + + /// No description provided for @contactsSettings_hopLimitSubtitle. + /// + /// In en, this message translates to: + /// **'The radio only auto-adds contacts under this many hops. Discovered Contacts still saves them all.'** + String get contactsSettings_hopLimitSubtitle; + /// No description provided for @contactsSettings_evictDiscoveredContactsTitle. /// /// In en, this message translates to: diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 3871cf1b..4e90dfce 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -5909,6 +5909,25 @@ class AppLocalizationsBg extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Когато списъкът с контакти на радиото е пълен, най-старият контакт извън любимите се заменя.'; + @override + String get contactsSettings_hopLimit => 'Ограничение на скоковете'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (само директно)', + zero: 'Без ограничение', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Радиото добавя автоматично само контакти с по-малко скокове от тази стойност. В „Открити контакти“ пак се запазват всички.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Ограничаване на откритите контакти'; diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 14acd0b7..8f122774 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -5888,6 +5888,25 @@ class AppLocalizationsCs extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Když je seznam kontaktů v rádiu plný, nahradí se nejstarší kontakt, který není oblíbený.'; + @override + String get contactsSettings_hopLimit => 'Limit skoků'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (pouze přímo)', + zero: 'Bez omezení', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Rádio automaticky přidá jen kontakty s menším počtem skoků, než je tato hodnota. Seznam „Objevené kontakty“ přesto uloží všechny.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Omezit objevené kontakty'; diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 7769c0e0..00ea0146 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -5920,6 +5920,25 @@ class AppLocalizationsDe extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Wenn die Kontaktliste des Funkgeräts voll ist, den ältesten Kontakt ersetzen, der kein Favorit ist.'; + @override + String get contactsSettings_hopLimit => 'Sprunglimit'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (nur direkt)', + zero: 'Kein Limit', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Das Funkgerät fügt nur Kontakte mit weniger Sprüngen als diesem Wert automatisch hinzu. Unter „Entdeckte Kontakte“ werden trotzdem alle gespeichert.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Entdeckte Kontakte begrenzen'; diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 3b50a918..85445801 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -5828,6 +5828,25 @@ class AppLocalizationsEn extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Replace the oldest non-favorited contact when the radio\'s contact list is full.'; + @override + String get contactsSettings_hopLimit => 'Hop limit'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (direct only)', + zero: 'No limit', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'The radio only auto-adds contacts under this many hops. Discovered Contacts still saves them all.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Limit discovered contacts'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 901e76e5..6924ff52 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -5909,6 +5909,25 @@ class AppLocalizationsEs extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Cuando la lista de contactos de la radio esté llena, reemplaza el contacto no favorito más antiguo.'; + @override + String get contactsSettings_hopLimit => 'Límite de saltos'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (solo directo)', + zero: 'Sin límite', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'La radio solo añade automáticamente contactos con menos saltos que este valor. En Contactos descubiertos se siguen guardando todos.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Limitar contactos descubiertos'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 2bfc5046..bc4ea3ab 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -5923,6 +5923,25 @@ class AppLocalizationsFr extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Lorsque la liste de contacts de la radio est pleine, remplace le plus ancien contact non favori.'; + @override + String get contactsSettings_hopLimit => 'Limite de sauts'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (direct uniquement)', + zero: 'Aucune limite', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'La radio n\'ajoute automatiquement que les contacts situés à moins de sauts que cette valeur. Ils sont quand même tous enregistrés dans Contacts découverts.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Limiter les contacts découverts'; diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index 97888e91..72f63f08 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -5907,6 +5907,25 @@ class AppLocalizationsHu extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Ha a rádió kapcsolatlistája megtelt, a legrégebbi, nem kedvenc kapcsolat lecserélődik.'; + @override + String get contactsSettings_hopLimit => 'Ugráskorlát'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (csak közvetlen)', + zero: 'Nincs korlát', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'A rádió csak az ennél kevesebb ugrásra lévő kapcsolatokat adja hozzá automatikusan. A „Felfedezett kapcsolatok” lista továbbra is mindet elmenti.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Felfedezett kapcsolatok korlátozása'; diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index e757cc1d..53c3c755 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -5914,6 +5914,25 @@ class AppLocalizationsIt extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Quando l\'elenco dei contatti della radio è pieno, sostituisce il contatto più vecchio non tra i preferiti.'; + @override + String get contactsSettings_hopLimit => 'Limite di salti'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (solo diretto)', + zero: 'Nessun limite', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'La radio aggiunge automaticamente solo i contatti con meno salti di questo valore. In Contatti scoperti vengono comunque salvati tutti.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Limita i contatti scoperti'; diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index eec2a32e..832a7be0 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -5632,6 +5632,25 @@ class AppLocalizationsJa extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'ラジオの連絡先リストが満杯になったら、お気に入り以外で最も古い連絡先を置き換えます。'; + @override + String get contactsSettings_hopLimit => 'ホップ数の上限'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1(直接のみ)', + zero: '制限なし', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'ラジオはこの値より少ないホップ数の連絡先のみ自動追加します。「連絡先が見つかった」にはすべて保存されます。'; + @override String get contactsSettings_evictDiscoveredContactsTitle => '発見された連絡先を制限'; diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index ebf3c99f..404c7e55 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -5642,6 +5642,25 @@ class AppLocalizationsKo extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => '라디오의 연락처 목록이 가득 차면 즐겨찾기가 아닌 가장 오래된 연락처를 교체합니다.'; + @override + String get contactsSettings_hopLimit => '홉 수 제한'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (직접 연결만)', + zero: '제한 없음', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + '라디오는 이 값보다 적은 홉의 연락처만 자동 추가합니다. \'연락처 찾기\'에는 모두 저장됩니다.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => '발견된 연락처 제한'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 84d423dc..97b8d1d2 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -5880,6 +5880,25 @@ class AppLocalizationsNl extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Als de contactenlijst van de radio vol is, het oudste contact vervangen dat geen favoriet is.'; + @override + String get contactsSettings_hopLimit => 'Hoplimiet'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (alleen direct)', + zero: 'Geen limiet', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'De radio voegt alleen contacten met minder hops dan deze waarde automatisch toe. In Ontdekte contacten worden ze nog steeds allemaal opgeslagen.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Ontdekte contacten beperken'; diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 0c24139c..b1570dd3 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -5950,6 +5950,25 @@ class AppLocalizationsPl extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Gdy lista kontaktów w radiu jest pełna, najstarszy kontakt spoza ulubionych zostanie zastąpiony.'; + @override + String get contactsSettings_hopLimit => 'Limit skoków'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (tylko bezpośrednio)', + zero: 'Bez limitu', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Radio automatycznie dodaje tylko kontakty z mniejszą liczbą skoków niż ta wartość. Lista „Odkryte Kontakty” nadal zapisuje wszystkie.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Ogranicz odkryte kontakty'; diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index e0e1b7b0..4bb3ed5f 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -5905,6 +5905,25 @@ class AppLocalizationsPt extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Quando a lista de contatos do rádio estiver cheia, substitui o contato mais antigo que não seja favorito.'; + @override + String get contactsSettings_hopLimit => 'Limite de saltos'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (somente direto)', + zero: 'Sem limite', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'O rádio só adiciona automaticamente contatos com menos saltos que este valor. Todos continuam sendo salvos em Contatos Descobertos.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Limitar contatos descobertos'; @@ -14151,6 +14170,25 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get contactsSettings_overwriteOldestSubtitle => 'Quando a lista de contactos do rádio estiver cheia, substitui o contacto mais antigo que não seja favorito.'; + @override + String get contactsSettings_hopLimit => 'Limite de hops'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (apenas direto)', + zero: 'Sem limite', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'O rádio só adiciona automaticamente contactos com menos hops do que este valor. Todos continuam a ser guardados em Contactos descobertos.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Limitar contactos descobertos'; diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index 0fe4cebb..ad13d760 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -5926,6 +5926,25 @@ class AppLocalizationsRu extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Когда список контактов радио заполнен, заменяется самый старый контакт не из избранного.'; + @override + String get contactsSettings_hopLimit => 'Лимит хопов'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (только напрямую)', + zero: 'Без лимита', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Радио автоматически добавляет только контакты, до которых меньше хопов, чем это значение. В списке «Обнаруженные контакты» по-прежнему сохраняются все.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Ограничивать обнаруженные контакты'; diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 94b88ee8..2845ae8e 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -5903,6 +5903,25 @@ class AppLocalizationsSk extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Keď je zoznam kontaktov v rádiu plný, nahradí sa najstarší kontakt, ktorý nie je obľúbený.'; + @override + String get contactsSettings_hopLimit => 'Limit skokov'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (iba priamo)', + zero: 'Bez obmedzenia', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Rádio automaticky pridá iba kontakty s menším počtom skokov, než je táto hodnota. Zoznam „Objavené kontakty“ aj tak uloží všetky.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Obmedziť objavené kontakty'; diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index 4a656e3e..746f2330 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -5893,6 +5893,25 @@ class AppLocalizationsSl extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Ko je seznam stikov v radiu poln, se zamenja najstarejši stik, ki ni med priljubljenimi.'; + @override + String get contactsSettings_hopLimit => 'Omejitev skokov'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (samo neposredno)', + zero: 'Brez omejitve', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Radio avtomatsko doda le stike z manj skoki od te vrednosti. Seznam »Odkriti stiki« še vedno shrani vse.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Omeji odkrite stike'; diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index b5982c31..991d0330 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -5861,6 +5861,25 @@ class AppLocalizationsSv extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'När radions kontaktlista är full ersätts den äldsta kontakten som inte är en favorit.'; + @override + String get contactsSettings_hopLimit => 'Hoppgräns'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (endast direkt)', + zero: 'Ingen gräns', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Radion lägger bara till kontakter automatiskt om de har färre hopp än detta värde. Alla sparas ändå i Upptäckta kontakter.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Begränsa upptäckta kontakter'; diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index 624c5c27..65ba94d5 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -5931,6 +5931,25 @@ class AppLocalizationsUk extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => 'Коли список контактів радіо заповнений, замінюється найстаріший контакт, якого немає в улюблених.'; + @override + String get contactsSettings_hopLimit => 'Ліміт переходів'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1 (лише напряму)', + zero: 'Без ліміту', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + 'Радіо автоматично додає лише контакти, до яких менше переходів, ніж це значення. У списку «Виявлені контакти» й надалі зберігаються всі.'; + @override String get contactsSettings_evictDiscoveredContactsTitle => 'Обмежувати виявлені контакти'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index da104381..a39e115a 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -5504,6 +5504,25 @@ class AppLocalizationsZh extends AppLocalizations { String get contactsSettings_overwriteOldestSubtitle => '无线电的联系人列表已满时,替换最旧的非收藏联系人。'; + @override + String get contactsSettings_hopLimit => '跳数限制'; + + @override + String contactsSettings_hopLimitOption(int hops) { + String _temp0 = intl.Intl.pluralLogic( + hops, + locale: localeName, + other: '$hops', + one: '1(仅直连)', + zero: '不限', + ); + return '$_temp0'; + } + + @override + String get contactsSettings_hopLimitSubtitle => + '无线电只会自动添加跳数少于此值的联系人。“已发现的联系人”中仍会保存全部。'; + @override String get contactsSettings_evictDiscoveredContactsTitle => '限制已发现的联系人'; diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index d76228dc..21d7f20d 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -2180,6 +2180,9 @@ } }, "contactsSettings_overwriteOldestSubtitle": "Als de contactenlijst van de radio vol is, het oudste contact vervangen dat geen favoriet is.", + "contactsSettings_hopLimit": "Hoplimiet", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Geen limiet} =1{1 (alleen direct)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "De radio voegt alleen contacten met minder hops dan deze waarde automatisch toe. In Ontdekte contacten worden ze nog steeds allemaal opgeslagen.", "contactsSettings_evictDiscoveredContactsTitle": "Ontdekte contacten beperken", "contactsSettings_evictDiscoveredContactsSubtitle": "De app beperkt de lijst \"Ontdekte contacten\" tot {limit} items. Bij het bereiken van de limiet worden oudere contacten verwijderd. Schakel uit om de limiet op te heffen.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index 8530ef0e..e0d02776 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -2180,6 +2180,9 @@ "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 w radiu jest pełna, najstarszy kontakt spoza ulubionych zostanie zastąpiony.", + "contactsSettings_hopLimit": "Limit skoków", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Bez limitu} =1{1 (tylko bezpośrednio)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Radio automatycznie dodaje tylko kontakty z mniejszą liczbą skoków niż ta wartość. Lista „Odkryte Kontakty” nadal zapisuje wszystkie.", "contactsSettings_evictDiscoveredContactsTitle": "Ogranicz odkryte kontakty", "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikacja ogranicza listę „Odkryte Kontakty” do {limit} pozycji. Po osiągnięciu limitu starsze kontakty są usuwane. Wyłącz, aby znieść limit.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index fd628855..f3547f3f 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -2073,6 +2073,9 @@ } }, "contactsSettings_overwriteOldestSubtitle": "Quando a lista de contatos do rádio estiver cheia, substitui o contato mais antigo que não seja favorito.", + "contactsSettings_hopLimit": "Limite de saltos", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Sem limite} =1{1 (somente direto)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "O rádio só adiciona automaticamente contatos com menos saltos que este valor. Todos continuam sendo salvos em Contatos Descobertos.", "contactsSettings_evictDiscoveredContactsTitle": "Limitar contatos descobertos", "contactsSettings_evictDiscoveredContactsSubtitle": "O app limita a lista \"Contatos Descobertos\" a {limit} entradas. Ao atingir o limite, os contatos mais antigos são removidos. Desative para remover o limite.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index db33d8fd..6f11ba88 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -1610,6 +1610,9 @@ "contactsSettings_autoAddSensorsTitle": "Sensores", "contactsSettings_overwriteOldestTitle": "Substituir o mais antigo", "contactsSettings_overwriteOldestSubtitle": "Quando a lista de contactos do rádio estiver cheia, substitui o contacto mais antigo que não seja favorito.", + "contactsSettings_hopLimit": "Limite de hops", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Sem limite} =1{1 (apenas direto)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "O rádio só adiciona automaticamente contactos com menos hops do que este valor. Todos continuam a ser guardados em Contactos descobertos.", "contactsSettings_evictDiscoveredContactsTitle": "Limitar contactos descobertos", "contactsSettings_evictDiscoveredContactsSubtitle": "A app limita a lista \"Contactos descobertos\" a {limit} entradas. Ao atingir o limite, os contactos mais antigos são removidos. Desative para remover o limite.", "discoveredContacts_Title": "Contactos descobertos", diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index 36fda42a..f1534715 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -1321,6 +1321,9 @@ "discoveredContacts_importSummary": "Импортировано: {imported}, пропущено уже известных: {skipped}, нечитаемых записей: {invalid}.", "discoveredContacts_importTooLarge": "Файл импорта слишком большой (максимум {maxMb} МБ).", "contactsSettings_overwriteOldestSubtitle": "Когда список контактов радио заполнен, заменяется самый старый контакт не из избранного.", + "contactsSettings_hopLimit": "Лимит хопов", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Без лимита} =1{1 (только напрямую)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Радио автоматически добавляет только контакты, до которых меньше хопов, чем это значение. В списке «Обнаруженные контакты» по-прежнему сохраняются все.", "contactsSettings_evictDiscoveredContactsTitle": "Ограничивать обнаруженные контакты", "contactsSettings_evictDiscoveredContactsSubtitle": "Приложение ограничивает список «Обнаруженные контакты» до {limit} записей. При достижении лимита старые контакты удаляются. Отключите, чтобы снять ограничение.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb index d0154f79..14b282fa 100644 --- a/lib/l10n/app_sk.arb +++ b/lib/l10n/app_sk.arb @@ -2147,6 +2147,9 @@ } }, "contactsSettings_overwriteOldestSubtitle": "Keď je zoznam kontaktov v rádiu plný, nahradí sa najstarší kontakt, ktorý nie je obľúbený.", + "contactsSettings_hopLimit": "Limit skokov", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Bez obmedzenia} =1{1 (iba priamo)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Rádio automaticky pridá iba kontakty s menším počtom skokov, než je táto hodnota. Zoznam „Objavené kontakty“ aj tak uloží všetky.", "contactsSettings_evictDiscoveredContactsTitle": "Obmedziť objavené kontakty", "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikácia obmedzuje zoznam „Objavené kontakty“ na {limit} položiek. Po dosiahnutí limitu sa staršie kontakty odstránia. Vypnite pre zrušenie limitu.", "@contactsSettings_evictDiscoveredContactsSubtitle": { diff --git a/lib/l10n/app_sl.arb b/lib/l10n/app_sl.arb index 7e0e7222..fc2acb06 100644 --- a/lib/l10n/app_sl.arb +++ b/lib/l10n/app_sl.arb @@ -2073,6 +2073,9 @@ } }, "contactsSettings_overwriteOldestSubtitle": "Ko je seznam stikov v radiu poln, se zamenja najstarejši stik, ki ni med priljubljenimi.", + "contactsSettings_hopLimit": "Omejitev skokov", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Brez omejitve} =1{1 (samo neposredno)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Radio avtomatsko doda le stike z manj skoki od te vrednosti. Seznam »Odkriti stiki« še vedno shrani vse.", "contactsSettings_evictDiscoveredContactsTitle": "Omeji odkrite stike", "contactsSettings_evictDiscoveredContactsSubtitle": "Aplikacija omeji seznam »Odkriti stiki« na {limit} vnosov. Ko je omejitev dosežena, se starejši stiki odstranijo. Izklopite za odpravo omejitve.", "common_deleteAll": "Izbriši vse", diff --git a/lib/l10n/app_sv.arb b/lib/l10n/app_sv.arb index 0962936c..68f4d01e 100644 --- a/lib/l10n/app_sv.arb +++ b/lib/l10n/app_sv.arb @@ -2074,6 +2074,9 @@ "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 radions kontaktlista är full ersätts den äldsta kontakten som inte är en favorit.", + "contactsSettings_hopLimit": "Hoppgräns", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Ingen gräns} =1{1 (endast direkt)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Radion lägger bara till kontakter automatiskt om de har färre hopp än detta värde. Alla sparas ändå i Upptäckta kontakter.", "contactsSettings_evictDiscoveredContactsTitle": "Begränsa upptäckta kontakter", "contactsSettings_evictDiscoveredContactsSubtitle": "Appen begränsar listan ”Upptäckta kontakter” till {limit} poster. När gränsen nås tas äldre kontakter bort. Stäng av för att ta bort gränsen.", "common_deleteAll": "Ta bort alla", diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index fa657172..418a62f0 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -2152,6 +2152,9 @@ "discoveredContacts_importSummary": "Імпортовано: {imported}, пропущено вже відомих: {skipped}, нечитабельних записів: {invalid}.", "discoveredContacts_importTooLarge": "Файл імпорту завеликий (максимум {maxMb} МБ).", "contactsSettings_overwriteOldestSubtitle": "Коли список контактів радіо заповнений, замінюється найстаріший контакт, якого немає в улюблених.", + "contactsSettings_hopLimit": "Ліміт переходів", + "contactsSettings_hopLimitOption": "{hops, plural, =0{Без ліміту} =1{1 (лише напряму)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "Радіо автоматично додає лише контакти, до яких менше переходів, ніж це значення. У списку «Виявлені контакти» й надалі зберігаються всі.", "contactsSettings_evictDiscoveredContactsTitle": "Обмежувати виявлені контакти", "contactsSettings_evictDiscoveredContactsSubtitle": "Застосунок обмежує список «Виявлені контакти» до {limit} записів. Коли ліміт досягнуто, старіші контакти видаляються. Вимкніть, щоб зняти обмеження.", "common_deleteAll": "Видалити все", diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 018b2b7d..56a03ab2 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -2078,6 +2078,9 @@ } }, "contactsSettings_overwriteOldestSubtitle": "无线电的联系人列表已满时,替换最旧的非收藏联系人。", + "contactsSettings_hopLimit": "跳数限制", + "contactsSettings_hopLimitOption": "{hops, plural, =0{不限} =1{1(仅直连)} other{{hops}}}", + "contactsSettings_hopLimitSubtitle": "无线电只会自动添加跳数少于此值的联系人。“已发现的联系人”中仍会保存全部。", "contactsSettings_evictDiscoveredContactsTitle": "限制已发现的联系人", "contactsSettings_evictDiscoveredContactsSubtitle": "应用将“已发现的联系人”列表限制为 {limit} 条。达到上限时会移除较旧的联系人。关闭后不限数量。", "common_deleteAll": "删除全部", diff --git a/lib/review_mode/review_radio.dart b/lib/review_mode/review_radio.dart index 91abe8a6..44ae7a58 100644 --- a/lib/review_mode/review_radio.dart +++ b/lib/review_mode/review_radio.dart @@ -1,5 +1,6 @@ import 'dart:async'; import 'dart:convert'; +import 'dart:math' as math; import 'package:flutter/foundation.dart'; @@ -66,6 +67,7 @@ class ReviewRadio { int _txPowerDbm = ReviewScript.txPowerDbm; int _autoAddFlags = autoAddChatFlag | autoAddRepeaterFlag | autoAddRoomServerFlag; + int _autoAddMaxHops = 0; int _timeOffsetSecs = 0; /// Frames radio to app. Each event is one complete companion frame. @@ -240,10 +242,17 @@ class ReviewRadio { _emit([ReviewFrames.customVars('gps:0')]); break; case cmdGetAutoAddConfig: - _emit([ReviewFrames.autoAddConfig(flags: _autoAddFlags)]); + _emit([ + ReviewFrames.autoAddConfig( + flags: _autoAddFlags, + maxHops: _autoAddMaxHops, + ), + ]); break; case cmdSetAutoAddConfig: if (frame.length >= 2) _autoAddFlags = frame[1]; + // Like firmware: the optional hop limit, capped at 64. + if (frame.length >= 3) _autoAddMaxHops = math.min(frame[2], 64); _emit([ReviewFrames.ok()]); break; case cmdGetAllowedRepeatFreq: diff --git a/lib/screens/contact_settings_screen.dart b/lib/screens/contact_settings_screen.dart index 37fd8c9c..3fcd171d 100644 --- a/lib/screens/contact_settings_screen.dart +++ b/lib/screens/contact_settings_screen.dart @@ -16,6 +16,7 @@ typedef _ContactForm = ({ bool autoAddRoomServers, bool autoAddSensors, bool overwriteOldest, + int? maxHops, bool evictDiscovered, }); @@ -33,6 +34,8 @@ class _ContactSettingsScreenState extends State { late bool _autoAddRoomServers; late bool _autoAddSensors; late bool _overwriteOldest; + // Null when the firmware doesn't report a hop limit. + int? _maxHops; late bool _evictDiscovered; late _ContactForm _savedForm; @@ -45,6 +48,7 @@ class _ContactSettingsScreenState extends State { _autoAddRoomServers = connector.autoAddRoomServers ?? false; _autoAddSensors = connector.autoAddSensors ?? false; _overwriteOldest = connector.autoAddOverwriteOldest ?? false; + _maxHops = connector.autoAddMaxHops; _evictDiscovered = context .read() .settings @@ -58,6 +62,7 @@ class _ContactSettingsScreenState extends State { autoAddRoomServers: _autoAddRoomServers, autoAddSensors: _autoAddSensors, overwriteOldest: _overwriteOldest, + maxHops: _maxHops, evictDiscovered: _evictDiscovered, ); @@ -73,6 +78,8 @@ class _ContactSettingsScreenState extends State { autoAddRoomServer: form.autoAddRoomServers, autoAddSensor: form.autoAddSensors, overwriteOldest: form.overwriteOldest, + // Sent only when changed, so the frame is otherwise unchanged. + maxHops: form.maxHops != _savedForm.maxHops ? form.maxHops : null, ), ); await connector.sendFrame(buildGetAutoAddFlagsFrame()); @@ -168,6 +175,44 @@ class _ContactSettingsScreenState extends State { value: _overwriteOldest, onChanged: (v) => _overwriteOldest = v, ), + if (_maxHops != null) ...[ + divider, + // Same row shape as SettingsValueSlider: icon, title and + // description, with the dropdown under the description. + ListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, + ), + leading: const Icon(Icons.linear_scale, size: 24), + title: Text(l10n.contactsSettings_hopLimit), + subtitle: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(l10n.contactsSettings_hopLimitSubtitle), + const SizedBox(height: 8), + DropdownButtonFormField( + initialValue: _maxHops, + isExpanded: true, + // Firmware: 0 = no limit, N = under N hops (max 64). + items: [ + for (var hops = 0; hops <= 64; hops++) + DropdownMenuItem( + value: hops, + child: Text( + l10n.contactsSettings_hopLimitOption(hops), + overflow: TextOverflow.ellipsis, + ), + ), + ], + onChanged: (v) { + if (v != null) setState(() => _maxHops = v); + }, + ), + ], + ), + ), + ], divider, _switch( // The Discovered Contacts icon. diff --git a/test/connector/auto_add_config_frame_test.dart b/test/connector/auto_add_config_frame_test.dart new file mode 100644 index 00000000..df3eebd0 --- /dev/null +++ b/test/connector/auto_add_config_frame_test.dart @@ -0,0 +1,33 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:meshcore_open/connector/meshcore_protocol.dart'; + +void main() { + // CMD_SET_AUTOADD_CONFIG: [cmd][flags][autoadd_max_hops?]. Firmware stores + // the third byte (capped at 64) only when it is present. + group('buildSetAutoAddConfigFrame', () { + Iterable frame({int? maxHops}) => buildSetAutoAddConfigFrame( + autoAddChat: true, + autoAddRepeater: false, + autoAddRoomServer: true, + autoAddSensor: false, + overwriteOldest: true, + maxHops: maxHops, + ); + + const flags = + autoAddChatFlag | autoAddRoomServerFlag | autoAddOverwriteOldestFlag; + + test('omits the hop limit when not given', () { + expect(frame(), [cmdSetAutoAddConfig, flags]); + }); + + test('appends the hop limit, including 0 (no limit)', () { + expect(frame(maxHops: 8), [cmdSetAutoAddConfig, flags, 8]); + expect(frame(maxHops: 0), [cmdSetAutoAddConfig, flags, 0]); + }); + + test('caps the hop limit at 64', () { + expect(frame(maxHops: 200), [cmdSetAutoAddConfig, flags, 64]); + }); + }); +} diff --git a/test/screens/settings_pages_test.dart b/test/screens/settings_pages_test.dart index bd2c298f..51d5713b 100644 --- a/test/screens/settings_pages_test.dart +++ b/test/screens/settings_pages_test.dart @@ -37,6 +37,7 @@ final _l10n = AppLocalizationsEn(); MeshCoreConnector? _sharedConnector; AppSettingsService? _sharedSettings; +final _frameLog = BleDebugLogService(); Future _connectedConnector(WidgetTester tester) async { if (_sharedConnector != null) return _sharedConnector!; @@ -51,6 +52,7 @@ Future _connectedConnector(WidgetTester tester) async { pathHistoryService: PathHistoryService(storage), appSettingsService: settings, translationService: translation, + bleDebugLogService: _frameLog, ); connector.reviewRadioFactoryForTest = () => ReviewRadio( scheduledMessageInterval: const Duration(hours: 1), @@ -338,6 +340,77 @@ void main() { await tester.pumpWidget(const SizedBox()); }); + testWidgets('Contact Settings sends the hop limit and reads it back', ( + tester, + ) async { + final connector = await _connectedConnector(tester); + final original = connector.autoAddMaxHops; + expect(original, isNotNull, reason: 'review radio reports the hop limit'); + await tester.pumpWidget( + _app(connector, _launcher(const ContactSettingsScreen())), + ); + await _open(tester); + String option(int hops) => _l10n.contactsSettings_hopLimitOption(hops); + expect(find.text(option(original!)), findsOneWidget); + + Future setHops(int hops) async { + final field = find.byType(DropdownButtonFormField); + await tester.ensureVisible(field); + await tester.pumpAndSettle(); + await tester.tap(field); + await tester.pumpAndSettle(); + // The open menu builds only the rows around the current value. + final item = find.text(option(hops)); + await tester.scrollUntilVisible( + item, + hops < connector.autoAddMaxHops! ? -48 : 48, + scrollable: find.byType(Scrollable).last, + ); + await tester.pumpAndSettle(); + await tester.tap(item.last); + await tester.pumpAndSettle(); + await tester.tap(_saveAction); + await _waitFor(tester, () => connector.autoAddMaxHops == hops); + } + + // The last frame of [code] the app sent to the radio. + List lastSent(int code) => _frameLog.entries + .lastWhere((e) => e.outgoing && e.payload.first == code) + .payload; + int sentCount(int code) => _frameLog.entries + .where((e) => e.outgoing && e.payload.first == code) + .length; + + final fetchesBefore = sentCount(cmdGetAutoAddConfig); + await setHops(8); + expect(connector.autoAddMaxHops, 8); + expect(find.text(option(8)), findsOneWidget); + expect(_saveAction, findsNothing); + // [CMD_SET_AUTOADD_CONFIG][flags][max hops], then a fetch to read it back. + expect(lastSent(cmdSetAutoAddConfig), hasLength(3)); + expect(lastSent(cmdSetAutoAddConfig).last, 8); + expect(sentCount(cmdGetAutoAddConfig), fetchesBefore + 1); + + // Changing only another setting sends the old two-byte frame. + final overwrite = find.text(_l10n.contactsSettings_overwriteOldestTitle); + for (var i = 0; i < 2; i++) { + await tester.ensureVisible(overwrite); + await tester.pumpAndSettle(); + await tester.tap(overwrite); + await tester.pump(); + await tester.tap(_saveAction); + await _waitFor(tester, () => _saveAction.evaluate().isEmpty); + expect(lastSent(cmdSetAutoAddConfig), hasLength(2)); + } + expect(connector.autoAddMaxHops, 8); + + await setHops(original); + expect(connector.autoAddMaxHops, original); + expect(lastSent(cmdSetAutoAddConfig), hasLength(3)); + expect(lastSent(cmdSetAutoAddConfig).last, original); + await tester.pumpWidget(const SizedBox()); + }); + testWidgets('Node Name counts bytes and saves to the radio', (tester) async { final connector = await _connectedConnector(tester); final originalName = connector.selfName!; From 935d288c73d18677ff3a358b0dc893925427b462 Mon Sep 17 00:00:00 2001 From: celsoazevedo Date: Tue, 24 Nov 2026 01:14:03 +0000 Subject: [PATCH 05/17] Improve Portuguese (Portugal) translation Clearer wording and consistent terms in app_pt_PT.arb. Also clarifies the English help for set allow.read.only: a room server accepts logins without the room password, read-only. Co-Authored-By: Claude Opus 5.5 --- lib/l10n/app_en.arb | 2 +- lib/l10n/app_localizations.dart | 2 +- lib/l10n/app_localizations_en.dart | 2 +- lib/l10n/app_localizations_pt.dart | 191 ++++++++++++++--------------- lib/l10n/app_pt_PT.arb | 190 ++++++++++++++-------------- 5 files changed, 193 insertions(+), 194 deletions(-) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 642d7f16..0ce25d2c 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -2302,7 +2302,7 @@ "repeater_cliHelpSetAf": "Sets the air-time-factor.", "repeater_cliHelpSetTx": "Sets LoRa transmit power in dBm. (reboot to apply)", "repeater_cliHelpSetRepeat": "Enables or disables the repeater role for this node.", - "repeater_cliHelpSetAllowReadOnly": "(Room server) If 'on', then login in blank password will be allowed, but cannot Post to room. (just read only)", + "repeater_cliHelpSetAllowReadOnly": "(Room server) If 'on', allows login without the room password. Read-only, can't post to the room.", "repeater_cliHelpSetFloodMax": "Sets the maximum number of hops of inbound flood packet (if >= max, packet is not forwarded)", "repeater_cliHelpSetIntThresh": "Sets the Interference Threshold (in DB). Default is 14. Set to 0 to disable channel interference detection.", "repeater_cliHelpSetAgcResetInterval": "Sets the interval to reset the Auto Gain Controller. Set to 0 to disable.", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index b5c8ad8e..da99e682 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -7406,7 +7406,7 @@ abstract class AppLocalizations { /// No description provided for @repeater_cliHelpSetAllowReadOnly. /// /// In en, this message translates to: - /// **'(Room server) If \'on\', then login in blank password will be allowed, but cannot Post to room. (just read only)'** + /// **'(Room server) If \'on\', allows login without the room password. Read-only, can\'t post to the room.'** String get repeater_cliHelpSetAllowReadOnly; /// No description provided for @repeater_cliHelpSetFloodMax. diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 3b50a918..7396aae7 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -4208,7 +4208,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get repeater_cliHelpSetAllowReadOnly => - '(Room server) If \'on\', then login in blank password will be allowed, but cannot Post to room. (just read only)'; + '(Room server) If \'on\', allows login without the room password. Read-only, can\'t post to the room.'; @override String get repeater_cliHelpSetFloodMax => diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index e0e1b7b0..4d615c1c 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -8476,7 +8476,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { } @override - String get tcpErrorHostRequired => 'O anfitrião é obrigatório.'; + String get tcpErrorHostRequired => 'O endereço é obrigatório.'; @override String get tcpErrorPortInvalid => 'A porta tem de estar entre 1 e 65535.'; @@ -8863,7 +8863,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get nodeName_info => - 'Cada byte do seu nome é menos um para as mensagens de canal. Os caracteres especiais e os emojis podem ocupar mais do que um byte.'; + 'Cada byte do seu nome é menos um para as mensagens de canal. Os carateres especiais e os emojis podem ocupar mais do que um byte.'; @override String get nodeName_messageLength => 'Tamanho da mensagem'; @@ -8910,7 +8910,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_radioSettingsSubtitle => - 'Frequência, potência, fator de espalhamento'; + 'Frequência, potência, spreading factor'; @override String get settings_unsavedChangesMessage => @@ -8957,7 +8957,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { } @override - String get settings_regionNoRegion => 'Sem região (sem âmbito)'; + String get settings_regionNoRegion => 'Sem região (unscoped)'; @override String get settings_regionRadioDefault => 'Região predefinida do rádio'; @@ -9302,7 +9302,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get settings_bandwidth => 'Largura de banda'; @override - String get settings_spreadingFactor => 'Fator de espalhamento'; + String get settings_spreadingFactor => 'Spreading Factor'; @override String get settings_codingRate => 'Coding Rate'; @@ -9323,7 +9323,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_clientRepeatDescription => - 'Permite que este dispositivo repita pacotes. Destina-se a locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVÁ-LO, é provável que perca a ligação ao resto da mesh. Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e fator de espalhamento (SF). Só o coding rate (CR) pode ser diferente.'; + 'Permite que este dispositivo repita pacotes. Destina-se a locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVÁ-LO, é provável que perca a ligação ao resto da mesh. Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e spreading factor (SF). Só o coding rate (CR) pode ser diferente.'; @override String get settings_clientRepeatSwitch => 'Modo de repetição'; @@ -9597,7 +9597,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Também substitui os fundos definidos em conversas individuais'; @override - String get appSettings_language => 'Idioma'; + String get appSettings_language => 'Língua'; @override String get appSettings_languageSystem => 'Predefinição do sistema'; @@ -9833,7 +9833,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_directRetriesSubtitle => - 'Quantas vezes tentar um caminho conhecido. Continua disponível com a rotação automática de caminhos desligada.'; + 'Quantas vezes tentar um caminho conhecido. Continua disponível com a rotação automática de rotas desligada.'; @override String appSettings_floodRetries(int count) { @@ -9842,16 +9842,16 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_floodRetriesSubtitle => - 'Quantas vezes usar Flood. Flood usa mais tempo de ar. Com a rotação ligada, vêm a seguir às tentativas diretas.'; + 'Quantas vezes usar Flood. O Flood usa mais airtime. Com a rotação ligada, vêm a seguir às tentativas diretas.'; @override String appSettings_loginAttempts(int count) { - return 'Tentativas de início de sessão: $count'; + return 'Tentativas de login: $count'; } @override String get appSettings_loginAttemptsSubtitle => - 'Quantas vezes tentar iniciar sessão num repetidor ou servidor de sala antes de desistir.'; + 'Quantas vezes tenta iniciar sessão num repetidor ou sala antes de desistir.'; @override String get appSettings_repeatersAndRooms => 'Repetidores e salas'; @@ -9862,7 +9862,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_clockSyncAfterLoginSubtitle => - 'Depois de iniciar sessão num repetidor, é enviado clock sync. Cada repetidor pode continuar a escolher Predefinição, Ligado ou Desligado.'; + 'Depois de entrar num repetidor, o relógio é sincronizado. Cada repetidor pode continuar a escolher Predefinição, Ligado ou Desligado.'; @override String get appSettings_loginPasswordAutofocus => @@ -9870,7 +9870,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_loginPasswordAutofocusSubtitle => - 'Ao abrir o início de sessão de um repetidor ou sala, o cursor vai para a palavra-passe se estiver vazia. Desligado deixa o diálogo visível até tocar no campo.'; + 'Ao entrar num repetidor ou sala, o campo da palavra-passe fica logo selecionado, se estiver vazio. Desligado deixa o diálogo visível até tocar no campo.'; @override String get appSettings_resetRepeaterRoomSettings => @@ -10012,10 +10012,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_showNodesDiscoveredWithin => - 'Mostrar nós descobertos nos últimos:'; + 'Mostrar nós descobertos nas últimas:'; @override - String get appSettings_allTime => 'Sempre'; + String get appSettings_allTime => 'Todos'; @override String get appSettings_lastHour => 'Última hora'; @@ -10127,7 +10127,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String contacts_searchRoomServers(int number, String str) { - return 'Pesquisar $number$str room servers...'; + return 'Pesquisar $number$str salas...'; } @override @@ -10183,10 +10183,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get contacts_manageRepeater => 'Gerir repetidor'; @override - String get contacts_manageRoom => 'Gerir room server'; + String get contacts_manageRoom => 'Gerir sala'; @override - String get contacts_roomLogin => 'Início de sessão no room server'; + String get contacts_roomLogin => 'Entrar na sala'; @override String get contacts_openChat => 'Abrir conversa'; @@ -10419,7 +10419,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get channels_usePublicChannel => 'Usar canal público'; @override - String get channels_standardPublicPsk => 'PSK público padrão'; + String get channels_standardPublicPsk => 'PSK pública padrão'; @override String get channels_pskHex => 'PSK (Hex)'; @@ -10432,7 +10432,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get channels_pskMustBe32Hex => - 'A PSK tem de ter 32 caracteres hexadecimais'; + 'A PSK tem de ter 32 carateres hexadecimais'; @override String channels_channelAdded(String name) { @@ -10452,7 +10452,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get channels_cyr2latSettingsDscr => - 'Editar a configuração JSON da substituição de caracteres'; + 'Editar a configuração JSON da substituição de carateres'; @override String get channels_cyr2latSettingsDialogHint => 'Mapa de substituição JSON'; @@ -10821,14 +10821,14 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get chat_ipfsUploadNotConfigured => - 'Configure primeiro um fornecedor de envio IPFS nas Definições da app.'; + 'Configure primeiro um fornecedor de carregamento IPFS nas Definições da app.'; @override String get chat_ipfsSelectedFileEmpty => 'O ficheiro selecionado está vazio.'; @override String get chat_ipfsEndpointInvalid => - 'O endpoint de envio IPFS tem de ser um endereço http:// ou https:// completo. Verifique-o nas Definições da app.'; + 'O endpoint de carregamento IPFS tem de ser um endereço http:// ou https:// completo. Verifique-o nas Definições da app.'; @override String get chat_ipfsPinataTokenMissing => @@ -10840,7 +10840,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get chat_ipfsKuboPathInvalid => - 'O endpoint de envio Kubo tem de terminar em /api/v0/add. Verifique-o nas Definições da app.'; + 'O endpoint de carregamento Kubo tem de terminar em /api/v0/add. Verifique-o nas Definições da app.'; @override String get chat_ipfsLinkNoRoom => @@ -10890,7 +10890,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get gifPicker_searchHint => 'Pesquisar GIFs...'; @override - String get gifPicker_poweredBy => 'Desenvolvido por GIPHY'; + String get gifPicker_poweredBy => 'Com tecnologia GIPHY'; @override String get gifPicker_noGifsFound => 'Nenhum GIF encontrado'; @@ -11039,7 +11039,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get routing_modeDirectHint => - 'Envia sempre diretamente para este contacto, sem hops de repetidores. Use quando estiver no alcance de rádio.'; + 'Envia sempre diretamente para este contacto, sem hops de repetidores. Use-o quando o contacto estiver ao alcance do rádio.'; @override String get routing_currentRoute => 'Rota atual'; @@ -11119,7 +11119,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get pathEditor_addHops => 'Adicionar hops por ordem'; @override - String get pathEditor_searchRepeaters => 'Pesquisar repetidores'; + String get pathEditor_searchRepeaters => 'Pesquisar nome ou hash'; @override String get pathEditor_advancedHex => 'Avançado: caminho hex em bruto'; @@ -11129,7 +11129,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String pathEditor_hexHelper(int count) { - return '$count caracteres hex por hop, separados por vírgulas'; + return '$count carateres hex por hop, separados por vírgulas'; } @override @@ -11486,7 +11486,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get map_guessedLocation => 'Localização estimada'; @override - String get map_lastSeenTime => 'Hora da última vez visto'; + String get map_lastSeenTime => 'Visto pela última vez'; @override String get map_sharedPin => 'Marcador partilhado'; @@ -11570,11 +11570,11 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get manualTrace_errorInvalidHex => - 'Só são permitidos caracteres hex (0-9, A-F)'; + 'Só são permitidos carateres hex (0-9, A-F)'; @override String get manualTrace_errorOddLength => - 'Cada hash precisa de um número par de caracteres hex, correspondente ao tamanho do hop'; + 'Cada hash precisa de um número par de carateres hex, correspondente ao tamanho do hop'; @override String get manualTrace_errorMixedWidths => @@ -11582,7 +11582,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get manualTrace_errorUnsupportedWidth => - 'Os hashes têm de ter 1, 2 ou 3 bytes (2, 4 ou 6 caracteres hex)'; + 'Os hashes têm de ter 1, 2 ou 3 bytes (2, 4 ou 6 carateres hex)'; @override String manualTrace_errorTooManyHops(int max) { @@ -11760,7 +11760,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get time_minutes => 'minutos'; @override - String get time_allTime => 'Sempre'; + String get time_allTime => 'Todos'; @override String get dialog_disconnect => 'Desligar'; @@ -11770,10 +11770,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Tem a certeza de que quer desligar deste dispositivo?'; @override - String get login_repeaterLogin => 'Início de sessão do repetidor'; + String get login_repeaterLogin => 'Entrar no repetidor'; @override - String get login_roomLogin => 'Início de sessão do room server'; + String get login_roomLogin => 'Entrar na sala'; @override String get login_password => 'Palavra-passe'; @@ -11830,12 +11830,12 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String login_failed(String error) { - return 'Falha ao iniciar sessão: $error'; + return 'Falha no login: $error'; } @override String get login_failedMessage => - 'Falha ao iniciar sessão. A palavra-passe está incorreta ou o repetidor está inacessível.'; + 'Falha no login. A palavra-passe está incorreta ou o repetidor está inacessível.'; @override String get common_reload => 'Recarregar'; @@ -11850,20 +11850,19 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get path_currentPathLabel => 'Caminho atual'; @override - String get path_noRepeatersFound => - 'Nenhum repetidor ou room server encontrado.'; + String get path_noRepeatersFound => 'Nenhum repetidor ou sala encontrado.'; @override String get repeater_management => 'Gestão do repetidor'; @override - String get room_management => 'Gestão do room server'; + String get room_management => 'Gestão da sala'; @override String get repeater_guest => 'Informações do repetidor'; @override - String get room_guest => 'Informações do room server'; + String get room_guest => 'Informações da sala'; @override String get repeater_managementTools => 'Ferramentas de gestão'; @@ -11914,7 +11913,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_clockSyncAfterLoginSubtitle => - 'Predefinição segue Repetidores e salas nas definições. Ligado e Desligado valem só para este repetidor.'; + 'Predefinição segue Repetidores e salas nas definições da app. Ligado e Desligado aplicam-se só a este repetidor.'; @override String get repeater_clockSyncDefault => 'Predefinição'; @@ -11970,7 +11969,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get repeater_lastSnr => 'Último SNR'; @override - String get repeater_noiseFloor => 'Noise floor'; + String get repeater_noiseFloor => 'Ruído de fundo'; @override String get repeater_txAirtime => 'Airtime TX'; @@ -12281,7 +12280,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_prvKeyHelper => - 'Uma nova chave privada para o repetidor, uma cadeia hexadecimal de 128 caracteres.'; + 'Uma nova chave privada para o repetidor, uma cadeia hexadecimal de 128 carateres.'; @override String get repeater_generatePrvKey => 'Gerar um par de chaves aleatório'; @@ -12399,7 +12398,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String repeater_refreshed(String label) { - return '$label atualizado'; + return 'Atualizado: $label'; } @override @@ -12509,7 +12508,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpSetAllowReadOnly => - '(Room server) Se \'on\', o início de sessão com palavra-passe em branco é permitido, mas não pode publicar na sala. (só leitura)'; + '(Sala) Se \'on\', permite login sem palavra-passe. Leitura apenas, sem permissão para publicar.'; @override String get repeater_cliHelpSetFloodMax => @@ -12567,7 +12566,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Igual a txdelay, mas aplica um atraso aleatório ao reencaminhamento de pacotes em modo direto.'; @override - String get repeater_cliHelpSetBridgeEnabled => 'Ativar/desativar bridge.'; + String get repeater_cliHelpSetBridgeEnabled => 'Ativar/desativar ponte.'; @override String get repeater_cliHelpSetBridgeDelay => @@ -12575,15 +12574,15 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpSetBridgeSource => - 'Escolhe se a bridge retransmite pacotes recebidos ou transmitidos.'; + 'Escolhe se a ponte retransmite pacotes recebidos ou transmitidos.'; @override String get repeater_cliHelpSetBridgeBaud => - 'Define o baudrate da ligação série para bridges rs232.'; + 'Define o baudrate da ligação série para pontes rs232.'; @override String get repeater_cliHelpSetBridgeSecret => - 'Define o segredo da bridge para bridges espnow.'; + 'Define o segredo da ponte para pontes espnow.'; @override String get repeater_cliHelpSetAdcMultiplier => @@ -12599,7 +12598,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpGetBridgeType => - 'Obtém o tipo de bridge: none, rs232, espnow'; + 'Obtém o tipo de ponte: none, rs232, espnow'; @override String get repeater_cliHelpLogStart => @@ -12607,7 +12606,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpLogStop => - 'Pára o registo de pacotes no sistema de ficheiros.'; + 'Termina o registo de pacotes no sistema de ficheiros.'; @override String get repeater_cliHelpLogErase => @@ -12631,7 +12630,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpRegionGet => - 'Procura a região com o prefixo de nome indicado (ou \"*\" para o âmbito global). Responde com \"-> region-name (parent-name) \'F\'\"'; + 'Procura a região com o prefixo de nome indicado (ou \"*\" para o scope global). Responde com \"-> region-name (parent-name) \'F\'\"'; @override String get repeater_cliHelpRegionPut => @@ -12643,11 +12642,11 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpRegionAllowf => - 'Define a permissão \'F\'lood para a região indicada. (\'*\' para o âmbito global/legado)'; + 'Define a permissão \'F\'lood para a região indicada. (\'*\' para o scope global/legado)'; @override String get repeater_cliHelpRegionDenyf => - 'Remove a permissão \'F\'lood da região indicada. (NOTA: nesta fase NÃO é aconselhável usar isto no âmbito global/legado!!)'; + 'Remove a permissão \'F\'lood da região indicada. (NOTA: nesta fase NÃO é aconselhável usar isto no scope global/legado!!)'; @override String get repeater_cliHelpRegionHome => @@ -12725,7 +12724,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpSetFloodMaxUnscoped => - 'Define o número máximo de hops para reencaminhar pacotes Flood sem âmbito de região (0-64).'; + 'Define o número máximo de hops para reencaminhar pacotes Flood sem scope de região (0-64).'; @override String get repeater_cliHelpSetFloodMaxAdvert => @@ -12733,7 +12732,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpGetFloodMaxUnscoped => - 'Mostra o número máximo de hops para pacotes Flood sem âmbito.'; + 'Mostra o número máximo de hops para pacotes Flood unscoped.'; @override String get repeater_cliHelpGetFloodMaxAdvert => @@ -12757,7 +12756,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_bridgeNote => - 'Só disponível em firmware compilado com bridge (RS232 ou ESP-NOW).'; + 'Só disponível em firmware compilado com ponte (RS232 ou ESP-NOW).'; @override String get repeater_general => 'Geral'; @@ -12852,7 +12851,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpSetOwnerInfo => - 'Define a cadeia de contacto do proprietário incluída nos anúncios. Use \'|\' para novas linhas.'; + 'Define o texto de contacto do proprietário incluído nos anúncios. Use \'|\' para novas linhas.'; @override String get repeater_cliHelpSetPathHashMode => @@ -12868,14 +12867,14 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpSetBridgeChannel => - '(só bridge ESPNow) Define o canal WiFi (1-14) usado pela bridge.'; + '(só ponte ESPNow) Define o canal WiFi (1-14) usado pela ponte.'; @override String get repeater_cliHelpGetName => 'Mostra o nome do nó configurado.'; @override String get repeater_cliHelpGetRole => - 'Mostra a função do firmware (Repetidor, Room Server, etc.).'; + 'Mostra a função do firmware (Repetidor, Sala, etc.).'; @override String get repeater_cliHelpGetPublicKey => @@ -12962,7 +12961,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpGetOwnerInfo => - 'Mostra a cadeia de contacto do proprietário.'; + 'Mostra o texto de contacto do proprietário.'; @override String get repeater_cliHelpGetPathHashMode => @@ -12978,27 +12977,27 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpGetBridgeEnabled => - 'Mostra se a bridge está ativada.'; + 'Mostra se a ponte está ativada.'; @override String get repeater_cliHelpGetBridgeDelay => - 'Mostra o atraso da bridge em ms.'; + 'Mostra o atraso da ponte em ms.'; @override String get repeater_cliHelpGetBridgeSource => - 'Mostra se a bridge regista pacotes RX ou TX.'; + 'Mostra se a ponte regista pacotes RX ou TX.'; @override String get repeater_cliHelpGetBridgeBaud => - '(só bridge RS232) Mostra o baud rate da bridge.'; + '(só ponte RS232) Mostra o baud rate da ponte.'; @override String get repeater_cliHelpGetBridgeChannel => - '(só bridge ESPNow) Mostra o canal WiFi da bridge.'; + '(só ponte ESPNow) Mostra o canal WiFi da ponte.'; @override String get repeater_cliHelpGetBridgeSecret => - '(só bridge ESPNow) Mostra o segredo partilhado da bridge.'; + '(só ponte ESPNow) Mostra o segredo partilhado da ponte.'; @override String get repeater_cliHelpGetBootloaderVer => @@ -13038,11 +13037,11 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get repeater_cliHelpRegionDefault => - 'Mostra o âmbito de região predefinido atual.'; + 'Mostra o scope de região predefinido atual.'; @override String get repeater_cliHelpRegionDefaultSet => - 'Define o âmbito de região predefinido. Use \"\" para limpar.'; + 'Define o scope de região predefinido. Use \"\" para limpar.'; @override String get repeater_cliHelpRegionListAllowed => @@ -13486,7 +13485,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String community_deleteChannelsWarning(int count) { - return 'Isto também elimina $count canal(ais) e as respetivas mensagens.'; + return 'Isto também elimina $count canal/canais e as respetivas mensagens.'; } @override @@ -13538,14 +13537,14 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get community_regularHashtagDesc => - 'Hashtag público (qualquer pessoa pode entrar)'; + 'Hashtag pública (qualquer pessoa pode entrar)'; @override String get community_communityHashtag => 'Hashtag da comunidade'; @override String get community_communityHashtagDesc => - 'Privado para membros da comunidade'; + 'Privada para membros da comunidade'; @override String community_forCommunity(String name) { @@ -13589,7 +13588,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get listFilter_repeaters => 'Repetidores'; @override - String get listFilter_roomServers => 'Servidores de sala'; + String get listFilter_roomServers => 'Salas'; @override String get listFilter_unreadOnly => 'Só não lidas'; @@ -13640,7 +13639,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Toque nos nós ou prima longamente o mapa para pontos personalizados'; @override - String get losShowDisplayNodes => 'Mostrar nós de visualização'; + String get losShowDisplayNodes => 'Mostrar nós no mapa'; @override String get losCustomPoints => 'Pontos personalizados'; @@ -13799,10 +13798,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get contacts_repeaterPing => 'Ping ao repetidor'; @override - String get contacts_roomPathTrace => 'Trace do caminho até ao room server'; + String get contacts_roomPathTrace => 'Trace do caminho até à sala'; @override - String get contacts_roomPing => 'Ping ao room server'; + String get contacts_roomPing => 'Ping à sala'; @override String get contacts_chatTraceRoute => 'Rota do trace do caminho'; @@ -13988,7 +13987,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String notification_reacted(String emoji) { - return 'Reagiu $emoji'; + return 'Reagiu com $emoji'; } @override @@ -14083,7 +14082,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_gpxExportRepeatersRoom => - 'Localizações de repetidores e room servers'; + 'Localizações de repetidores e salas'; @override String get settings_gpxExportChat => 'Localizações de companions'; @@ -14138,7 +14137,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get contactsSettings_autoAddRepeatersTitle => 'Repetidores'; @override - String get contactsSettings_autoAddRoomServersTitle => 'Servidores de sala'; + String get contactsSettings_autoAddRoomServersTitle => 'Salas'; @override String get contactsSettings_autoAddSensorsTitle => 'Sensores'; @@ -14198,7 +14197,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get discoveredContacts_scanExplanation => - 'Pede aos nós ao alcance direto do rádio que se identifiquem. Repetidores e sensores respondem. Room servers e companions normalmente não.'; + 'Pede aos nós ao alcance direto do rádio que se identifiquem. Repetidores e sensores respondem. Salas e companions normalmente não.'; @override String get discoveredContacts_scanning => 'A procurar…'; @@ -14385,7 +14384,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get translation_composerSubtitle => - 'Controla o estado predefinido do ícone de tradução do compositor.'; + 'Controla o estado predefinido do ícone de tradução no campo de mensagem.'; @override String get translation_autoIncomingTitle => @@ -14399,10 +14398,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get translation_translateMessage => 'Traduzir mensagem'; @override - String get translation_targetLanguage => 'Idioma de destino'; + String get translation_targetLanguage => 'Língua de destino'; @override - String get translation_useAppLanguage => 'Usar o idioma da app'; + String get translation_useAppLanguage => 'Usar a língua da app'; @override String get translation_downloadedModelLabel => 'Modelo transferido'; @@ -14411,7 +14410,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get translation_presetModelLabel => 'Modelo Hugging Face predefinido'; @override - String get translation_manualUrlLabel => 'URL do modelo manual'; + String get translation_manualUrlLabel => 'URL manual do modelo'; @override String get translation_downloadModel => 'Transferir modelo'; @@ -14476,7 +14475,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get translation_composerDisabledHint => - 'Enviar mensagens no idioma original escrito.'; + 'As mensagens são enviadas na língua em que foram escritas.'; @override String translation_translateTo(String language) { @@ -14487,7 +14486,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get translation_translationOptions => 'Opções de tradução'; @override - String get translation_systemLanguage => 'Idioma do sistema'; + String get translation_systemLanguage => 'Língua do sistema'; @override String get background_serviceTitle => 'MeshCore em execução'; @@ -14894,7 +14893,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Imagem recebida — a descodificação de imagens está desativada'; @override - String get receivedImage_evicted => 'Imagem já não guardada'; + String get receivedImage_evicted => 'A imagem já não está guardada'; @override String get receivedImage_retry => 'Tentar novamente'; @@ -15012,11 +15011,11 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Máximo de hops que um anúncio em flood pode percorrer (0-64, predefinição 8)'; @override - String get repeater_floodMaxUnscoped => 'Máx. hops de flood sem âmbito'; + String get repeater_floodMaxUnscoped => 'Máx. hops de flood unscoped'; @override String get repeater_floodMaxUnscopedHelper => - 'Máximo de hops para floods sem âmbito de região (0-64, predefinição 64). Um valor baixo, como 3, mantém o tráfego sem âmbito local.'; + 'Máximo de hops para floods sem scope de região (0-64, predefinição 64). Um valor baixo, como 3, mantém local o tráfego unscoped.'; @override String get repeater_floodMaxUnscopedUnset => 'Igual ao máx. de flood'; @@ -15666,7 +15665,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get networkMap_locationEstimated => - 'Localização aproximada, estimada por quem o ouviu'; + 'Localização aproximada, estimada a partir de quem o ouviu'; @override String get networkMap_locationAdvertised => @@ -15814,7 +15813,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get messageFilter_repeatedCharactersSubtitle => - 'Sequências longas do mesmo carater, como \"aaaaaaaaaaaaaaaaaaaa\"'; + 'Sequências longas do mesmo caráter, como \"aaaaaaaaaaaaaaaaaaaa\"'; @override String get messageFilter_learning => 'Aprender com os toques em Spam'; @@ -16072,7 +16071,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get addContact_publicKeyInvalid => - 'A chave pública deve ter 64 caracteres hexadecimais (32 bytes)'; + 'A chave pública deve ter 64 carateres hexadecimais (32 bytes)'; @override String get addContact_clipboardKeyLoaded => @@ -16270,11 +16269,11 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String chess_playerYou(String name) { - return '$name (você)'; + return '$name (eu)'; } @override - String get chess_toMoveChip => 'Por jogar'; + String get chess_toMoveChip => 'Vez de jogar'; @override String get chess_statusYourMove => 'É a sua vez'; @@ -16489,7 +16488,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String chess_notifyResigned(String name) { - return '$name desistiu. Venceu.'; + return '$name desistiu. A vitória é sua.'; } @override diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index db33d8fd..c87ce38f 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -61,7 +61,7 @@ "tcpPortHint": "5000", "tcpStatus_notConnected": "Introduza o endereço e ligue", "tcpStatus_connectingTo": "A ligar a {endpoint}...", - "tcpErrorHostRequired": "O anfitrião é obrigatório.", + "tcpErrorHostRequired": "O endereço é obrigatório.", "tcpErrorPortInvalid": "A porta tem de estar entre 1 e 65535.", "tcpErrorUnsupported": "O transporte TCP não é suportado nesta plataforma.", "tcpErrorTimedOut": "A ligação TCP excedeu o tempo limite.", @@ -174,7 +174,7 @@ "settings_nodeName": "Nome do nó", "settings_nodeNameNotSet": "Não definido", "settings_nodeNameHint": "Introduza o nome do nó", - "nodeName_info": "Cada byte do seu nome é menos um para as mensagens de canal. Os caracteres especiais e os emojis podem ocupar mais do que um byte.", + "nodeName_info": "Cada byte do seu nome é menos um para as mensagens de canal. Os carateres especiais e os emojis podem ocupar mais do que um byte.", "nodeName_messageLength": "Tamanho da mensagem", "nodeName_channelMessages": "Mensagens de canal", "nodeName_channelMessagesSubtitle": "Reduzido pelo seu nome", @@ -184,7 +184,7 @@ "nodeName_bytesOver": "{count, plural, =1{1 byte acima do limite} other{{count} bytes acima do limite}}", "settings_nodeNameUpdated": "Nome atualizado", "settings_radioSettings": "Definições de rádio", - "settings_radioSettingsSubtitle": "Frequência, potência, fator de espalhamento", + "settings_radioSettingsSubtitle": "Frequência, potência, spreading factor", "settings_unsavedChangesMessage": "Tem alterações que não foram guardadas no rádio.", "settings_radioSettingsUpdated": "Definições de rádio atualizadas", "settings_radioSettingsNotApplied": "O rádio não aplicou estas definições", @@ -197,7 +197,7 @@ "settings_regionDefaultSubtitle": "Usada por canais sem região própria", "settings_regionDefaultNone": "Nenhuma", "settings_regionUseRadioDefault": "Predefinição do rádio ({region})", - "settings_regionNoRegion": "Sem região (sem âmbito)", + "settings_regionNoRegion": "Sem região (unscoped)", "settings_regionRadioDefault": "Região predefinida do rádio", "settings_regionRadioDefaultSubtitle": "Guardada no rádio. Os floods enviados sem região usam-na, a partir desta app e de qualquer outra app ligada ao rádio.", "settings_regionRadioDefaultUpdated": "Região predefinida do rádio atualizada", @@ -300,13 +300,13 @@ "settings_frequencyHelper": "150.0 - 2500.0 MHz", "settings_frequencyInvalid": "Frequência inválida (150-2500 MHz)", "settings_bandwidth": "Largura de banda", - "settings_spreadingFactor": "Fator de espalhamento", + "settings_spreadingFactor": "Spreading Factor", "settings_codingRate": "Coding Rate", "settings_txPower": "Potência TX (dBm)", "settings_txPowerRangeHelper": "{min} a {max} dBm", "settings_txPowerInvalid": "Potência TX inválida", "settings_clientRepeat": "Modo de repetição off-grid", - "settings_clientRepeatDescription": "Permite que este dispositivo repita pacotes. Destina-se a locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVÁ-LO, é provável que perca a ligação ao resto da mesh. Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e fator de espalhamento (SF). Só o coding rate (CR) pode ser diferente.", + "settings_clientRepeatDescription": "Permite que este dispositivo repita pacotes. Destina-se a locais sem cobertura de repetidores.\n\nEste modo usa um conjunto restrito de frequências. Ao ATIVÁ-LO, é provável que perca a ligação ao resto da mesh. Todos os nós com que comunica têm de usar a mesma frequência, largura de banda e spreading factor (SF). Só o coding rate (CR) pode ser diferente.", "settings_clientRepeatSwitch": "Modo de repetição", "settings_clientRepeatNote": "Nota: Ao DESATIVÁ-LO, é reposta a frequência anterior. Se depois não conseguir ligar-se à mesh, verifique as predefinições/parâmetros.", "settings_clientRepeatFrequencyNote": "Frequência definida para {freq} MHz para repetição off-grid", @@ -388,7 +388,7 @@ "themes_chatBackgroundHelp": "Mostrado nas conversas sem fundo próprio", "themes_chatBackgroundEverywhere": "Usar em todas as conversas", "themes_chatBackgroundEverywhereHelp": "Também substitui os fundos definidos em conversas individuais", - "appSettings_language": "Idioma", + "appSettings_language": "Língua", "appSettings_languageSystem": "Predefinição do sistema", "appSettings_languageEn": "English", "appSettings_languageFr": "Français", @@ -485,8 +485,8 @@ "appSettings_timeFilterShowAll": "Mostrar todos os nós", "appSettings_timeFilterShowLast": "Mostrar nós das últimas {hours} horas", "appSettings_mapTimeFilter": "Filtro de tempo do mapa", - "appSettings_showNodesDiscoveredWithin": "Mostrar nós descobertos nos últimos:", - "appSettings_allTime": "Sempre", + "appSettings_showNodesDiscoveredWithin": "Mostrar nós descobertos nas últimas:", + "appSettings_allTime": "Todos", "appSettings_lastHour": "Última hora", "appSettings_last6Hours": "Últimas 6 horas", "appSettings_last24Hours": "Últimas 24 horas", @@ -517,7 +517,7 @@ "contacts_searchFavorites": "Pesquisar {number}{str} favoritos...", "contacts_searchUsers": "Pesquisar {number}{str} utilizadores...", "contacts_searchRepeaters": "Pesquisar {number}{str} repetidores...", - "contacts_searchRoomServers": "Pesquisar {number}{str} room servers...", + "contacts_searchRoomServers": "Pesquisar {number}{str} salas...", "contacts_noUnreadContacts": "Nenhum contacto por ler", "contacts_noContactsFound": "Nenhum contacto ou grupo encontrado", "contacts_storageFull": "O armazenamento de contactos do nó está cheio. Não é possível adicionar novos nós até remover contactos.", @@ -532,8 +532,8 @@ "contacts_discoveredNearby": "Descobertos nas proximidades ({count})", "contacts_noContactsDiscoveredHint": "Os nós que o seu rádio ouve mas ainda não adicionou aparecem em Contactos descobertos", "contacts_manageRepeater": "Gerir repetidor", - "contacts_manageRoom": "Gerir room server", - "contacts_roomLogin": "Início de sessão no room server", + "contacts_manageRoom": "Gerir sala", + "contacts_roomLogin": "Entrar na sala", "contacts_openChat": "Abrir conversa", "contacts_editGroup": "Editar grupo", "contacts_deleteGroup": "Eliminar grupo", @@ -595,11 +595,11 @@ "channels_channelIndexLabel": "Índice do canal", "channels_channelName": "Nome do canal", "channels_usePublicChannel": "Usar canal público", - "channels_standardPublicPsk": "PSK público padrão", + "channels_standardPublicPsk": "PSK pública padrão", "channels_pskHex": "PSK (Hex)", "channels_generateRandomPsk": "Gerar PSK aleatória", "channels_enterChannelName": "Introduza um nome para o canal", - "channels_pskMustBe32Hex": "A PSK tem de ter 32 caracteres hexadecimais", + "channels_pskMustBe32Hex": "A PSK tem de ter 32 carateres hexadecimais", "channels_channelAdded": "Canal \"{name}\" adicionado", "channels_editChannelTitle": "Editar canal {index}", "channels_smazCompression": "Compressão SMAZ", @@ -607,7 +607,7 @@ "channels_cyr2latCompressionDscr": "Substitui alguns caracteres cirílicos por latinos ao enviar.", "channels_cyr2latSettingsHeading": "Configuração Cyr2Lat", "channels_cyr2latSettingsSubheading": "Lista de substituições", - "channels_cyr2latSettingsDscr": "Editar a configuração JSON da substituição de caracteres", + "channels_cyr2latSettingsDscr": "Editar a configuração JSON da substituição de carateres", "channels_cyr2latSettingsDialogHint": "Mapa de substituição JSON", "channels_cyr2latSettingsDialogWrongJSON": "JSON inválido: {error}", "channels_channelUpdated": "Canal \"{name}\" atualizado", @@ -695,12 +695,12 @@ "chat_sendImageLora": "Enviar imagem de baixa resolução por rádio", "chat_sendImageIpfs": "Enviar imagem ou ficheiro via IPFS", "chat_ipfsUploadFailed": "Falha no envio para IPFS: {error}", - "chat_ipfsUploadNotConfigured": "Configure primeiro um fornecedor de envio IPFS nas Definições da app.", + "chat_ipfsUploadNotConfigured": "Configure primeiro um fornecedor de carregamento IPFS nas Definições da app.", "chat_ipfsSelectedFileEmpty": "O ficheiro selecionado está vazio.", - "chat_ipfsEndpointInvalid": "O endpoint de envio IPFS tem de ser um endereço http:// ou https:// completo. Verifique-o nas Definições da app.", + "chat_ipfsEndpointInvalid": "O endpoint de carregamento IPFS tem de ser um endereço http:// ou https:// completo. Verifique-o nas Definições da app.", "chat_ipfsPinataTokenMissing": "O Pinata precisa de uma chave API ou JWT. Adicione-a nas Definições da app.", "chat_ipfsFilebaseTokenMissing": "O Filebase precisa de um token API. Adicione-o nas Definições da app.", - "chat_ipfsKuboPathInvalid": "O endpoint de envio Kubo tem de terminar em /api/v0/add. Verifique-o nas Definições da app.", + "chat_ipfsKuboPathInvalid": "O endpoint de carregamento Kubo tem de terminar em /api/v0/add. Verifique-o nas Definições da app.", "chat_ipfsLinkNoRoom": "Sem espaço para a ligação da imagem. Encurte a mensagem e tente novamente.", "chat_ipfsLinkOverLimit": "Ligação da imagem adicionada, mas a mensagem ficou demasiado longa. Encurte-a antes de enviar.", "chat_imagePickFailed": "Não foi possível abrir essa imagem", @@ -716,7 +716,7 @@ "emojiCategoryObjects": "Objetos", "gifPicker_title": "Escolher um GIF", "gifPicker_searchHint": "Pesquisar GIFs...", - "gifPicker_poweredBy": "Desenvolvido por GIPHY", + "gifPicker_poweredBy": "Com tecnologia GIPHY", "gifPicker_noGifsFound": "Nenhum GIF encontrado", "gifPicker_failedLoad": "Falha ao carregar GIFs", "gifPicker_failedSearch": "Falha ao pesquisar GIFs", @@ -756,7 +756,7 @@ "routing_modeAutoHint": "Escolhe automaticamente o melhor caminho conhecido, usando flood quando não há nenhum.", "routing_modeFloodHint": "Difunde por todos os repetidores. Mais fiável, mas usa mais airtime.", "routing_modeManualHint": "Envia sempre pelo caminho exato que definir.", - "routing_modeDirectHint": "Envia sempre diretamente para este contacto, sem hops de repetidores. Use quando estiver no alcance de rádio.", + "routing_modeDirectHint": "Envia sempre diretamente para este contacto, sem hops de repetidores. Use-o quando o contacto estiver ao alcance do rádio.", "routing_currentRoute": "Rota atual", "routing_directNoHops": "Direto — sem hops de repetidores", "routing_noPathYet": "Ainda sem caminho. A próxima mensagem usa flood até ser descoberta uma rota.", @@ -780,10 +780,10 @@ "pathEditor_hopCounter": "{count} de 64 hops", "pathEditor_noHops": "Ainda sem hops. Toque nos repetidores abaixo para os adicionar por ordem, ou guarde sem hops para enviar diretamente.", "pathEditor_addHops": "Adicionar hops por ordem", - "pathEditor_searchRepeaters": "Pesquisar repetidores", + "pathEditor_searchRepeaters": "Pesquisar nome ou hash", "pathEditor_advancedHex": "Avançado: caminho hex em bruto", "pathEditor_hexLabel": "Prefixos hex", - "pathEditor_hexHelper": "{count} caracteres hex por hop, separados por vírgulas", + "pathEditor_hexHelper": "{count} carateres hex por hop, separados por vírgulas", "pathEditor_invalidTokens": "Inválido: {tokens}", "pathEditor_tooManyHops": "Máximo de 64 hops", "pathEditor_usePath": "Usar este caminho", @@ -894,7 +894,7 @@ "map_clusterNodesSubtitle": "Ao afastar o zoom, mostra nós próximos como um círculo numerado", "map_showDiscoveryContacts": "Mostrar contactos descobertos", "map_guessedLocation": "Localização estimada", - "map_lastSeenTime": "Hora da última vez visto", + "map_lastSeenTime": "Visto pela última vez", "map_sharedPin": "Marcador partilhado", "map_sharedAt": "Partilhado", "map_joinRoom": "Entrar na sala", @@ -919,10 +919,10 @@ "manualTrace_enterHashes": "Introduza hashes", "manualTrace_run": "Executar trace do caminho", "manualTrace_notConnected": "Ligue a um rádio para executar um trace", - "manualTrace_errorInvalidHex": "Só são permitidos caracteres hex (0-9, A-F)", - "manualTrace_errorOddLength": "Cada hash precisa de um número par de caracteres hex, correspondente ao tamanho do hop", + "manualTrace_errorInvalidHex": "Só são permitidos carateres hex (0-9, A-F)", + "manualTrace_errorOddLength": "Cada hash precisa de um número par de carateres hex, correspondente ao tamanho do hop", "manualTrace_errorMixedWidths": "Todos os hashes têm de ter o mesmo comprimento", - "manualTrace_errorUnsupportedWidth": "Os hashes têm de ter 1, 2 ou 3 bytes (2, 4 ou 6 caracteres hex)", + "manualTrace_errorUnsupportedWidth": "Os hashes têm de ter 1, 2 ou 3 bytes (2, 4 ou 6 carateres hex)", "manualTrace_errorTooManyHops": "O caminho é demasiado longo (máximo {max} bytes)", "manualTrace_errorTraceTooLong": "Demasiados hops para um trace num só pedido. Remova alguns hops ou escolha Como introduzido.", "mapCache_title": "Cache de mapa offline", @@ -967,11 +967,11 @@ "time_month": "mês", "time_months": "meses", "time_minutes": "minutos", - "time_allTime": "Sempre", + "time_allTime": "Todos", "dialog_disconnect": "Desligar", "dialog_disconnectConfirm": "Tem a certeza de que quer desligar deste dispositivo?", - "login_repeaterLogin": "Início de sessão do repetidor", - "login_roomLogin": "Início de sessão do room server", + "login_repeaterLogin": "Entrar no repetidor", + "login_roomLogin": "Entrar na sala", "login_password": "Palavra-passe", "login_enterPassword": "Introduza a palavra-passe", "login_showPassword": "Mostrar palavra-passe", @@ -988,17 +988,17 @@ "login_managePaths": "Gerir caminhos", "login_login": "Entrar", "login_attempt": "Tentativa {current}/{max}", - "login_failed": "Falha ao iniciar sessão: {error}", - "login_failedMessage": "Falha ao iniciar sessão. A palavra-passe está incorreta ou o repetidor está inacessível.", + "login_failed": "Falha no login: {error}", + "login_failedMessage": "Falha no login. A palavra-passe está incorreta ou o repetidor está inacessível.", "common_reload": "Recarregar", "common_clear": "Limpar", "common_clearSearch": "Limpar pesquisa", "path_currentPathLabel": "Caminho atual", - "path_noRepeatersFound": "Nenhum repetidor ou room server encontrado.", + "path_noRepeatersFound": "Nenhum repetidor ou sala encontrado.", "repeater_management": "Gestão do repetidor", - "room_management": "Gestão do room server", + "room_management": "Gestão da sala", "repeater_guest": "Informações do repetidor", - "room_guest": "Informações do room server", + "room_guest": "Informações da sala", "repeater_managementTools": "Ferramentas de gestão", "repeater_guestTools": "Ferramentas de convidado", "repeater_roleAdmin": "ADMIN", @@ -1014,7 +1014,7 @@ "repeater_settings": "Definições", "repeater_settingsSubtitle": "Configurar parâmetros do repetidor", "repeater_clockSyncAfterLogin": "Sincronizar relógio após login", - "repeater_clockSyncAfterLoginSubtitle": "Predefinição segue Repetidores e salas nas definições. Ligado e Desligado valem só para este repetidor.", + "repeater_clockSyncAfterLoginSubtitle": "Predefinição segue Repetidores e salas nas definições da app. Ligado e Desligado aplicam-se só a este repetidor.", "repeater_statusTitle": "Estado do repetidor", "repeater_routingMode": "Modo de encaminhamento", "repeater_refresh": "Atualizar", @@ -1029,7 +1029,7 @@ "repeater_radioStatistics": "Estatísticas de rádio", "repeater_lastRssi": "Último RSSI", "repeater_lastSnr": "Último SNR", - "repeater_noiseFloor": "Noise floor", + "repeater_noiseFloor": "Ruído de fundo", "repeater_txAirtime": "Airtime TX", "repeater_rxAirtime": "Airtime RX", "repeater_chanUtil": "Utilização do canal", @@ -1117,7 +1117,7 @@ "repeater_keySettings": "Alterar chaves de identidade", "repeater_keySettingsSubtitle": "Alterar o par de chaves pública/privada", "repeater_prvKey": "Chave privada", - "repeater_prvKeyHelper": "Uma nova chave privada para o repetidor, uma cadeia hexadecimal de 128 caracteres.", + "repeater_prvKeyHelper": "Uma nova chave privada para o repetidor, uma cadeia hexadecimal de 128 carateres.", "repeater_generatePrvKey": "Gerar um par de chaves aleatório", "repeater_stopGeneratingPrvKey": "Interromper a procura de chaves", "repeater_pubKey": "Chave pública", @@ -1149,7 +1149,7 @@ "repeater_refreshAll": "Atualizar tudo", "repeater_settingsNotLoaded": "As definições ainda não foram carregadas deste repetidor.", "repeater_settingsLoadIncomplete": "Não foi possível carregar algumas definições. Use os botões de atualizar para tentar novamente.", - "repeater_refreshed": "{label} atualizado", + "repeater_refreshed": "Atualizado: {label}", "repeater_errorRefreshing": "Erro ao atualizar {label}", "repeater_cliTitle": "CLI do repetidor", "repeater_debugNextCommand": "Depurar próximo comando", @@ -1181,7 +1181,7 @@ "repeater_cliHelpSetAf": "Define o air-time-factor.", "repeater_cliHelpSetTx": "Define a potência de transmissão LoRa em dBm. (reiniciar para aplicar)", "repeater_cliHelpSetRepeat": "Ativa ou desativa a função de repetidor neste nó.", - "repeater_cliHelpSetAllowReadOnly": "(Room server) Se 'on', o início de sessão com palavra-passe em branco é permitido, mas não pode publicar na sala. (só leitura)", + "repeater_cliHelpSetAllowReadOnly": "(Sala) Se 'on', permite login sem palavra-passe. Leitura apenas, sem permissão para publicar.", "repeater_cliHelpSetFloodMax": "Define o número máximo de hops de um pacote Flood recebido (se >= máx., o pacote não é reencaminhado)", "repeater_cliHelpSetIntThresh": "Define o limiar de interferência (em dB). A predefinição é 14. Defina 0 para desativar a deteção de interferência no canal.", "repeater_cliHelpSetAgcResetInterval": "Define o intervalo para repor o controlador automático de ganho. Defina 0 para desativar.", @@ -1196,27 +1196,27 @@ "repeater_cliHelpSetRxDelay": "Define a base (experimental; tem de ser > 1 para ter efeito) para aplicar um ligeiro atraso aos pacotes recebidos, com base na intensidade/pontuação do sinal. Defina 0 para desativar.", "repeater_cliHelpSetTxDelay": "Define um fator multiplicado pelo time-on-air de um pacote em modo Flood e por um sistema de slots aleatórios, para atrasar o seu reencaminhamento. (para diminuir a probabilidade de colisões)", "repeater_cliHelpSetDirectTxDelay": "Igual a txdelay, mas aplica um atraso aleatório ao reencaminhamento de pacotes em modo direto.", - "repeater_cliHelpSetBridgeEnabled": "Ativar/desativar bridge.", + "repeater_cliHelpSetBridgeEnabled": "Ativar/desativar ponte.", "repeater_cliHelpSetBridgeDelay": "Define o atraso antes de retransmitir pacotes.", - "repeater_cliHelpSetBridgeSource": "Escolhe se a bridge retransmite pacotes recebidos ou transmitidos.", - "repeater_cliHelpSetBridgeBaud": "Define o baudrate da ligação série para bridges rs232.", - "repeater_cliHelpSetBridgeSecret": "Define o segredo da bridge para bridges espnow.", + "repeater_cliHelpSetBridgeSource": "Escolhe se a ponte retransmite pacotes recebidos ou transmitidos.", + "repeater_cliHelpSetBridgeBaud": "Define o baudrate da ligação série para pontes rs232.", + "repeater_cliHelpSetBridgeSecret": "Define o segredo da ponte para pontes espnow.", "repeater_cliHelpSetAdcMultiplier": "Define um fator personalizado para ajustar a tensão de bateria reportada (só suportado em algumas placas).", "repeater_cliHelpTempRadio": "Define parâmetros de rádio temporários durante o número de minutos indicado, voltando depois aos parâmetros originais. (NÃO guarda nas preferências).", "repeater_cliHelpSetPerm": "Modifica a ACL. Remove a entrada correspondente (por prefixo de pubkey) se \"permissions\" for zero. Adiciona uma nova entrada se pubkey-hex tiver o comprimento total e não estiver na ACL. Atualiza a entrada por correspondência do prefixo de pubkey. Os bits de permissão variam consoante a função do firmware, mas os 2 bits mais baixos são: 0 (Convidado), 1 (Só leitura), 2 (Leitura e escrita), 3 (Admin)", - "repeater_cliHelpGetBridgeType": "Obtém o tipo de bridge: none, rs232, espnow", + "repeater_cliHelpGetBridgeType": "Obtém o tipo de ponte: none, rs232, espnow", "repeater_cliHelpLogStart": "Inicia o registo de pacotes no sistema de ficheiros.", - "repeater_cliHelpLogStop": "Pára o registo de pacotes no sistema de ficheiros.", + "repeater_cliHelpLogStop": "Termina o registo de pacotes no sistema de ficheiros.", "repeater_cliHelpLogErase": "Apaga os registos de pacotes do sistema de ficheiros.", "repeater_cliHelpNeighbors": "Mostra uma lista de outros nós repetidores ouvidos através de anúncios zero-hop. Cada linha é id-prefix-hex:timestamp:snr-times-4", "repeater_cliHelpNeighborRemove": "Remove a primeira entrada correspondente (por prefixo de pubkey (hex)) da lista de vizinhos.", "repeater_cliHelpRegion": "(só série) Lista todas as regiões definidas e as permissões Flood atuais.", "repeater_cliHelpRegionLoad": "NOTA: esta é uma invocação especial de vários comandos. Cada comando seguinte é um nome de região (indentado com espaços para indicar a hierarquia do pai, com pelo menos um espaço). Termina ao enviar uma linha/comando em branco.", - "repeater_cliHelpRegionGet": "Procura a região com o prefixo de nome indicado (ou \"*\" para o âmbito global). Responde com \"-> region-name (parent-name) 'F'\"", + "repeater_cliHelpRegionGet": "Procura a região com o prefixo de nome indicado (ou \"*\" para o scope global). Responde com \"-> region-name (parent-name) 'F'\"", "repeater_cliHelpRegionPut": "Adiciona ou atualiza a definição de uma região com o nome indicado.", "repeater_cliHelpRegionRemove": "Remove a definição de uma região com o nome indicado. (tem de corresponder exatamente e não ter regiões filhas)", - "repeater_cliHelpRegionAllowf": "Define a permissão 'F'lood para a região indicada. ('*' para o âmbito global/legado)", - "repeater_cliHelpRegionDenyf": "Remove a permissão 'F'lood da região indicada. (NOTA: nesta fase NÃO é aconselhável usar isto no âmbito global/legado!!)", + "repeater_cliHelpRegionAllowf": "Define a permissão 'F'lood para a região indicada. ('*' para o scope global/legado)", + "repeater_cliHelpRegionDenyf": "Remove a permissão 'F'lood da região indicada. (NOTA: nesta fase NÃO é aconselhável usar isto no scope global/legado!!)", "repeater_cliHelpRegionHome": "Responde com a região 'home' atual. (Ainda não aplicada em lado nenhum, reservada para o futuro)", "repeater_cliHelpRegionHomeSet": "Define a região 'home'.", "repeater_cliHelpRegionSave": "Guarda a lista/mapa de regiões no armazenamento.", @@ -1238,15 +1238,15 @@ "repeater_cliRegionLoadHint": "Linha de região, ou vazia para terminar", "repeater_cliRegionLoadEnd": "(fim do carregamento de regiões)", "repeater_cliHelpRegionDef": "Define uma cadeia de regiões num só comando: cada nome é adicionado sob o anterior; \"name,parent\" adiciona o nome e depois continua sob o pai indicado. Responde com a lista de regiões.", - "repeater_cliHelpSetFloodMaxUnscoped": "Define o número máximo de hops para reencaminhar pacotes Flood sem âmbito de região (0-64).", + "repeater_cliHelpSetFloodMaxUnscoped": "Define o número máximo de hops para reencaminhar pacotes Flood sem scope de região (0-64).", "repeater_cliHelpSetFloodMaxAdvert": "Define o número máximo de hops para reencaminhar anúncios Flood (0-64).", - "repeater_cliHelpGetFloodMaxUnscoped": "Mostra o número máximo de hops para pacotes Flood sem âmbito.", + "repeater_cliHelpGetFloodMaxUnscoped": "Mostra o número máximo de hops para pacotes Flood unscoped.", "repeater_cliHelpGetFloodMaxAdvert": "Mostra o número máximo de hops para anúncios Flood.", "repeater_cliHelpSetRadioFemRxGain": "Alterna o ganho RX (LNA) do módulo front-end LoRa. As placas sem um respondem \"Error: unsupported\".", "repeater_cliHelpSetRadioFemTxGain": "Alterna o ganho TX (PA) do módulo front-end LoRa. As placas sem um respondem \"Error: unsupported\".", "repeater_cliHelpGetRadioFemRxGain": "Mostra se o ganho RX do módulo front-end LoRa está ativo.", "repeater_cliHelpGetRadioFemTxGain": "Mostra se o ganho TX do módulo front-end LoRa está ativo.", - "repeater_bridgeNote": "Só disponível em firmware compilado com bridge (RS232 ou ESP-NOW).", + "repeater_bridgeNote": "Só disponível em firmware compilado com ponte (RS232 ou ESP-NOW).", "repeater_general": "Geral", "repeater_settingsCategory": "Definições", "repeater_bridge": "Ponte", @@ -1272,13 +1272,13 @@ "repeater_cliHelpSetDutyCycle": "Define o duty cycle de transmissão máximo permitido, em percentagem (1-100). Ajusta internamente o fator de airtime.", "repeater_cliHelpSetPrvKey": "Substitui a chave privada de identidade do dispositivo. É necessário reiniciar para aplicar. Gera uma nova chave pública.", "repeater_cliHelpSetRadioRxGain": "(só SX126x) Alterna o ganho RX reforçado para maior sensibilidade com maior consumo de corrente.", - "repeater_cliHelpSetOwnerInfo": "Define a cadeia de contacto do proprietário incluída nos anúncios. Use '|' para novas linhas.", + "repeater_cliHelpSetOwnerInfo": "Define o texto de contacto do proprietário incluído nos anúncios. Use '|' para novas linhas.", "repeater_cliHelpSetPathHashMode": "Define o tamanho do ID do nó usado nos anúncios deste repetidor: 0 = 1 byte (até 64 hops), 1 = 2 bytes (até 32 hops), 2 = 3 bytes (até 21 hops). 3 está reservado. Não afeta os tamanhos que são reencaminhados. Requer firmware v1.14+.", "repeater_cliHelpSetLoopDetect": "Define a sensibilidade da deteção de ciclos de encaminhamento: off, minimal, moderate ou strict.", "repeater_cliHelpSetFreq": "(Só série) Define rapidamente apenas a frequência. É necessário reiniciar. Prefira \"set radio\" para os parâmetros de rádio completos.", - "repeater_cliHelpSetBridgeChannel": "(só bridge ESPNow) Define o canal WiFi (1-14) usado pela bridge.", + "repeater_cliHelpSetBridgeChannel": "(só ponte ESPNow) Define o canal WiFi (1-14) usado pela ponte.", "repeater_cliHelpGetName": "Mostra o nome do nó configurado.", - "repeater_cliHelpGetRole": "Mostra a função do firmware (Repetidor, Room Server, etc.).", + "repeater_cliHelpGetRole": "Mostra a função do firmware (Repetidor, Sala, etc.).", "repeater_cliHelpGetPublicKey": "Mostra a chave pública do dispositivo.", "repeater_cliHelpGetPrvKey": "(Só série) Mostra a chave privada do dispositivo. Trate-a como segredo.", "repeater_cliHelpGetRepeat": "Mostra se o reencaminhamento de pacotes (função de repetidor) está ligado ou desligado.", @@ -1301,16 +1301,16 @@ "repeater_cliHelpGetTxDelay": "Mostra o fator de txdelay do modo Flood.", "repeater_cliHelpGetDirectTxDelay": "Mostra o fator de txdelay do modo direto.", "repeater_cliHelpGetFloodMax": "Mostra o número máximo de hops Flood.", - "repeater_cliHelpGetOwnerInfo": "Mostra a cadeia de contacto do proprietário.", + "repeater_cliHelpGetOwnerInfo": "Mostra o texto de contacto do proprietário.", "repeater_cliHelpGetPathHashMode": "Mostra o modo de tamanho do ID do nó usado nos anúncios (0 = 1 byte, 1 = 2 bytes, 2 = 3 bytes).", "repeater_cliHelpGetLoopDetect": "Mostra a sensibilidade da deteção de ciclos.", "repeater_cliHelpGetAcl": "(Só série) Lista as entradas de controlo de acesso de um repetidor.", - "repeater_cliHelpGetBridgeEnabled": "Mostra se a bridge está ativada.", - "repeater_cliHelpGetBridgeDelay": "Mostra o atraso da bridge em ms.", - "repeater_cliHelpGetBridgeSource": "Mostra se a bridge regista pacotes RX ou TX.", - "repeater_cliHelpGetBridgeBaud": "(só bridge RS232) Mostra o baud rate da bridge.", - "repeater_cliHelpGetBridgeChannel": "(só bridge ESPNow) Mostra o canal WiFi da bridge.", - "repeater_cliHelpGetBridgeSecret": "(só bridge ESPNow) Mostra o segredo partilhado da bridge.", + "repeater_cliHelpGetBridgeEnabled": "Mostra se a ponte está ativada.", + "repeater_cliHelpGetBridgeDelay": "Mostra o atraso da ponte em ms.", + "repeater_cliHelpGetBridgeSource": "Mostra se a ponte regista pacotes RX ou TX.", + "repeater_cliHelpGetBridgeBaud": "(só ponte RS232) Mostra o baud rate da ponte.", + "repeater_cliHelpGetBridgeChannel": "(só ponte ESPNow) Mostra o canal WiFi da ponte.", + "repeater_cliHelpGetBridgeSecret": "(só ponte ESPNow) Mostra o segredo partilhado da ponte.", "repeater_cliHelpGetBootloaderVer": "(só NRF52) Mostra a versão do bootloader.", "repeater_cliHelpGetAdcMultiplier": "Mostra o multiplicador do ADC (escala da tensão da bateria).", "repeater_cliHelpGetPwrMgtSupport": "Indica se a placa tem suporte de gestão de energia.", @@ -1320,8 +1320,8 @@ "repeater_cliHelpSensorGet": "Lê uma definição de sensor personalizada pela chave.", "repeater_cliHelpSensorSet": "Escreve uma definição de sensor personalizada.", "repeater_cliHelpSensorList": "Lista todas as definições de sensor personalizadas, paginadas a partir de um índice inicial opcional.", - "repeater_cliHelpRegionDefault": "Mostra o âmbito de região predefinido atual.", - "repeater_cliHelpRegionDefaultSet": "Define o âmbito de região predefinido. Use \"\" para limpar.", + "repeater_cliHelpRegionDefault": "Mostra o scope de região predefinido atual.", + "repeater_cliHelpRegionDefaultSet": "Define o scope de região predefinido. Use \"\" para limpar.", "repeater_cliHelpRegionListAllowed": "Lista as regiões que permitem tráfego Flood.", "repeater_cliHelpRegionListDenied": "Lista as regiões que negam tráfego Flood.", "repeater_cliHelpStatsPackets": "(Só série) Mostra estatísticas ao nível dos pacotes.", @@ -1441,7 +1441,7 @@ "community_manageCommunities": "Gerir comunidades", "community_delete": "Sair da comunidade", "community_deleteConfirm": "Sair de \"{name}\"?", - "community_deleteChannelsWarning": "Isto também elimina {count} canal(ais) e as respetivas mensagens.", + "community_deleteChannelsWarning": "Isto também elimina {count} canal/canais e as respetivas mensagens.", "community_deleted": "Saiu da comunidade \"{name}\"", "community_regenerateSecret": "Regenerar segredo", "community_regenerateSecretConfirm": "Regenerar a chave secreta de \"{name}\"? Todos os membros terão de ler o novo código QR para continuar a comunicar.", @@ -1454,9 +1454,9 @@ "community_addHashtagChannelDesc": "Adicionar um canal de hashtag para esta comunidade", "community_selectCommunity": "Selecionar comunidade", "community_regularHashtag": "Hashtag normal", - "community_regularHashtagDesc": "Hashtag público (qualquer pessoa pode entrar)", + "community_regularHashtagDesc": "Hashtag pública (qualquer pessoa pode entrar)", "community_communityHashtag": "Hashtag da comunidade", - "community_communityHashtagDesc": "Privado para membros da comunidade", + "community_communityHashtagDesc": "Privada para membros da comunidade", "community_forCommunity": "Para {name}", "listFilter_tooltip": "Filtrar e ordenar", "listFilter_sortBy": "Ordenar por", @@ -1470,7 +1470,7 @@ "listFilter_removeFromFavorites": "Remover dos favoritos", "listFilter_users": "Utilizadores", "listFilter_repeaters": "Repetidores", - "listFilter_roomServers": "Servidores de sala", + "listFilter_roomServers": "Salas", "listFilter_unreadOnly": "Só não lidas", "listFilter_newGroup": "Novo grupo", "pathTrace_you": "Eu", @@ -1485,7 +1485,7 @@ "losRunToViewElevationProfile": "Execute o LOS para ver o perfil de elevação", "losMenuTitle": "Menu LOS", "losMenuSubtitle": "Toque nos nós ou prima longamente o mapa para pontos personalizados", - "losShowDisplayNodes": "Mostrar nós de visualização", + "losShowDisplayNodes": "Mostrar nós no mapa", "losCustomPoints": "Pontos personalizados", "losCustomPointLabel": "Personalizado {index}", "losPointA": "Ponto A", @@ -1522,8 +1522,8 @@ "contacts_ping": "Ping", "contacts_repeaterPathTrace": "Trace do caminho até ao repetidor", "contacts_repeaterPing": "Ping ao repetidor", - "contacts_roomPathTrace": "Trace do caminho até ao room server", - "contacts_roomPing": "Ping ao room server", + "contacts_roomPathTrace": "Trace do caminho até à sala", + "contacts_roomPing": "Ping à sala", "contacts_chatTraceRoute": "Rota do trace do caminho", "contacts_pathTraceTo": "Trace da rota para {name}", "contacts_clipboardEmpty": "A área de transferência está vazia.", @@ -1565,7 +1565,7 @@ "notification_receivedNewMessage": "Nova mensagem recebida", "notification_sharedLocation": "Partilhou uma localização", "notification_sharedLocationNamed": "Partilhou uma localização: {label}", - "notification_reacted": "Reagiu {emoji}", + "notification_reacted": "Reagiu com {emoji}", "notification_sentGif": "Enviou um GIF", "notification_sentImage": "Enviou uma imagem", "notification_actionReply": "Responder", @@ -1590,7 +1590,7 @@ "settings_gpxExportNoContacts": "Sem contactos para exportar.", "settings_gpxExportNotAvailable": "Não suportado no seu dispositivo/SO", "settings_gpxExportError": "Ocorreu um erro ao exportar.", - "settings_gpxExportRepeatersRoom": "Localizações de repetidores e room servers", + "settings_gpxExportRepeatersRoom": "Localizações de repetidores e salas", "settings_gpxExportChat": "Localizações de companions", "settings_gpxExportAllContacts": "Localizações de todos os contactos", "settings_gpxExportShareText": "Dados do mapa exportados do meshcore-open", @@ -1606,7 +1606,7 @@ "contactsSettings_otherTitle": "Limites das listas de contactos", "contactsSettings_autoAddUsersTitle": "Utilizadores", "contactsSettings_autoAddRepeatersTitle": "Repetidores", - "contactsSettings_autoAddRoomServersTitle": "Servidores de sala", + "contactsSettings_autoAddRoomServersTitle": "Salas", "contactsSettings_autoAddSensorsTitle": "Sensores", "contactsSettings_overwriteOldestTitle": "Substituir o mais antigo", "contactsSettings_overwriteOldestSubtitle": "Quando a lista de contactos do rádio estiver cheia, substitui o contacto mais antigo que não seja favorito.", @@ -1623,7 +1623,7 @@ "discoveredContacts_deleteContactAllContent": "Tem a certeza de que quer eliminar todos os contactos descobertos?", "discoveredContacts_scan": "Procurar nós próximos", "discoveredContacts_scanTitle": "Nós próximos", - "discoveredContacts_scanExplanation": "Pede aos nós ao alcance direto do rádio que se identifiquem. Repetidores e sensores respondem. Room servers e companions normalmente não.", + "discoveredContacts_scanExplanation": "Pede aos nós ao alcance direto do rádio que se identifiquem. Repetidores e sensores respondem. Salas e companions normalmente não.", "discoveredContacts_scanning": "A procurar…", "discoveredContacts_scanFound": "{count, plural, =1{1 nó encontrado} other{{count} nós encontrados}}", "discoveredContacts_scanNoResults": "Nenhum nó respondeu. Os repetidores limitam a frequência das respostas, por isso tente novamente dentro de um minuto.", @@ -1672,15 +1672,15 @@ "translation_enableTitle": "Ativar tradução", "translation_enableSubtitle": "Traduz as mensagens recebidas e permite a tradução antes de enviar.", "translation_composerTitle": "Traduzir antes de enviar", - "translation_composerSubtitle": "Controla o estado predefinido do ícone de tradução do compositor.", + "translation_composerSubtitle": "Controla o estado predefinido do ícone de tradução no campo de mensagem.", "translation_autoIncomingTitle": "Traduzir mensagens recebidas automaticamente", "translation_autoIncomingSubtitle": "Traduz automaticamente as mensagens nas notificações e nas conversas ou canais.", "translation_translateMessage": "Traduzir mensagem", - "translation_targetLanguage": "Idioma de destino", - "translation_useAppLanguage": "Usar o idioma da app", + "translation_targetLanguage": "Língua de destino", + "translation_useAppLanguage": "Usar a língua da app", "translation_downloadedModelLabel": "Modelo transferido", "translation_presetModelLabel": "Modelo Hugging Face predefinido", - "translation_manualUrlLabel": "URL do modelo manual", + "translation_manualUrlLabel": "URL manual do modelo", "translation_downloadModel": "Transferir modelo", "translation_downloading": "A transferir...", "translation_working": "A processar...", @@ -1699,10 +1699,10 @@ "translation_messageTranslation": "Tradução de mensagens", "translation_translateBeforeSending": "Traduzir antes de enviar", "translation_composerEnabledHint": "As mensagens serão traduzidas antes de serem enviadas.", - "translation_composerDisabledHint": "Enviar mensagens no idioma original escrito.", + "translation_composerDisabledHint": "As mensagens são enviadas na língua em que foram escritas.", "translation_translateTo": "Traduzir para {language}", "translation_translationOptions": "Opções de tradução", - "translation_systemLanguage": "Idioma do sistema", + "translation_systemLanguage": "Língua do sistema", "background_serviceTitle": "MeshCore em execução", "background_serviceText": "A manter o BLE ligado", "appSettings_translationModelDeleted": "{name} eliminado", @@ -1794,7 +1794,7 @@ "receivedImage_incomplete": "Imagem incompleta — chegaram {received} de {total} pacotes", "receivedImage_corrupt": "Não foi possível reconstruir a imagem", "receivedImage_decoderMissing": "Imagem recebida — a descodificação de imagens está desativada", - "receivedImage_evicted": "Imagem já não guardada", + "receivedImage_evicted": "A imagem já não está guardada", "receivedImage_retry": "Tentar novamente", "receivedImage_decodeAgain": "Descodificar novamente", "receivedImage_openSettings": "Configurar", @@ -1823,8 +1823,8 @@ "repeater_valueRequired": "{field}: introduza um valor", "repeater_floodMaxAdvert": "Máx. hops de flood de anúncios", "repeater_floodMaxAdvertHelper": "Máximo de hops que um anúncio em flood pode percorrer (0-64, predefinição 8)", - "repeater_floodMaxUnscoped": "Máx. hops de flood sem âmbito", - "repeater_floodMaxUnscopedHelper": "Máximo de hops para floods sem âmbito de região (0-64, predefinição 64). Um valor baixo, como 3, mantém o tráfego sem âmbito local.", + "repeater_floodMaxUnscoped": "Máx. hops de flood unscoped", + "repeater_floodMaxUnscopedHelper": "Máximo de hops para floods sem scope de região (0-64, predefinição 64). Um valor baixo, como 3, mantém local o tráfego unscoped.", "repeater_floodMaxUnscopedUnset": "Igual ao máx. de flood", "repeater_rxDelay": "Atraso de receção", "repeater_rxDelayHelper": "Retém pacotes flood ouvidos com sinal fraco antes de os reencaminhar, para que os caminhos de sinal forte passem primeiro e se enviem menos duplicados (0-20, 0 desativa).", @@ -1995,7 +1995,7 @@ "networkMap_confirmed": "Confirmado", "networkMap_singleSource": "Fonte única, ainda não confirmado", "networkMap_reports": "Relatórios", - "networkMap_locationEstimated": "Localização aproximada, estimada por quem o ouviu", + "networkMap_locationEstimated": "Localização aproximada, estimada a partir de quem o ouviu", "networkMap_locationAdvertised": "Localização aproximada, do seu próprio anúncio", "networkMap_heardByRadio": "Ouvido pelo seu rádio", "networkMap_inYourArea": "Na sua zona", @@ -2040,7 +2040,7 @@ "messageFilter_repeatSends": "Envios para contar como repetição", "messageFilter_repeatSendsSubtitle": "Oculta uma mensagem quando o mesmo remetente a envia {count} vezes em 10 minutos", "messageFilter_repeatedCharacters": "Carateres repetidos", - "messageFilter_repeatedCharactersSubtitle": "Sequências longas do mesmo carater, como \"aaaaaaaaaaaaaaaaaaaa\"", + "messageFilter_repeatedCharactersSubtitle": "Sequências longas do mesmo caráter, como \"aaaaaaaaaaaaaaaaaaaa\"", "messageFilter_learning": "Aprender com os toques em Spam", "messageFilter_learningSubtitle": "{spam} exemplos de spam e {notSpam} de não spam", "messageFilter_resetLearning": "Repor aprendizagem", @@ -2080,16 +2080,16 @@ "connectSheet_reconnectFailed": "Não foi possível contactar {name}. Verifique se está ligado e por perto.", "chat_composerOffline": "Ligue-se a um rádio para enviar mensagens", "appSettings_directRetries": "Tentativas diretas: {count}", - "appSettings_directRetriesSubtitle": "Quantas vezes tentar um caminho conhecido. Continua disponível com a rotação automática de caminhos desligada.", + "appSettings_directRetriesSubtitle": "Quantas vezes tentar um caminho conhecido. Continua disponível com a rotação automática de rotas desligada.", "appSettings_floodRetries": "Tentativas Flood: {count}", - "appSettings_floodRetriesSubtitle": "Quantas vezes usar Flood. Flood usa mais tempo de ar. Com a rotação ligada, vêm a seguir às tentativas diretas.", - "appSettings_loginAttempts": "Tentativas de início de sessão: {count}", - "appSettings_loginAttemptsSubtitle": "Quantas vezes tentar iniciar sessão num repetidor ou servidor de sala antes de desistir.", + "appSettings_floodRetriesSubtitle": "Quantas vezes usar Flood. O Flood usa mais airtime. Com a rotação ligada, vêm a seguir às tentativas diretas.", + "appSettings_loginAttempts": "Tentativas de login: {count}", + "appSettings_loginAttemptsSubtitle": "Quantas vezes tenta iniciar sessão num repetidor ou sala antes de desistir.", "appSettings_repeatersAndRooms": "Repetidores e salas", "appSettings_clockSyncAfterLogin": "Sincronizar o relógio do repetidor ao iniciar sessão", - "appSettings_clockSyncAfterLoginSubtitle": "Depois de iniciar sessão num repetidor, é enviado clock sync. Cada repetidor pode continuar a escolher Predefinição, Ligado ou Desligado.", + "appSettings_clockSyncAfterLoginSubtitle": "Depois de entrar num repetidor, o relógio é sincronizado. Cada repetidor pode continuar a escolher Predefinição, Ligado ou Desligado.", "appSettings_loginPasswordAutofocus": "Focar o campo da palavra-passe", - "appSettings_loginPasswordAutofocusSubtitle": "Ao abrir o início de sessão de um repetidor ou sala, o cursor vai para a palavra-passe se estiver vazia. Desligado deixa o diálogo visível até tocar no campo.", + "appSettings_loginPasswordAutofocusSubtitle": "Ao entrar num repetidor ou sala, o campo da palavra-passe fica logo selecionado, se estiver vazio. Desligado deixa o diálogo visível até tocar no campo.", "appSettings_resetRepeaterRoomSettings": "Repor definições de repetidores e salas", "appSettings_resetRepeaterRoomSettingsSubtitle": "Repõe as definições desta secção. As escolhas guardadas em cada repetidor mantêm-se.", "appSettings_repeaterRoomSettingsReset": "Definições de repetidores e salas repostas", @@ -2153,8 +2153,8 @@ "chess_sendChallenge": "Enviar desafio", "chess_postInvite": "Publicar convite", "chess_gameGone": "Este jogo já não está disponível.", - "chess_playerYou": "{name} (você)", - "chess_toMoveChip": "Por jogar", + "chess_playerYou": "{name} (eu)", + "chess_toMoveChip": "Vez de jogar", "chess_statusYourMove": "É a sua vez", "chess_statusWaiting": "A aguardar {name}", "chess_statusToMove": "Vez de {name}", @@ -2206,7 +2206,7 @@ "chess_notifyGameStartedYourMove": "O seu jogo começou. Joga com as brancas, é a sua vez.", "chess_notifyYourMove": "{name} jogou {move}. É a sua vez.", "chess_notifyGameOver": "O seu jogo com {name} terminou", - "chess_notifyResigned": "{name} desistiu. Venceu.", + "chess_notifyResigned": "{name} desistiu. A vitória é sua.", "chess_notifyDrawOffered": "{name} oferece empate", "chess_notifyDrawAccepted": "{name} aceitou o empate", "chess_notifyTimeout": "{name} reclamou vitória por tempo", @@ -2265,7 +2265,7 @@ "addContact_nameRequired": "Introduza um nome", "addContact_publicKeyHex": "Chave pública (hex)", "addContact_publicKeyRequired": "Introduza uma chave pública", - "addContact_publicKeyInvalid": "A chave pública deve ter 64 caracteres hexadecimais (32 bytes)", + "addContact_publicKeyInvalid": "A chave pública deve ter 64 carateres hexadecimais (32 bytes)", "addContact_clipboardKeyLoaded": "Chave pública preenchida. Escolha um tipo de contacto, introduza um nome e toque em guardar.", "addContact_fromDiscovered": "Adicionar dos contactos descobertos", "addContact_saveFailed": "Falha ao adicionar o contacto.", From 32977bdd50f4b7e4210fb5ab3cef06bac11f613b Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 18:20:19 -0700 Subject: [PATCH 06/17] Improve bookmarks navigation, scoping, search, and bulk actions Add Bookmarks to the Contacts overflow menu, open the dedicated BookmarksScreen from direct and channel chat menus with a split scope pill (All vs current chat), add in-screen bookmark search with scroll-and-highlight jump, support bulk bookmarking from channel selection mode and bulk removal in BookmarksScreen, and prompt with a confirmation dialog before removing single or selected bookmarks. --- documentation/design.md | 4 +- lib/helpers/link_handler.dart | 6 +- lib/l10n/app_en.arb | 11 + lib/l10n/app_localizations.dart | 24 + lib/l10n/app_localizations_bg.dart | 15 + lib/l10n/app_localizations_cs.dart | 15 + lib/l10n/app_localizations_de.dart | 15 + lib/l10n/app_localizations_en.dart | 15 + lib/l10n/app_localizations_es.dart | 15 + lib/l10n/app_localizations_fr.dart | 15 + lib/l10n/app_localizations_hu.dart | 15 + lib/l10n/app_localizations_it.dart | 15 + lib/l10n/app_localizations_ja.dart | 15 + lib/l10n/app_localizations_ko.dart | 15 + lib/l10n/app_localizations_nl.dart | 15 + lib/l10n/app_localizations_pl.dart | 15 + lib/l10n/app_localizations_pt.dart | 15 + lib/l10n/app_localizations_ru.dart | 15 + lib/l10n/app_localizations_sk.dart | 15 + lib/l10n/app_localizations_sl.dart | 15 + lib/l10n/app_localizations_sv.dart | 15 + lib/l10n/app_localizations_uk.dart | 15 + lib/l10n/app_localizations_zh.dart | 15 + lib/screens/bookmarks_screen.dart | 713 +++++++++++++++---- lib/screens/channel_chat_screen.dart | 113 +-- lib/screens/chat_screen.dart | 77 +- lib/screens/contacts_screen.dart | 11 + lib/storage/bookmark_store.dart | 17 +- lib/widgets/chat_send_pipeline.dart | 39 ++ lib/widgets/translated_message_content.dart | 4 + test/screens/bookmarks_screen_test.dart | 741 ++++++++++++++++++++ test/screens/main_overflow_menus_test.dart | 2 + 32 files changed, 1817 insertions(+), 230 deletions(-) create mode 100644 test/screens/bookmarks_screen_test.dart diff --git a/documentation/design.md b/documentation/design.md index 6d1443dd..906aaf1b 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -155,7 +155,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act - `FilledButton.tonal`: a secondary action that still needs weight (rare). - `OutlinedButton(.icon)`: secondary actions next to a filled one. - `TextButton`: Cancel and low-emphasis actions in dialogs; inline actions in cards. -- Destructive confirm: `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError` (`showConfirmClearDialog` in `widgets/confirm_clear_dialog.dart`), or a `TextButton` with `foregroundColor: scheme.error` when it is not the primary action. +- Destructive confirm: destructive or data-removing actions (such as clearing a chat, deleting a channel or contact, or removing single or bulk bookmarks) always prompt with a confirmation `AlertDialog` pairing a `Cancel` `TextButton` with an error-styled destructive action (`TextButton` with `foregroundColor: scheme.error`, as in `confirmClearChat` and `confirmRemoveBookmarks`, or `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError`). - Dialog action order: Cancel first, primary last. - Avoid `ElevatedButton` in new code. @@ -224,7 +224,7 @@ What the code does: Rules for new UI: 1. **Settings → page.** A row in Settings, App Settings or a repeater screen that opens settings opens a page, even for a single field. See [Settings pages](#settings-pages). -2. **Confirmation or a single short input → dialog.** Title, one sentence, Cancel + one action. Inside settings, dialogs only confirm actions (Reboot, Delete all paths, unsaved changes). +2. **Confirmation or a single short input → dialog.** Title, one sentence, Cancel + one action. Destructive or data-removing actions (clearing a chat, deleting a channel/contact, or removing single/bulk bookmarks) always use this `AlertDialog` pattern (`Cancel` + `scheme.error` destructive action button). Inside settings, dialogs only confirm actions (Reboot, Delete all paths, unsaved changes). 3. **Pick one of several options, or act on one item → sheet.** Use `showMeshSheet` and start the content with `BottomSheetHeader(title:, subtitle:)`. It handles the keyboard and navigation-bar insets. Use raw `showModalBottomSheet` only when you need `DraggableScrollableSheet`. 4. **Forms with sections, live remote values, or anything that needs Save/Discard → page.** Guard unsaved changes with `UnsavedChangesGuard` (built into `SaveToRadioPage`). 5. Never stack a dialog on a sheet on a dialog. Close the sheet first, or move the flow to a page. diff --git a/lib/helpers/link_handler.dart b/lib/helpers/link_handler.dart index 473758cb..b4d1a366 100644 --- a/lib/helpers/link_handler.dart +++ b/lib/helpers/link_handler.dart @@ -61,6 +61,7 @@ class LinkHandler { TextStyle? coordinateStyle, Color? backgroundColor, VoidCallback? onSecondaryTap, + bool selectable = true, }) { return _InteractiveMessageText( text: text, @@ -69,6 +70,7 @@ class LinkHandler { coordinateStyle: coordinateStyle, backgroundColor: backgroundColor, onSecondaryTap: onSecondaryTap, + selectable: selectable, ); } @@ -272,6 +274,7 @@ class _InteractiveMessageText extends StatefulWidget { final TextStyle? coordinateStyle; final Color? backgroundColor; final VoidCallback? onSecondaryTap; + final bool selectable; const _InteractiveMessageText({ required this.text, @@ -280,6 +283,7 @@ class _InteractiveMessageText extends StatefulWidget { this.coordinateStyle, this.backgroundColor, this.onSecondaryTap, + this.selectable = true, }); @override @@ -393,7 +397,7 @@ class _InteractiveMessageTextState extends State<_InteractiveMessageText> { ], ); - if (PlatformInfo.isDesktop) { + if (widget.selectable && PlatformInfo.isDesktop) { final selectable = SelectableText.rich(span); if (widget.onSecondaryTap == null) return selectable; return Listener( diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 642d7f16..32aeddb0 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1230,6 +1230,17 @@ "bookmarks_channel": "Channel", "bookmarks_contact": "Contact", "bookmarks_remove": "Remove bookmark", + "bookmarks_removeConfirmTitle": "Remove Bookmark", + "bookmarks_removeConfirmMessage": "Remove this message from your bookmarks?", + "bookmarks_removeSelectedConfirmTitle": "Remove Bookmarks", + "bookmarks_removeSelectedConfirmMessage": "Remove {count} messages from your bookmarks?", + "@bookmarks_removeSelectedConfirmMessage": { + "placeholders": { + "count": { + "type": "int" + } + } + }, "chat_selectMessages": "Select messages", "chat_selectedCount": "{count} selected", "@chat_selectedCount": { diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index b5c8ad8e..68535a45 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -4345,6 +4345,30 @@ abstract class AppLocalizations { /// **'Remove bookmark'** String get bookmarks_remove; + /// No description provided for @bookmarks_removeConfirmTitle. + /// + /// In en, this message translates to: + /// **'Remove Bookmark'** + String get bookmarks_removeConfirmTitle; + + /// No description provided for @bookmarks_removeConfirmMessage. + /// + /// In en, this message translates to: + /// **'Remove this message from your bookmarks?'** + String get bookmarks_removeConfirmMessage; + + /// No description provided for @bookmarks_removeSelectedConfirmTitle. + /// + /// In en, this message translates to: + /// **'Remove Bookmarks'** + String get bookmarks_removeSelectedConfirmTitle; + + /// No description provided for @bookmarks_removeSelectedConfirmMessage. + /// + /// In en, this message translates to: + /// **'Remove {count} messages from your bookmarks?'** + String bookmarks_removeSelectedConfirmMessage(int count); + /// No description provided for @chat_selectMessages. /// /// In en, this message translates to: diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 3871cf1b..b2f9cb21 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -2474,6 +2474,21 @@ class AppLocalizationsBg extends AppLocalizations { @override String get bookmarks_remove => 'Премахни от отметките'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Избор на съобщения'; diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 14acd0b7..43a14755 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -2460,6 +2460,21 @@ class AppLocalizationsCs extends AppLocalizations { @override String get bookmarks_remove => 'Odebrat záložku'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Vybrat zprávy'; diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 7769c0e0..d3eaaafd 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -2477,6 +2477,21 @@ class AppLocalizationsDe extends AppLocalizations { @override String get bookmarks_remove => 'Lesezeichen entfernen'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Nachrichten auswählen'; diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 3b50a918..980c6b96 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -2430,6 +2430,21 @@ class AppLocalizationsEn extends AppLocalizations { @override String get bookmarks_remove => 'Remove bookmark'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Select messages'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 901e76e5..81100598 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -2468,6 +2468,21 @@ class AppLocalizationsEs extends AppLocalizations { @override String get bookmarks_remove => 'Quitar marcador'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Seleccionar mensajes'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 2bfc5046..47fa3bb6 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -2473,6 +2473,21 @@ class AppLocalizationsFr extends AppLocalizations { @override String get bookmarks_remove => 'Retirer des favoris'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Sélectionner des messages'; diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index 97888e91..d5244183 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -2465,6 +2465,21 @@ class AppLocalizationsHu extends AppLocalizations { @override String get bookmarks_remove => 'Könyvjelző eltávolítása'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Üzenetek kijelölése'; diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index e757cc1d..fe4e6a9f 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -2470,6 +2470,21 @@ class AppLocalizationsIt extends AppLocalizations { @override String get bookmarks_remove => 'Rimuovi segnalibro'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Seleziona messaggi'; diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index eec2a32e..285770de 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -2355,6 +2355,21 @@ class AppLocalizationsJa extends AppLocalizations { @override String get bookmarks_remove => 'ブックマークを削除'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'メッセージを選択'; diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index ebf3c99f..5b94ccbc 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -2357,6 +2357,21 @@ class AppLocalizationsKo extends AppLocalizations { @override String get bookmarks_remove => '북마크 삭제'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => '메시지 선택'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 84d423dc..68994ac9 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -2455,6 +2455,21 @@ class AppLocalizationsNl extends AppLocalizations { @override String get bookmarks_remove => 'Bladwijzer verwijderen'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Berichten selecteren'; diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 0c24139c..7aac968c 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -2488,6 +2488,21 @@ class AppLocalizationsPl extends AppLocalizations { @override String get bookmarks_remove => 'Usuń zakładkę'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Wybierz wiadomości'; diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index e0e1b7b0..8a8fde50 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -2466,6 +2466,21 @@ class AppLocalizationsPt extends AppLocalizations { @override String get bookmarks_remove => 'Remover marcador'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Selecionar mensagens'; diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index 0fe4cebb..39ecff46 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -2469,6 +2469,21 @@ class AppLocalizationsRu extends AppLocalizations { @override String get bookmarks_remove => 'Убрать из закладок'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Выбрать сообщения'; diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 94b88ee8..801d389e 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -2461,6 +2461,21 @@ class AppLocalizationsSk extends AppLocalizations { @override String get bookmarks_remove => 'Odstrániť záložku'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Vybrať správy'; diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index 4a656e3e..eac32989 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -2462,6 +2462,21 @@ class AppLocalizationsSl extends AppLocalizations { @override String get bookmarks_remove => 'Odstrani zaznamek'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Izberi sporočila'; diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index b5982c31..7773e5f3 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -2444,6 +2444,21 @@ class AppLocalizationsSv extends AppLocalizations { @override String get bookmarks_remove => 'Ta bort bokmärke'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Markera meddelanden'; diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index 624c5c27..b5a684f6 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -2466,6 +2466,21 @@ class AppLocalizationsUk extends AppLocalizations { @override String get bookmarks_remove => 'Прибрати із закладок'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => 'Вибрати повідомлення'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index da104381..6e18320f 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -2325,6 +2325,21 @@ class AppLocalizationsZh extends AppLocalizations { @override String get bookmarks_remove => '移除书签'; + @override + String get bookmarks_removeConfirmTitle => 'Remove Bookmark'; + + @override + String get bookmarks_removeConfirmMessage => + 'Remove this message from your bookmarks?'; + + @override + String get bookmarks_removeSelectedConfirmTitle => 'Remove Bookmarks'; + + @override + String bookmarks_removeSelectedConfirmMessage(int count) { + return 'Remove $count messages from your bookmarks?'; + } + @override String get chat_selectMessages => '选择消息'; diff --git a/lib/screens/bookmarks_screen.dart b/lib/screens/bookmarks_screen.dart index 2001db4a..5d6603b4 100644 --- a/lib/screens/bookmarks_screen.dart +++ b/lib/screens/bookmarks_screen.dart @@ -1,17 +1,38 @@ +import 'dart:async'; + import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:provider/provider.dart'; import '../connector/meshcore_connector.dart'; +import '../helpers/chat_jump.dart'; +import '../helpers/message_search.dart'; import '../helpers/message_url_image_helper.dart'; +import '../helpers/snack_bar_builder.dart'; import '../l10n/l10n.dart'; import '../models/bookmarked_message.dart'; import '../services/app_settings_service.dart'; +import '../services/chat_text_scale_service.dart'; +import '../theme/mesh_theme.dart'; +import '../widgets/chat_search_results.dart'; import '../widgets/chat_send_pipeline.dart'; import '../widgets/empty_state.dart'; +import '../widgets/mesh_ui.dart'; import '../widgets/translated_message_content.dart'; class BookmarksScreen extends StatefulWidget { - const BookmarksScreen({super.key}); + final BookmarkSourceType? initialSourceType; + final String? initialSourceId; + final List sourceIdAliases; + final String? initialSourceName; + + const BookmarksScreen({ + super.key, + this.initialSourceType, + this.initialSourceId, + this.sourceIdAliases = const [], + this.initialSourceName, + }); @override State createState() => _BookmarksScreenState(); @@ -19,168 +40,590 @@ class BookmarksScreen extends StatefulWidget { class _BookmarksScreenState extends State { late Future> _bookmarks; + List _loadedBookmarks = const []; + late bool _filterToInitialSource; + + final ScrollController _scrollController = ScrollController(); + final TextEditingController _searchController = TextEditingController(); + bool _searching = false; + String _searchQuery = ''; + String? _highlightedStorageId; + Timer? _highlightTimer; + + final Set _selectedIds = {}; + + bool get _hasInitialSource => widget.initialSourceId != null; + bool get _selecting => _selectedIds.isNotEmpty; + bool get _showSearchResults => _searching && _searchQuery.trim().isNotEmpty; @override void initState() { super.initState(); - _bookmarks = context.read().loadBookmarkedMessages(); + _filterToInitialSource = widget.initialSourceId != null; + _bookmarks = _fetchBookmarks(); + } + + @override + void dispose() { + _highlightTimer?.cancel(); + _searchController.dispose(); + _scrollController.dispose(); + super.dispose(); + } + + Future> _fetchBookmarks() async { + final loaded = await context + .read() + .loadBookmarkedMessages(); + if (mounted) { + _loadedBookmarks = loaded; + } + return loaded; } void _reload() { setState(() { - _bookmarks = context.read().loadBookmarkedMessages(); + _bookmarks = _fetchBookmarks(); }); } + bool _matchesInitialSource( + BookmarkedMessage bookmark, + MeshCoreConnector connector, + ) { + final sourceId = widget.initialSourceId; + if (sourceId == null) return true; + if (widget.initialSourceType != null && + bookmark.sourceType != widget.initialSourceType) { + return false; + } + final validIds = {sourceId, ...widget.sourceIdAliases}; + if (bookmark.sourceType == BookmarkSourceType.channel) { + for (final channel in connector.channels) { + final slotId = 'slot:${channel.index}'; + final storageId = channel.storageId; + if (validIds.contains(slotId) || + (storageId != null && validIds.contains(storageId))) { + validIds.add(slotId); + if (storageId != null) validIds.add(storageId); + } + } + } + return validIds.contains(bookmark.sourceId); + } + + List _filteredBookmarks( + List all, + MeshCoreConnector connector, + ) { + final filtered = [ + for (final bookmark in all) + if (!_hasInitialSource || + !_filterToInitialSource || + _matchesInitialSource(bookmark, connector)) + bookmark, + ]; + filtered.sort((a, b) => a.receivedAt.compareTo(b.receivedAt)); + return filtered; + } + + void _openSearch() => setState(() => _searching = true); + + void _closeSearch() { + _searchController.clear(); + setState(() { + _searching = false; + _searchQuery = ''; + }); + } + + Widget _buildSearchField() { + return CallbackShortcuts( + bindings: { + const SingleActivator(LogicalKeyboardKey.escape): _closeSearch, + }, + child: TextField( + controller: _searchController, + autofocus: true, + textInputAction: TextInputAction.search, + style: const TextStyle(fontSize: 16), + decoration: InputDecoration( + hintText: context.l10n.chatSearch_hint, + border: InputBorder.none, + ), + onChanged: (value) => setState(() => _searchQuery = value), + ), + ); + } + + Future> _loadSearchEntries() async { + final connector = context.read(); + final all = await connector.loadBookmarkedMessages(); + if (mounted) { + _loadedBookmarks = all; + } + final visible = _filteredBookmarks(all, connector); + return [ + for (final bookmark in visible) + ChatSearchEntry( + id: bookmark.storageId, + sender: '${bookmark.senderName} · ${bookmark.sourceName}', + text: bookmark.text, + translatedText: bookmark.translatedText, + time: bookmark.receivedAt, + matchSender: true, + ), + ]; + } + + Future _jumpToSearchResult(String storageId) async { + FocusScope.of(context).unfocus(); + _closeSearch(); + await WidgetsBinding.instance.endOfFrame; + if (!mounted) return; + final connector = context.read(); + final visible = _filteredBookmarks(_loadedBookmarks, connector); + final index = visible.indexWhere((b) => b.storageId == storageId); + if (index < 0) { + showDismissibleSnackBar( + context, + content: Text(context.l10n.chatSearch_jumpFailed), + ); + return; + } + final targetIndex = visible.length - 1 - index; + if (_scrollController.hasClients) { + await scrollListToIndex( + controller: _scrollController, + targetIndex: targetIndex, + itemCount: visible.length, + isMounted: () => mounted, + ); + } + if (!mounted) return; + _highlightTimer?.cancel(); + setState(() => _highlightedStorageId = storageId); + _highlightTimer = Timer(const Duration(seconds: 2), () { + if (mounted) setState(() => _highlightedStorageId = null); + }); + } + + void _toggleSelected(BookmarkedMessage bookmark) { + HapticFeedback.selectionClick(); + setState(() { + if (!_selectedIds.remove(bookmark.storageId)) { + _selectedIds.add(bookmark.storageId); + } + }); + } + + void _clearSelection() => setState(_selectedIds.clear); + Future _remove(BookmarkedMessage bookmark) async { + final confirmed = await confirmRemoveBookmarks(context); + if (!confirmed || !mounted) return; await context.read().setBookmarkedMessage( bookmark, isBookmarked: false, ); + if (!mounted) return; + _selectedIds.remove(bookmark.storageId); + _reload(); + } + + Future _removeSelected() async { + if (_selectedIds.isEmpty) return; + final connector = context.read(); + final visible = _filteredBookmarks(_loadedBookmarks, connector); + final toRemove = [ + for (final bookmark in visible) + if (_selectedIds.contains(bookmark.storageId)) bookmark, + ]; + final count = toRemove.isNotEmpty ? toRemove.length : _selectedIds.length; + final confirmed = await confirmRemoveBookmarks(context, count: count); + if (!confirmed || !mounted) return; + final targets = toRemove.isNotEmpty + ? toRemove + : [ + for (final bookmark in _loadedBookmarks) + if (_selectedIds.contains(bookmark.storageId)) bookmark, + ]; + _clearSelection(); + for (final bookmark in targets) { + await connector.setBookmarkedMessage(bookmark, isBookmarked: false); + } if (mounted) _reload(); } + PreferredSizeWidget _buildSelectionAppBar(BuildContext context) { + final l10n = context.l10n; + return AppBar( + leading: IconButton( + tooltip: l10n.chat_clearSelection, + icon: const Icon(Icons.close), + onPressed: _clearSelection, + ), + title: Text(l10n.chat_selectedCount(_selectedIds.length)), + centerTitle: false, + actions: [ + IconButton( + tooltip: l10n.bookmarks_remove, + icon: const Icon(Icons.delete_outline), + onPressed: _selectedIds.isEmpty ? null : _removeSelected, + ), + ], + ); + } + + Widget _buildScopePill(BuildContext context) { + final sourceLabel = + (widget.initialSourceName != null && + widget.initialSourceName!.trim().isNotEmpty) + ? widget.initialSourceName! + : widget.initialSourceId!; + return Padding( + padding: const EdgeInsets.fromLTRB(16, 12, 16, 4), + child: SizedBox( + width: double.infinity, + child: SegmentedButton( + showSelectedIcon: false, + style: SegmentedButton.styleFrom( + minimumSize: const Size(48, 48), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(MeshRadii.pill), + ), + ), + segments: [ + ButtonSegment( + value: false, + label: MeshSegmentLabel(context.l10n.listFilter_all), + ), + ButtonSegment( + value: true, + label: MeshSegmentLabel(sourceLabel), + ), + ], + selected: {_filterToInitialSource}, + onSelectionChanged: (selection) { + setState(() { + _filterToInitialSource = selection.first; + _selectedIds.clear(); + }); + }, + ), + ), + ); + } + + Widget _buildSelectableRow(BookmarkedMessage bookmark, Widget cardBody) { + final scheme = Theme.of(context).colorScheme; + final selected = _selectedIds.contains(bookmark.storageId); + return Semantics( + selected: selected, + button: true, + child: Material( + color: selected + ? scheme.primary.withValues(alpha: 0.16) + : Colors.transparent, + borderRadius: BorderRadius.circular(MeshRadii.md), + child: InkWell( + borderRadius: BorderRadius.circular(MeshRadii.md), + onTap: () => _toggleSelected(bookmark), + onLongPress: () => _toggleSelected(bookmark), + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 4), + child: Row( + children: [ + Icon( + selected ? Icons.check_circle : Icons.radio_button_unchecked, + size: 28, + color: selected ? scheme.primary : scheme.onSurfaceVariant, + ), + const SizedBox(width: 8), + Expanded(child: AbsorbPointer(child: cardBody)), + ], + ), + ), + ), + ), + ); + } + @override Widget build(BuildContext context) { final l10n = context.l10n; - final publicIpfsGateway = context - .watch() - .settings - .publicIpfsGateway; - return Scaffold( - appBar: AppBar(title: Text(l10n.bookmarks_title), centerTitle: true), - body: FutureBuilder>( - future: _bookmarks, - builder: (context, snapshot) { - if (snapshot.connectionState != ConnectionState.done) { - return const Center(child: CircularProgressIndicator()); - } - final bookmarks = snapshot.data ?? const []; - if (bookmarks.isEmpty) { - return EmptyState( - icon: Icons.bookmark_border, - title: l10n.bookmarks_empty, - ); - } - bookmarks.sort((a, b) => a.receivedAt.compareTo(b.receivedAt)); - return ListView.builder( - reverse: true, - padding: const EdgeInsets.all(12), - itemCount: bookmarks.length, - itemBuilder: (context, index) { - final bookmark = bookmarks[bookmarks.length - 1 - index]; - final sourceType = - bookmark.sourceType == BookmarkSourceType.channel - ? l10n.bookmarks_channel - : l10n.bookmarks_contact; - final receivedAt = bookmark.receivedAt.toLocal(); - final localizations = MaterialLocalizations.of(context); - final time = localizations.formatTimeOfDay( - TimeOfDay.fromDateTime(receivedAt), - alwaysUse24HourFormat: MediaQuery.alwaysUse24HourFormatOf( - context, - ), - ); - final dateTime = - '${localizations.formatShortDate(receivedAt)} $time'; - final translation = bookmark.translatedText?.trim(); - final displayText = translation?.isNotEmpty == true - ? translation! - : bookmark.text; - final textStyle = - Theme.of(context).textTheme.bodyMedium ?? const TextStyle(); - final textContent = TranslatedMessageContent( - displayText: displayText, - originalText: displayText == bookmark.text + final publicIpfsGateway = + context.watch()?.settings.publicIpfsGateway ?? ''; + final textScale = context.watch()?.scale ?? 1.0; + + return PopScope( + canPop: !_searching && !_selecting, + onPopInvokedWithResult: (didPop, _) { + if (didPop) return; + if (_selecting) { + _clearSelection(); + } else if (_searching) { + _closeSearch(); + } + }, + child: Scaffold( + appBar: _selecting + ? _buildSelectionAppBar(context) + : AppBar( + leading: _searching + ? IconButton( + tooltip: l10n.chatSearch_close, + icon: const Icon(Icons.arrow_back), + onPressed: _closeSearch, + ) + : null, + title: _searching + ? _buildSearchField() + : Text(l10n.bookmarks_title), + centerTitle: !_searching, + actions: _searching ? null - : bookmark.text, - style: textStyle, - originalStyle: textStyle.copyWith(fontStyle: FontStyle.italic), - backgroundColor: - Theme.of(context).cardTheme.color ?? - Theme.of(context).colorScheme.surfaceContainerLow, - ); - return Card( - margin: const EdgeInsets.only(bottom: 10), - child: Padding( - padding: const EdgeInsets.fromLTRB(16, 12, 8, 12), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Padding( - padding: EdgeInsets.only(top: 2, right: 8), - child: Icon( - Icons.bookmark, - size: 20, - color: Color(0xFFFFE54A), - ), - ), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - '$sourceType · ${bookmark.sourceName}', - style: Theme.of(context).textTheme.titleSmall, + : [ + IconButton( + tooltip: l10n.chatSearch_tooltip, + icon: const Icon(Icons.search), + onPressed: _openSearch, + ), + ], + ), + body: Column( + children: [ + if (_hasInitialSource) _buildScopePill(context), + Expanded( + child: _showSearchResults + ? ChatSearchResults( + key: ValueKey(_filterToInitialSource), + query: _searchQuery.trim(), + loadEntries: _loadSearchEntries, + textScale: textScale, + onSelect: (entry) => + unawaited(_jumpToSearchResult(entry.id)), + ) + : FutureBuilder>( + future: _bookmarks, + builder: (context, snapshot) { + if (snapshot.connectionState != ConnectionState.done) { + return const Center( + child: CircularProgressIndicator(), + ); + } + final connector = context.watch(); + final allBookmarks = + snapshot.data ?? const []; + _loadedBookmarks = allBookmarks; + final bookmarks = _filteredBookmarks( + allBookmarks, + connector, + ); + if (bookmarks.isEmpty) { + return EmptyState( + icon: Icons.bookmark_border, + title: l10n.bookmarks_empty, + ); + } + return ListView.builder( + controller: _scrollController, + reverse: true, + padding: const EdgeInsets.all(12), + itemCount: bookmarks.length, + itemBuilder: (context, index) { + final bookmark = + bookmarks[bookmarks.length - 1 - index]; + final sourceType = + bookmark.sourceType == + BookmarkSourceType.channel + ? l10n.bookmarks_channel + : l10n.bookmarks_contact; + final receivedAt = bookmark.receivedAt.toLocal(); + final localizations = MaterialLocalizations.of( + context, + ); + final time = localizations.formatTimeOfDay( + TimeOfDay.fromDateTime(receivedAt), + alwaysUse24HourFormat: + MediaQuery.alwaysUse24HourFormatOf(context), + ); + final dateTime = + '${localizations.formatShortDate(receivedAt)} $time'; + final translation = bookmark.translatedText?.trim(); + final displayText = translation?.isNotEmpty == true + ? translation! + : bookmark.text; + final textStyle = + Theme.of(context).textTheme.bodyMedium ?? + const TextStyle(); + final scheme = Theme.of(context).colorScheme; + final baseCardColor = + Theme.of(context).cardTheme.color ?? + scheme.surfaceContainerLow; + final highlighted = + bookmark.storageId == _highlightedStorageId; + final cardColor = highlighted + ? Color.alphaBlend( + scheme.primary.withValues(alpha: 0.18), + baseCardColor, + ) + : baseCardColor; + final textContent = TranslatedMessageContent( + displayText: displayText, + originalText: displayText == bookmark.text + ? null + : bookmark.text, + style: textStyle, + originalStyle: textStyle.copyWith( + fontStyle: FontStyle.italic, + ), + backgroundColor: cardColor, + selectable: false, + ); + final card = Card( + margin: EdgeInsets.zero, + color: cardColor, + child: InkWell( + borderRadius: BorderRadius.circular( + MeshRadii.md, ), - const SizedBox(height: 2), - Text( - '${bookmark.senderName} · $dateTime', - style: Theme.of(context).textTheme.bodySmall, - ), - ], - ), - ), - IconButton( - tooltip: l10n.common_copy, - onPressed: () => - copyChatMessageText(context, bookmark.text), - icon: const Icon(Icons.copy), - ), - IconButton( - tooltip: l10n.bookmarks_remove, - onPressed: () => _remove(bookmark), - icon: const Icon(Icons.bookmark_remove_outlined), - ), - ], - ), - const SizedBox(height: 8), - if (MessageUrlImageHelper.hasPotentialImageUrl( - bookmark.text, - )) - MessageUrlImageFutureBuilder( - messageId: bookmark.messageId, - text: bookmark.text, - publicGateway: publicIpfsGateway, - builder: (context, snapshot) { - final imageUrl = snapshot.data; - if (imageUrl == null) return textContent; - return Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Padding( - padding: const EdgeInsets.only(bottom: 8), - child: MessageUrlImagePreview( - imageUrl: imageUrl, + onLongPress: _selecting + ? null + : () => _toggleSelected(bookmark), + child: Padding( + padding: const EdgeInsets.fromLTRB( + 16, + 12, + 8, + 12, + ), + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Row( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + const Padding( + padding: EdgeInsets.only( + top: 2, + right: 8, + ), + child: Icon( + Icons.bookmark, + size: 20, + color: Color(0xFFFFE54A), + ), + ), + Expanded( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text( + '$sourceType · ${bookmark.sourceName}', + style: Theme.of( + context, + ).textTheme.titleSmall, + ), + const SizedBox(height: 2), + Text( + '${bookmark.senderName} · $dateTime', + style: Theme.of( + context, + ).textTheme.bodySmall, + ), + ], + ), + ), + IconButton( + tooltip: l10n.common_copy, + onPressed: () => + copyChatMessageText( + context, + bookmark.text, + ), + icon: const Icon(Icons.copy), + ), + IconButton( + tooltip: l10n.bookmarks_remove, + onPressed: () => _remove(bookmark), + icon: const Icon( + Icons.bookmark_remove_outlined, + ), + ), + ], + ), + const SizedBox(height: 8), + if (MessageUrlImageHelper.hasPotentialImageUrl( + bookmark.text, + )) + MessageUrlImageFutureBuilder( + messageId: bookmark.messageId, + text: bookmark.text, + publicGateway: publicIpfsGateway, + builder: (context, snapshot) { + final imageUrl = snapshot.data; + if (imageUrl == null) { + return textContent; + } + return Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Padding( + padding: + const EdgeInsets.only( + bottom: 8, + ), + child: MessageUrlImagePreview( + imageUrl: imageUrl, + ), + ), + textContent, + ], + ); + }, + ) + else + textContent, + ], ), ), - textContent, - ], + ), + ); + final highlightedCard = highlighted + ? AnimatedContainer( + duration: const Duration(milliseconds: 300), + decoration: BoxDecoration( + color: scheme.primary.withValues( + alpha: 0.18, + ), + borderRadius: BorderRadius.circular( + MeshRadii.md, + ), + ), + child: card, + ) + : card; + return Padding( + padding: const EdgeInsets.only(bottom: 10), + child: _selecting + ? _buildSelectableRow( + bookmark, + highlightedCard, + ) + : highlightedCard, ); }, - ) - else - textContent, - ], - ), - ), - ); - }, - ); - }, + ); + }, + ), + ), + ], + ), ), ); } diff --git a/lib/screens/channel_chat_screen.dart b/lib/screens/channel_chat_screen.dart index 8b5d26de..af2950fd 100644 --- a/lib/screens/channel_chat_screen.dart +++ b/lib/screens/channel_chat_screen.dart @@ -75,6 +75,7 @@ import '../widgets/mesh_ui.dart'; import '../widgets/share_contact_sheet.dart'; import '../widgets/shared_contact_card.dart'; import 'app_settings_screen.dart'; +import 'bookmarks_screen.dart'; import 'channel_chat_transcript_grouping.dart'; import 'channels_screen.dart' show confirmDeleteChannel, showEditChannelSheet; import 'channel_message_path_screen.dart'; @@ -178,7 +179,6 @@ class _ChannelChatScreenState extends State /// Message ids picked for a bulk action. Non-empty means selection mode: /// taps toggle messages and the app bar shows the bulk actions. final Set _selectedIds = {}; - bool _showBookmarkedOnly = false; bool get _selecting => _selectedIds.isNotEmpty; @override @@ -609,10 +609,27 @@ class _ChannelChatScreenState extends State onSaved: _onChannelEdited, ); case 'showBookmarks': - setState(() { - _showBookmarkedOnly = !_showBookmarkedOnly; - _selectedIds.clear(); - }); + final channelLabel = widget.channel.name.isEmpty + ? '#${context.l10n.channels_channelIndex(widget.channel.index)}' + : (widget.channel.name.startsWith('#') + ? widget.channel.name + : '#${widget.channel.name}'); + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => BookmarksScreen( + initialSourceType: BookmarkSourceType.channel, + initialSourceId: + widget.channel.storageId ?? + 'slot:${widget.channel.index}', + sourceIdAliases: [ + ?widget.channel.storageId, + 'slot:${widget.channel.index}', + ], + initialSourceName: channelLabel, + ), + ), + ); case 'background': showChatBackgroundSheet( context, @@ -671,9 +688,8 @@ class _ChannelChatScreenState extends State PopupMenuItem( value: 'showBookmarks', child: _menuRow( - _showBookmarkedOnly ? Icons.bookmark : Icons.bookmark_border, - context.l10n.chat_showBookmarks, - color: _showBookmarkedOnly ? const Color(0xFFFFE54A) : null, + Icons.bookmark_border, + context.l10n.bookmarks_title, ), ), PopupMenuItem( @@ -908,22 +924,13 @@ class _ChannelChatScreenState extends State final layout = _transcriptLayoutFor( context, messages, - showBookmarkedOnly: _showBookmarkedOnly, ); // Fewer entries than messages means the message filter - // hid or collapsed some; bookmark filtering is deliberate. - final hidesMessages = - !_showBookmarkedOnly && - layout.length < messages.length; + // hid or collapsed some. + final hidesMessages = layout.length < messages.length; if (hidesMessages) _scheduleHiddenHistoryBackfill(); if (layout.length == 0) { - if (_showBookmarkedOnly) { - return EmptyState( - icon: Icons.bookmark_border, - title: context.l10n.bookmarks_empty, - ); - } final canLoadOlder = hidesMessages && !_olderHistoryExhausted; return EmptyState( @@ -1243,7 +1250,7 @@ class _ChannelChatScreenState extends State : null, child: MessageBubbleFrame( isOutgoing: isOutgoing, - isBookmarked: message.isBookmarked || _showBookmarkedOnly, + isBookmarked: message.isBookmarked, compact: gifId != null, maxWidth: constraints.maxWidth, child: Column( @@ -2285,9 +2292,8 @@ class _ChannelChatScreenState extends State /// `State`'s) — `watch` asserts on that. _TranscriptLayout _transcriptLayoutFor( BuildContext context, - List messages, { - bool showBookmarkedOnly = false, - }) { + List messages, + ) { ReceivedImageStore? store; try { store = context.watch(); @@ -2316,7 +2322,6 @@ class _ChannelChatScreenState extends State displayMode, filterActive, _revealVersion, - showBookmarkedOnly, _filteredMessagesSignature(messages), Object.hashAll( messages @@ -2325,8 +2330,7 @@ class _ChannelChatScreenState extends State ), ); final cached = _transcriptLayout; - if (!showBookmarkedOnly && - cached != null && + if (cached != null && cached.matches( messages, _imageStoreVersion, @@ -2335,14 +2339,11 @@ class _ChannelChatScreenState extends State )) { return cached; } - final displayedMessages = showBookmarkedOnly - ? messages.where((message) => message.isBookmarked).toList() - : messages; - final images = store == null || showBookmarkedOnly + final images = store == null ? const [] : store.entriesForChannel(widget.channel.storageId); final layout = _TranscriptLayout.build( - messages: displayedMessages, + messages: messages, images: images, imageVersion: _imageStoreVersion, channelIndex: widget.channel.index, @@ -3188,8 +3189,14 @@ class _ChannelChatScreenState extends State ? context.l10n.chat_removeBookmark : context.l10n.chat_bookmark, ), - onTap: () { + onTap: () async { + final connector = context.read(); + final selfLabel = connector.selfName ?? context.l10n.chat_me; Navigator.pop(sheetContext); + if (message.isBookmarked) { + final confirmed = await confirmRemoveBookmarks(context); + if (!confirmed || !mounted) return; + } final bookmark = BookmarkedMessage.fromChannel( message: message, channelId: @@ -3197,15 +3204,12 @@ class _ChannelChatScreenState extends State 'slot:${widget.channel.index}', channelName: widget.channel.name, senderName: message.isOutgoing - ? (context.read().selfName ?? - context.l10n.chat_me) + ? selfLabel : message.senderName, ); - unawaited( - context.read().setBookmarkedMessage( - bookmark, - isBookmarked: !message.isBookmarked, - ), + await connector.setBookmarkedMessage( + bookmark, + isBookmarked: !message.isBookmarked, ); }, ), @@ -3309,10 +3313,9 @@ class _ChannelChatScreenState extends State final filterActive = _transcriptLayout?.filterActive ?? true; return [ for (final m in messages) - if ((!_showBookmarkedOnly || m.isBookmarked) && - !(filterActive && - m.isFiltered && - !_revealedFilteredIds.contains(m.messageId))) + if (!(filterActive && + m.isFiltered && + !_revealedFilteredIds.contains(m.messageId))) m, ]; } @@ -3391,6 +3394,11 @@ class _ChannelChatScreenState extends State icon: const Icon(Icons.visibility_outlined), onPressed: () => _bulkMarkNotSpam(notSpamCandidates), ), + IconButton( + tooltip: l10n.chat_bookmark, + icon: const Icon(Icons.bookmark_add_outlined), + onPressed: selected.isEmpty ? null : () => _bulkBookmark(selected), + ), IconButton( tooltip: l10n.common_delete, icon: const Icon(Icons.delete_outline), @@ -3465,6 +3473,25 @@ class _ChannelChatScreenState extends State showDismissibleSnackBar(context, content: Text(text)); } + Future _bulkBookmark(List messages) async { + final connector = context.read(); + final selfLabel = connector.selfName ?? context.l10n.chat_me; + final channelId = + widget.channel.storageId ?? 'slot:${widget.channel.index}'; + final channelName = widget.channel.name; + final toBookmark = messages.where((m) => !m.isBookmarked).toList(); + _clearSelection(); + for (final message in toBookmark) { + final bookmark = BookmarkedMessage.fromChannel( + message: message, + channelId: channelId, + channelName: channelName, + senderName: message.isOutgoing ? selfLabel : message.senderName, + ); + await connector.setBookmarkedMessage(bookmark, isBookmarked: true); + } + } + Future _bulkDelete(List messages) async { final connector = context.read(); final confirmed = await confirmBulkDelete(context, messages.length); diff --git a/lib/screens/chat_screen.dart b/lib/screens/chat_screen.dart index e8d3eba2..4ea09d38 100644 --- a/lib/screens/chat_screen.dart +++ b/lib/screens/chat_screen.dart @@ -44,6 +44,7 @@ import '../widgets/chat_zoom_wrapper.dart'; import '../widgets/message_bubble_frame.dart'; import '../widgets/reaction_chips.dart'; import '../widgets/chat_day_separator.dart'; +import 'bookmarks_screen.dart'; import 'channel_message_path_screen.dart'; import 'contacts_screen.dart' show confirmRemoveContact; import 'map_screen.dart'; @@ -97,13 +98,12 @@ class _ChatScreenState extends State with WidgetsBindingObserver { final _textController = TextEditingController(); final _scrollController = ChatScrollController(); final _scrollAnchor = ChatScrollAnchor(); - ({String id, bool bookmarksOnly})? _newestRow; + String? _newestRowId; final _textFieldFocusNode = FocusNode(); bool _focusLostWhileAway = false; bool _focusLostToRoute = false; final GlobalKey _unreadScrollKey = GlobalKey(); bool _isLoadingOlder = false; - bool _showBookmarkedOnly = false; MeshCoreConnector? _connector; Message? _pendingUnreadScrollTarget; String? _unreadDividerMessageId; @@ -513,8 +513,15 @@ class _ChatScreenState extends State with WidgetsBindingObserver { case 'settings': _showContactSettings(context); case 'showBookmarks': - setState( - () => _showBookmarkedOnly = !_showBookmarkedOnly, + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => BookmarksScreen( + initialSourceType: BookmarkSourceType.contact, + initialSourceId: widget.contact.publicKeyHex, + initialSourceName: contact.name, + ), + ), ); case 'background': showChatBackgroundSheet( @@ -586,13 +593,8 @@ class _ChatScreenState extends State with WidgetsBindingObserver { PopupMenuItem( value: 'showBookmarks', child: MeshMenuItemRow( - icon: _showBookmarkedOnly - ? Icons.bookmark - : Icons.bookmark_border, - label: context.l10n.chat_showBookmarks, - color: _showBookmarkedOnly - ? const Color(0xFFFFE54A) - : null, + icon: Icons.bookmark_border, + label: context.l10n.bookmarks_title, ), ), PopupMenuItem( @@ -697,7 +699,6 @@ class _ChatScreenState extends State with WidgetsBindingObserver { } Widget _buildEmptyState() { - if (_showBookmarkedOnly) return _buildBookmarkEmptyState(); return EmptyState( icon: Icons.chat_bubble_outline, title: context.l10n.chat_noMessages, @@ -707,40 +708,25 @@ class _ChatScreenState extends State with WidgetsBindingObserver { ); } - Widget _buildBookmarkEmptyState() => EmptyState( - icon: Icons.bookmark_border, - title: context.l10n.bookmarks_empty, - ); - Widget _buildMessageList( List messages, MeshCoreConnector connector, ) { - final visibleMessages = _showBookmarkedOnly - ? messages.where((message) => message.isBookmarked).toList() - : messages; - if (_showBookmarkedOnly && visibleMessages.isEmpty) { - return _buildBookmarkEmptyState(); - } // Reverse messages so newest appear at bottom with reverse: true - final reversedMessages = visibleMessages.reversed.toList(); + final reversedMessages = messages.reversed.toList(); final itemCount = reversedMessages.length + (_isLoadingOlder ? 1 : 0); // A reader scrolled up keeps their place when messages arrive below, as // a room's backlog does in a burst right after login. - final previous = _newestRow; - final newest = ( - id: reversedMessages.first.messageId, - bookmarksOnly: _showBookmarkedOnly, - ); - _newestRow = newest; - if (previous != null && - previous.bookmarksOnly == newest.bookmarksOnly && - previous.id != newest.id && + final previousId = _newestRowId; + final newestId = reversedMessages.first.messageId; + _newestRowId = newestId; + if (previousId != null && + previousId != newestId && _pendingUnreadScrollTarget == null && _scrollController.showJumpToBottom.value) { final inserted = reversedMessages.indexWhere( - (m) => m.messageId == previous.id, + (m) => m.messageId == previousId, ); if (inserted > 0) _scrollAnchor.rowsInsertedBelow(inserted); } @@ -825,7 +811,7 @@ class _ChatScreenState extends State with WidgetsBindingObserver { : contact.name, sourceId: widget.contact.publicKeyHex, textScale: textScale, - isBookmarked: message.isBookmarked || _showBookmarkedOnly, + isBookmarked: message.isBookmarked, onLongPress: () => _showMessageActions(message, contact), onRetryReaction: (msg, emoji) => _sendReaction(msg, contact, emoji), @@ -1488,22 +1474,23 @@ class _ChatScreenState extends State with WidgetsBindingObserver { ? context.l10n.chat_removeBookmark : context.l10n.chat_bookmark, ), - onTap: () { + onTap: () async { + final connector = context.read(); + final selfLabel = connector.selfName ?? context.l10n.chat_me; Navigator.pop(sheetContext); + if (message.isBookmarked) { + final confirmed = await confirmRemoveBookmarks(context); + if (!confirmed || !mounted) return; + } final bookmark = BookmarkedMessage.fromContact( message: message, contactKey: widget.contact.publicKeyHex, contactName: widget.contact.name, - senderName: message.isOutgoing - ? (context.read().selfName ?? - context.l10n.chat_me) - : contact.name, + senderName: message.isOutgoing ? selfLabel : contact.name, ); - unawaited( - context.read().setBookmarkedMessage( - bookmark, - isBookmarked: !message.isBookmarked, - ), + await connector.setBookmarkedMessage( + bookmark, + isBookmarked: !message.isBookmarked, ); }, ), diff --git a/lib/screens/contacts_screen.dart b/lib/screens/contacts_screen.dart index d7f6dd28..5299a9ea 100644 --- a/lib/screens/contacts_screen.dart +++ b/lib/screens/contacts_screen.dart @@ -37,6 +37,7 @@ import '../widgets/sync_progress_overlay.dart'; import '../widgets/unread_badge.dart'; import '../helpers/snack_bar_builder.dart'; import 'add_contact_screen.dart'; +import 'bookmarks_screen.dart'; import 'channels_screen.dart'; import 'chat_screen.dart'; import 'discovery_screen.dart'; @@ -384,6 +385,16 @@ class _ContactsScreenState extends State { MaterialPageRoute(builder: (_) => const DiscoveryScreen()), ), ), + PopupMenuItem( + child: MeshMenuItemRow( + icon: Icons.bookmark_border, + label: menuContext.l10n.bookmarks_title, + ), + onTap: () => Navigator.push( + context, + MaterialPageRoute(builder: (_) => const BookmarksScreen()), + ), + ), const PopupMenuDivider(), PopupMenuItem( enabled: !readOnly, diff --git a/lib/storage/bookmark_store.dart b/lib/storage/bookmark_store.dart index 3b4ca251..d6a6669f 100644 --- a/lib/storage/bookmark_store.dart +++ b/lib/storage/bookmark_store.dart @@ -13,11 +13,11 @@ class BookmarkStore { String get keyFor => '$_keyPrefix$publicKeyHex'; - Future _pendingWrites = Future.value(); + Future? _pendingWrites; Future> loadBookmarks() async { final writes = _pendingWrites; - await writes; + if (writes != null) await writes; return _readBookmarks(keyFor); } @@ -47,11 +47,20 @@ class BookmarkStore { } Future _enqueue(Future Function() operation) { - final next = _pendingWrites.then((_) => operation()); - _pendingWrites = next.then( + final previous = _pendingWrites; + final next = previous == null + ? Future.sync(operation) + : previous.then((_) => operation()); + final completion = next.then( (_) {}, onError: (Object _, StackTrace _) {}, ); + _pendingWrites = completion; + completion.whenComplete(() { + if (identical(_pendingWrites, completion)) { + _pendingWrites = null; + } + }); return next; } diff --git a/lib/widgets/chat_send_pipeline.dart b/lib/widgets/chat_send_pipeline.dart index 2d437857..af65e3e9 100644 --- a/lib/widgets/chat_send_pipeline.dart +++ b/lib/widgets/chat_send_pipeline.dart @@ -219,3 +219,42 @@ Future confirmClearChat( ); return confirmed == true; } + +/// Asks before removing [count] bookmarked messages. +Future confirmRemoveBookmarks( + BuildContext context, { + int count = 1, +}) async { + final confirmed = await showDialog( + context: context, + builder: (dialogContext) { + final l10n = dialogContext.l10n; + return AlertDialog( + title: Text( + count == 1 + ? l10n.bookmarks_removeConfirmTitle + : l10n.bookmarks_removeSelectedConfirmTitle, + ), + content: Text( + count == 1 + ? l10n.bookmarks_removeConfirmMessage + : l10n.bookmarks_removeSelectedConfirmMessage(count), + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(dialogContext, false), + child: Text(l10n.common_cancel), + ), + TextButton( + onPressed: () => Navigator.pop(dialogContext, true), + style: TextButton.styleFrom( + foregroundColor: Theme.of(dialogContext).colorScheme.error, + ), + child: Text(l10n.common_remove), + ), + ], + ); + }, + ); + return confirmed == true; +} diff --git a/lib/widgets/translated_message_content.dart b/lib/widgets/translated_message_content.dart index c015585e..913beb9a 100644 --- a/lib/widgets/translated_message_content.dart +++ b/lib/widgets/translated_message_content.dart @@ -10,6 +10,7 @@ class TranslatedMessageContent extends StatelessWidget { final Color? backgroundColor; final bool showOriginalFirst; final VoidCallback? onSecondaryTap; + final bool selectable; const TranslatedMessageContent({ super.key, @@ -20,6 +21,7 @@ class TranslatedMessageContent extends StatelessWidget { this.backgroundColor, this.showOriginalFirst = true, this.onSecondaryTap, + this.selectable = true, }); @override @@ -42,6 +44,7 @@ class TranslatedMessageContent extends StatelessWidget { ), backgroundColor: backgroundColor, onSecondaryTap: onSecondaryTap, + selectable: selectable, ) : null; final translatedWidget = LinkHandler.buildLinkifyText( @@ -50,6 +53,7 @@ class TranslatedMessageContent extends StatelessWidget { style: style, backgroundColor: backgroundColor, onSecondaryTap: onSecondaryTap, + selectable: selectable, ); if (!shouldShowOriginal) { diff --git a/test/screens/bookmarks_screen_test.dart b/test/screens/bookmarks_screen_test.dart new file mode 100644 index 00000000..b8d75ac5 --- /dev/null +++ b/test/screens/bookmarks_screen_test.dart @@ -0,0 +1,741 @@ +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:provider/provider.dart'; +import 'package:shared_preferences/shared_preferences.dart'; + +import 'package:meshcore_open/connector/meshcore_connector.dart'; +import 'package:meshcore_open/l10n/app_localizations.dart'; +import 'package:meshcore_open/models/bookmarked_message.dart'; +import 'package:meshcore_open/review_mode/review_radio.dart'; +import 'package:meshcore_open/screens/bookmarks_screen.dart'; +import 'package:meshcore_open/screens/channel_chat_screen.dart'; +import 'package:meshcore_open/screens/chat_screen.dart'; +import 'package:meshcore_open/screens/contacts_screen.dart'; +import 'package:meshcore_open/services/app_debug_log_service.dart'; +import 'package:meshcore_open/services/app_settings_service.dart'; +import 'package:meshcore_open/services/ble_debug_log_service.dart'; +import 'package:meshcore_open/services/chat_text_scale_service.dart'; +import 'package:meshcore_open/services/image_codec_service.dart'; +import 'package:meshcore_open/services/map_tile_cache_service.dart'; +import 'package:meshcore_open/services/message_retry_service.dart'; +import 'package:meshcore_open/services/network_map/network_map_upload_service.dart'; +import 'package:meshcore_open/services/path_history_service.dart'; +import 'package:meshcore_open/services/received_image_store.dart'; +import 'package:meshcore_open/services/storage_service.dart'; +import 'package:meshcore_open/services/timeout_prediction_service.dart'; +import 'package:meshcore_open/services/translation_service.dart'; +import 'package:meshcore_open/services/ui_view_state_service.dart'; +import 'package:meshcore_open/storage/prefs_manager.dart'; +import 'package:meshcore_open/theme/mesh_theme.dart'; +import 'package:meshcore_open/widgets/mesh_ui.dart'; +import 'package:meshcore_open/widgets/message_bubble_frame.dart'; + +final _l10n = lookupAppLocalizations(const Locale('en')); + +class _TestEnv { + final MeshCoreConnector connector; + final Widget Function(Widget home, {double textScale}) wrap; + + _TestEnv({required this.connector, required this.wrap}); +} + +_TestEnv? _sharedEnv; + +Future _pumpFuture(WidgetTester tester, Future future) async { + var done = false; + late T result; + Object? error; + StackTrace? stack; + future.then( + (value) { + result = value; + done = true; + }, + onError: (Object e, StackTrace s) { + error = e; + stack = s; + done = true; + }, + ); + for (var i = 0; i < 50 && !done; i++) { + await tester.pump(const Duration(milliseconds: 10)); + } + if (!done) { + throw StateError('Timed out pumping future in FakeAsync'); + } + if (error != null) Error.throwWithStackTrace(error!, stack!); + return result; +} + +Future<_TestEnv> _createEnv(WidgetTester tester) async { + if (_sharedEnv != null) { + final existing = _sharedEnv!; + final bookmarks = await _pumpFuture( + tester, + existing.connector.loadBookmarkedMessages(), + ); + for (final bookmark in bookmarks) { + await _pumpFuture( + tester, + existing.connector.setBookmarkedMessage(bookmark, isBookmarked: false), + ); + } + for (final channel in existing.connector.channels) { + for (final msg in existing.connector.getChannelMessages(channel)) { + if (msg.isBookmarked) { + await _pumpFuture( + tester, + existing.connector.setBookmarkedMessage( + BookmarkedMessage.fromChannel( + message: msg, + channelId: channel.storageId ?? 'slot:${channel.index}', + channelName: channel.name, + senderName: msg.senderName, + ), + isBookmarked: false, + ), + ); + } + } + } + return existing; + } + late final StorageService storage; + late final MeshCoreConnector connector; + late final MessageRetryService retry; + late final AppSettingsService settings; + late final TranslationService translation; + late final UiViewStateService viewState; + + await tester.runAsync(() async { + storage = StorageService(); + connector = MeshCoreConnector(); + retry = MessageRetryService(); + settings = AppSettingsService(); + translation = TranslationService(settings); + viewState = UiViewStateService(); + await settings.loadSettings(); + connector.initialize( + retryService: retry, + pathHistoryService: PathHistoryService(storage), + appSettingsService: settings, + translationService: translation, + ); + connector.reviewRadioFactoryForTest = () => ReviewRadio( + scheduledMessageInterval: const Duration(hours: 1), + ackDelay: const Duration(hours: 1), + replyDelay: const Duration(hours: 1), + ); + await connector.connectReview(); + final end = DateTime.now().add(const Duration(seconds: 8)); + while ((connector.contacts.isEmpty || + connector.channels.isEmpty || + !connector.channelMapConfirmed) && + DateTime.now().isBefore(end)) { + await Future.delayed(const Duration(milliseconds: 25)); + } + await Future.delayed(const Duration(milliseconds: 1200)); + }); + + final providers = [ + ChangeNotifierProvider.value(value: connector), + ChangeNotifierProvider.value(value: retry), + ChangeNotifierProvider.value(value: PathHistoryService(storage)), + ChangeNotifierProvider.value(value: settings), + ChangeNotifierProvider.value(value: BleDebugLogService()), + ChangeNotifierProvider.value(value: AppDebugLogService()), + ChangeNotifierProvider.value(value: ChatTextScaleService()), + ChangeNotifierProvider.value(value: translation), + ChangeNotifierProvider.value(value: viewState), + Provider.value(value: storage), + ChangeNotifierProvider.value( + value: MapTileCacheService(appSettingsService: settings), + ), + ChangeNotifierProvider.value(value: TimeoutPredictionService(storage)), + ChangeNotifierProvider.value(value: ImageCodecService(settings)), + ChangeNotifierProvider.value(value: ReceivedImageStore()), + ChangeNotifierProvider.value( + value: NetworkMapUploadService(connector: connector, settings: settings), + ), + ]; + + Widget wrap(Widget home, {double textScale = 1.0}) { + return MultiProvider( + providers: providers, + child: MaterialApp( + key: UniqueKey(), + theme: MeshTheme.light(), + locale: const Locale('en'), + localizationsDelegates: const [ + AppLocalizations.delegate, + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + ], + supportedLocales: AppLocalizations.supportedLocales, + builder: (context, child) => MediaQuery( + data: MediaQuery.of( + context, + ).copyWith(textScaler: TextScaler.linear(textScale)), + child: child!, + ), + home: home, + ), + ); + } + + return _sharedEnv = _TestEnv(connector: connector, wrap: wrap); +} + +Future _pumpFrames(WidgetTester tester, [int count = 8]) async { + for (var i = 0; i < count; i++) { + await tester.pump(const Duration(milliseconds: 100)); + } +} + +Finder _segmentByText(String label) => + find.byWidgetPredicate((w) => w is MeshSegmentLabel && w.text == label); + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + final tempDir = Directory.systemTemp.createTempSync('bookmarks_screen_test'); + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler( + const MethodChannel('plugins.flutter.io/path_provider'), + (call) async => tempDir.path, + ); + + setUpAll(() async { + SharedPreferences.setMockInitialValues({}); + PrefsManager.reset(); + await PrefsManager.initialize(); + }); + + testWidgets( + 'Contacts overflow menu includes Bookmarks after Discovered Contacts and opens BookmarksScreen', + (tester) async { + final env = await _createEnv(tester); + await tester.pumpWidget(env.wrap(const ContactsScreen())); + await _pumpFrames(tester); + + await tester.tap(find.byIcon(Icons.more_vert)); + await _pumpFrames(tester); + + expect(find.text(_l10n.discoveredContacts_Title), findsOneWidget); + expect(find.text(_l10n.bookmarks_title), findsOneWidget); + + await tester.tap(find.text(_l10n.bookmarks_title)); + await _pumpFrames(tester); + + expect(find.byType(BookmarksScreen), findsOneWidget); + // No split pill when opened from main Contacts screen. + expect(find.byType(SegmentedButton), findsNothing); + + await tester.pumpWidget(const SizedBox()); + await tester.pump(const Duration(minutes: 1)); + }, + ); + + testWidgets( + 'ChannelChatScreen and ChatScreen overflow menus open BookmarksScreen with split pill filter', + (tester) async { + final env = await _createEnv(tester); + final channel = env.connector.channels.firstWhere( + (c) => c.name == 'Public', + ); + final contact = env.connector.contacts.firstWhere( + (c) => c.name == 'Maya', + ); + + final channelBookmark = BookmarkedMessage( + sourceType: BookmarkSourceType.channel, + sourceId: channel.storageId ?? 'slot:${channel.index}', + sourceName: channel.name, + messageId: 'ch-msg-1', + senderName: 'Maya', + text: 'Public channel bookmarked note', + timestamp: DateTime(2026, 1, 1, 10), + receivedAt: DateTime(2026, 1, 1, 10), + isOutgoing: false, + ); + final contactBookmark = BookmarkedMessage( + sourceType: BookmarkSourceType.contact, + sourceId: contact.publicKeyHex, + sourceName: contact.name, + messageId: 'dm-msg-1', + senderName: contact.name, + text: 'Direct message bookmarked note', + timestamp: DateTime(2026, 1, 1, 11), + receivedAt: DateTime(2026, 1, 1, 11), + isOutgoing: false, + ); + + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(channelBookmark, isBookmarked: true), + ); + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(contactBookmark, isBookmarked: true), + ); + + // 1. Open from ChannelChatScreen + await tester.pumpWidget(env.wrap(ChannelChatScreen(channel: channel))); + await _pumpFrames(tester); + + await tester.tap(find.byIcon(Icons.more_vert)); + await _pumpFrames(tester); + expect(find.text(_l10n.bookmarks_title), findsOneWidget); + + await tester.tap(find.text(_l10n.bookmarks_title)); + await _pumpFrames(tester); + + expect(find.byType(BookmarksScreen), findsOneWidget); + expect(find.byType(SegmentedButton), findsOneWidget); + expect(_segmentByText(_l10n.listFilter_all), findsOneWidget); + expect(_segmentByText('#Public'), findsOneWidget); + + // Defaults to current channel's bookmarks only. + expect(find.text('Public channel bookmarked note'), findsOneWidget); + expect(find.text('Direct message bookmarked note'), findsNothing); + + // Tap "All" segment to view all bookmarks across the app. + await tester.tap(_segmentByText(_l10n.listFilter_all)); + await _pumpFrames(tester); + + expect(find.text('Public channel bookmarked note'), findsOneWidget); + expect(find.text('Direct message bookmarked note'), findsOneWidget); + + // Tap "#Public" segment to scope back to channel. + await tester.tap(_segmentByText('#Public')); + await _pumpFrames(tester); + + expect(find.text('Public channel bookmarked note'), findsOneWidget); + expect(find.text('Direct message bookmarked note'), findsNothing); + + // 2. Open from ChatScreen (contact DM) + await tester.pumpWidget(env.wrap(ChatScreen(contact: contact))); + await _pumpFrames(tester); + + await tester.tap(find.byIcon(Icons.more_vert)); + await _pumpFrames(tester); + expect(find.text(_l10n.bookmarks_title), findsOneWidget); + + await tester.tap(find.text(_l10n.bookmarks_title)); + await _pumpFrames(tester); + + expect(find.byType(BookmarksScreen), findsOneWidget); + expect(_segmentByText(_l10n.listFilter_all), findsOneWidget); + expect(_segmentByText('Maya'), findsOneWidget); + expect(find.text('Direct message bookmarked note'), findsOneWidget); + expect(find.text('Public channel bookmarked note'), findsNothing); + + await tester.pumpWidget(const SizedBox()); + await tester.pump(const Duration(minutes: 1)); + }, + ); + + testWidgets( + 'Search in BookmarksScreen finds matching bookmarks and jumping highlights target card', + (tester) async { + final env = await _createEnv(tester); + final b1 = BookmarkedMessage( + sourceType: BookmarkSourceType.channel, + sourceId: 'slot:0', + sourceName: 'Public', + messageId: 'm1', + senderName: 'Sam', + text: 'Alpha repeater check on ridge', + timestamp: DateTime(2026, 1, 1, 9), + receivedAt: DateTime(2026, 1, 1, 9), + isOutgoing: false, + ); + final b2 = BookmarkedMessage( + sourceType: BookmarkSourceType.contact, + sourceId: 'contact-1', + sourceName: 'Maya', + messageId: 'm2', + senderName: 'Maya', + text: 'Bravo solar battery voltage update', + timestamp: DateTime(2026, 1, 1, 10), + receivedAt: DateTime(2026, 1, 1, 10), + isOutgoing: false, + ); + + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(b1, isBookmarked: true), + ); + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(b2, isBookmarked: true), + ); + + await tester.pumpWidget(env.wrap(const BookmarksScreen())); + await _pumpFrames(tester); + + await tester.tap(find.byIcon(Icons.search)); + await _pumpFrames(tester); + + await tester.enterText(find.byType(TextField), 'solar'); + await tester.pump(const Duration(milliseconds: 350)); + await _pumpFrames(tester); + + expect( + find.textContaining('Bravo solar battery voltage update'), + findsOneWidget, + ); + expect(find.textContaining('Alpha repeater check'), findsNothing); + + // Tap the search result to close search and highlight the card. + await tester.tap( + find.textContaining('Bravo solar battery voltage update'), + ); + await _pumpFrames(tester); + + // Search field closed and AnimatedContainer highlight is active. + expect(find.byType(TextField), findsNothing); + expect(find.byType(AnimatedContainer), findsOneWidget); + + // Highlight clears after 2 seconds. + await tester.pump(const Duration(seconds: 3)); + expect(find.byType(AnimatedContainer), findsNothing); + + await tester.pumpWidget(const SizedBox()); + await tester.pump(const Duration(minutes: 1)); + }, + ); + + testWidgets( + 'Single removal and bulk removal in BookmarksScreen show confirmation AlertDialog', + (tester) async { + final env = await _createEnv(tester); + final b1 = BookmarkedMessage( + sourceType: BookmarkSourceType.channel, + sourceId: 'slot:0', + sourceName: 'Public', + messageId: 'm1', + senderName: 'Sam', + text: 'First bookmarked message', + timestamp: DateTime(2026, 1, 1, 9), + receivedAt: DateTime(2026, 1, 1, 9), + isOutgoing: false, + ); + final b2 = BookmarkedMessage( + sourceType: BookmarkSourceType.channel, + sourceId: 'slot:0', + sourceName: 'Public', + messageId: 'm2', + senderName: 'Maya', + text: 'Second bookmarked message', + timestamp: DateTime(2026, 1, 1, 10), + receivedAt: DateTime(2026, 1, 1, 10), + isOutgoing: false, + ); + final b3 = BookmarkedMessage( + sourceType: BookmarkSourceType.contact, + sourceId: 'contact-1', + sourceName: 'Maya', + messageId: 'm3', + senderName: 'Maya', + text: 'Third bookmarked message', + timestamp: DateTime(2026, 1, 1, 11), + receivedAt: DateTime(2026, 1, 1, 11), + isOutgoing: false, + ); + + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(b1, isBookmarked: true), + ); + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(b2, isBookmarked: true), + ); + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(b3, isBookmarked: true), + ); + + await tester.pumpWidget(env.wrap(const BookmarksScreen())); + await _pumpFrames(tester); + + expect(find.text('Third bookmarked message'), findsOneWidget); + + // 1. Single remove -> Cancel keeps bookmark intact. + await tester.tap(find.byIcon(Icons.bookmark_remove_outlined).first); + await _pumpFrames(tester); + + expect(find.byType(AlertDialog), findsOneWidget); + expect(find.text(_l10n.bookmarks_removeConfirmTitle), findsOneWidget); + expect(find.text(_l10n.bookmarks_removeConfirmMessage), findsOneWidget); + + await tester.tap(find.text(_l10n.common_cancel)); + await _pumpFrames(tester); + expect(find.byType(AlertDialog), findsNothing); + expect(find.text('Third bookmarked message'), findsOneWidget); + + // 2. Single remove -> Confirm removes bookmark. + await tester.tap(find.byIcon(Icons.bookmark_remove_outlined).first); + await _pumpFrames(tester); + await tester.tap(find.text(_l10n.common_remove)); + await _pumpFrames(tester); + + expect(find.text('Third bookmarked message'), findsNothing); + expect(find.text('Second bookmarked message'), findsOneWidget); + expect(find.text('First bookmarked message'), findsOneWidget); + + // 3. Long-press to enter bulk selection mode and select both remaining bookmarks. + await tester.longPress(find.text('Second bookmarked message')); + await _pumpFrames(tester); + + expect(find.text(_l10n.chat_selectedCount(1)), findsOneWidget); + await tester.tap( + find.text('First bookmarked message'), + warnIfMissed: false, + ); + await _pumpFrames(tester); + expect(find.text(_l10n.chat_selectedCount(2)), findsOneWidget); + + // Tap bulk delete icon -> Cancel keeps both bookmarks. + await tester.tap(find.byIcon(Icons.delete_outline)); + await _pumpFrames(tester); + + expect(find.byType(AlertDialog), findsOneWidget); + expect( + find.text(_l10n.bookmarks_removeSelectedConfirmTitle), + findsOneWidget, + ); + expect( + find.text(_l10n.bookmarks_removeSelectedConfirmMessage(2)), + findsOneWidget, + ); + + await tester.tap(find.text(_l10n.common_cancel)); + await _pumpFrames(tester); + expect(find.text('Second bookmarked message'), findsOneWidget); + expect(find.text('First bookmarked message'), findsOneWidget); + + // Tap bulk delete icon -> Confirm removes selected bookmarks. + await tester.tap(find.byIcon(Icons.delete_outline)); + await _pumpFrames(tester); + await tester.tap(find.text(_l10n.common_remove)); + await _pumpFrames(tester); + + expect(find.text(_l10n.bookmarks_empty), findsOneWidget); + + await tester.pumpWidget(const SizedBox()); + await tester.pump(const Duration(minutes: 1)); + }, + ); + + testWidgets( + 'ChannelChatScreen bulk selection bookmarks selected messages and in-chat remove prompts for confirmation', + (tester) async { + final env = await _createEnv(tester); + final channel = env.connector.channels.firstWhere( + (c) => c.name == 'Hiking Group', + ); + + await tester.pumpWidget(env.wrap(ChannelChatScreen(channel: channel))); + await _pumpFrames(tester); + + final messages = env.connector.getChannelMessages(channel); + expect(messages.length, greaterThanOrEqualTo(2)); + final firstMsg = messages[messages.length - 1]; + final secondMsg = messages[messages.length - 2]; + + Future longPressBubble(String text) async { + final bubble = find.ancestor( + of: find.text(text), + matching: find.byType(MessageBubbleFrame), + ); + await tester.longPressAt( + tester.getTopLeft(bubble) + const Offset(8, 8), + ); + await _pumpFrames(tester); + } + + // Long-press newest message to open action sheet -> Select messages + await longPressBubble(firstMsg.text); + + await tester.tap(find.text(_l10n.chat_selectMessages)); + await _pumpFrames(tester); + + // Select second message too + await tester.tap(find.text(secondMsg.text), warnIfMissed: false); + await _pumpFrames(tester); + expect(find.text(_l10n.chat_selectedCount(2)), findsOneWidget); + + // Tap bulk Bookmark action in selection AppBar + final bookmarkBtn = find.byTooltip(_l10n.chat_bookmark); + expect(bookmarkBtn, findsOneWidget); + await tester.tap(bookmarkBtn); + await _pumpFrames(tester); + + final saved = await _pumpFuture( + tester, + env.connector.loadBookmarkedMessages(), + ); + expect(saved, hasLength(2)); + + // Now long-press the bookmarked message in ChannelChatScreen and tap "Remove bookmark" + await longPressBubble(firstMsg.text); + expect(find.text(_l10n.chat_removeBookmark), findsOneWidget); + + await tester.tap(find.text(_l10n.chat_removeBookmark)); + await _pumpFrames(tester); + + // Confirmation dialog appears + expect(find.byType(AlertDialog), findsOneWidget); + expect(find.text(_l10n.bookmarks_removeConfirmTitle), findsOneWidget); + + // Cancel keeps it bookmarked + await tester.tap(find.text(_l10n.common_cancel)); + await _pumpFrames(tester); + expect( + await _pumpFuture(tester, env.connector.loadBookmarkedMessages()), + hasLength(2), + ); + + // Confirm removes the bookmark + await longPressBubble(firstMsg.text); + await tester.tap(find.text(_l10n.chat_removeBookmark)); + await _pumpFrames(tester); + await tester.tap(find.text(_l10n.common_remove)); + await _pumpFrames(tester); + + expect( + await _pumpFuture(tester, env.connector.loadBookmarkedMessages()), + hasLength(1), + ); + + // Also verify ChatScreen (direct message) bookmark removal confirmation dialog + final contact = env.connector.contacts.firstWhere( + (c) => c.name == 'Maya', + ); + await tester.pumpWidget(env.wrap(ChatScreen(contact: contact))); + await _pumpFrames(tester); + + final dmMessages = env.connector.getMessages(contact); + expect(dmMessages, isNotEmpty); + final dmMsg = dmMessages.last; + + // Bookmark the DM first + await longPressBubble(dmMsg.text); + await tester.tap(find.text(_l10n.chat_bookmark)); + await _pumpFrames(tester); + expect( + await _pumpFuture(tester, env.connector.loadBookmarkedMessages()), + hasLength(2), + ); + + // Long-press and tap Remove bookmark -> Cancel keeps it + await longPressBubble(dmMsg.text); + await tester.tap(find.text(_l10n.chat_removeBookmark)); + await _pumpFrames(tester); + expect(find.byType(AlertDialog), findsOneWidget); + await tester.tap(find.text(_l10n.common_cancel)); + await _pumpFrames(tester); + expect( + await _pumpFuture(tester, env.connector.loadBookmarkedMessages()), + hasLength(2), + ); + + // Confirm removes it + await longPressBubble(dmMsg.text); + await tester.tap(find.text(_l10n.chat_removeBookmark)); + await _pumpFrames(tester); + await tester.tap(find.text(_l10n.common_remove)); + await _pumpFrames(tester); + expect( + await _pumpFuture(tester, env.connector.loadBookmarkedMessages()), + hasLength(1), + ); + + await tester.pumpWidget(const SizedBox()); + await tester.pump(const Duration(minutes: 1)); + }, + ); + + group('BookmarksScreen fits 320dp at 1.3x and 2.0x text scale', () { + for (final scale in [1.3, 2.0]) { + testWidgets('no layout overflow at 320dp and ${scale}x text scale', ( + tester, + ) async { + tester.view.physicalSize = const Size(320, 568); + tester.view.devicePixelRatio = 1.0; + addTearDown(tester.view.reset); + + final env = await _createEnv(tester); + final channel = env.connector.channels.firstWhere( + (c) => c.name == 'Hiking Group', + ); + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage( + BookmarkedMessage( + sourceType: BookmarkSourceType.channel, + sourceId: channel.storageId ?? 'slot:${channel.index}', + sourceName: channel.name, + messageId: 'scale-msg-1', + senderName: 'Ranger Pat', + text: + 'Checking layout on 320dp screen with large text scale enabled.', + timestamp: DateTime(2026, 1, 1, 12), + receivedAt: DateTime(2026, 1, 1, 12), + isOutgoing: false, + ), + isBookmarked: true, + ), + ); + + final overflows = []; + final previous = FlutterError.onError; + FlutterError.onError = (details) { + final text = details.exceptionAsString(); + if (!text.contains('overflowed')) { + previous?.call(details); + return; + } + overflows.add(text.split('\n').first); + }; + addTearDown(() => FlutterError.onError = previous); + + await tester.pumpWidget( + env.wrap( + BookmarksScreen( + initialSourceType: BookmarkSourceType.channel, + initialSourceId: channel.storageId ?? 'slot:${channel.index}', + sourceIdAliases: [?channel.storageId, 'slot:${channel.index}'], + initialSourceName: '#${channel.name}', + ), + textScale: scale, + ), + ); + await _pumpFrames(tester); + + // Enter bulk selection mode and open remove confirmation dialog at scale + await tester.longPress( + find.textContaining('Checking layout on 320dp screen'), + ); + await _pumpFrames(tester); + await tester.tap(find.byIcon(Icons.delete_outline)); + await _pumpFrames(tester); + await tester.tap(find.text(_l10n.common_cancel)); + await _pumpFrames(tester); + + await tester.pumpWidget(const SizedBox()); + await tester.pump(const Duration(minutes: 1)); + FlutterError.onError = previous; + + expect(overflows, isEmpty, reason: overflows.join('\n')); + }); + } + }); +} diff --git a/test/screens/main_overflow_menus_test.dart b/test/screens/main_overflow_menus_test.dart index 51a2e7d5..3f9ff767 100644 --- a/test/screens/main_overflow_menus_test.dart +++ b/test/screens/main_overflow_menus_test.dart @@ -373,6 +373,7 @@ void main() { expect(_openMenuEntries(tester), [ _l10n.addContact_title, _l10n.discoveredContacts_Title, + _l10n.bookmarks_title, '---', _l10n.contacts_zeroHopAdvert, _l10n.contacts_floodAdvert, @@ -387,6 +388,7 @@ void main() { _menuItemByLabel(_l10n.discoveredContacts_Title).enabled, isTrue, ); + expect(_menuItemByLabel(_l10n.bookmarks_title).enabled, isTrue); expect( _menuItemByLabel(_l10n.contacts_zeroHopAdvert).enabled, connected, From 098637af54212d4f9d662db092876ef257c562f1 Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 18:47:23 -0700 Subject: [PATCH 07/17] Wait for bookmark list attach on search jump and update user guides --- documentation/channels.md | 4 +- documentation/chat-and-messaging.md | 4 +- documentation/contacts.md | 1 + lib/screens/bookmarks_screen.dart | 15 +++- test/screens/bookmarks_screen_test.dart | 91 ++++++++++++++----------- 5 files changed, 70 insertions(+), 45 deletions(-) diff --git a/documentation/channels.md b/documentation/channels.md index 6f324f7d..3b3eef57 100644 --- a/documentation/channels.md +++ b/documentation/channels.md @@ -79,7 +79,7 @@ Tap a channel card to open the channel chat screen. - Tap the title or landscape icon to select a region; see [Regions](regions.md) - Overflow menu (⋮) → **Notifications**: choose all messages, mentions only or muted for this channel. The row shows the current mode - Overflow menu (⋮) → **Edit channel** and **Delete channel**: the same sheet and confirmation as a long-press in the channel list -- Overflow menu (⋮) → **Show bookmarks** toggles the channel's bookmarked-message filter; the bookmark icon is filled while active and outlined while inactive. +- Overflow menu (⋮) → **Bookmarks**: opens the **Bookmarks** screen scoped to this channel, with a split pill at the top to switch between **All** and `#channel` (plus in-screen search, copy, and single or bulk removal with confirmation). - Overflow menu (⋮) → **Chat background**: a color or picture, with a fade slider, behind this channel only. See [Chat backgrounds](themes.md#chat-backgrounds). Holiday greetings in new messages play a short animation, as in [direct chat](chat-and-messaging.md#message-list) ### Compression Strip @@ -92,7 +92,7 @@ Below the app bar, above the messages, the same strip as in [direct chats](chat- - **Incoming messages**: Colored avatar with sender's initial (or first emoji if name starts with one; color is deterministic from sender name hash), sender name in primary color, message bubble - **Outgoing messages**: Primary container color bubble with a small status icon: pending (clock), sent (checkmark), or failed (red error circle) - Automatic older-message loading on scroll-to-top -- Long-press a message and choose **Bookmark** to mark it with a yellow icon. Bookmarks are stored separately from channel history and remain available after a channel is deleted. +- Long-press a message and choose **Bookmark** (or choose **Select messages** and tap the bookmark button in the selection bar to bookmark several messages at once) to mark it with a yellow icon; removing a bookmark prompts for confirmation. Bookmarks are stored separately from channel history and remain available after a channel is deleted. - Jump-to-bottom button when scrolled up - **Pinch-to-zoom**: Two-finger zoom (0.8x–1.8x) and double-tap to reset text size - **Message tracing mode** (when enabled in App Settings): Each bubble additionally shows path prefix bytes (`via XX,YY,...`), a timestamp, and a repeat count icon diff --git a/documentation/chat-and-messaging.md b/documentation/chat-and-messaging.md index 40826682..4bca0684 100644 --- a/documentation/chat-and-messaging.md +++ b/documentation/chat-and-messaging.md @@ -20,7 +20,7 @@ From the Contacts screen, tap any Chat-type contact to open the ChatScreen. - **Subtitle**: Current routing path label (e.g., "2 hops", "flood (auto)", "direct (forced)") and unread count. Tapping the subtitle shows the full path details. - **Action buttons**: - **Search** (magnifier icon): Replaces the title with a search field and lists every message in this conversation's full history whose text (or translation) contains the typed word, newest first, with matches highlighted. Channel search also matches sender names and skips messages caught by the [message filter](message-filter.md). Back, Esc or the arrow closes search. Channel chats have the same button. - - **Overflow menu** (⋮ icon): Contains Routing, Info, Telemetry, Settings (link images and telemetry permissions), Chat background, Clear Chat, and Remove from contacts (rooms also have Room Server Management). Routing opens the routing sheet where you can switch between Auto, Direct, and Flood routing and manage recent paths (hop count, round-trip time, age, success count, color-coded by repeater). Info shows a dialog with contact type, path, GPS coordinates, and public key. Chat background sets a color or picture (with a fade slider) behind this chat only; see [Chat backgrounds](themes.md#chat-backgrounds). + - **Overflow menu** (⋮ icon): Contains Routing, Info, Bookmarks, Telemetry, Settings (link images and telemetry permissions), Chat background, Clear Chat, and Remove from contacts (rooms also have Room Server Management). Routing opens the routing sheet where you can switch between Auto, Direct, and Flood routing and manage recent paths (hop count, round-trip time, age, success count, color-coded by repeater). Info shows a dialog with contact type, path, GPS coordinates, and public key. Chat background sets a color or picture (with a fade slider) behind this chat only; see [Chat backgrounds](themes.md#chat-backgrounds). ### Compression Strip @@ -33,7 +33,7 @@ Below the app bar, above the messages, a strip shows **Compression: Off**, **SMA - **Holiday animations**: A new message with a holiday greeting ("Happy Halloween", "Merry Christmas", and so on, in any app language) plays a short animation. Turn off in App Settings → Appearance; see [Holiday message animations](themes.md#holiday-message-animations) - **Outgoing messages**: Right-aligned, primary color background. **Failed messages** change to a red-toned error container background - **Incoming messages**: Left-aligned, grey background with a colored avatar (initial letter or first emoji of sender name; color is deterministic from a hash of the sender name) -- Long-press a message and choose **Bookmark** to show a yellow bookmark on the bubble. **Show bookmarks** in the chat menu toggles a filter for bookmarked messages; use **Bookmarks** in the Channels screen menu to browse saved messages, including those from deleted contacts or channels. From the bookmarks list, copy a message with its copy button. It is ordered oldest-to-newest and opens at the newest message. The Export screen can save or share a dated Markdown file, grouped by contact and then channel, with linked URLs and URL-image embeds. Links remain tappable, and supported URL-image previews are shown when **Load images from links** is enabled in App Settings. +- Long-press a message and choose **Bookmark** to show a yellow bookmark on the bubble (choosing **Remove bookmark** prompts for confirmation before removing it). **Bookmarks** in the chat menu opens the **Bookmarks** screen scoped to this conversation, with a split pill at the top to switch between **All** and the current contact; use **Bookmarks** in the Contacts or Channels screen menu to browse all saved messages across conversations, including those from deleted contacts or channels. The **Bookmarks** screen includes search (matching message text, translations, sender names, and conversation names, and scrolling to the highlighted card when a result is tapped), a copy button and remove button on each card, long-press multi-selection for bulk removal, and a confirmation dialog before removing single or selected bookmarks. It is ordered oldest-to-newest and opens at the newest message. The Export screen can save or share a dated Markdown file, grouped by contact and then channel, with linked URLs and URL-image embeds. Links remain tappable, and supported URL-image previews are shown when **Load images from links** is enabled in App Settings. - Bubble width capped at 72% of screen width - Hyperlinks rendered as tappable underlined text; inline decimal GPS coordinates are rendered as bold underlined links (see [Inline GPS Coordinates](#inline-gps-coordinates)) - Message text follows the system font size (Android/iOS accessibility text size); pinch-to-zoom scales on top of it diff --git a/documentation/contacts.md b/documentation/contacts.md index 5a310a7d..c203f173 100644 --- a/documentation/contacts.md +++ b/documentation/contacts.md @@ -93,6 +93,7 @@ The Contacts screen has a single **three-dot overflow menu** (`⋮`) in the app - Add Contact — opens the Add Contact page - Discovered Contacts — opens the DiscoveryScreen +- Bookmarks — opens the Bookmarks screen showing all saved messages - *(divider)* - Zero-Hop Advert — broadcasts your advertisement to immediately adjacent nodes - Flood Advert — broadcasts across the full mesh network diff --git a/lib/screens/bookmarks_screen.dart b/lib/screens/bookmarks_screen.dart index 5d6603b4..a4f282e6 100644 --- a/lib/screens/bookmarks_screen.dart +++ b/lib/screens/bookmarks_screen.dart @@ -41,6 +41,7 @@ class BookmarksScreen extends StatefulWidget { class _BookmarksScreenState extends State { late Future> _bookmarks; List _loadedBookmarks = const []; + bool _hasLoadedBookmarks = false; late bool _filterToInitialSource; final ScrollController _scrollController = ScrollController(); @@ -77,6 +78,7 @@ class _BookmarksScreenState extends State { .loadBookmarkedMessages(); if (mounted) { _loadedBookmarks = loaded; + _hasLoadedBookmarks = true; } return loaded; } @@ -161,6 +163,7 @@ class _BookmarksScreenState extends State { final all = await connector.loadBookmarkedMessages(); if (mounted) { _loadedBookmarks = all; + _hasLoadedBookmarks = true; } final visible = _filteredBookmarks(all, connector); return [ @@ -179,7 +182,12 @@ class _BookmarksScreenState extends State { Future _jumpToSearchResult(String storageId) async { FocusScope.of(context).unfocus(); _closeSearch(); + await _bookmarks; + if (!mounted) return; await WidgetsBinding.instance.endOfFrame; + for (var i = 0; i < 5 && mounted && !_scrollController.hasClients; i++) { + await WidgetsBinding.instance.endOfFrame; + } if (!mounted) return; final connector = context.read(); final visible = _filteredBookmarks(_loadedBookmarks, connector); @@ -406,8 +414,12 @@ class _BookmarksScreenState extends State { ) : FutureBuilder>( future: _bookmarks, + initialData: _hasLoadedBookmarks + ? _loadedBookmarks + : null, builder: (context, snapshot) { - if (snapshot.connectionState != ConnectionState.done) { + if (!snapshot.hasData && + snapshot.connectionState != ConnectionState.done) { return const Center( child: CircularProgressIndicator(), ); @@ -416,6 +428,7 @@ class _BookmarksScreenState extends State { final allBookmarks = snapshot.data ?? const []; _loadedBookmarks = allBookmarks; + _hasLoadedBookmarks = true; final bookmarks = _filteredBookmarks( allBookmarks, connector, diff --git a/test/screens/bookmarks_screen_test.dart b/test/screens/bookmarks_screen_test.dart index b8d75ac5..b5483907 100644 --- a/test/screens/bookmarks_screen_test.dart +++ b/test/screens/bookmarks_screen_test.dart @@ -341,44 +341,44 @@ void main() { ); testWidgets( - 'Search in BookmarksScreen finds matching bookmarks and jumping highlights target card', + 'Search in BookmarksScreen finds matching bookmarks and jumping scrolls to and highlights offscreen target card', (tester) async { final env = await _createEnv(tester); - final b1 = BookmarkedMessage( - sourceType: BookmarkSourceType.channel, - sourceId: 'slot:0', - sourceName: 'Public', - messageId: 'm1', - senderName: 'Sam', - text: 'Alpha repeater check on ridge', - timestamp: DateTime(2026, 1, 1, 9), - receivedAt: DateTime(2026, 1, 1, 9), - isOutgoing: false, - ); - final b2 = BookmarkedMessage( - sourceType: BookmarkSourceType.contact, - sourceId: 'contact-1', - sourceName: 'Maya', - messageId: 'm2', - senderName: 'Maya', - text: 'Bravo solar battery voltage update', - timestamp: DateTime(2026, 1, 1, 10), - receivedAt: DateTime(2026, 1, 1, 10), - isOutgoing: false, - ); - - await _pumpFuture( - tester, - env.connector.setBookmarkedMessage(b1, isBookmarked: true), - ); - await _pumpFuture( - tester, - env.connector.setBookmarkedMessage(b2, isBookmarked: true), - ); + for (var i = 1; i <= 25; i++) { + final bookmark = BookmarkedMessage( + sourceType: i.isEven + ? BookmarkSourceType.contact + : BookmarkSourceType.channel, + sourceId: i.isEven ? 'contact-1' : 'slot:0', + sourceName: i.isEven ? 'Maya' : 'Public', + messageId: 'm$i', + senderName: i.isEven ? 'Maya' : 'Sam', + text: i == 1 + ? 'Oldest offscreen solar telemetry beacon check #1' + : 'Recent repeater status update #$i', + timestamp: DateTime(2026, 1, 1, 9).add(Duration(minutes: i)), + receivedAt: DateTime(2026, 1, 1, 9).add(Duration(minutes: i)), + isOutgoing: false, + ); + await _pumpFuture( + tester, + env.connector.setBookmarkedMessage(bookmark, isBookmarked: true), + ); + } await tester.pumpWidget(env.wrap(const BookmarksScreen())); await _pumpFrames(tester); + // Reversed ListView opens at the newest bookmarks (offset 0), so the oldest (#1) is offscreen. + final scrollableState = tester.state( + find.byType(Scrollable), + ); + expect(scrollableState.position.pixels, 0); + expect( + find.text('Oldest offscreen solar telemetry beacon check #1'), + findsNothing, + ); + await tester.tap(find.byIcon(Icons.search)); await _pumpFrames(tester); @@ -387,19 +387,30 @@ void main() { await _pumpFrames(tester); expect( - find.textContaining('Bravo solar battery voltage update'), + find.textContaining('Oldest offscreen solar telemetry beacon check #1'), findsOneWidget, ); - expect(find.textContaining('Alpha repeater check'), findsNothing); - - // Tap the search result to close search and highlight the card. - await tester.tap( - find.textContaining('Bravo solar battery voltage update'), + expect( + find.textContaining('Recent repeater status update #25'), + findsNothing, ); - await _pumpFrames(tester); - // Search field closed and AnimatedContainer highlight is active. + // Tap the search result to close search, scroll the restored list to the offscreen bookmark, and highlight it. + await tester.tap( + find.textContaining('Oldest offscreen solar telemetry beacon check #1'), + ); + await _pumpFrames(tester, 12); + + // Search field closed, list scrolled to the offscreen card, and AnimatedContainer highlight is active. expect(find.byType(TextField), findsNothing); + final restoredScrollable = tester.state( + find.byType(Scrollable), + ); + expect(restoredScrollable.position.pixels, greaterThan(0)); + expect( + find.text('Oldest offscreen solar telemetry beacon check #1'), + findsOneWidget, + ); expect(find.byType(AnimatedContainer), findsOneWidget); // Highlight clears after 2 seconds. From f3cdedf7b091bec1590a9e31f598041e3215fa33 Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:00:40 -0700 Subject: [PATCH 08/17] Move chat compression to the menu with its own page The Compression control leaves the top of DM and channel chats. The overflow menu now shows Compression: Off|SMAZ|Cyr2Lat and opens a page with the three options, short notes and the Cyr2Lat profile picker. Adds SMAZ codec tests. --- documentation/additional-features.md | 4 +- documentation/channels.md | 4 +- documentation/chat-and-messaging.md | 4 +- documentation/design.md | 4 +- lib/l10n/app_en.arb | 9 +- lib/l10n/app_localizations.dart | 14 +- lib/l10n/app_localizations_bg.dart | 3 - lib/l10n/app_localizations_cs.dart | 3 - lib/l10n/app_localizations_de.dart | 3 - lib/l10n/app_localizations_en.dart | 9 +- lib/l10n/app_localizations_es.dart | 3 - lib/l10n/app_localizations_fr.dart | 4 - lib/l10n/app_localizations_hu.dart | 4 - lib/l10n/app_localizations_it.dart | 4 - lib/l10n/app_localizations_ja.dart | 3 - lib/l10n/app_localizations_ko.dart | 3 - lib/l10n/app_localizations_nl.dart | 3 - lib/l10n/app_localizations_pl.dart | 3 - lib/l10n/app_localizations_pt.dart | 8 - lib/l10n/app_localizations_ru.dart | 3 - lib/l10n/app_localizations_sk.dart | 3 - lib/l10n/app_localizations_sl.dart | 3 - lib/l10n/app_localizations_sv.dart | 4 - lib/l10n/app_localizations_uk.dart | 3 - lib/l10n/app_localizations_zh.dart | 3 - lib/screens/channel_chat_screen.dart | 58 ++- lib/screens/chat_compression_screen.dart | 236 ++++++++++++ lib/screens/chat_screen.dart | 47 ++- lib/widgets/chat_compression_selector.dart | 364 ------------------ test/helpers/smaz_test.dart | 172 +++++++++ .../screens/chat_compression_screen_test.dart | 265 +++++++++++++ test/screens/offline_mode_test.dart | 57 +-- .../chat_compression_selector_test.dart | 334 ---------------- 33 files changed, 798 insertions(+), 846 deletions(-) create mode 100644 lib/screens/chat_compression_screen.dart delete mode 100644 lib/widgets/chat_compression_selector.dart create mode 100644 test/helpers/smaz_test.dart create mode 100644 test/screens/chat_compression_screen_test.dart delete mode 100644 test/widgets/chat_compression_selector_test.dart diff --git a/documentation/additional-features.md b/documentation/additional-features.md index e01949b6..ae43163c 100644 --- a/documentation/additional-features.md +++ b/documentation/additional-features.md @@ -61,9 +61,9 @@ A list of nodes heard passively over the air but not yet added as contacts. Each ## Compression (SMAZ and Cyr2Lat) ### Where to Find It -Every open direct-message and channel chat shows **Compression: Off**, **Compression: SMAZ** or **Compression: Cyr2Lat** in a strip just below the app bar, above the messages. Tap it to open one sheet with the three choices and what each does. The choice applies to that contact or channel only and is saved on the phone, so it can be changed while the radio is offline. A channel that has not synced from the radio yet has no saved identity, so the strip is disabled and says why. +The top-right menu of every direct-message and channel chat has a **Compression: Off**, **Compression: SMAZ** or **Compression: Cyr2Lat** item. Tap it to open a Compression page with the three choices and a short note on each. The choice applies to that contact or channel only and is saved on the phone, so it can be changed while the radio is offline. A channel that has not synced from the radio yet has no saved identity, so the choices are disabled and the page says why. -Only one mode is active per chat. Choosing SMAZ turns Cyr2Lat off and the other way round. Off and SMAZ close the sheet once saved; Cyr2Lat keeps it open to show its profile picker. If saving fails, the sheet says so and keeps showing the saved choice. +Only one mode is active per chat. Choosing SMAZ turns Cyr2Lat off and the other way round. Cyr2Lat shows its profile picker on the same page. If saving fails, the page says so and keeps showing the saved choice. ### Off Sends your text exactly as typed. Every app can read it. diff --git a/documentation/channels.md b/documentation/channels.md index 6f324f7d..be8537f5 100644 --- a/documentation/channels.md +++ b/documentation/channels.md @@ -82,9 +82,9 @@ Tap a channel card to open the channel chat screen. - Overflow menu (⋮) → **Show bookmarks** toggles the channel's bookmarked-message filter; the bookmark icon is filled while active and outlined while inactive. - Overflow menu (⋮) → **Chat background**: a color or picture, with a fade slider, behind this channel only. See [Chat backgrounds](themes.md#chat-backgrounds). Holiday greetings in new messages play a short animation, as in [direct chat](chat-and-messaging.md#message-list) -### Compression Strip +### Compression -Below the app bar, above the messages, the same strip as in [direct chats](chat-and-messaging.md#compression-strip) shows and changes this channel's compression: Off, SMAZ or Cyr2Lat. It is stored with the channel's key, so every slot holding that channel shares it, and it can be changed offline. Until the channel has synced from the radio the strip is disabled and says why. See [Compression](additional-features.md#compression-smaz-and-cyr2lat). +The top-right menu has the same Compression item as [direct chats](chat-and-messaging.md#compression); it shows and changes this channel's compression: Off, SMAZ or Cyr2Lat. It is stored with the channel's key, so every slot holding that channel shares it, and it can be changed offline. Until the channel has synced from the radio the choices are disabled and the page says why. See [Compression](additional-features.md#compression-smaz-and-cyr2lat). ### Message Display diff --git a/documentation/chat-and-messaging.md b/documentation/chat-and-messaging.md index 40826682..21914cdc 100644 --- a/documentation/chat-and-messaging.md +++ b/documentation/chat-and-messaging.md @@ -22,9 +22,9 @@ From the Contacts screen, tap any Chat-type contact to open the ChatScreen. - **Search** (magnifier icon): Replaces the title with a search field and lists every message in this conversation's full history whose text (or translation) contains the typed word, newest first, with matches highlighted. Channel search also matches sender names and skips messages caught by the [message filter](message-filter.md). Back, Esc or the arrow closes search. Channel chats have the same button. - **Overflow menu** (⋮ icon): Contains Routing, Info, Telemetry, Settings (link images and telemetry permissions), Chat background, Clear Chat, and Remove from contacts (rooms also have Room Server Management). Routing opens the routing sheet where you can switch between Auto, Direct, and Flood routing and manage recent paths (hop count, round-trip time, age, success count, color-coded by repeater). Info shows a dialog with contact type, path, GPS coordinates, and public key. Chat background sets a color or picture (with a fade slider) behind this chat only; see [Chat backgrounds](themes.md#chat-backgrounds). -### Compression Strip +### Compression -Below the app bar, above the messages, a strip shows **Compression: Off**, **SMAZ** or **Cyr2Lat** for this contact. Tap it to choose a mode in one sheet that explains each: SMAZ is lossless but needs a SMAZ-aware app on the other end and is only used when it makes a message smaller; Cyr2Lat swaps some Cyrillic letters for lookalike Latin ones, stays readable everywhere, but changes the exact characters, using the chosen Cyr2Lat profile. The setting is saved on the phone and can be changed offline. Channel chats show the same strip. See [Compression](additional-features.md#compression-smaz-and-cyr2lat). +The top-right menu has a **Compression: Off**, **SMAZ** or **Cyr2Lat** item for this contact. Tap it to choose a mode on a Compression page that explains each: SMAZ is lossless but needs a SMAZ-aware app on the other end and is only used when it makes a message smaller; Cyr2Lat swaps some Cyrillic letters for lookalike Latin ones, stays readable everywhere, but changes the exact characters, using the chosen Cyr2Lat profile. The setting is saved on the phone and can be changed offline. Channel chats have the same menu item. See [Compression](additional-features.md#compression-smaz-and-cyr2lat). ### Message List diff --git a/documentation/design.md b/documentation/design.md index 6d1443dd..dab89622 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -130,8 +130,8 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act | Note at the top of a page or section | `MeshInfoCard(text)` | Info icon and `bodyMedium` text in a `MeshCard`; one or two short sentences (Add Contact, Privacy) | | Text field with a byte limit | `TextField` with `x / max` as `suffixIcon` (Node Name) | Count always visible. Input past the limit is allowed: the count turns `error`, `errorText` says how far over, and Save is disabled. Don't block input silently | | Choosing a point on a map | `LocationPickerScreen(initial:)` | Page with a fixed centre pin; returns the `LatLng` to the form | -| Radio-style choice in a sheet | `MeshSheetOption` | Used by the language picker, map time filter and compression sheet. Optional `subtitle` explains the option; `onTap: null` disables it. Selected rows show a filled radio icon **and** a bold title, with `selected` semantics | -| Per-chat setting at the top of a chat | Full-width strip under the app bar, above the transcript (`ChatCompressionSelector` in `widgets/chat_compression_selector.dart`) | `surfaceContainerLow` fill, `outlineVariant` bottom border, 48dp minimum height, `bodyLarge` w600 "Label: value ▾"; tap opens one `showMeshSheet` with `MeshSheetOption`s. Shows the saved value only; a spinner replaces ▾ while saving; a disabled strip shows why below the label. One shared widget for DM and channel chats; parents pass state and async callbacks | +| Radio-style choice in a sheet | `MeshSheetOption` | Used by the language picker, map time filter and compression page. Optional `subtitle` explains the option; `onTap: null` disables it. Selected rows show a filled radio icon **and** a bold title, with `selected` semantics | +| Per-chat setting | Overflow-menu item `[icon] Label: value` that opens a dedicated page (`ChatCompressionScreen` in `screens/chat_compression_screen.dart`) | Same `Label: value` pattern as the channel `Notifications: ...` item. Page: centred `AdaptiveAppBarTitle`, `SectionHeader` with a one-sentence description, a `MeshCard(padding: EdgeInsets.zero)` of `MeshSheetOption` rows split by `Divider(height: 1, indent: 16)`, short notes per option, a `MeshInfoCard` when the choice is locked, an error `MeshCard` when a save fails, and a spinner in the app bar while saving. Shows the saved value only. One shared page for DM and channel chats; parents pass state and async callbacks | | Choosing between images | Selectable thumbnail tiles in a centred `Wrap` | Image send versions (`_versionTile` in `image_send_preview_sheet.dart`). `InkWell` with `MeshRadii.sm`; selected tile gets a 3px `primary` border **and** a `primary` check badge (never colour alone); caption under the tile in `bodySmall`, w600 when selected; figures such as packet counts in `MeshTheme.mono` 12; wrap the tile in `Semantics(button: true, selected:, label:)` | | Editing a set of members | Current items first, then a searchable add list | Group editor (`contact_group_editor_dialog.dart`). Wrapping upper-case section label with the count ("Current members (N)"); each member row has a trailing `IconButton` remove (`error` colour, tooltip names the item); the add list excludes current members, and tapping the row or its `primary` add button adds it | | Popup menu row | **always** `PopupMenuItem(child: MeshMenuItemRow(icon:, label:))` | Relies on `MeshTheme.popupMenuTheme` (`surfaceContainerHigh`, `MeshRadii.md`); `MeshMenuItemRow` gives a 20px icon slot, 12px gap, and 2-line wrap + ellipsis (`leading:` for `ThemedIcon`, no icon keeps the 20px slot). Main views share `mainOverflowTrailingItems` (`widgets/connect_sheet.dart`) | diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 642d7f16..2c017afc 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -4466,7 +4466,7 @@ "chatCompression_title": "Compression", "chatCompression_label": "Compression: {mode}", "@chatCompression_label": { - "description": "Always-visible control at the top of a chat; mode is Off, SMAZ or Cyr2Lat", + "description": "Chat menu item that opens the compression page; mode is Off, SMAZ or Cyr2Lat", "placeholders": { "mode": { "type": "String" @@ -4476,11 +4476,10 @@ "chatCompression_off": "Off", "chatCompression_smaz": "SMAZ", "chatCompression_cyr2lat": "Cyr2Lat", - "chatCompression_changeHint": "Change compression for this chat", "chatCompression_sheetSubtitle": "Applies to messages you send in this chat. Saved on this phone.", - "chatCompression_offDescription": "No compression. Sends your text exactly as typed. Every app can read it. Saves no bytes.", - "chatCompression_smazDescription": "Lossless compression for short text. The recipient's app must support SMAZ; other apps show unreadable \"s:…\" text. Only used when it makes a message smaller, so not every message is compressed.", - "chatCompression_cyr2latDescription": "Not lossless. Swaps some Cyrillic letters for lookalike Latin ones (А→A, З→3) to save bytes. Readable in any app with no decoding, but the exact characters change, including your own sent messages here. Copying, search and technical text may be affected. Results depend on the chosen profile.", + "chatCompression_offDescription": "Sends your text as typed. Every app can read it.", + "chatCompression_smazDescription": "Shrinks English text. Used only when the message gets shorter. Apps without SMAZ show \"s:…\" instead of your text.", + "chatCompression_cyr2latDescription": "Swaps Cyrillic letters for similar Latin ones (А→A). Every app can read it, but the characters change. Not lossless.", "chatCompression_profile": "Cyr2Lat profile", "chatCompression_noStorageId": "Can't change compression until this channel has synced from the radio.", "chatCompression_saveFailed": "Couldn't save the compression setting. Showing the saved setting.", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index b5c8ad8e..311e0514 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -12946,7 +12946,7 @@ abstract class AppLocalizations { /// **'Compression'** String get chatCompression_title; - /// Always-visible control at the top of a chat; mode is Off, SMAZ or Cyr2Lat + /// Chat menu item that opens the compression page; mode is Off, SMAZ or Cyr2Lat /// /// In en, this message translates to: /// **'Compression: {mode}'** @@ -12970,12 +12970,6 @@ abstract class AppLocalizations { /// **'Cyr2Lat'** String get chatCompression_cyr2lat; - /// No description provided for @chatCompression_changeHint. - /// - /// In en, this message translates to: - /// **'Change compression for this chat'** - String get chatCompression_changeHint; - /// No description provided for @chatCompression_sheetSubtitle. /// /// In en, this message translates to: @@ -12985,19 +12979,19 @@ abstract class AppLocalizations { /// No description provided for @chatCompression_offDescription. /// /// In en, this message translates to: - /// **'No compression. Sends your text exactly as typed. Every app can read it. Saves no bytes.'** + /// **'Sends your text as typed. Every app can read it.'** String get chatCompression_offDescription; /// No description provided for @chatCompression_smazDescription. /// /// In en, this message translates to: - /// **'Lossless compression for short text. The recipient\'s app must support SMAZ; other apps show unreadable \"s:…\" text. Only used when it makes a message smaller, so not every message is compressed.'** + /// **'Shrinks English text. Used only when the message gets shorter. Apps without SMAZ show \"s:…\" instead of your text.'** String get chatCompression_smazDescription; /// No description provided for @chatCompression_cyr2latDescription. /// /// In en, this message translates to: - /// **'Not lossless. Swaps some Cyrillic letters for lookalike Latin ones (А→A, З→3) to save bytes. Readable in any app with no decoding, but the exact characters change, including your own sent messages here. Copying, search and technical text may be affected. Results depend on the chosen profile.'** + /// **'Swaps Cyrillic letters for similar Latin ones (А→A). Every app can read it, but the characters change. Not lossless.'** String get chatCompression_cyr2latDescription; /// No description provided for @chatCompression_profile. diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 3871cf1b..577d15f8 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -7790,9 +7790,6 @@ class AppLocalizationsBg extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Кир→Лат'; - @override - String get chatCompression_changeHint => 'Промяна на компресията за този чат'; - @override String get chatCompression_sheetSubtitle => 'Важи за съобщенията, които изпращате в този чат. Запазва се на този телефон.'; diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 14acd0b7..2c3512f1 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -7764,9 +7764,6 @@ class AppLocalizationsCs extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Změnit kompresi pro tento chat'; - @override String get chatCompression_sheetSubtitle => 'Platí pro zprávy odeslané v tomto chatu. Uloženo v tomto telefonu.'; diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 7769c0e0..2ee48790 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -7801,9 +7801,6 @@ class AppLocalizationsDe extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Kompression für diesen Chat ändern'; - @override String get chatCompression_sheetSubtitle => 'Gilt für Nachrichten, die Sie in diesem Chat senden. Auf diesem Telefon gespeichert.'; diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 3b50a918..0848b5c8 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -7675,24 +7675,21 @@ class AppLocalizationsEn extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Change compression for this chat'; - @override String get chatCompression_sheetSubtitle => 'Applies to messages you send in this chat. Saved on this phone.'; @override String get chatCompression_offDescription => - 'No compression. Sends your text exactly as typed. Every app can read it. Saves no bytes.'; + 'Sends your text as typed. Every app can read it.'; @override String get chatCompression_smazDescription => - 'Lossless compression for short text. The recipient\'s app must support SMAZ; other apps show unreadable \"s:…\" text. Only used when it makes a message smaller, so not every message is compressed.'; + 'Shrinks English text. Used only when the message gets shorter. Apps without SMAZ show \"s:…\" instead of your text.'; @override String get chatCompression_cyr2latDescription => - 'Not lossless. Swaps some Cyrillic letters for lookalike Latin ones (А→A, З→3) to save bytes. Readable in any app with no decoding, but the exact characters change, including your own sent messages here. Copying, search and technical text may be affected. Results depend on the chosen profile.'; + 'Swaps Cyrillic letters for similar Latin ones (А→A). Every app can read it, but the characters change. Not lossless.'; @override String get chatCompression_profile => 'Cyr2Lat profile'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 901e76e5..cbefc233 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -7782,9 +7782,6 @@ class AppLocalizationsEs extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Cambiar la compresión de este chat'; - @override String get chatCompression_sheetSubtitle => 'Se aplica a los mensajes que envíes en este chat. Se guarda en este teléfono.'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 2bfc5046..abf5ffa4 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -7805,10 +7805,6 @@ class AppLocalizationsFr extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => - 'Modifier la compression de cette discussion'; - @override String get chatCompression_sheetSubtitle => 'S\'applique aux messages que vous envoyez dans cette discussion. Enregistré sur ce téléphone.'; diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index 97888e91..2c17d887 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -7771,10 +7771,6 @@ class AppLocalizationsHu extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => - 'Tömörítés módosítása ebben a csevegésben'; - @override String get chatCompression_sheetSubtitle => 'Az ebben a csevegésben küldött üzenetekre vonatkozik. Ezen a telefonon van mentve.'; diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index e757cc1d..12894b13 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -7793,10 +7793,6 @@ class AppLocalizationsIt extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => - 'Cambia la compressione per questa chat'; - @override String get chatCompression_sheetSubtitle => 'Si applica ai messaggi che invii in questa chat. Salvato su questo telefono.'; diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index eec2a32e..bd351747 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -7435,9 +7435,6 @@ class AppLocalizationsJa extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'このチャットの圧縮設定を変更'; - @override String get chatCompression_sheetSubtitle => 'このチャットで送信するメッセージに適用されます。このスマートフォンに保存されます。'; diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index ebf3c99f..59fd46dc 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -7444,9 +7444,6 @@ class AppLocalizationsKo extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => '이 채팅의 압축 설정 변경'; - @override String get chatCompression_sheetSubtitle => '이 채팅에서 보내는 메시지에 적용됩니다. 이 휴대폰에 저장됩니다.'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 84d423dc..d0733de4 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -7746,9 +7746,6 @@ class AppLocalizationsNl extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Compressie voor deze chat wijzigen'; - @override String get chatCompression_sheetSubtitle => 'Geldt voor berichten die je in deze chat verstuurt. Opgeslagen op deze telefoon.'; diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 0c24139c..1bea98bc 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -7835,9 +7835,6 @@ class AppLocalizationsPl extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Zmień kompresję w tej rozmowie'; - @override String get chatCompression_sheetSubtitle => 'Dotyczy wiadomości wysyłanych w tej rozmowie. Zapisane na tym telefonie.'; diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index e0e1b7b0..fe1e258d 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -7770,10 +7770,6 @@ class AppLocalizationsPt extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => - 'Alterar a compressão desta conversa'; - @override String get chatCompression_sheetSubtitle => 'Vale para as mensagens que você envia nesta conversa. Salvo neste celular.'; @@ -16014,10 +16010,6 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => - 'Alterar a compressão desta conversa'; - @override String get chatCompression_sheetSubtitle => 'Aplica-se às mensagens que envia nesta conversa. Guardado neste telemóvel.'; diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index 0fe4cebb..938d5e83 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -7814,9 +7814,6 @@ class AppLocalizationsRu extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Кир→Лат'; - @override - String get chatCompression_changeHint => 'Изменить сжатие для этого чата'; - @override String get chatCompression_sheetSubtitle => 'Действует для сообщений, которые вы отправляете в этом чате. Сохраняется на этом телефоне.'; diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 94b88ee8..bbaea7f7 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -7773,9 +7773,6 @@ class AppLocalizationsSk extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Zmeniť kompresiu pre tento chat'; - @override String get chatCompression_sheetSubtitle => 'Platí pre správy, ktoré v tomto chate odošlete. Uložené v tomto telefóne.'; diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index 4a656e3e..42f50ce0 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -7773,9 +7773,6 @@ class AppLocalizationsSl extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => 'Spremeni stiskanje za ta klepet'; - @override String get chatCompression_sheetSubtitle => 'Velja za sporočila, ki jih pošljete v tem klepetu. Shranjeno v tem telefonu.'; diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index b5982c31..4a971868 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -7722,10 +7722,6 @@ class AppLocalizationsSv extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => - 'Ändra komprimering för den här chatten'; - @override String get chatCompression_sheetSubtitle => 'Gäller meddelanden du skickar i den här chatten. Sparas på den här telefonen.'; diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index 624c5c27..dc898bce 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -7828,9 +7828,6 @@ class AppLocalizationsUk extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Кир→Лат'; - @override - String get chatCompression_changeHint => 'Змінити стиснення для цього чату'; - @override String get chatCompression_sheetSubtitle => 'Діє для повідомлень, які ви надсилаєте в цьому чаті. Зберігається на цьому телефоні.'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index da104381..22921cd1 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -7281,9 +7281,6 @@ class AppLocalizationsZh extends AppLocalizations { @override String get chatCompression_cyr2lat => 'Cyr2Lat'; - @override - String get chatCompression_changeHint => '更改此聊天的压缩设置'; - @override String get chatCompression_sheetSubtitle => '适用于你在此聊天中发送的消息。保存在本机。'; diff --git a/lib/screens/channel_chat_screen.dart b/lib/screens/channel_chat_screen.dart index 8b5d26de..d5e3b17d 100644 --- a/lib/screens/channel_chat_screen.dart +++ b/lib/screens/channel_chat_screen.dart @@ -54,7 +54,6 @@ import '../widgets/empty_state.dart'; import '../widgets/filter_rule_dialog.dart'; import '../widgets/filtered_message_ghost.dart'; import '../widgets/chat_composer.dart'; -import '../widgets/chat_compression_selector.dart'; import '../widgets/chat_send_pipeline.dart'; import '../widgets/chat_zoom_wrapper.dart'; import '../widgets/message_bubble_frame.dart'; @@ -76,6 +75,7 @@ import '../widgets/share_contact_sheet.dart'; import '../widgets/shared_contact_card.dart'; import 'app_settings_screen.dart'; import 'channel_chat_transcript_grouping.dart'; +import 'chat_compression_screen.dart'; import 'channels_screen.dart' show confirmDeleteChannel, showEditChannelSheet; import 'channel_message_path_screen.dart'; import 'map_screen.dart'; @@ -599,6 +599,8 @@ class _ChannelChatScreenState extends State _toggleChannelFiltering(); case 'notifications': showChannelNotificationModeSheet(context, muteKey); + case 'compression': + _openCompressionScreen(); case 'region': openRegionSelectDialog(widget.channel); case 'editChannel': @@ -656,6 +658,20 @@ class _ChannelChatScreenState extends State ), ), ), + PopupMenuItem( + value: 'compression', + child: _menuRow( + Icons.compress, + context.l10n.chatCompression_label( + chatCompressionModeLabel( + context, + context.read().channelCompressionMode( + widget.channel.index, + ), + ), + ), + ), + ), PopupMenuItem( value: 'region', child: _menuRow( @@ -880,7 +896,6 @@ class _ChannelChatScreenState extends State bottom: false, child: Column( children: [ - _buildCompressionSelector(), Expanded( child: ChatBackdrop( contentKey: _messageAreaKey, @@ -2804,26 +2819,35 @@ class _ChannelChatScreenState extends State /// Compression is stored on this phone under the channel's storage ID, so /// it can change while the radio is offline, but not before the slot has /// one. - Widget _buildCompressionSelector() { + void _openCompressionScreen() { final slot = widget.channel.index; - return Consumer2( - builder: (context, connector, settingsService, _) { - final hasStorageId = connector.channelIdForSlot(slot) != null; - return ChatCompressionSelector( - mode: connector.channelCompressionMode(slot), - enabled: hasStorageId, - disabledReason: hasStorageId - ? null - : context.l10n.chatCompression_noStorageId, - profiles: settingsService.settings.cyr2latProfiles, - profileId: connector.getChannelCyr2LatProfileId(slot), - defaultProfileId: settingsService.settings.selectedCyr2latProfileId, + final connector = context.read(); + final settingsService = context.read(); + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => ChatCompressionScreen( + listenable: Listenable.merge([connector, settingsService]), + read: () { + final hasStorageId = connector.channelIdForSlot(slot) != null; + return ChatCompressionState( + mode: connector.channelCompressionMode(slot), + enabled: hasStorageId, + disabledReason: hasStorageId + ? null + : context.l10n.chatCompression_noStorageId, + profiles: settingsService.settings.cyr2latProfiles, + profileId: connector.getChannelCyr2LatProfileId(slot), + defaultProfileId: + settingsService.settings.selectedCyr2latProfileId, + ); + }, onModeChanged: (mode) => connector.setChannelCompressionMode(slot, mode), onProfileChanged: (id) => connector.setChannelCyr2LatProfileId(slot, id), - ); - }, + ), + ), ); } diff --git a/lib/screens/chat_compression_screen.dart b/lib/screens/chat_compression_screen.dart new file mode 100644 index 00000000..d8d065d9 --- /dev/null +++ b/lib/screens/chat_compression_screen.dart @@ -0,0 +1,236 @@ +import 'package:flutter/material.dart'; + +import '../l10n/l10n.dart'; +import '../models/app_settings.dart'; +import '../models/chat_compression_mode.dart'; +import '../widgets/adaptive_app_bar_title.dart'; +import '../widgets/mesh_nav_tile.dart'; +import '../widgets/mesh_ui.dart'; + +export '../models/chat_compression_mode.dart'; + +String chatCompressionModeLabel(BuildContext context, ChatCompressionMode m) { + final l10n = context.l10n; + return switch (m) { + ChatCompressionMode.off => l10n.chatCompression_off, + ChatCompressionMode.smaz => l10n.chatCompression_smaz, + ChatCompressionMode.cyr2lat => l10n.chatCompression_cyr2lat, + }; +} + +/// What the page shows for one chat, read fresh each time [listenable] fires. +class ChatCompressionState { + final ChatCompressionMode mode; + + /// False locks the choices; [disabledReason] says why. + final bool enabled; + final String? disabledReason; + + final List profiles; + + /// The Cyr2Lat profile saved for this chat, if any. + final String? profileId; + + /// The app-wide profile, which sending uses when [profileId] is unset or + /// no longer exists. + final String? defaultProfileId; + + const ChatCompressionState({ + required this.mode, + required this.enabled, + this.disabledReason, + required this.profiles, + required this.profileId, + this.defaultProfileId, + }); + + /// The profile sending actually uses, matching the connector's fallback. + String? get effectiveProfileId { + bool known(String? id) => profiles.any((p) => p.id == id); + if (known(profileId)) return profileId; + if (known(defaultProfileId)) return defaultProfileId; + return profiles.isEmpty ? null : profiles.first.id; + } +} + +/// The page behind the chat menu's "Compression: ..." item. Shows the three +/// choices with a short note each, plus the Cyr2Lat profile picker. +/// +/// The caller supplies the saved state through [read] (re-read whenever +/// [listenable] notifies) and persists changes through the callbacks. A new +/// choice shows only once the saved state changes; a callback that throws +/// leaves the saved choice in place and shows an error. +class ChatCompressionScreen extends StatefulWidget { + final Listenable listenable; + final ChatCompressionState Function() read; + final Future Function(ChatCompressionMode mode) onModeChanged; + final Future Function(String profileId) onProfileChanged; + + const ChatCompressionScreen({ + super.key, + required this.listenable, + required this.read, + required this.onModeChanged, + required this.onProfileChanged, + }); + + @override + State createState() => _ChatCompressionScreenState(); +} + +class _ChatCompressionScreenState extends State { + bool _busy = false; + bool _failed = false; + + /// Counts failed saves, so the profile picker drops an unsaved choice. + int _failures = 0; + + /// Runs one save; a failure keeps the saved state and shows an error. + Future _save(Future Function() write) async { + if (_busy || !widget.read().enabled) return; + setState(() { + _busy = true; + _failed = false; + }); + var ok = false; + try { + await write(); + ok = true; + } catch (e) { + debugPrint('[ChatCompressionScreen] save failed: $e'); + } + if (!mounted) return; + setState(() { + _busy = false; + _failed = !ok; + if (!ok) _failures++; + }); + } + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + return Scaffold( + appBar: AppBar( + title: AdaptiveAppBarTitle(l10n.chatCompression_title), + centerTitle: true, + actions: [ + if (_busy) + const Padding( + padding: EdgeInsets.all(14), + child: SizedBox( + width: 20, + height: 20, + child: CircularProgressIndicator(strokeWidth: 2), + ), + ), + ], + ), + body: SafeArea( + top: false, + child: ListenableBuilder( + listenable: widget.listenable, + builder: (context, _) => _buildBody(context, widget.read()), + ), + ), + ); + } + + Widget _buildBody(BuildContext context, ChatCompressionState view) { + final l10n = context.l10n; + final scheme = Theme.of(context).colorScheme; + final canChange = view.enabled && !_busy; + + Widget option(ChatCompressionMode mode, String description) { + return MeshSheetOption( + label: chatCompressionModeLabel(context, mode), + subtitle: description, + selected: view.mode == mode, + onTap: canChange ? () => _save(() => widget.onModeChanged(mode)) : null, + ); + } + + final profileValue = view.effectiveProfileId; + + return ListView( + padding: const EdgeInsets.only(bottom: 24), + children: [ + if (_failed) + MeshCard( + color: scheme.errorContainer, + borderColor: scheme.errorContainer, + child: Row( + children: [ + Icon(Icons.error_outline, color: scheme.onErrorContainer), + const SizedBox(width: 12), + Expanded( + child: Text( + l10n.chatCompression_saveFailed, + style: Theme.of(context).textTheme.bodyMedium?.copyWith( + color: scheme.onErrorContainer, + ), + ), + ), + ], + ), + ), + if (!view.enabled && view.disabledReason != null) + MeshInfoCard(view.disabledReason!), + SectionHeader( + l10n.chatCompression_title, + description: l10n.chatCompression_sheetSubtitle, + ), + MeshCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + option( + ChatCompressionMode.off, + l10n.chatCompression_offDescription, + ), + const Divider(height: 1, indent: 16), + option( + ChatCompressionMode.smaz, + l10n.chatCompression_smazDescription, + ), + const Divider(height: 1, indent: 16), + option( + ChatCompressionMode.cyr2lat, + l10n.chatCompression_cyr2latDescription, + ), + ], + ), + ), + if (view.mode == ChatCompressionMode.cyr2lat && + view.profiles.isNotEmpty) ...[ + SectionHeader(l10n.chatCompression_profile), + MeshCard( + child: DropdownButtonFormField( + // The field keeps a picked value internally, so rebuild it + // with the saved value after a change or a failure. + key: ValueKey('$profileValue#$_failures'), + isExpanded: true, + initialValue: profileValue, + decoration: InputDecoration( + labelText: l10n.chatCompression_profile, + ), + items: [ + for (final profile in view.profiles) + DropdownMenuItem( + value: profile.id, + child: Text(profile.name, overflow: TextOverflow.ellipsis), + ), + ], + onChanged: canChange + ? (id) { + if (id == null || id == profileValue) return; + _save(() => widget.onProfileChanged(id)); + } + : null, + ), + ), + ], + ], + ); + } +} diff --git a/lib/screens/chat_screen.dart b/lib/screens/chat_screen.dart index e8d3eba2..4e249882 100644 --- a/lib/screens/chat_screen.dart +++ b/lib/screens/chat_screen.dart @@ -38,13 +38,13 @@ import '../services/chat_text_scale_service.dart'; import '../services/path_history_service.dart'; import '../services/translation_service.dart'; import '../widgets/chat_composer.dart'; -import '../widgets/chat_compression_selector.dart'; import '../widgets/chat_send_pipeline.dart'; import '../widgets/chat_zoom_wrapper.dart'; import '../widgets/message_bubble_frame.dart'; import '../widgets/reaction_chips.dart'; import '../widgets/chat_day_separator.dart'; import 'channel_message_path_screen.dart'; +import 'chat_compression_screen.dart'; import 'contacts_screen.dart' show confirmRemoveContact; import 'map_screen.dart'; import 'repeater_hub_screen.dart'; @@ -510,6 +510,8 @@ class _ChatScreenState extends State with WidgetsBindingObserver { ContactRoutingSheet.show(context, contact: contact); case 'info': _showContactInfo(context); + case 'compression': + _openCompressionScreen(); case 'settings': _showContactSettings(context); case 'showBookmarks': @@ -576,6 +578,20 @@ class _ChatScreenState extends State with WidgetsBindingObserver { label: context.l10n.room_management, ), ), + PopupMenuItem( + value: 'compression', + child: MeshMenuItemRow( + icon: Icons.compress, + label: context.l10n.chatCompression_label( + chatCompressionModeLabel( + context, + connector.contactCompressionMode( + widget.contact.publicKeyHex, + ), + ), + ), + ), + ), PopupMenuItem( value: 'settings', child: MeshMenuItemRow( @@ -648,7 +664,6 @@ class _ChatScreenState extends State with WidgetsBindingObserver { ); return Column( children: [ - _buildCompressionSelector(connector), Expanded( child: ChatBackdrop( contentKey: _messageAreaKey, @@ -677,22 +692,28 @@ class _ChatScreenState extends State with WidgetsBindingObserver { /// Compression is stored on this phone per contact, so it can change /// while the radio is offline. - Widget _buildCompressionSelector(MeshCoreConnector connector) { + void _openCompressionScreen() { final keyHex = widget.contact.publicKeyHex; - return Consumer( - builder: (context, settingsService, _) { - return ChatCompressionSelector( - mode: connector.contactCompressionMode(keyHex), - enabled: true, - profiles: settingsService.settings.cyr2latProfiles, - profileId: connector.getContactCyr2LatProfileId(keyHex), - defaultProfileId: settingsService.settings.selectedCyr2latProfileId, + final connector = context.read(); + final settingsService = context.read(); + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => ChatCompressionScreen( + listenable: Listenable.merge([connector, settingsService]), + read: () => ChatCompressionState( + mode: connector.contactCompressionMode(keyHex), + enabled: true, + profiles: settingsService.settings.cyr2latProfiles, + profileId: connector.getContactCyr2LatProfileId(keyHex), + defaultProfileId: settingsService.settings.selectedCyr2latProfileId, + ), onModeChanged: (mode) => connector.setContactCompressionMode(keyHex, mode), onProfileChanged: (id) => connector.setContactCyr2LatProfileId(keyHex, id), - ); - }, + ), + ), ); } diff --git a/lib/widgets/chat_compression_selector.dart b/lib/widgets/chat_compression_selector.dart deleted file mode 100644 index 864a7f1e..00000000 --- a/lib/widgets/chat_compression_selector.dart +++ /dev/null @@ -1,364 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/scheduler.dart'; - -import '../l10n/l10n.dart'; -import '../models/app_settings.dart'; -import '../models/chat_compression_mode.dart'; -import '../theme/mesh_theme.dart'; -import 'mesh_nav_tile.dart'; -import 'mesh_ui.dart'; - -export '../models/chat_compression_mode.dart'; - -/// Always-visible "Compression: Off / SMAZ / Cyr2Lat" strip for the top of a -/// DM or channel chat. Tapping it opens one sheet with the three choices, -/// what each does, and the Cyr2Lat profile picker. -/// -/// The parent supplies the saved state and persists changes through the -/// callbacks; this widget only shows a new mode once the parent rebuilds it -/// with that mode. A callback that throws leaves the saved mode in place and -/// shows an error in the sheet. -class ChatCompressionSelector extends StatefulWidget { - final ChatCompressionMode mode; - - /// False disables the strip and the sheet; [disabledReason] says why. - final bool enabled; - final String? disabledReason; - - final List profiles; - - /// The Cyr2Lat profile saved for this chat, if any. - final String? profileId; - - /// The app-wide profile, which sending uses when [profileId] is unset or - /// no longer exists. - final String? defaultProfileId; - - final Future Function(ChatCompressionMode mode) onModeChanged; - final Future Function(String profileId) onProfileChanged; - - const ChatCompressionSelector({ - super.key, - required this.mode, - required this.enabled, - this.disabledReason, - required this.profiles, - required this.profileId, - this.defaultProfileId, - required this.onModeChanged, - required this.onProfileChanged, - }); - - /// The profile sending actually uses, matching the connector's fallback. - String? get effectiveProfileId { - bool known(String? id) => profiles.any((p) => p.id == id); - if (known(profileId)) return profileId; - if (known(defaultProfileId)) return defaultProfileId; - return profiles.isEmpty ? null : profiles.first.id; - } - - @override - State createState() => - _ChatCompressionSelectorState(); -} - -String chatCompressionModeLabel(BuildContext context, ChatCompressionMode m) { - final l10n = context.l10n; - return switch (m) { - ChatCompressionMode.off => l10n.chatCompression_off, - ChatCompressionMode.smaz => l10n.chatCompression_smaz, - ChatCompressionMode.cyr2lat => l10n.chatCompression_cyr2lat, - }; -} - -/// What the open sheet renders. The sheet is a separate route, so it listens -/// to this instead of rebuilding with the strip. -class _SelectorView { - final ChatCompressionMode mode; - final bool enabled; - final List profiles; - final String? profileId; - final bool busy; - final bool failed; - - /// Counts failed saves, so the profile picker drops an unsaved choice. - final int failures; - - const _SelectorView({ - required this.mode, - required this.enabled, - required this.profiles, - required this.profileId, - required this.busy, - required this.failed, - required this.failures, - }); -} - -class _ChatCompressionSelectorState extends State { - late final ValueNotifier<_SelectorView> _view = ValueNotifier(_snapshot()); - bool _busy = false; - bool _failed = false; - int _failures = 0; - - _SelectorView _snapshot() => _SelectorView( - mode: widget.mode, - enabled: widget.enabled, - profiles: widget.profiles, - profileId: widget.effectiveProfileId, - busy: _busy, - failed: _failed, - failures: _failures, - ); - - @override - void didUpdateWidget(covariant ChatCompressionSelector oldWidget) { - super.didUpdateWidget(oldWidget); - // The sheet route is not below this widget, so it can't be marked dirty - // during this build. - SchedulerBinding.instance.addPostFrameCallback((_) { - if (mounted) _view.value = _snapshot(); - }); - } - - @override - void dispose() { - _view.dispose(); - super.dispose(); - } - - void _setBusy(bool busy, {required bool failed}) { - setState(() { - _busy = busy; - _failed = failed; - if (failed) _failures++; - }); - _view.value = _snapshot(); - } - - /// Runs one save; returns whether it succeeded. - Future _save(Future Function() write) async { - if (_busy || !widget.enabled) return false; - _setBusy(true, failed: false); - var ok = false; - try { - await write(); - ok = true; - } catch (e) { - debugPrint('[ChatCompressionSelector] save failed: $e'); - } - if (mounted) _setBusy(false, failed: !ok); - return ok; - } - - Future _openSheet() async { - if (_failed) _setBusy(false, failed: false); - await showMeshSheet( - context, - builder: (sheetContext) => ValueListenableBuilder<_SelectorView>( - valueListenable: _view, - builder: (sheetContext, view, _) => _buildSheet(sheetContext, view), - ), - ); - } - - Widget _buildSheet(BuildContext context, _SelectorView view) { - final l10n = context.l10n; - final scheme = Theme.of(context).colorScheme; - final canChange = view.enabled && !view.busy; - - MeshSheetOption option(ChatCompressionMode mode, String description) { - return MeshSheetOption( - label: chatCompressionModeLabel(context, mode), - subtitle: description, - selected: view.mode == mode, - onTap: canChange - ? () async { - final ok = await _save(() => widget.onModeChanged(mode)); - // Cyr2Lat stays open so its profile can be picked. - if (ok && mode != ChatCompressionMode.cyr2lat) { - if (context.mounted) Navigator.of(context).maybePop(); - } - } - : null, - ); - } - - final profileValue = view.profileId; - - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - BottomSheetHeader( - title: l10n.chatCompression_title, - subtitle: l10n.chatCompression_sheetSubtitle, - trailing: view.busy - ? const Padding( - padding: EdgeInsets.all(8), - child: SizedBox( - width: 18, - height: 18, - child: CircularProgressIndicator(strokeWidth: 2), - ), - ) - : null, - ), - Flexible( - child: SingleChildScrollView( - padding: const EdgeInsets.only(bottom: 16), - child: Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - if (view.failed) - Container( - margin: const EdgeInsets.fromLTRB(16, 8, 16, 8), - padding: const EdgeInsets.all(12), - decoration: BoxDecoration( - color: scheme.errorContainer, - borderRadius: BorderRadius.circular(MeshRadii.sm), - ), - child: Row( - children: [ - Icon( - Icons.error_outline, - color: scheme.onErrorContainer, - ), - const SizedBox(width: 12), - Expanded( - child: Text( - l10n.chatCompression_saveFailed, - style: Theme.of(context).textTheme.bodyMedium - ?.copyWith(color: scheme.onErrorContainer), - ), - ), - ], - ), - ), - if (!view.enabled && widget.disabledReason != null) - Padding( - padding: const EdgeInsets.fromLTRB(16, 8, 16, 8), - child: Text( - widget.disabledReason!, - style: Theme.of(context).textTheme.bodyMedium, - ), - ), - option( - ChatCompressionMode.off, - l10n.chatCompression_offDescription, - ), - option( - ChatCompressionMode.smaz, - l10n.chatCompression_smazDescription, - ), - option( - ChatCompressionMode.cyr2lat, - l10n.chatCompression_cyr2latDescription, - ), - if (view.mode == ChatCompressionMode.cyr2lat && - view.profiles.isNotEmpty) - Padding( - padding: const EdgeInsets.fromLTRB(16, 8, 16, 0), - child: DropdownButtonFormField( - // The field keeps a picked value internally, so rebuild - // it with the saved value after a change or a failure. - key: ValueKey('$profileValue#${view.failures}'), - isExpanded: true, - initialValue: profileValue, - decoration: InputDecoration( - labelText: l10n.chatCompression_profile, - border: const OutlineInputBorder(), - ), - items: [ - for (final profile in view.profiles) - DropdownMenuItem( - value: profile.id, - child: Text( - profile.name, - overflow: TextOverflow.ellipsis, - ), - ), - ], - onChanged: canChange - ? (id) { - if (id == null || id == profileValue) return; - _save(() => widget.onProfileChanged(id)); - } - : null, - ), - ), - ], - ), - ), - ), - ], - ); - } - - @override - Widget build(BuildContext context) { - final theme = Theme.of(context); - final scheme = theme.colorScheme; - final l10n = context.l10n; - final label = l10n.chatCompression_label( - chatCompressionModeLabel(context, widget.mode), - ); - final reason = widget.enabled ? null : widget.disabledReason; - - // One short row: the chat already leaves little room for messages at - // large text sizes, so a disabled strip explains itself in the sheet. - return Material( - color: scheme.surfaceContainerLow, - child: DecoratedBox( - decoration: BoxDecoration( - border: Border(bottom: BorderSide(color: scheme.outlineVariant)), - ), - child: MergeSemantics( - child: Semantics( - button: true, - enabled: !_busy, - label: reason == null ? label : '$label. $reason', - hint: l10n.chatCompression_changeHint, - child: InkWell( - onTap: _busy ? null : _openSheet, - child: ExcludeSemantics( - child: ConstrainedBox( - constraints: const BoxConstraints(minHeight: 48), - child: Padding( - padding: const EdgeInsets.symmetric(horizontal: 16), - child: Row( - children: [ - Flexible( - child: Text( - label, - style: theme.textTheme.bodyMedium?.copyWith( - fontWeight: FontWeight.w600, - color: scheme.onSurface, - ), - ), - ), - const SizedBox(width: 4), - if (_busy) - const SizedBox( - width: 18, - height: 18, - child: CircularProgressIndicator(strokeWidth: 2), - ) - else - Icon( - widget.enabled - ? Icons.arrow_drop_down - : Icons.lock_outline, - color: scheme.onSurfaceVariant, - ), - ], - ), - ), - ), - ), - ), - ), - ), - ), - ); - } -} diff --git a/test/helpers/smaz_test.dart b/test/helpers/smaz_test.dart new file mode 100644 index 00000000..2f2a3bb6 --- /dev/null +++ b/test/helpers/smaz_test.dart @@ -0,0 +1,172 @@ +import 'dart:convert'; +import 'dart:typed_data'; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:meshcore_open/helpers/smaz.dart'; + +int _utf8Len(String s) => utf8.encode(s).length; + +Uint8List _raw(String s) => + Smaz.compressBytes(Uint8List.fromList(utf8.encode(s))); + +/// Sent size, raw SMAZ size and base64 wire size for [text]. +({int plain, int raw, int wire, int sent}) _measure(String text) { + final raw = _raw(text); + return ( + plain: _utf8Len(text), + raw: raw.length, + wire: _utf8Len('s:${base64Encode(raw)}'), + sent: _utf8Len(Smaz.encodeIfSmaller(text)), + ); +} + +void main() { + group('compression results', () { + test('lowercase English compresses well', () { + const text = 'hello there, how are you doing today?'; + final m = _measure(text); + expect((m.plain, m.raw, m.wire, m.sent), (37, 20, 30, 30)); + expect(Smaz.encodeIfSmaller(text), startsWith('s:')); + }); + + test('sentence case compresses, a little less', () { + const text = 'Hello there, how are you doing today?'; + final m = _measure(text); + expect((m.plain, m.raw, m.wire, m.sent), (37, 22, 34, 34)); + expect(Smaz.encodeIfSmaller(text), startsWith('s:')); + }); + + test('mixed case with many capitals barely compresses', () { + const mixed = 'Meeting at Headquarters on Monday afternoon'; + const lower = 'meeting at headquarters on monday afternoon'; + expect(_measure(mixed).wire, 42); + expect(_measure(mixed).plain, 43); + expect(Smaz.encodeIfSmaller(mixed), startsWith('s:')); + // The same words in lowercase save far more. + expect(_measure(lower).wire, 34); + expect(_measure(lower).raw, 24); + // Each capital that is not in the codebook costs 2 bytes. + expect(_measure(mixed).raw - _measure(lower).raw, 4); + }); + + test('all caps is longer than the plain text, so it is sent plain', () { + const text = 'HELLO THERE, HOW ARE YOU DOING TODAY?'; + final m = _measure(text); + expect((m.plain, m.raw, m.wire, m.sent), (37, 50, 70, 37)); + expect(Smaz.encodeIfSmaller(text), text); + }); + + test('a reply prefix costs the same in either case', () { + expect( + _raw('@[Alice] hello there, how are you?').length, + _raw('@[alice] hello there, how are you?').length, + ); + // 34 bytes plain, 34 bytes encoded: not strictly smaller, sent plain. + const text = '@[Alice] hello there, how are you?'; + expect(_measure(text).wire, _measure(text).plain); + expect(Smaz.encodeIfSmaller(text), text); + }); + }); + + group('non-ASCII text', () { + test('Cyrillic round-trips as raw bytes but is sent plain', () { + const text = 'Привет, как дела сегодня?'; + final m = _measure(text); + expect((m.plain, m.raw, m.wire, m.sent), (45, 52, 74, 45)); + expect(Smaz.encodeIfSmaller(text), text); + // The byte-level codec is still lossless. + expect(utf8.decode(Smaz.decompressBytes(_raw(text))), text); + }); + + test('emoji survives a compressed round trip', () { + const text = + 'see you soon 😀 the best of luck with the new house and the garden'; + final encoded = Smaz.encodeIfSmaller(text); + expect(encoded, startsWith('s:')); + expect(_utf8Len(encoded), lessThan(_utf8Len(text))); + expect(Smaz.tryDecodePrefixed(encoded), text); + }); + + test('a short emoji message is not smaller, so it is sent plain', () { + const text = 'see you soon 😀 the best'; + final m = _measure(text); + expect((m.plain, m.raw, m.wire, m.sent), (26, 17, 26, 26)); + expect(Smaz.encodeIfSmaller(text), text); + }); + }); + + group('encodeIfSmaller falls back to plain text', () { + test('short strings', () { + for (final text in ['hi', 'ok', 'Hello', 'the']) { + expect(Smaz.encodeIfSmaller(text), text, reason: text); + } + }); + + test('empty string', () { + expect(Smaz.encodeIfSmaller(''), ''); + }); + + test('sent form is never longer than the plain text', () { + for (final text in [ + 'a', + 'Hello', + 'HELLO THERE, HOW ARE YOU DOING TODAY?', + 'the quick brown fox jumps over the lazy dog', + 'Привет, как дела?', + '12345 67890', + ]) { + expect( + _utf8Len(Smaz.encodeIfSmaller(text)), + lessThanOrEqualTo(_utf8Len(text)), + reason: text, + ); + } + }); + }); + + group('round trip', () { + test('tryDecodePrefixed restores what encodeIfSmaller produced', () { + for (final text in [ + 'hello there, how are you doing today?', + 'Hello there, how are you doing today?', + 'Meeting at Headquarters on Monday afternoon', + 'the quick brown fox jumps over the lazy dog', + '@[Alice] hello there, how are you doing today my friend?', + ]) { + final encoded = Smaz.encodeIfSmaller(text); + expect(encoded, startsWith('s:'), reason: text); + expect(Smaz.tryDecodePrefixed(encoded), text, reason: text); + } + }); + + test('the decoder ignores leading whitespace', () { + const text = 'hello there, how are you doing today?'; + expect(Smaz.tryDecodePrefixed(' ${Smaz.encodeIfSmaller(text)}'), text); + }); + + test('plain text is not a compressed payload', () { + expect(Smaz.tryDecodePrefixed('hello there'), isNull); + expect(Smaz.tryDecodePrefixed('s:'), isNull); + }); + }); + + group('"s:" guard', () { + test('text that already starts with "s:" is never re-encoded', () { + const text = 's:hello there, how are you doing today?'; + expect(Smaz.encodeIfSmaller(text), text); + }); + + test('plain "s:" text is not mistaken for a compressed payload', () { + expect(Smaz.tryDecodePrefixed('s:test'), isNull); + expect(Smaz.tryDecodePrefixed('s:hello'), isNull); + // Valid base64 that is not what the encoder would have produced. + expect(Smaz.tryDecodePrefixed('s:AAAA'), isNull); + }); + + test('malformed payloads return null instead of throwing', () { + expect(Smaz.tryDecodePrefixed('s:!!!!'), isNull); + // Truncated verbatim escape (0xFE with no byte after it). + expect(Smaz.tryDecodePrefixed('s:${base64Encode([254])}'), isNull); + }); + }); +} diff --git a/test/screens/chat_compression_screen_test.dart b/test/screens/chat_compression_screen_test.dart new file mode 100644 index 00000000..dc2ca9ec --- /dev/null +++ b/test/screens/chat_compression_screen_test.dart @@ -0,0 +1,265 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:meshcore_open/l10n/app_localizations.dart'; +import 'package:meshcore_open/models/app_settings.dart'; +import 'package:meshcore_open/theme/mesh_theme.dart'; +import 'package:meshcore_open/screens/chat_compression_screen.dart'; + +final _l10n = lookupAppLocalizations(const Locale('en')); + +final _profiles = [ + Cyr2LatProfile(id: 'ru', name: 'Russian', charMap: const {'А': 'A'}), + Cyr2LatProfile(id: 'sr', name: 'Serbian', charMap: const {'З': '3'}), +]; + +/// Stands in for a chat screen: keeps the "saved" state and applies a change +/// only when the test completes the pending write. +class _Host extends ChangeNotifier { + ChatCompressionMode mode; + String? profileId; + final bool enabled; + final List modeCalls = []; + final List profileCalls = []; + final List> pending = []; + + _Host({ + this.mode = ChatCompressionMode.off, + this.enabled = true, + this.profileId, + }); + + ChatCompressionState read() => ChatCompressionState( + mode: mode, + enabled: enabled, + disabledReason: enabled ? null : _l10n.chatCompression_noStorageId, + profiles: _profiles, + profileId: profileId, + defaultProfileId: 'ru', + ); + + Future _write(void Function() apply) async { + final completer = Completer(); + pending.add(completer); + await completer.future; + apply(); + notifyListeners(); + } + + Future setMode(ChatCompressionMode m) { + modeCalls.add(m); + return _write(() => mode = m); + } + + Future setProfile(String id) { + profileCalls.add(id); + return _write(() => profileId = id); + } +} + +void main() { + late _Host host; + + Future pumpPage( + WidgetTester tester, { + ChatCompressionMode mode = ChatCompressionMode.off, + bool enabled = true, + String? profileId, + Size size = const Size(400, 800), + double textScale = 1.0, + }) async { + host = _Host(mode: mode, enabled: enabled, profileId: profileId); + addTearDown(host.dispose); + tester.view.physicalSize = size; + tester.view.devicePixelRatio = 1.0; + addTearDown(tester.view.reset); + await tester.pumpWidget( + MaterialApp( + theme: MeshTheme.light(), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + builder: (context, child) => MediaQuery( + data: MediaQuery.of( + context, + ).copyWith(textScaler: TextScaler.linear(textScale)), + child: child!, + ), + home: ChatCompressionScreen( + listenable: host, + read: host.read, + onModeChanged: host.setMode, + onProfileChanged: host.setProfile, + ), + ), + ); + } + + Finder optionRow(String label) => + find.ancestor(of: find.text(label), matching: find.byType(ListTile)); + + bool isSelected(String label) { + return find + .descendant( + of: optionRow(label), + matching: find.byIcon(Icons.radio_button_checked), + ) + .evaluate() + .isNotEmpty; + } + + testWidgets( + 'lists the three modes with short notes and marks the saved one', + (tester) async { + await pumpPage(tester, mode: ChatCompressionMode.smaz); + + expect(find.text(_l10n.chatCompression_title), findsWidgets); + expect(find.text(_l10n.chatCompression_off), findsOneWidget); + expect(find.text(_l10n.chatCompression_smaz), findsOneWidget); + expect(find.text(_l10n.chatCompression_cyr2lat), findsOneWidget); + expect(find.text(_l10n.chatCompression_offDescription), findsOneWidget); + expect(find.text(_l10n.chatCompression_smazDescription), findsOneWidget); + expect( + find.text(_l10n.chatCompression_cyr2latDescription), + findsOneWidget, + ); + expect(isSelected(_l10n.chatCompression_smaz), isTrue); + expect(isSelected(_l10n.chatCompression_off), isFalse); + expect(find.text(_l10n.chatCompression_profile), findsNothing); + for (final mode in [ + _l10n.chatCompression_off, + _l10n.chatCompression_smaz, + _l10n.chatCompression_cyr2lat, + ]) { + expect( + tester.getSize(optionRow(mode)).height, + greaterThanOrEqualTo(48), + reason: mode, + ); + } + }, + ); + + testWidgets('a choice shows only after it is saved', (tester) async { + await pumpPage(tester); + + await tester.tap(find.text(_l10n.chatCompression_smaz)); + await tester.pump(); + expect(host.modeCalls, [ChatCompressionMode.smaz]); + // Still saving: old mode shown, options locked against rapid taps. + expect(isSelected(_l10n.chatCompression_off), isTrue); + expect( + tester.widget(optionRow(_l10n.chatCompression_cyr2lat)).enabled, + isFalse, + ); + await tester.tap(find.text(_l10n.chatCompression_cyr2lat)); + await tester.pump(); + expect(host.modeCalls, [ChatCompressionMode.smaz]); + + host.pending.single.complete(); + await tester.pumpAndSettle(); + expect(isSelected(_l10n.chatCompression_smaz), isTrue); + expect(isSelected(_l10n.chatCompression_off), isFalse); + expect( + tester.widget(optionRow(_l10n.chatCompression_cyr2lat)).enabled, + isTrue, + ); + }); + + testWidgets('Cyr2Lat reveals the profile picker', (tester) async { + await pumpPage(tester); + + await tester.tap(find.text(_l10n.chatCompression_cyr2lat)); + await tester.pump(); + host.pending.removeAt(0).complete(); + await tester.pumpAndSettle(); + + expect(isSelected(_l10n.chatCompression_cyr2lat), isTrue); + expect(find.text(_l10n.chatCompression_profile), findsWidgets); + // No profile saved for the chat: the app-wide one is what sending uses. + expect(find.text('Russian'), findsOneWidget); + + await tester.tap(find.text('Russian')); + await tester.pumpAndSettle(); + await tester.tap(find.text('Serbian').last); + await tester.pump(); + expect(host.profileCalls, ['sr']); + host.pending.removeAt(0).complete(); + await tester.pumpAndSettle(); + expect(find.text('Serbian'), findsOneWidget); + }); + + testWidgets('a failed save keeps the saved mode and says so', (tester) async { + await pumpPage(tester, mode: ChatCompressionMode.smaz); + + await tester.tap(find.text(_l10n.chatCompression_cyr2lat)); + await tester.pump(); + host.pending.single.completeError(StateError('disk full')); + await tester.pumpAndSettle(); + + expect(find.text(_l10n.chatCompression_saveFailed), findsOneWidget); + expect(isSelected(_l10n.chatCompression_smaz), isTrue); + expect(isSelected(_l10n.chatCompression_cyr2lat), isFalse); + expect( + tester.widget(optionRow(_l10n.chatCompression_off)).enabled, + isTrue, + ); + }); + + testWidgets('a failed profile save shows the saved profile again', ( + tester, + ) async { + await pumpPage(tester, mode: ChatCompressionMode.cyr2lat, profileId: 'ru'); + + await tester.tap(find.text('Russian')); + await tester.pumpAndSettle(); + await tester.tap(find.text('Serbian').last); + await tester.pump(); + expect(host.profileCalls, ['sr']); + host.pending.single.completeError(StateError('disk full')); + await tester.pumpAndSettle(); + + expect(find.text(_l10n.chatCompression_saveFailed), findsOneWidget); + await tester.scrollUntilVisible(find.text('Russian'), 100); + expect(find.text('Russian'), findsOneWidget); + expect(find.text('Serbian'), findsNothing); + }); + + testWidgets('disabled shows the saved mode, says why and allows no change', ( + tester, + ) async { + await pumpPage(tester, mode: ChatCompressionMode.smaz, enabled: false); + + expect(find.text(_l10n.chatCompression_noStorageId), findsOneWidget); + expect(isSelected(_l10n.chatCompression_smaz), isTrue); + for (final mode in [ + _l10n.chatCompression_off, + _l10n.chatCompression_smaz, + _l10n.chatCompression_cyr2lat, + ]) { + expect(tester.widget(optionRow(mode)).enabled, isFalse); + } + await tester.tap(find.text(_l10n.chatCompression_off), warnIfMissed: false); + await tester.pumpAndSettle(); + expect(host.modeCalls, isEmpty); + }); + + for (final scale in [1.3, 2.0]) { + testWidgets('fits a 320dp phone at ${scale}x text', (tester) async { + await pumpPage( + tester, + mode: ChatCompressionMode.cyr2lat, + size: const Size(320, 568), + textScale: scale, + ); + expect(tester.takeException(), isNull); + // The page scrolls to its last option and the profile picker. + await tester.scrollUntilVisible( + find.byType(DropdownButtonFormField), + 200, + scrollable: find.byType(Scrollable).first, + ); + expect(tester.takeException(), isNull); + }); + } +} diff --git a/test/screens/offline_mode_test.dart b/test/screens/offline_mode_test.dart index 11469c44..a705f82e 100644 --- a/test/screens/offline_mode_test.dart +++ b/test/screens/offline_mode_test.dart @@ -42,9 +42,8 @@ import 'package:meshcore_open/storage/last_radio_store.dart'; import 'package:meshcore_open/storage/message_store.dart'; import 'package:meshcore_open/storage/prefs_manager.dart'; import 'package:meshcore_open/theme/mesh_theme.dart'; -import 'package:meshcore_open/widgets/chat_background.dart'; import 'package:meshcore_open/widgets/chat_composer.dart'; -import 'package:meshcore_open/widgets/chat_compression_selector.dart'; +import 'package:meshcore_open/screens/chat_compression_screen.dart'; import 'package:meshcore_open/widgets/connect_sheet.dart'; final _radioKey = Uint8List.fromList(List.generate(32, (i) => 0xA0 + i)); @@ -349,10 +348,18 @@ void main() { await tester.pump(const Duration(minutes: 1)); }); - group('compression selector', () { - Future choose(WidgetTester tester, String mode) async { - await tester.tap(find.byType(ChatCompressionSelector)); + group('compression menu item', () { + Future openMenu(WidgetTester tester) async { + await tester.tap(find.byIcon(Icons.more_vert)); await _settle(tester); + } + + /// Opens the page from the overflow menu, picks [mode], and returns. + Future choose(WidgetTester tester, String mode) async { + await openMenu(tester); + await tester.tap(find.textContaining('${_l10n.chatCompression_title}:')); + await _settle(tester); + expect(find.byType(ChatCompressionScreen), findsOneWidget); await tester.tap(find.text(mode)); await _settle(tester); // Connector notifications are debounced on a real timer. @@ -360,9 +367,11 @@ void main() { () => Future.delayed(const Duration(milliseconds: 200)), ); await _settle(tester); + await tester.pageBack(); + await _settle(tester); } - testWidgets('DM chat shows it at the top and saves offline', ( + testWidgets('DM chat shows it in the menu and saves offline', ( tester, ) async { final connector = await _offlineConnector(tester); @@ -373,32 +382,27 @@ void main() { ); await _settle(tester); - expect(find.byType(ChatCompressionSelector), findsOneWidget); + // No strip above the transcript any more. + expect(find.byType(ChatCompressionScreen), findsNothing); + expect(find.text(_l10n.chatCompression_label('Off')), findsNothing); + await openMenu(tester); expect(find.text(_l10n.chatCompression_label('Off')), findsOneWidget); - // Above the transcript, outside its scroll view. - expect( - find.ancestor( - of: find.byType(ChatCompressionSelector), - matching: find.byType(Scrollable), - ), - findsNothing, - ); - expect( - tester.getBottomLeft(find.byType(ChatCompressionSelector)).dy, - lessThanOrEqualTo(tester.getTopLeft(find.byType(ChatBackdrop)).dy), - ); + expect(find.byIcon(Icons.compress), findsOneWidget); + await tester.tapAt(const Offset(1, 1)); + await _settle(tester); await choose(tester, _l10n.chatCompression_smaz); + await openMenu(tester); expect(find.text(_l10n.chatCompression_label('SMAZ')), findsOneWidget); + await tester.tapAt(const Offset(1, 1)); + await _settle(tester); expect( await tester.runAsync(() => store.loadSmazEnabled(alice.publicKeyHex)), isTrue, ); await choose(tester, _l10n.chatCompression_cyr2lat); - // Cyr2Lat keeps the sheet open for its profile picker. - await tester.tap(find.byTooltip('Close')); - await _settle(tester); + await openMenu(tester); expect(find.text(_l10n.chatCompression_label('Cyr2Lat')), findsOneWidget); expect( connector.contactCompressionMode(alice.publicKeyHex), @@ -416,8 +420,6 @@ void main() { ); // The settings dialog no longer carries the compression switches. - await tester.tap(find.byIcon(Icons.more_vert)); - await _settle(tester); await tester.tap(find.text(_l10n.contact_settings).last); await _settle(tester); expect(find.byType(AlertDialog), findsOneWidget); @@ -431,7 +433,7 @@ void main() { await tester.pumpWidget(const SizedBox()); }); - testWidgets('channel chat uses the same selector and saves offline', ( + testWidgets('channel chat uses the same page and saves offline', ( tester, ) async { final connector = await _offlineConnector(tester); @@ -442,10 +444,13 @@ void main() { ); await _settle(tester); - expect(find.byType(ChatCompressionSelector), findsOneWidget); + await openMenu(tester); expect(find.text(_l10n.chatCompression_label('Off')), findsOneWidget); + await tester.tapAt(const Offset(1, 1)); + await _settle(tester); await choose(tester, _l10n.chatCompression_smaz); + await openMenu(tester); expect(find.text(_l10n.chatCompression_label('SMAZ')), findsOneWidget); expect( await tester.runAsync(() => store.loadSmazEnabled(channel.storageId!)), diff --git a/test/widgets/chat_compression_selector_test.dart b/test/widgets/chat_compression_selector_test.dart deleted file mode 100644 index ec32ff8d..00000000 --- a/test/widgets/chat_compression_selector_test.dart +++ /dev/null @@ -1,334 +0,0 @@ -import 'dart:async'; - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:meshcore_open/l10n/app_localizations.dart'; -import 'package:meshcore_open/models/app_settings.dart'; -import 'package:meshcore_open/theme/mesh_theme.dart'; -import 'package:meshcore_open/widgets/chat_compression_selector.dart'; - -final _l10n = lookupAppLocalizations(const Locale('en')); - -final _profiles = [ - Cyr2LatProfile(id: 'ru', name: 'Russian', charMap: const {'А': 'A'}), - Cyr2LatProfile(id: 'sr', name: 'Serbian', charMap: const {'З': '3'}), -]; - -/// Stands in for a chat screen: keeps the "saved" state and applies a change -/// only when the test completes the pending write. -class _Host extends StatefulWidget { - final ChatCompressionMode initialMode; - final bool enabled; - final String? initialProfileId; - final List modeCalls; - final List profileCalls; - final List> pending; - - const _Host({ - this.initialMode = ChatCompressionMode.off, - this.enabled = true, - this.initialProfileId, - required this.modeCalls, - required this.profileCalls, - required this.pending, - }); - - @override - State<_Host> createState() => _HostState(); -} - -class _HostState extends State<_Host> { - late ChatCompressionMode _mode = widget.initialMode; - late String? _profileId = widget.initialProfileId; - - Future _write(void Function() apply) async { - final completer = Completer(); - widget.pending.add(completer); - await completer.future; - if (mounted) setState(apply); - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Chat')), - body: Column( - children: [ - ChatCompressionSelector( - mode: _mode, - enabled: widget.enabled, - disabledReason: widget.enabled - ? null - : _l10n.chatCompression_noStorageId, - profiles: _profiles, - profileId: _profileId, - defaultProfileId: 'ru', - onModeChanged: (mode) { - widget.modeCalls.add(mode); - return _write(() => _mode = mode); - }, - onProfileChanged: (id) { - widget.profileCalls.add(id); - return _write(() => _profileId = id); - }, - ), - const Expanded(child: Placeholder()), - ], - ), - ); - } -} - -void main() { - late List modeCalls; - late List profileCalls; - late List> pending; - - setUp(() { - modeCalls = []; - profileCalls = []; - pending = []; - }); - - Future pumpHost( - WidgetTester tester, { - ChatCompressionMode mode = ChatCompressionMode.off, - bool enabled = true, - String? profileId, - Size size = const Size(400, 800), - double textScale = 1.0, - }) async { - tester.view.physicalSize = size; - tester.view.devicePixelRatio = 1.0; - addTearDown(tester.view.reset); - await tester.pumpWidget( - MaterialApp( - theme: MeshTheme.light(), - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - builder: (context, child) => MediaQuery( - data: MediaQuery.of( - context, - ).copyWith(textScaler: TextScaler.linear(textScale)), - child: child!, - ), - home: _Host( - initialMode: mode, - enabled: enabled, - initialProfileId: profileId, - modeCalls: modeCalls, - profileCalls: profileCalls, - pending: pending, - ), - ), - ); - } - - Future openSheet(WidgetTester tester) async { - await tester.tap(find.byType(ChatCompressionSelector)); - await tester.pumpAndSettle(); - } - - Finder optionRow(String label) => - find.ancestor(of: find.text(label), matching: find.byType(ListTile)); - - bool isSelected(WidgetTester tester, String label) { - final row = optionRow(label); - return find - .descendant(of: row, matching: find.byIcon(Icons.radio_button_checked)) - .evaluate() - .isNotEmpty; - } - - testWidgets('shows the saved mode and announces it', (tester) async { - final semantics = tester.ensureSemantics(); - await pumpHost(tester, mode: ChatCompressionMode.smaz); - - expect(find.text(_l10n.chatCompression_label('SMAZ')), findsOneWidget); - expect( - tester.getSemantics( - find.bySemanticsLabel(_l10n.chatCompression_label('SMAZ')), - ), - isSemantics( - label: _l10n.chatCompression_label('SMAZ'), - hint: _l10n.chatCompression_changeHint, - isButton: true, - isEnabled: true, - hasTapAction: true, - ), - ); - expect( - tester.getSize(find.byType(ChatCompressionSelector)).height, - greaterThanOrEqualTo(48), - ); - semantics.dispose(); - }); - - testWidgets('one sheet lists the three modes with their explanations', ( - tester, - ) async { - await pumpHost(tester); - await openSheet(tester); - - expect(find.text(_l10n.chatCompression_title), findsOneWidget); - expect(find.text(_l10n.chatCompression_off), findsOneWidget); - expect(find.text(_l10n.chatCompression_smaz), findsOneWidget); - expect(find.text(_l10n.chatCompression_cyr2lat), findsOneWidget); - expect(find.text(_l10n.chatCompression_offDescription), findsOneWidget); - expect(find.text(_l10n.chatCompression_smazDescription), findsOneWidget); - expect(find.text(_l10n.chatCompression_cyr2latDescription), findsOneWidget); - expect(isSelected(tester, _l10n.chatCompression_off), isTrue); - expect(isSelected(tester, _l10n.chatCompression_smaz), isFalse); - // No profile picker unless Cyr2Lat is chosen. - expect(find.text(_l10n.chatCompression_profile), findsNothing); - expect(find.byType(Dialog), findsNothing); - }); - - testWidgets('a choice shows only after it is saved, then the sheet closes', ( - tester, - ) async { - await pumpHost(tester); - await openSheet(tester); - - await tester.tap(find.text(_l10n.chatCompression_smaz)); - await tester.pump(); - expect(modeCalls, [ChatCompressionMode.smaz]); - // Still saving: old mode shown, options locked against rapid taps. - expect(isSelected(tester, _l10n.chatCompression_off), isTrue); - expect( - tester.widget(optionRow(_l10n.chatCompression_cyr2lat)).enabled, - isFalse, - ); - await tester.tap(find.text(_l10n.chatCompression_cyr2lat)); - await tester.pump(); - expect(modeCalls, [ChatCompressionMode.smaz]); - - pending.single.complete(); - await tester.pumpAndSettle(); - expect(find.text(_l10n.chatCompression_title), findsNothing); - expect(find.text(_l10n.chatCompression_label('SMAZ')), findsOneWidget); - }); - - testWidgets('Cyr2Lat keeps the sheet open with its profile picker', ( - tester, - ) async { - await pumpHost(tester); - await openSheet(tester); - - await tester.tap(find.text(_l10n.chatCompression_cyr2lat)); - await tester.pump(); - pending.removeAt(0).complete(); - await tester.pumpAndSettle(); - - expect(find.text(_l10n.chatCompression_title), findsOneWidget); - expect(isSelected(tester, _l10n.chatCompression_cyr2lat), isTrue); - expect(find.text(_l10n.chatCompression_profile), findsOneWidget); - // No profile saved for the chat: the app-wide one is what sending uses. - expect(find.text('Russian'), findsOneWidget); - - await tester.ensureVisible(find.text('Russian')); - await tester.pumpAndSettle(); - await tester.tap(find.text('Russian')); - await tester.pumpAndSettle(); - await tester.tap(find.text('Serbian').last); - await tester.pump(); - expect(profileCalls, ['sr']); - pending.removeAt(0).complete(); - await tester.pumpAndSettle(); - expect(find.text('Serbian'), findsOneWidget); - expect(find.text(_l10n.chatCompression_label('Cyr2Lat')), findsOneWidget); - }); - - testWidgets('a failed save keeps the saved mode and says so', (tester) async { - await pumpHost(tester, mode: ChatCompressionMode.smaz); - await openSheet(tester); - - await tester.tap(find.text(_l10n.chatCompression_cyr2lat)); - await tester.pump(); - pending.single.completeError(StateError('disk full')); - await tester.pumpAndSettle(); - - expect(find.text(_l10n.chatCompression_saveFailed), findsOneWidget); - expect(isSelected(tester, _l10n.chatCompression_smaz), isTrue); - expect(isSelected(tester, _l10n.chatCompression_cyr2lat), isFalse); - expect( - tester.widget(optionRow(_l10n.chatCompression_off)).enabled, - isTrue, - ); - await tester.tap(find.byTooltip('Close')); - await tester.pumpAndSettle(); - expect(find.text(_l10n.chatCompression_label('SMAZ')), findsOneWidget); - }); - - testWidgets('a failed profile save shows the saved profile again', ( - tester, - ) async { - await pumpHost(tester, mode: ChatCompressionMode.cyr2lat, profileId: 'ru'); - await openSheet(tester); - - await tester.ensureVisible(find.text('Russian')); - await tester.pumpAndSettle(); - await tester.tap(find.text('Russian')); - await tester.pumpAndSettle(); - await tester.tap(find.text('Serbian').last); - await tester.pump(); - expect(profileCalls, ['sr']); - pending.single.completeError(StateError('disk full')); - await tester.pumpAndSettle(); - - expect(find.text(_l10n.chatCompression_saveFailed), findsOneWidget); - expect(find.text('Russian'), findsOneWidget); - expect(find.text('Serbian'), findsNothing); - }); - - testWidgets('disabled shows the saved mode, and the sheet says why and ' - 'allows no change', (tester) async { - final semantics = tester.ensureSemantics(); - await pumpHost(tester, mode: ChatCompressionMode.smaz, enabled: false); - - final label = _l10n.chatCompression_label('SMAZ'); - expect(find.text(label), findsOneWidget); - expect(find.byIcon(Icons.lock_outline), findsOneWidget); - expect( - find.bySemanticsLabel('$label. ${_l10n.chatCompression_noStorageId}'), - findsOneWidget, - ); - - await openSheet(tester); - expect(find.text(_l10n.chatCompression_noStorageId), findsOneWidget); - expect(isSelected(tester, _l10n.chatCompression_smaz), isTrue); - for (final mode in [ - _l10n.chatCompression_off, - _l10n.chatCompression_smaz, - _l10n.chatCompression_cyr2lat, - ]) { - expect(tester.widget(optionRow(mode)).enabled, isFalse); - } - await tester.tap(find.text(_l10n.chatCompression_off), warnIfMissed: false); - await tester.pumpAndSettle(); - expect(modeCalls, isEmpty); - semantics.dispose(); - }); - - for (final scale in [1.3, 2.0]) { - testWidgets('fits a 320dp phone at ${scale}x text', (tester) async { - await pumpHost( - tester, - mode: ChatCompressionMode.cyr2lat, - enabled: true, - size: const Size(320, 568), - textScale: scale, - ); - expect(tester.takeException(), isNull); - await openSheet(tester); - expect(tester.takeException(), isNull); - // The sheet scrolls to its last option and the profile picker. - await tester.scrollUntilVisible( - find.text(_l10n.chatCompression_profile), - 200, - scrollable: find.byType(Scrollable).last, - ); - expect(tester.takeException(), isNull); - }); - } -} From 834bec7ea02069ef7fafbd12ee376dd063f1912f Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:46:50 -0700 Subject: [PATCH 09/17] Make chat selection instant and add bulk selection to direct chats --- documentation/chat-and-messaging.md | 7 + lib/l10n/app_en.arb | 9 + lib/l10n/app_localizations.dart | 12 + lib/l10n/app_localizations_bg.dart | 14 + lib/l10n/app_localizations_cs.dart | 14 + lib/l10n/app_localizations_de.dart | 14 + lib/l10n/app_localizations_en.dart | 14 + lib/l10n/app_localizations_es.dart | 14 + lib/l10n/app_localizations_fr.dart | 14 + lib/l10n/app_localizations_hu.dart | 14 + lib/l10n/app_localizations_it.dart | 14 + lib/l10n/app_localizations_ja.dart | 14 + lib/l10n/app_localizations_ko.dart | 14 + lib/l10n/app_localizations_nl.dart | 14 + lib/l10n/app_localizations_pl.dart | 14 + lib/l10n/app_localizations_pt.dart | 14 + lib/l10n/app_localizations_ru.dart | 14 + lib/l10n/app_localizations_sk.dart | 14 + lib/l10n/app_localizations_sl.dart | 14 + lib/l10n/app_localizations_sv.dart | 14 + lib/l10n/app_localizations_uk.dart | 14 + lib/l10n/app_localizations_zh.dart | 14 + lib/screens/channel_chat_screen.dart | 10 +- lib/screens/chat_screen.dart | 615 ++++++++++++------ lib/widgets/chat_zoom_wrapper.dart | 36 +- test/screens/bulk_message_selection_test.dart | 569 ++++++++++++++++ 26 files changed, 1311 insertions(+), 213 deletions(-) create mode 100644 test/screens/bulk_message_selection_test.dart diff --git a/documentation/chat-and-messaging.md b/documentation/chat-and-messaging.md index 40826682..ac4c85ae 100644 --- a/documentation/chat-and-messaging.md +++ b/documentation/chat-and-messaging.md @@ -170,6 +170,7 @@ Add emoji reactions to incoming messages (not your own): | Translate | Incoming messages only (when translation is enabled and not yet translated) | Translates the message on-demand using the on-device model | | Mark as Unread | Incoming messages only | Marks this message and all subsequent incoming messages as unread | | Delete | All messages | Removes locally (not from mesh) | +| Select messages | All messages | Starts multi-select with this message picked; see below | | Retry | Failed outgoing messages | Re-sends the message | | Open chat with sender | Room server chats | Opens 1:1 chat with the message sender | @@ -177,6 +178,12 @@ In channel chats the menu also offers **Mark as spam**, **Filter this sender** a Long-pressing directly on a detected GPS coordinate opens the coordinate action sheet (**Copy location** and **Open in maps**) instead of this message menu; long-press non-coordinate text in the message (or right-click on desktop) for message actions. +## Selecting Several Messages + +Channel, direct and room chats share the same multi-select. Choose **Select messages** in the message menu; while selecting, tapping or long-pressing any message toggles it (it shows as selected immediately, with no double-tap delay) and the back button clears the selection. Chat-text double-tap-to-reset-zoom is turned off while selecting. + +The selection bar offers **Copy** (oldest first) and **Delete** (after a confirmation) in all chats. Direct and room chats also offer **Bookmark** and **Resend**, which asks for confirmation and re-sends the selected outgoing messages oldest first. Delete and Resend are unavailable while the radio is offline. + ## Image and translation setup Enable URL images in the contact’s chat settings to preview supported image links; see [URL images](additional-features.md#url-image-previews). Images and files can also be uploaded to a configured IPFS provider from the **+** menu in direct or channel chat; the resulting URL is sent as ordinary text. See [sharing via IPFS](additional-features.md#share-an-image-via-ipfs) and [IPFS provider configuration](settings.md#ipfs-provider-configuration). Mesh image packets are currently sent through channel chat, not the direct-message composer. Set up translation and download a model in [App Settings](settings.md#translation) before using incoming or pre-send translation. diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 642d7f16..99b0964c 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1329,6 +1329,15 @@ "chat_receivedGif": "Received a GIF", "chat_reply": "Reply", "chat_resend": "Resend", + "chat_resendSelectedTitle": "Resend messages?", + "chat_resendSelectedConfirm": "{count, plural, =1{Resend 1 selected outgoing message to this contact?} other{Resend {count} selected outgoing messages to this contact?}}", + "@chat_resendSelectedConfirm": { + "placeholders": { + "count": { + "type": "int" + } + } + }, "chat_addReaction": "Add Reaction", "chat_me": "Me", "reaction_report": "Emoji Reactions", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index b5c8ad8e..10e3b90a 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -4537,6 +4537,18 @@ abstract class AppLocalizations { /// **'Resend'** String get chat_resend; + /// No description provided for @chat_resendSelectedTitle. + /// + /// In en, this message translates to: + /// **'Resend messages?'** + String get chat_resendSelectedTitle; + + /// No description provided for @chat_resendSelectedConfirm. + /// + /// In en, this message translates to: + /// **'{count, plural, =1{Resend 1 selected outgoing message to this contact?} other{Resend {count} selected outgoing messages to this contact?}}'** + String chat_resendSelectedConfirm(int count); + /// No description provided for @chat_addReaction. /// /// In en, this message translates to: diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 3871cf1b..bd38aaf8 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -2616,6 +2616,20 @@ class AppLocalizationsBg extends AppLocalizations { @override String get chat_resend => 'Изпрати отново'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Добави Реакция'; diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 14acd0b7..7acb0d24 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -2610,6 +2610,20 @@ class AppLocalizationsCs extends AppLocalizations { @override String get chat_resend => 'Odeslat znovu'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Přidat reakci'; diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 7769c0e0..dc236509 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -2619,6 +2619,20 @@ class AppLocalizationsDe extends AppLocalizations { @override String get chat_resend => 'Erneut senden'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Reaktion hinzufügen'; diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 3b50a918..e0cd04a1 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -2571,6 +2571,20 @@ class AppLocalizationsEn extends AppLocalizations { @override String get chat_resend => 'Resend'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Add Reaction'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 901e76e5..b47dba53 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -2610,6 +2610,20 @@ class AppLocalizationsEs extends AppLocalizations { @override String get chat_resend => 'Reenviar'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Añadir Reacción'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 2bfc5046..ef527024 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -2614,6 +2614,20 @@ class AppLocalizationsFr extends AppLocalizations { @override String get chat_resend => 'Renvoyer'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Ajouter une réaction'; diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index 97888e91..33aeab50 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -2606,6 +2606,20 @@ class AppLocalizationsHu extends AppLocalizations { @override String get chat_resend => 'Újraküldés'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Reakció hozzáadása'; diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index e757cc1d..041e65c7 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -2613,6 +2613,20 @@ class AppLocalizationsIt extends AppLocalizations { @override String get chat_resend => 'Reinvia'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Aggiungi Reazione'; diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index eec2a32e..0332dacb 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -2492,6 +2492,20 @@ class AppLocalizationsJa extends AppLocalizations { @override String get chat_resend => '再送信'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'リアクションを追加'; diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index ebf3c99f..79f9b5a6 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -2492,6 +2492,20 @@ class AppLocalizationsKo extends AppLocalizations { @override String get chat_resend => '다시 보내기'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => '댓글 추가'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 84d423dc..2228b6c1 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -2597,6 +2597,20 @@ class AppLocalizationsNl extends AppLocalizations { @override String get chat_resend => 'Opnieuw verzenden'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Reactie toevoegen'; diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 0c24139c..f9f727d6 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -2638,6 +2638,20 @@ class AppLocalizationsPl extends AppLocalizations { @override String get chat_resend => 'Wyślij ponownie'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Dodaj Reakcję'; diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index e0e1b7b0..cf56aab0 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -2607,6 +2607,20 @@ class AppLocalizationsPt extends AppLocalizations { @override String get chat_resend => 'Reenviar'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Adicionar Reação'; diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index 0fe4cebb..ae756176 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -2618,6 +2618,20 @@ class AppLocalizationsRu extends AppLocalizations { @override String get chat_resend => 'Отправить снова'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Добавить реакцию'; diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 94b88ee8..7a2f5ffe 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -2610,6 +2610,20 @@ class AppLocalizationsSk extends AppLocalizations { @override String get chat_resend => 'Odoslať znova'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Pridať Reakciu'; diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index 4a656e3e..27bdc68d 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -2611,6 +2611,20 @@ class AppLocalizationsSl extends AppLocalizations { @override String get chat_resend => 'Pošlji znova'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Dodaj reakcijo'; diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index b5982c31..5b756a5f 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -2585,6 +2585,20 @@ class AppLocalizationsSv extends AppLocalizations { @override String get chat_resend => 'Skicka igen'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Lägg till reaktion'; diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index 624c5c27..9c7179a6 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -2615,6 +2615,20 @@ class AppLocalizationsUk extends AppLocalizations { @override String get chat_resend => 'Надіслати знову'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => 'Додати реакцію'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index da104381..9f192abc 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -2457,6 +2457,20 @@ class AppLocalizationsZh extends AppLocalizations { @override String get chat_resend => '重新发送'; + @override + String get chat_resendSelectedTitle => 'Resend messages?'; + + @override + String chat_resendSelectedConfirm(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'Resend $count selected outgoing messages to this contact?', + one: 'Resend 1 selected outgoing message to this contact?', + ); + return '$_temp0'; + } + @override String get chat_addReaction => '添加表情'; diff --git a/lib/screens/channel_chat_screen.dart b/lib/screens/channel_chat_screen.dart index 8b5d26de..cbc1ec57 100644 --- a/lib/screens/channel_chat_screen.dart +++ b/lib/screens/channel_chat_screen.dart @@ -985,6 +985,7 @@ class _ChannelChatScreenState extends State return Stack( children: [ ChatZoomWrapper( + enabled: !_selecting, child: ListView.builder( reverse: true, // List grows from bottom up controller: _scrollController, @@ -1010,14 +1011,19 @@ class _ChannelChatScreenState extends State ); } final row = layout.rowAt(index, messages); - final GlobalKey messageKey; + // Duplicate-id rows use a stable value key + // (not a fresh GlobalKey) so toggling one + // row does not remount every visible row. + final Key messageKey; if (layout.keyedIndices.contains(index)) { messageKey = _messageKeys.putIfAbsent( row.id, GlobalKey.new, ); } else { - messageKey = GlobalKey(); + messageKey = ValueKey( + '${row.id}#dup$index', + ); } final dividerId = _unreadDividerMessageId; final isUnreadAnchor = diff --git a/lib/screens/chat_screen.dart b/lib/screens/chat_screen.dart index e8d3eba2..f80e1716 100644 --- a/lib/screens/chat_screen.dart +++ b/lib/screens/chat_screen.dart @@ -104,6 +104,8 @@ class _ChatScreenState extends State with WidgetsBindingObserver { final GlobalKey _unreadScrollKey = GlobalKey(); bool _isLoadingOlder = false; bool _showBookmarkedOnly = false; + final Set _selectedIds = {}; + bool get _selecting => _selectedIds.isNotEmpty; MeshCoreConnector? _connector; Message? _pendingUnreadScrollTarget; String? _unreadDividerMessageId; @@ -415,9 +417,14 @@ class _ChatScreenState extends State with WidgetsBindingObserver { @override Widget build(BuildContext context) { return PopScope( - canPop: !_searching, + canPop: !_searching && !_selecting, onPopInvokedWithResult: (didPop, _) { - if (!didPop && _searching) _closeSearch(); + if (didPop) return; + if (_selecting) { + _clearSelection(); + } else if (_searching) { + _closeSearch(); + } }, child: _buildScaffold(context), ); @@ -425,211 +432,224 @@ class _ChatScreenState extends State with WidgetsBindingObserver { Widget _buildScaffold(BuildContext context) { return Scaffold( - appBar: AppBar( - leading: _searching - ? IconButton( - tooltip: context.l10n.chatSearch_close, - icon: const Icon(Icons.arrow_back), - onPressed: _closeSearch, - ) - : null, - title: _searching - ? _buildSearchField() - : Consumer2( - builder: (context, pathService, connector, _) { - final contact = _resolveContact(connector); - final pathLabel = _currentPathLabel(contact); + appBar: _selecting + ? _buildSelectionAppBar(context) + : AppBar( + leading: _searching + ? IconButton( + tooltip: context.l10n.chatSearch_close, + icon: const Icon(Icons.arrow_back), + onPressed: _closeSearch, + ) + : null, + title: _searching + ? _buildSearchField() + : Consumer2( + builder: (context, pathService, connector, _) { + final contact = _resolveContact(connector); + final pathLabel = _currentPathLabel(contact); - return Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - Text( - contact.name, - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - GestureDetector( - behavior: HitTestBehavior.opaque, - onTap: () => - ContactRoutingSheet.show(context, contact: contact), - child: Padding( - padding: const EdgeInsets.symmetric(vertical: 6), - child: Builder( - builder: (context) { - // Follows the chat text size, capped so the two-line - // title still fits the app bar. - final textScale = context - .select( - (service) => service.scale, - ) - .clamp(1.0, 1.3); - return Text( - pathLabel, - overflow: TextOverflow.ellipsis, - style: TextStyle( - fontSize: 12 * textScale, - fontWeight: FontWeight.normal, - decoration: TextDecoration.underline, - decorationStyle: TextDecorationStyle.dotted, + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text( + contact.name, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: () => ContactRoutingSheet.show( + context, + contact: contact, + ), + child: Padding( + padding: const EdgeInsets.symmetric( + vertical: 6, ), - ); + child: Builder( + builder: (context) { + // Follows the chat text size, capped so the two-line + // title still fits the app bar. + final textScale = context + .select( + (service) => service.scale, + ) + .clamp(1.0, 1.3); + return Text( + pathLabel, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 12 * textScale, + fontWeight: FontWeight.normal, + decoration: TextDecoration.underline, + decorationStyle: + TextDecorationStyle.dotted, + ), + ); + }, + ), + ), + ), + ], + ); + }, + ), + centerTitle: false, + bottom: const SyncProgressAppBarBottom(), + actionsPadding: const EdgeInsetsDirectional.only(end: 4), + // While searching the field gets the whole bar; the leading arrow + // closes the search. + actions: _searching + ? null + : [ + const RadioStatsIconButton(), + IconButton( + tooltip: context.l10n.chatSearch_tooltip, + icon: const Icon(Icons.search), + onPressed: _openSearch, + ), + Consumer( + builder: (context, connector, _) { + final contact = _resolveContact(connector); + final isRoom = contact.type == advTypeRoom; + final readOnly = isRadioReadOnly(connector); + + return PopupMenuButton( + icon: const Icon(Icons.more_vert), + onSelected: (value) { + switch (value) { + case 'routing': + ContactRoutingSheet.show( + context, + contact: contact, + ); + case 'info': + _showContactInfo(context); + case 'settings': + _showContactSettings(context); + case 'showBookmarks': + setState( + () => _showBookmarkedOnly = + !_showBookmarkedOnly, + ); + case 'background': + showChatBackgroundSheet( + context, + ChatBackgroundService.contactKey(contact), + ); + case 'telemetry': + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => TelemetryScreen( + contact: widget.contact, + ), + ), + ); + case 'roomManagement': + _showRoomManagementLogin(contact); + case 'clearChat': + _confirmClearChat(context, connector); + case 'removeContact': + confirmRemoveContact( + context, + connector, + contact, + onRemoved: () { + if (mounted) Navigator.of(context).pop(); + }, + ); + } }, - ), - ), + itemBuilder: (context) => [ + PopupMenuItem( + value: 'routing', + child: MeshMenuItemRow( + icon: Icons.route, + label: context.l10n.routing_title, + ), + ), + PopupMenuItem( + value: 'info', + child: MeshMenuItemRow( + icon: Icons.info_outline, + label: context.l10n.contact_info, + ), + ), + PopupMenuItem( + value: 'telemetry', + enabled: !readOnly, + child: MeshMenuItemRow( + icon: Icons.bar_chart, + label: context.l10n.contact_telemetry, + ), + ), + if (isRoom) + PopupMenuItem( + value: 'roomManagement', + enabled: !readOnly, + child: MeshMenuItemRow( + icon: Icons.room_preferences, + label: context.l10n.room_management, + ), + ), + PopupMenuItem( + value: 'settings', + child: MeshMenuItemRow( + icon: Icons.settings, + label: context.l10n.contact_settings, + ), + ), + PopupMenuItem( + value: 'showBookmarks', + child: MeshMenuItemRow( + icon: _showBookmarkedOnly + ? Icons.bookmark + : Icons.bookmark_border, + label: context.l10n.chat_showBookmarks, + color: _showBookmarkedOnly + ? const Color(0xFFFFE54A) + : null, + ), + ), + PopupMenuItem( + value: 'background', + child: MeshMenuItemRow( + icon: Icons.wallpaper, + label: context.l10n.chatBackground_title, + ), + ), + PopupMenuItem( + value: 'clearChat', + enabled: !readOnly, + child: MeshMenuItemRow( + icon: Icons.delete, + label: context.l10n.contact_clearChat, + color: readOnly + ? null + : Theme.of(context).colorScheme.error, + ), + ), + PopupMenuItem( + value: 'removeContact', + enabled: !readOnly, + child: MeshMenuItemRow( + icon: Icons.person_remove, + label: + context.l10n.contacts_removeFromContacts, + color: readOnly + ? null + : Theme.of(context).colorScheme.error, + ), + ), + ], + ); + }, ), ], - ); - }, - ), - centerTitle: false, - bottom: const SyncProgressAppBarBottom(), - actionsPadding: const EdgeInsetsDirectional.only(end: 4), - // While searching the field gets the whole bar; the leading arrow - // closes the search. - actions: _searching - ? null - : [ - const RadioStatsIconButton(), - IconButton( - tooltip: context.l10n.chatSearch_tooltip, - icon: const Icon(Icons.search), - onPressed: _openSearch, - ), - Consumer( - builder: (context, connector, _) { - final contact = _resolveContact(connector); - final isRoom = contact.type == advTypeRoom; - final readOnly = isRadioReadOnly(connector); - - return PopupMenuButton( - icon: const Icon(Icons.more_vert), - onSelected: (value) { - switch (value) { - case 'routing': - ContactRoutingSheet.show(context, contact: contact); - case 'info': - _showContactInfo(context); - case 'settings': - _showContactSettings(context); - case 'showBookmarks': - setState( - () => _showBookmarkedOnly = !_showBookmarkedOnly, - ); - case 'background': - showChatBackgroundSheet( - context, - ChatBackgroundService.contactKey(contact), - ); - case 'telemetry': - Navigator.push( - context, - MaterialPageRoute( - builder: (context) => - TelemetryScreen(contact: widget.contact), - ), - ); - case 'roomManagement': - _showRoomManagementLogin(contact); - case 'clearChat': - _confirmClearChat(context, connector); - case 'removeContact': - confirmRemoveContact( - context, - connector, - contact, - onRemoved: () { - if (mounted) Navigator.of(context).pop(); - }, - ); - } - }, - itemBuilder: (context) => [ - PopupMenuItem( - value: 'routing', - child: MeshMenuItemRow( - icon: Icons.route, - label: context.l10n.routing_title, - ), - ), - PopupMenuItem( - value: 'info', - child: MeshMenuItemRow( - icon: Icons.info_outline, - label: context.l10n.contact_info, - ), - ), - PopupMenuItem( - value: 'telemetry', - enabled: !readOnly, - child: MeshMenuItemRow( - icon: Icons.bar_chart, - label: context.l10n.contact_telemetry, - ), - ), - if (isRoom) - PopupMenuItem( - value: 'roomManagement', - enabled: !readOnly, - child: MeshMenuItemRow( - icon: Icons.room_preferences, - label: context.l10n.room_management, - ), - ), - PopupMenuItem( - value: 'settings', - child: MeshMenuItemRow( - icon: Icons.settings, - label: context.l10n.contact_settings, - ), - ), - PopupMenuItem( - value: 'showBookmarks', - child: MeshMenuItemRow( - icon: _showBookmarkedOnly - ? Icons.bookmark - : Icons.bookmark_border, - label: context.l10n.chat_showBookmarks, - color: _showBookmarkedOnly - ? const Color(0xFFFFE54A) - : null, - ), - ), - PopupMenuItem( - value: 'background', - child: MeshMenuItemRow( - icon: Icons.wallpaper, - label: context.l10n.chatBackground_title, - ), - ), - PopupMenuItem( - value: 'clearChat', - enabled: !readOnly, - child: MeshMenuItemRow( - icon: Icons.delete, - label: context.l10n.contact_clearChat, - color: readOnly - ? null - : Theme.of(context).colorScheme.error, - ), - ), - PopupMenuItem( - value: 'removeContact', - enabled: !readOnly, - child: MeshMenuItemRow( - icon: Icons.person_remove, - label: context.l10n.contacts_removeFromContacts, - color: readOnly - ? null - : Theme.of(context).colorScheme.error, - ), - ), - ], - ); - }, - ), - ], - ), + ), body: _showSearchResults ? _buildSearchResults(_loadSearchEntries) : Consumer( @@ -759,6 +779,7 @@ class _ChatScreenState extends State with WidgetsBindingObserver { }); return ChatZoomWrapper( + enabled: !_selecting, child: AnchoredChatListView.builder( scrollAnchor: _scrollAnchor, reverse: true, // List grows from bottom up @@ -840,7 +861,7 @@ class _ChatScreenState extends State with WidgetsBindingObserver { message.receivedAt, ); final highlighted = message.messageId == _highlightedMessageId; - final shown = highlighted + final styled = highlighted ? AnimatedContainer( duration: const Duration(milliseconds: 300), decoration: BoxDecoration( @@ -852,6 +873,9 @@ class _ChatScreenState extends State with WidgetsBindingObserver { child: bubble, ) : bubble; + final shown = _selecting + ? _buildSelectableRow(message, styled) + : styled; final child = isUnreadAnchor || startsDay ? Column( mainAxisSize: MainAxisSize.min, @@ -1428,6 +1452,14 @@ class _ChatScreenState extends State with WidgetsBindingObserver { _showEmojiPicker(message, contact); }, ), + ListTile( + leading: const Icon(Icons.checklist), + title: Text(context.l10n.chat_selectMessages), + onTap: () { + Navigator.pop(sheetContext); + _toggleSelected(message); + }, + ), ListTile( leading: const Icon(Icons.route), title: Text(context.l10n.chat_path), @@ -1555,6 +1587,183 @@ class _ChatScreenState extends State with WidgetsBindingObserver { ); } + // ---- bulk selection ------------------------------------------------------- + + void _toggleSelected(Message message) { + HapticFeedback.selectionClick(); + setState(() { + if (!_selectedIds.remove(message.messageId)) { + _selectedIds.add(message.messageId); + } + }); + } + + void _clearSelection() => setState(_selectedIds.clear); + + /// Selected messages still in the transcript, oldest first. + List _selectedMessages() { + final messages = context.read().getMessages( + widget.contact, + ); + return [ + for (final m in messages) + if (_selectedIds.contains(m.messageId)) m, + ]; + } + + Widget _buildSelectableRow(Message message, Widget messageBody) { + final scheme = Theme.of(context).colorScheme; + final selected = _selectedIds.contains(message.messageId); + return Semantics( + selected: selected, + button: true, + child: Material( + color: selected + ? scheme.primary.withValues(alpha: 0.16) + : Colors.transparent, + child: InkWell( + onTap: () => _toggleSelected(message), + onLongPress: () => _toggleSelected(message), + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 3, horizontal: 8), + child: Row( + children: [ + Icon( + selected ? Icons.check_circle : Icons.radio_button_unchecked, + size: 28, + color: selected ? scheme.primary : scheme.onSurfaceVariant, + ), + const SizedBox(width: 8), + // Links, images and reactions inside the bubble must not + // react while picking messages. + Expanded(child: AbsorbPointer(child: messageBody)), + ], + ), + ), + ), + ), + ); + } + + PreferredSizeWidget _buildSelectionAppBar(BuildContext context) { + final l10n = context.l10n; + final selected = _selectedMessages(); + final readOnly = context.radioReadOnly; + final canResend = + !readOnly && selected.any((m) => m.isOutgoing && !m.isCli); + return AppBar( + leading: IconButton( + tooltip: l10n.chat_clearSelection, + icon: const Icon(Icons.close), + onPressed: _clearSelection, + ), + title: Text(l10n.chat_selectedCount(selected.length)), + actions: [ + if (canResend) + IconButton( + tooltip: l10n.chat_resend, + icon: const Icon(Icons.replay), + onPressed: () => _bulkResend(selected), + ), + IconButton( + tooltip: l10n.chat_bookmark, + icon: const Icon(Icons.bookmark_border), + onPressed: selected.isEmpty ? null : () => _bulkBookmark(selected), + ), + IconButton( + tooltip: l10n.common_copy, + icon: const Icon(Icons.copy), + onPressed: selected.isEmpty ? null : () => _bulkCopy(selected), + ), + IconButton( + tooltip: l10n.common_delete, + icon: const Icon(Icons.delete_outline), + onPressed: selected.isEmpty || readOnly + ? null + : () => _bulkDelete(selected), + ), + ], + ); + } + + void _bulkCopy(List messages) { + final text = messages.map((m) => m.text).join('\n'); + setState(_selectedIds.clear); + copyChatMessageText(context, text); + } + + void _bulkBookmark(List messages) { + final connector = context.read(); + final contact = _resolveContact(connector); + final me = connector.selfName ?? context.l10n.chat_me; + setState(_selectedIds.clear); + for (final m in messages) { + unawaited( + connector.setBookmarkedMessage( + BookmarkedMessage.fromContact( + message: m, + contactKey: widget.contact.publicKeyHex, + contactName: widget.contact.name, + senderName: m.isOutgoing ? me : contact.name, + ), + isBookmarked: true, + ), + ); + } + } + + Future _bulkDelete(List messages) async { + if (!ensureRadioConnected(context)) return; + final connector = context.read(); + final confirmed = await confirmBulkDelete(context, messages.length); + if (!confirmed || !mounted) return; + setState(_selectedIds.clear); + for (final m in messages) { + await connector.deleteMessage(m); + } + if (!mounted) return; + showDismissibleSnackBar( + context, + content: Text(context.l10n.chat_messagesDeleted(messages.length)), + ); + } + + Future _bulkResend(List messages) async { + if (!ensureRadioConnected(context)) return; + final connector = context.read(); + final outgoing = [ + for (final m in messages) + if (m.isOutgoing && !m.isCli) m, + ]; + final confirmed = await showDialog( + context: context, + builder: (dialogContext) { + final l10n = dialogContext.l10n; + return AlertDialog( + title: Text(l10n.chat_resendSelectedTitle), + content: Text(l10n.chat_resendSelectedConfirm(outgoing.length)), + actions: [ + TextButton( + onPressed: () => Navigator.pop(dialogContext, false), + child: Text(l10n.common_cancel), + ), + FilledButton( + onPressed: () => Navigator.pop(dialogContext, true), + child: Text(l10n.chat_resend), + ), + ], + ); + }, + ); + if (confirmed != true || !mounted) return; + final contact = _resolveContact(connector); + setState(_selectedIds.clear); + // Oldest first so the resent messages keep their order. + for (final m in outgoing) { + await connector.resendMessage(contact, m); + } + } + Future _deleteMessage(Message message) async { if (!ensureRadioConnected(context)) return; await context.read().deleteMessage(message); diff --git a/lib/widgets/chat_zoom_wrapper.dart b/lib/widgets/chat_zoom_wrapper.dart index f0c6815e..30ebb27e 100644 --- a/lib/widgets/chat_zoom_wrapper.dart +++ b/lib/widgets/chat_zoom_wrapper.dart @@ -4,14 +4,27 @@ import 'package:provider/provider.dart'; import '../services/chat_text_scale_service.dart'; /// Gesture wrapper that exposes two-finger pinch-to-zoom for chat scrollables. -/// Double-tap resets the scale. Only the wrapper itself listens to gestures; -/// child scrollables keep their normal touch handling. +/// Double-tap resets the scale, but only while the text is zoomed (or the +/// caller supplies [onDoubleTap]) and [enabled] is true: a double-tap +/// recognizer in the gesture arena makes every single tap on the child wait +/// 300 ms, so it is left out wherever taps must be instant. Only the wrapper +/// itself listens to gestures; child scrollables keep their normal touch +/// handling. class ChatZoomWrapper extends StatefulWidget { - const ChatZoomWrapper({super.key, required this.child, this.onDoubleTap}); + const ChatZoomWrapper({ + super.key, + required this.child, + this.onDoubleTap, + this.enabled = true, + }); final Widget child; final VoidCallback? onDoubleTap; + /// When false (e.g. while selecting messages) no double-tap is recognized, + /// so taps on the child are never delayed or swallowed. + final bool enabled; + @override State createState() => _ChatZoomWrapperState(); } @@ -22,14 +35,21 @@ class _ChatZoomWrapperState extends State { @override Widget build(BuildContext context) { final service = context.read(); + final zoomed = context.select( + (s) => s.scale != 1.0, + ); + final allowDoubleTap = + widget.enabled && (zoomed || widget.onDoubleTap != null); return GestureDetector( behavior: HitTestBehavior.translucent, - onDoubleTap: () { - service.reset(); - service.persist(); - widget.onDoubleTap?.call(); - }, + onDoubleTap: allowDoubleTap + ? () { + service.reset(); + service.persist(); + widget.onDoubleTap?.call(); + } + : null, onScaleStart: (details) { if (details.pointerCount != 2) return; _startScale = service.scale; diff --git a/test/screens/bulk_message_selection_test.dart b/test/screens/bulk_message_selection_test.dart new file mode 100644 index 00000000..40671d7e --- /dev/null +++ b/test/screens/bulk_message_selection_test.dart @@ -0,0 +1,569 @@ +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:provider/provider.dart'; +import 'package:provider/single_child_widget.dart'; +import 'package:shared_preferences/shared_preferences.dart'; + +import 'package:meshcore_open/connector/meshcore_connector.dart'; +import 'package:meshcore_open/connector/meshcore_protocol.dart'; +import 'package:meshcore_open/l10n/app_localizations.dart'; +import 'package:meshcore_open/models/contact.dart'; +import 'package:meshcore_open/review_mode/review_frames.dart'; +import 'package:meshcore_open/review_mode/review_radio.dart'; +import 'package:meshcore_open/screens/channel_chat_screen.dart'; +import 'package:meshcore_open/screens/chat_screen.dart'; +import 'package:meshcore_open/services/app_debug_log_service.dart'; +import 'package:meshcore_open/services/app_settings_service.dart'; +import 'package:meshcore_open/services/ble_debug_log_service.dart'; +import 'package:meshcore_open/services/chat_text_scale_service.dart'; +import 'package:meshcore_open/services/image_codec_service.dart'; +import 'package:meshcore_open/services/map_tile_cache_service.dart'; +import 'package:meshcore_open/services/message_retry_service.dart'; +import 'package:meshcore_open/services/path_history_service.dart'; +import 'package:meshcore_open/services/received_image_store.dart'; +import 'package:meshcore_open/services/storage_service.dart'; +import 'package:meshcore_open/services/timeout_prediction_service.dart'; +import 'package:meshcore_open/services/translation_service.dart'; +import 'package:meshcore_open/services/ui_view_state_service.dart'; +import 'package:meshcore_open/storage/prefs_manager.dart'; +import 'package:meshcore_open/theme/mesh_theme.dart'; + +/// Multi-select in channels, direct chats and rooms: taps must register +/// within 250 ms (no double-tap recognizer may hold them back), and direct +/// and room chats offer the same bulk actions as channels. +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + final tempDir = Directory.systemTemp.createTempSync('bulk_selection_test'); + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler( + const MethodChannel('plugins.flutter.io/path_provider'), + (call) async => tempDir.path, + ); + + setUpAll(() async { + SharedPreferences.setMockInitialValues({}); + PrefsManager.reset(); + await PrefsManager.initialize(); + }); + + setUp(() { + clipboard = null; + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler(SystemChannels.platform, (call) async { + if (call.method == 'Clipboard.setData') { + clipboard = (call.arguments as Map)['text'] as String?; + } + return null; + }); + }); + + testWidgets('direct and room chats: bulk bookmark saves every selected ' + 'message', (tester) async { + // One test for both: a bookmark write started in fake time only finishes + // inside that test, and the next write queues behind it. + for (final room in [false, true]) { + final p = room ? 'room' : 'dm'; + _view(tester, const Size(400, 800)); + await _pumpChat(tester, room: room); + await _enterChatSelection(tester, '$p 8'); + await tester.tap( + find.textContaining('$p 9', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + await tester.tap(find.byTooltip('Bookmark')); + await _settle(tester); + // Bookmarks are stored per radio in the preferences; the writes + // started in fake time need real time to finish. + final prefs = PrefsManager.instance; + String stored() => [ + for (final key in prefs.getKeys()) + if (key.startsWith('message_bookmarks_')) prefs.getString(key) ?? '', + ].join(); + for (var i = 0; i < 200 && !stored().contains('$p 9'); i++) { + await tester.runAsync( + () => Future.delayed(const Duration(milliseconds: 50)), + ); + await tester.pump(const Duration(milliseconds: 50)); + } + final saved = stored(); + expect(saved, contains('"text":"$p 8"')); + expect(saved, contains('"text":"$p 9"')); + expect(saved, isNot(contains('"text":"$p 7"'))); + expect(find.textContaining('selected'), findsNothing); + await tester.pumpWidget(const SizedBox()); + } + await _tearDown(tester); + }); + + group('instant selection taps', () { + testWidgets('channel: a tap selects within 250 ms and two taps 100 ms ' + 'apart both select', (tester) async { + _view(tester, const Size(400, 800)); + await _pumpChannel(tester); + await _enterChannelSelection(tester); + expect(find.text('1 selected'), findsOneWidget); + + await tester.tap( + find.textContaining('History 38', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 100)); + await tester.tap( + find.textContaining('History 37', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.text('3 selected'), findsOneWidget); + expect(find.byIcon(Icons.check_circle), findsNWidgets(3)); + + // A lone tap needs no extra time either. + await tester.tap( + find.textContaining('History 36', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.byIcon(Icons.check_circle), findsNWidgets(4)); + await _tearDown(tester); + }); + + testWidgets('channel: a single frame after the tap already shows it', ( + tester, + ) async { + _view(tester, const Size(400, 800)); + await _pumpChannel(tester); + await _enterChannelSelection(tester); + await tester.tap( + find.textContaining('History 38', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(); + expect(find.byIcon(Icons.check_circle), findsNWidgets(2)); + await _tearDown(tester); + }); + + testWidgets('direct chat: taps select within 250 ms', (tester) async { + _view(tester, const Size(400, 800)); + final dm = await _pumpChat(tester, room: false); + await _enterChatSelection(tester, 'dm 9'); + await tester.tap( + find.textContaining('dm 8', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 100)); + await tester.tap( + find.textContaining('dm 7', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.text('3 selected'), findsOneWidget); + expect(find.byIcon(Icons.check_circle), findsNWidgets(3)); + expect(dm.$1.getMessages(dm.$2), isNotEmpty); + await _tearDown(tester); + }); + + testWidgets('room chat: taps select within 250 ms', (tester) async { + _view(tester, const Size(400, 800)); + await _pumpChat(tester, room: true); + await _enterChatSelection(tester, 'room 9'); + await tester.tap( + find.textContaining('room 8', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 100)); + await tester.tap( + find.textContaining('room 7', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.text('3 selected'), findsOneWidget); + await _tearDown(tester); + }); + + testWidgets('long press on a row toggles it while selecting', ( + tester, + ) async { + _view(tester, const Size(400, 800)); + await _pumpChat(tester, room: false); + await _enterChatSelection(tester, 'dm 9'); + await tester.longPress( + find.textContaining('dm 8', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.text('2 selected'), findsOneWidget); + await tester.longPress( + find.textContaining('dm 8', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.text('1 selected'), findsOneWidget); + await _tearDown(tester); + }); + }); + + for (final room in [false, true]) { + final name = room ? 'room chat' : 'direct chat'; + final p = room ? 'room' : 'dm'; + + group('$name bulk actions', () { + testWidgets('back clears the selection instead of leaving', ( + tester, + ) async { + _view(tester, const Size(400, 800)); + await _pumpChat(tester, room: room); + await _enterChatSelection(tester, '$p 9'); + await tester.tap( + find.textContaining('$p 8', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.text('2 selected'), findsOneWidget); + + await tester.binding.handlePopRoute(); + await tester.pump(const Duration(milliseconds: 250)); + expect(find.textContaining('selected'), findsNothing); + expect(find.byType(ChatScreen), findsOneWidget); + await _tearDown(tester); + }); + + testWidgets('copy puts the selected messages oldest first', ( + tester, + ) async { + _view(tester, const Size(400, 800)); + await _pumpChat(tester, room: room); + await _enterChatSelection(tester, '$p 8'); + await tester.tap( + find.textContaining('$p 5', findRichText: true), + warnIfMissed: false, + ); + await tester.tap( + find.textContaining('$p 9', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + await tester.tap(find.byTooltip('Copy')); + await tester.pump(const Duration(milliseconds: 250)); + expect(clipboard, '$p 5\n$p 8\n$p 9'); + expect(find.textContaining('selected'), findsNothing); + await _tearDown(tester); + }); + + testWidgets('delete asks first, then removes the selected messages', ( + tester, + ) async { + _view(tester, const Size(400, 800)); + final (connector, contact) = await _pumpChat(tester, room: room); + await _enterChatSelection(tester, '$p 8'); + await tester.tap( + find.textContaining('$p 9', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + await tester.tap(find.byTooltip('Delete')); + await tester.pump(const Duration(milliseconds: 250)); + expect( + find.text('Delete 2 messages from this device?'), + findsOneWidget, + ); + await tester.tap(find.text('Delete')); + await tester.runAsync( + () => Future.delayed(const Duration(milliseconds: 100)), + ); + await tester.pump(const Duration(milliseconds: 250)); + final texts = connector.getMessages(contact).map((m) => m.text); + expect(texts, isNot(contains('$p 8'))); + expect(texts, isNot(contains('$p 9'))); + expect(texts, contains('$p 7')); + await _tearDown(tester); + }); + + testWidgets('resend confirms, cancel does nothing, confirm resends', ( + tester, + ) async { + _view(tester, const Size(400, 800)); + final (connector, contact) = await _pumpChat( + tester, + room: room, + outgoing: true, + ); + List ids() => [ + for (final m in connector.getMessages(contact)) + if (m.isOutgoing) m.messageId, + ]; + final before = ids(); + expect(before, hasLength(2)); + + await _enterChatSelection(tester, '$p out 1'); + await tester.tap( + find.textContaining('$p out 2', findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + await tester.tap(find.byTooltip('Resend')); + await tester.pump(const Duration(milliseconds: 250)); + expect( + find.text('Resend 2 selected outgoing messages to this contact?'), + findsOneWidget, + ); + + await tester.tap(find.text('Cancel')); + await tester.pump(const Duration(milliseconds: 250)); + expect(ids(), before); + expect(find.text('2 selected'), findsOneWidget); + + await tester.tap(find.byTooltip('Resend')); + await tester.pump(const Duration(milliseconds: 250)); + await tester.tap(find.widgetWithText(FilledButton, 'Resend')); + await tester.runAsync( + () => Future.delayed(const Duration(milliseconds: 300)), + ); + await tester.pump(const Duration(milliseconds: 250)); + final after = ids(); + expect(after, hasLength(2)); + expect(after, isNot(before)); + expect(find.textContaining('selected'), findsNothing); + await _tearDown(tester); + }); + }); + } + + group('no overflow at 320 dp', () { + for (final scale in [1.3, 2.0]) { + testWidgets('channel selection bar at ${scale}x text', (tester) async { + _view(tester, const Size(320, 700)); + await _pumpChannel(tester, textScale: scale); + await _enterChannelSelection(tester); + await tester.tap(find.byIcon(Icons.radio_button_unchecked).first); + await tester.pump(const Duration(milliseconds: 250)); + expect(tester.takeException(), isNull); + await _tearDown(tester); + }); + + testWidgets('direct chat selection bar at ${scale}x text', ( + tester, + ) async { + _view(tester, const Size(320, 700)); + await _pumpChat(tester, room: false, outgoing: true, textScale: scale); + await _enterChatSelection(tester, 'dm out 2'); + expect(find.byTooltip('Resend'), findsOneWidget); + expect(find.byTooltip('Delete'), findsOneWidget); + expect(tester.takeException(), isNull); + await _tearDown(tester); + }); + } + }); +} + +String? clipboard; + +void _view(WidgetTester tester, Size size) { + tester.view.physicalSize = size; + tester.view.devicePixelRatio = 1.0; + addTearDown(tester.view.reset); +} + +Future _settle(WidgetTester tester) async { + for (var i = 0; i < 10; i++) { + await tester.pump(const Duration(milliseconds: 100)); + } +} + +Future _tearDown(WidgetTester tester) async { + await tester.pumpWidget(const SizedBox()); + // Let writes started during the test finish, so they cannot stall the + // next test's preferences writes. + for (var i = 0; i < 20; i++) { + await tester.runAsync( + () => Future.delayed(const Duration(milliseconds: 25)), + ); + await tester.pump(const Duration(milliseconds: 25)); + } + await tester.pump(const Duration(minutes: 1)); +} + +/// Opens the message action sheet for the message showing [text] (by calling +/// its long-press handler: a real long press on bubble text starts text +/// selection in tests) and picks "Select messages". +Future _enterSelectionFrom(WidgetTester tester, Finder message) async { + final target = tester.getCenter(message); + final detector = find + .byWidgetPredicate((w) => w is GestureDetector && w.onLongPress != null) + .evaluate() + .firstWhere((e) { + final box = e.renderObject! as RenderBox; + // Full-width detectors: match on the message's row, not its text. + return (box.localToGlobal(box.size.center(Offset.zero)).dy - target.dy) + .abs() < + 20; + }); + (detector.widget as GestureDetector).onLongPress!(); + await _settle(tester); + await tester.ensureVisible(find.text('Select messages')); + await tester.pump(); + await tester.tap(find.text('Select messages')); + await _settle(tester); +} + +Future _enterChannelSelection(WidgetTester tester) => _enterSelectionFrom( + tester, + find.textContaining('History 39', findRichText: true), +); + +Future _enterChatSelection(WidgetTester tester, String text) => + _enterSelectionFrom(tester, find.textContaining(text, findRichText: true)); + +(MeshCoreConnector, List)? _shared; + +Widget _app(List providers, Widget home, double textScale) => + MultiProvider( + providers: providers, + child: MaterialApp( + theme: MeshTheme.light(), + locale: const Locale('en'), + localizationsDelegates: const [ + AppLocalizations.delegate, + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + ], + supportedLocales: AppLocalizations.supportedLocales, + builder: (context, child) => MediaQuery( + data: MediaQuery.of( + context, + ).copyWith(textScaler: TextScaler.linear(textScale)), + child: child!, + ), + home: home, + ), + ); + +var _stamp = DateTime.now().millisecondsSinceEpoch ~/ 1000 - 100000; + +Future _pumpChannel( + WidgetTester tester, { + double textScale = 1.0, +}) async { + final (connector, providers) = _shared ??= await _connect(tester); + final channel = connector.channels[0]; + if (connector.getChannelMessages(channel).length < 40) { + for (var i = 0; i < 40; i++) { + connector.handleFrameForTest( + ReviewFrames.channelMessage( + channelIndex: channel.index, + sender: 'Alice', + message: 'History $i', + timestampSecs: _stamp + i * 60, + ), + ); + } + } + await tester.pumpWidget( + _app(providers, ChannelChatScreen(channel: channel), textScale), + ); + await _settle(tester); + return connector; +} + +/// Shows a direct chat (or the review radio's room) holding ten incoming +/// messages "dm 0".."dm 9" / "room 0".."room 9", plus two outgoing ones when +/// [outgoing]. +Future<(MeshCoreConnector, Contact)> _pumpChat( + WidgetTester tester, { + required bool room, + bool outgoing = false, + double textScale = 1.0, + bool fresh = false, +}) async { + final (connector, providers) = fresh + ? await _connect(tester) + : (_shared ??= await _connect(tester)); + final contact = connector.contacts.firstWhere( + (c) => room ? c.type == advTypeRoom : c.type == advTypeChat, + ); + final p = room ? 'room' : 'dm'; + connector.clearMessagesForContact(contact); + await tester.runAsync(() => connector.flushPendingWrites()); + for (var i = 0; i < 10; i++) { + connector.handleFrameForTest( + ReviewFrames.contactMessage( + senderPublicKey: contact.publicKey, + text: '$p $i', + timestampSecs: _stamp++, + ), + ); + } + if (outgoing) { + await tester.runAsync(() async { + await connector.sendMessage(contact, '$p out 1'); + await connector.sendMessage(contact, '$p out 2'); + }); + } + connector.markContactRead(contact.publicKeyHex); + await tester.pumpWidget( + _app(providers, ChatScreen(contact: contact), textScale), + ); + await _settle(tester); + return (connector, contact); +} + +Future<(MeshCoreConnector, List)> _connect( + WidgetTester tester, +) async { + final storage = StorageService(); + final connector = MeshCoreConnector(); + final retry = MessageRetryService(); + final settings = AppSettingsService(); + final translation = TranslationService(settings); + await tester.runAsync(() async { + await settings.loadSettings(); + connector.initialize( + retryService: retry, + pathHistoryService: PathHistoryService(storage), + appSettingsService: settings, + translationService: translation, + ); + connector.reviewRadioFactoryForTest = () => ReviewRadio( + scheduledMessageInterval: const Duration(hours: 1), + ackDelay: const Duration(hours: 1), + replyDelay: const Duration(hours: 1), + ); + await connector.connectReview(); + final end = DateTime.now().add(const Duration(seconds: 8)); + while ((!connector.contacts.any((c) => c.type == advTypeRoom) || + !connector.contacts.any((c) => c.type == advTypeChat) || + connector.channels.length < 2) && + DateTime.now().isBefore(end)) { + await Future.delayed(const Duration(milliseconds: 25)); + } + await Future.delayed(const Duration(milliseconds: 500)); + }); + expect(connector.channels.length, greaterThanOrEqualTo(2)); + + return ( + connector, + [ + ChangeNotifierProvider.value(value: connector), + ChangeNotifierProvider.value(value: retry), + ChangeNotifierProvider.value(value: PathHistoryService(storage)), + ChangeNotifierProvider.value(value: settings), + ChangeNotifierProvider.value(value: BleDebugLogService()), + ChangeNotifierProvider.value(value: AppDebugLogService()), + ChangeNotifierProvider.value(value: ChatTextScaleService()), + ChangeNotifierProvider.value(value: translation), + ChangeNotifierProvider.value(value: UiViewStateService()), + Provider.value(value: storage), + ChangeNotifierProvider.value( + value: MapTileCacheService(appSettingsService: settings), + ), + ChangeNotifierProvider.value(value: TimeoutPredictionService(storage)), + ChangeNotifierProvider.value(value: ImageCodecService(settings)), + ChangeNotifierProvider.value(value: ReceivedImageStore()), + ], + ); +} From a8b57d54e9cbffe02b173ed0014b66c1795221ad Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:27:03 -0700 Subject: [PATCH 10/17] Use each room message's author when bulk-bookmarking --- lib/screens/chat_screen.dart | 27 +++++--- test/screens/bulk_message_selection_test.dart | 61 ++++++++++++++++++- 2 files changed, 77 insertions(+), 11 deletions(-) diff --git a/lib/screens/chat_screen.dart b/lib/screens/chat_screen.dart index 928c978b..7a4fc444 100644 --- a/lib/screens/chat_screen.dart +++ b/lib/screens/chat_screen.dart @@ -837,12 +837,7 @@ class _ChatScreenState extends State with WidgetsBindingObserver { if (isRoom) { // Room-server messages carry the original author's 4-byte prefix // separately from message.text; use it only for resolving the name. - roomAuthor = _resolveContactFrom4Bytes( - connector, - message.fourByteRoomContactKey.isEmpty - ? Uint8List.fromList([0, 0, 0, 0]) - : message.fourByteRoomContactKey, - ); + roomAuthor = _roomAuthorOf(connector, message); fourByteHex = message.fourByteRoomContactKey .map((b) => b.toRadixString(16).padLeft(2, '0')) .join() @@ -886,8 +881,9 @@ class _ChatScreenState extends State with WidgetsBindingObserver { ? AnimatedContainer( duration: const Duration(milliseconds: 300), decoration: BoxDecoration( - color: Theme.of(context).colorScheme.primary - .withValues(alpha: 0.18), + color: Theme.of( + context, + ).colorScheme.primary.withValues(alpha: 0.18), borderRadius: BorderRadius.circular(MeshRadii.md), ), child: bubble, @@ -1117,6 +1113,15 @@ class _ChatScreenState extends State with WidgetsBindingObserver { return connector.contacts[_resolveContactIndex]; } + /// The known author of a room-server post, or null when unknown. + Contact? _roomAuthorOf(MeshCoreConnector connector, Message message) => + _resolveContactFrom4Bytes( + connector, + message.fourByteRoomContactKey.isEmpty + ? Uint8List.fromList([0, 0, 0, 0]) + : message.fourByteRoomContactKey, + ); + Contact? _resolveContactFrom4Bytes( MeshCoreConnector connector, Uint8List key4Bytes, @@ -1715,6 +1720,7 @@ class _ChatScreenState extends State with WidgetsBindingObserver { void _bulkBookmark(List messages) { final connector = context.read(); final contact = _resolveContact(connector); + final isRoom = contact.type == advTypeRoom; final me = connector.selfName ?? context.l10n.chat_me; setState(_selectedIds.clear); for (final m in messages) { @@ -1724,7 +1730,10 @@ class _ChatScreenState extends State with WidgetsBindingObserver { message: m, contactKey: widget.contact.publicKeyHex, contactName: widget.contact.name, - senderName: m.isOutgoing ? me : contact.name, + senderName: m.isOutgoing + ? me + : (isRoom ? _roomAuthorOf(connector, m) : null)?.name ?? + contact.name, ), isBookmarked: true, ), diff --git a/test/screens/bulk_message_selection_test.dart b/test/screens/bulk_message_selection_test.dart index 40671d7e..9cd919bf 100644 --- a/test/screens/bulk_message_selection_test.dart +++ b/test/screens/bulk_message_selection_test.dart @@ -69,13 +69,38 @@ void main() { for (final room in [false, true]) { final p = room ? 'room' : 'dm'; _view(tester, const Size(400, 800)); - await _pumpChat(tester, room: room); + final (connector, chat) = await _pumpChat(tester, room: room); + // Room posts name their author by key prefix; the bookmark must carry + // that author's name, not the room server's. + final authors = connector.contacts + .where((c) => c.type == advTypeChat) + .take(2) + .toList(); + final posts = ['by author one', 'by author two']; + if (room) { + expect(authors, hasLength(2)); + for (var i = 0; i < 2; i++) { + connector.handleFrameForTest( + _roomPost(chat, authors[i], posts[i], _stamp++), + ); + } + await _settle(tester); + } await _enterChatSelection(tester, '$p 8'); await tester.tap( find.textContaining('$p 9', findRichText: true), warnIfMissed: false, ); await tester.pump(const Duration(milliseconds: 250)); + if (room) { + for (final post in posts) { + await tester.tap( + find.textContaining(post, findRichText: true), + warnIfMissed: false, + ); + await tester.pump(const Duration(milliseconds: 250)); + } + } await tester.tap(find.byTooltip('Bookmark')); await _settle(tester); // Bookmarks are stored per radio in the preferences; the writes @@ -85,7 +110,11 @@ void main() { for (final key in prefs.getKeys()) if (key.startsWith('message_bookmarks_')) prefs.getString(key) ?? '', ].join(); - for (var i = 0; i < 200 && !stored().contains('$p 9'); i++) { + for ( + var i = 0; + i < 200 && !stored().contains(room ? posts[1] : '$p 9'); + i++ + ) { await tester.runAsync( () => Future.delayed(const Duration(milliseconds: 50)), ); @@ -95,6 +124,16 @@ void main() { expect(saved, contains('"text":"$p 8"')); expect(saved, contains('"text":"$p 9"')); expect(saved, isNot(contains('"text":"$p 7"'))); + if (room) { + for (var i = 0; i < 2; i++) { + final entry = RegExp( + '\\{[^{}]*"text":"${posts[i]}"[^{}]*\\}', + ).firstMatch(saved)?.group(0); + expect(entry, isNotNull, reason: 'missing ${posts[i]}'); + expect(entry, contains('"senderName":"${authors[i].name}"')); + expect(entry, isNot(contains('"senderName":"${chat.name}"'))); + } + } expect(find.textContaining('selected'), findsNothing); await tester.pumpWidget(const SizedBox()); } @@ -360,6 +399,24 @@ void main() { }); } +/// A room-server post: a signed contact message whose 4-byte "signature" is +/// the author's public key prefix. +Uint8List _roomPost(Contact room, Contact author, String text, int stamp) { + final writer = BufferWriter(); + writer.writeByte(respCodeContactMsgRecvV3); + writer.writeByte(24); + writer.writeByte(0); + writer.writeByte(0); + writer.writeBytes(Uint8List.fromList(room.publicKey.sublist(0, 6))); + writer.writeByte(0xFF); + writer.writeByte(txtTypeSigned); + writer.writeUInt32LE(stamp); + writer.writeBytes(Uint8List.fromList(author.publicKey.sublist(0, 4))); + writer.writeString(text); + writer.writeByte(0); + return writer.toBytes(); +} + String? clipboard; void _view(WidgetTester tester, Size size) { From 40fb80cf5c9d419e4f4d7bd49d27abda250192ea Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 22:15:40 -0700 Subject: [PATCH 11/17] Size URL image previews to the image's aspect ratio The preview now fills the bubble's available width and takes its height from the loaded image, capped at 400dp for tall images. Loading and error states are a compact full-width strip, and the error text is localized. --- lib/helpers/message_url_image_helper.dart | 168 ++++++++++++--- lib/l10n/app_en.arb | 4 + lib/l10n/app_localizations.dart | 6 + lib/l10n/app_localizations_bg.dart | 3 + lib/l10n/app_localizations_cs.dart | 3 + lib/l10n/app_localizations_de.dart | 3 + lib/l10n/app_localizations_en.dart | 3 + lib/l10n/app_localizations_es.dart | 3 + lib/l10n/app_localizations_fr.dart | 3 + lib/l10n/app_localizations_hu.dart | 3 + lib/l10n/app_localizations_it.dart | 3 + lib/l10n/app_localizations_ja.dart | 3 + lib/l10n/app_localizations_ko.dart | 3 + lib/l10n/app_localizations_nl.dart | 3 + lib/l10n/app_localizations_pl.dart | 3 + lib/l10n/app_localizations_pt.dart | 3 + lib/l10n/app_localizations_ru.dart | 3 + lib/l10n/app_localizations_sk.dart | 3 + lib/l10n/app_localizations_sl.dart | 3 + lib/l10n/app_localizations_sv.dart | 3 + lib/l10n/app_localizations_uk.dart | 3 + lib/l10n/app_localizations_zh.dart | 3 + .../message_url_image_preview_test.dart | 191 ++++++++++++++++++ 23 files changed, 401 insertions(+), 25 deletions(-) create mode 100644 test/helpers/message_url_image_preview_test.dart diff --git a/lib/helpers/message_url_image_helper.dart b/lib/helpers/message_url_image_helper.dart index 74f09a67..10fc8402 100644 --- a/lib/helpers/message_url_image_helper.dart +++ b/lib/helpers/message_url_image_helper.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:cached_network_image/cached_network_image.dart'; import 'package:http/http.dart' as http; +import '../l10n/l10n.dart'; import '../models/app_settings.dart'; /// Finds and renders image URLs embedded in ordinary text messages. @@ -290,9 +291,18 @@ class _MessageUrlImageFutureBuilderState } class MessageUrlImagePreview extends StatelessWidget { - const MessageUrlImagePreview({super.key, required this.imageUrl}); + const MessageUrlImagePreview({ + super.key, + required this.imageUrl, + @visibleForTesting this.imageProvider, + }); + + static const double maxHeight = 400; + static const double fallbackWidth = 320; + static const double statusHeight = 130; final String imageUrl; + final ImageProvider? imageProvider; @override Widget build(BuildContext context) { @@ -347,31 +357,139 @@ class MessageUrlImagePreview extends StatelessWidget { ), ); }, - child: ClipRRect( - borderRadius: BorderRadius.circular(12), - child: SizedBox( - width: 240, - height: 240, - child: CachedNetworkImage( - imageUrl: imageUrl, - fit: BoxFit.contain, - placeholder: (context, url) => ColoredBox( - color: Theme.of(context).colorScheme.surfaceContainerHighest, - child: const Center( - child: CircularProgressIndicator(strokeWidth: 2), - ), - ), - errorWidget: (context, url, error) => Container( - padding: const EdgeInsets.all(12), - color: Theme.of(context).colorScheme.surfaceContainerHighest, - child: Text( - 'Unable to load image', - style: Theme.of(context).textTheme.bodySmall, - ), - ), - ), - ), + child: _AdaptiveUrlImage( + provider: imageProvider ?? CachedNetworkImageProvider(imageUrl), ), ); } } + +/// Fits an image of [imageWidth] x [imageHeight] into [maxWidth], keeping its +/// aspect ratio. Images taller than [maxHeight] are scaled down whole instead. +Size urlImagePreviewSize( + double imageWidth, + double imageHeight, + double maxWidth, { + double maxHeight = MessageUrlImagePreview.maxHeight, +}) { + var width = maxWidth; + var height = width * imageHeight / imageWidth; + if (height > maxHeight) { + height = maxHeight; + width = height * imageWidth / imageHeight; + } + return Size(width, height); +} + +class _AdaptiveUrlImage extends StatefulWidget { + const _AdaptiveUrlImage({required this.provider}); + + final ImageProvider provider; + + @override + State<_AdaptiveUrlImage> createState() => _AdaptiveUrlImageState(); +} + +class _AdaptiveUrlImageState extends State<_AdaptiveUrlImage> { + ImageStream? _stream; + late final ImageStreamListener _listener = ImageStreamListener( + (info, _) { + if (!mounted) { + info.dispose(); + return; + } + setState(() { + _info?.dispose(); + _info = info; + _failed = false; + }); + }, + onError: (_, _) { + if (mounted) setState(() => _failed = true); + }, + ); + ImageInfo? _info; + bool _failed = false; + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + _resolve(); + } + + @override + void didUpdateWidget(covariant _AdaptiveUrlImage oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.provider != widget.provider) { + _info?.dispose(); + _info = null; + _failed = false; + _resolve(); + } + } + + void _resolve() { + final stream = widget.provider.resolve( + createLocalImageConfiguration(context), + ); + if (stream.key == _stream?.key) return; + _stream?.removeListener(_listener); + _stream = stream..addListener(_listener); + } + + @override + void dispose() { + _stream?.removeListener(_listener); + _info?.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final color = Theme.of(context).colorScheme.surfaceContainerHighest; + return LayoutBuilder( + builder: (context, constraints) { + final maxWidth = constraints.maxWidth.isFinite + ? constraints.maxWidth + : MessageUrlImagePreview.fallbackWidth; + final info = _info; + final Widget child; + if (info != null) { + final size = urlImagePreviewSize( + info.image.width.toDouble(), + info.image.height.toDouble(), + maxWidth, + ); + child = SizedBox.fromSize( + size: size, + child: RawImage(image: info.image, fit: BoxFit.fill), + ); + } else if (_failed) { + child = Container( + width: maxWidth, + height: MessageUrlImagePreview.statusHeight, + padding: const EdgeInsets.all(12), + alignment: Alignment.centerLeft, + color: color, + child: Text( + context.l10n.messageUrlImageLoadFailed, + style: Theme.of(context).textTheme.bodySmall, + ), + ); + } else { + child = SizedBox( + width: maxWidth, + height: MessageUrlImagePreview.statusHeight, + child: ColoredBox( + color: color, + child: const Center( + child: CircularProgressIndicator(strokeWidth: 2), + ), + ), + ); + } + return ClipRRect(borderRadius: BorderRadius.circular(12), child: child); + }, + ); + } +} diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index b09ebcfd..7bc6fb54 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -4871,5 +4871,9 @@ "type": "String" } } + }, + "messageUrlImageLoadFailed": "Unable to load image", + "@messageUrlImageLoadFailed": { + "description": "Shown in a message bubble when a linked image fails to load" } } diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index bb10024d..1ea94c3e 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -13797,6 +13797,12 @@ abstract class AppLocalizations { /// In en, this message translates to: /// **'{name} claimed a win on time'** String chess_notifyTimeout(String name); + + /// Shown in a message bubble when a linked image fails to load + /// + /// In en, this message translates to: + /// **'Unable to load image'** + String get messageUrlImageLoadFailed; } class _AppLocalizationsDelegate diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 7448ff07..d678520b 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -8295,4 +8295,7 @@ class AppLocalizationsBg extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name поиска победа по време'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 8c3a70d8..9de1bd4f 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -8270,4 +8270,7 @@ class AppLocalizationsCs extends AppLocalizations { String chess_notifyTimeout(String name) { return 'Hráč $name uplatnil výhru na čas'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index d8064227..c6728b78 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -8311,4 +8311,7 @@ class AppLocalizationsDe extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name hat den Sieg wegen Zeit beansprucht'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 4cdedb0a..d1a9514f 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -8180,4 +8180,7 @@ class AppLocalizationsEn extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name claimed a win on time'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index ce552dfd..12ceaf3a 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -8289,4 +8289,7 @@ class AppLocalizationsEs extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name reclamó la victoria por tiempo'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index af876874..71ec691c 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -8314,4 +8314,7 @@ class AppLocalizationsFr extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name a réclamé la victoire au temps'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index 48fd595e..e033aeab 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -8278,4 +8278,7 @@ class AppLocalizationsHu extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name időtúllépés miatt nyerést követelt'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index c8a47906..7fc5e194 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -8301,4 +8301,7 @@ class AppLocalizationsIt extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name ha rivendicato la vittoria a tempo'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index 6558e72c..463c7f28 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -7931,4 +7931,7 @@ class AppLocalizationsJa extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name が時間切れによる勝ちを申請しました'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index 9d231655..d82eddf3 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -7940,4 +7940,7 @@ class AppLocalizationsKo extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name님이 시간 초과 승리를 요청했습니다'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index e7e193bf..d978ca4c 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -8254,4 +8254,7 @@ class AppLocalizationsNl extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name heeft winst op tijd geclaimd'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 752de253..c5d526de 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -8340,4 +8340,7 @@ class AppLocalizationsPl extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name zgłosił(a) wygraną na czas'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index bd086cc8..3d715bb9 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -8277,6 +8277,9 @@ class AppLocalizationsPt extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name reivindicou vitória por tempo'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } /// The translations for Portuguese, as used in Portugal (`pt_PT`). diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index b48380c9..1607351f 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -8320,4 +8320,7 @@ class AppLocalizationsRu extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name требует победу по времени'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index b47ef9fe..eead7b91 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -8279,4 +8279,7 @@ class AppLocalizationsSk extends AppLocalizations { String chess_notifyTimeout(String name) { return 'Hráč $name uplatnil výhru na čas'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index ad37f4ce..00b63566 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -8279,4 +8279,7 @@ class AppLocalizationsSl extends AppLocalizations { String chess_notifyTimeout(String name) { return 'Igralec $name je zahteval zmago na čas'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index a2b1d4fc..13d903e0 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -8228,4 +8228,7 @@ class AppLocalizationsSv extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name krävde vinst på tid'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index 5dc768e9..61bd8284 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -8334,4 +8334,7 @@ class AppLocalizationsUk extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name вимагає перемогу за часом'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index ffb4884a..bf6f5cf1 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -7770,4 +7770,7 @@ class AppLocalizationsZh extends AppLocalizations { String chess_notifyTimeout(String name) { return '$name 申请超时判胜'; } + + @override + String get messageUrlImageLoadFailed => 'Unable to load image'; } diff --git a/test/helpers/message_url_image_preview_test.dart b/test/helpers/message_url_image_preview_test.dart new file mode 100644 index 00000000..c1609d0a --- /dev/null +++ b/test/helpers/message_url_image_preview_test.dart @@ -0,0 +1,191 @@ +import 'dart:async'; +import 'dart:ui' as ui; + +import 'package:flutter/foundation.dart'; + +import 'package:flutter/material.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:meshcore_open/helpers/message_url_image_helper.dart'; +import 'package:meshcore_open/l10n/app_localizations.dart'; + +Future _solid(int w, int h) { + final c = Completer(); + ui.decodeImageFromPixels( + Uint8List(w * h * 4), + w, + h, + ui.PixelFormat.rgba8888, + c.complete, + ); + return c.future; +} + +class _FailingProvider extends ImageProvider<_FailingProvider> { + @override + Future<_FailingProvider> obtainKey(ImageConfiguration c) => + SynchronousFuture(this); + + @override + ImageStreamCompleter loadImage( + _FailingProvider key, + ImageDecoderCallback decode, + ) => OneFrameImageStreamCompleter(Future.error(Exception('nope'))); +} + +Widget _host(Widget child, {double width = 320, double scale = 1.0}) { + return MaterialApp( + localizationsDelegates: const [ + AppLocalizations.delegate, + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ], + supportedLocales: AppLocalizations.supportedLocales, + home: MediaQuery( + data: MediaQueryData( + size: Size(width, 800), + textScaler: TextScaler.linear(scale), + ), + child: Scaffold( + body: Align( + alignment: Alignment.topLeft, + // Mimics a bubble: bounded width, tight-to-content otherwise. + child: ConstrainedBox( + constraints: BoxConstraints(maxWidth: width - 40), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Align(alignment: Alignment.centerLeft, child: child), + const Text('caption text that follows the image'), + ], + ), + ), + ), + ), + ), + ); +} + +Future _previewSize(WidgetTester tester, int w, int h) async { + final image = await tester.runAsync(() => _solid(w, h)); + await tester.pumpWidget( + _host( + MessageUrlImagePreview( + imageUrl: 'https://example.com/a.png', + imageProvider: _ImageProviderOf(image!), + ), + ), + ); + await tester.pump(); + return tester.getSize(find.byType(RawImage)); +} + +class _ImageProviderOf extends ImageProvider<_ImageProviderOf> { + _ImageProviderOf(this.image); + final ui.Image image; + + @override + Future<_ImageProviderOf> obtainKey(ImageConfiguration c) => + SynchronousFuture(this); + + @override + ImageStreamCompleter loadImage( + _ImageProviderOf key, + ImageDecoderCallback decode, + ) => OneFrameImageStreamCompleter( + SynchronousFuture(ImageInfo(image: image.clone())), + ); +} + +void main() { + test('urlImagePreviewSize keeps aspect ratio and caps height', () { + expect(urlImagePreviewSize(400, 100, 280), const Size(280, 70)); + expect(urlImagePreviewSize(300, 300, 280), const Size(280, 280)); + final tall = urlImagePreviewSize(100, 1000, 280); + expect(tall.height, MessageUrlImagePreview.maxHeight); + expect(tall.width, closeTo(40, 0.001)); + }); + + testWidgets('4:1 image fills width with height width/4', (tester) async { + final size = await _previewSize(tester, 400, 100); + expect(size.width, 280); + expect(size.height, closeTo(70, 0.001)); + }); + + testWidgets('square image is 1:1 at full width', (tester) async { + final size = await _previewSize(tester, 300, 300); + expect(size, const Size(280, 280)); + }); + + testWidgets('tall image is capped and shown whole', (tester) async { + final size = await _previewSize(tester, 100, 1000); + expect(size.height, MessageUrlImagePreview.maxHeight); + expect(size.width, closeTo(40, 0.001)); + }); + + testWidgets('unbounded width falls back to 320', (tester) async { + final image = await tester.runAsync(() => _solid(640, 320)); + await tester.pumpWidget( + MaterialApp( + home: Scaffold( + body: SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: MessageUrlImagePreview( + imageUrl: 'x', + imageProvider: _ImageProviderOf(image!), + ), + ), + ), + ), + ); + await tester.pump(); + expect(tester.getSize(find.byType(RawImage)), const Size(320, 160)); + }); + + for (final scale in [1.3, 2.0]) { + testWidgets('error state is compact without overflow at ${scale}x', ( + tester, + ) async { + await tester.pumpWidget( + _host( + MessageUrlImagePreview( + imageUrl: 'x', + imageProvider: _FailingProvider(), + ), + scale: scale, + ), + ); + await tester.pump(); + await tester.pump(); + expect(find.text('Unable to load image'), findsOneWidget); + expect(tester.takeException(), isNull); + }); + } + + testWidgets('loading placeholder is compact and full width', (tester) async { + await tester.pumpWidget( + _host( + MessageUrlImagePreview(imageUrl: 'x', imageProvider: _NeverProvider()), + ), + ); + final box = find.ancestor( + of: find.byType(CircularProgressIndicator), + matching: find.byType(SizedBox), + ); + final size = tester.getSize(box.first); + expect(size.width, 280); + expect(size.height, MessageUrlImagePreview.statusHeight); + }); +} + +class _NeverProvider extends ImageProvider<_NeverProvider> { + @override + Future<_NeverProvider> obtainKey(ImageConfiguration c) => + SynchronousFuture(this); + + @override + ImageStreamCompleter loadImage( + _NeverProvider key, + ImageDecoderCallback decode, + ) => OneFrameImageStreamCompleter(Completer().future); +} From 8443c1ea0d58e84d9429e49ac7d3697f26aee0f5 Mon Sep 17 00:00:00 2001 From: celsoazevedo Date: Tue, 24 Nov 2026 02:27:22 +0000 Subject: [PATCH 12/17] Settings actions: theme colours and filled confirm buttons Reboot and Delete All Paths rows use scheme.tertiary and scheme.error instead of fixed palette colours. Their dialogs use showConfirmClearDialog, which gains confirmLabel and warning options. Co-Authored-By: Claude Opus 5.5 --- documentation/design.md | 2 +- documentation/settings.md | 2 +- lib/screens/settings_screen.dart | 80 +++++++++------------------ lib/widgets/confirm_clear_dialog.dart | 44 ++++++++------- test/screens/settings_pages_test.dart | 49 ++++++++++++++++ 5 files changed, 103 insertions(+), 74 deletions(-) diff --git a/documentation/design.md b/documentation/design.md index 55c87d27..27726077 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -156,7 +156,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act - `FilledButton.tonal`: a secondary action that still needs weight (rare). - `OutlinedButton(.icon)`: secondary actions next to a filled one. - `TextButton`: Cancel and low-emphasis actions in dialogs; inline actions in cards. -- Destructive confirm: `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError` (`showConfirmClearDialog` in `widgets/confirm_clear_dialog.dart`), or a `TextButton` with `foregroundColor: scheme.error` when it is not the primary action. +- Destructive confirm: `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError` (`showConfirmClearDialog` in `widgets/confirm_clear_dialog.dart`), or a `TextButton` with `foregroundColor: scheme.error` when it is not the primary action. Use `showConfirmClearDialog(confirmLabel:)` for any confirm dialog; `warning: true` makes the button `scheme.tertiary` for disruptive, non-destructive actions (Reboot in Settings). - Dialog action order: Cancel first, primary last. - Avoid `ElevatedButton` in new code. diff --git a/documentation/settings.md b/documentation/settings.md index 0bb7a47c..bdd2e323 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -210,7 +210,7 @@ One-tap device operations: | Sync Time | Sends current Unix timestamp to the device | | Refresh Contacts | Re-requests the full contact list | | Reboot Device | Confirmation dialog → reboots the device (shown in warning color) | -| Delete All Paths | Confirmation dialog → clears all stored routing paths (shown in alert color) | +| Delete All Paths | Confirmation dialog → clears all stored routing paths (shown in error color) | --- diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index fb4bd1f4..f5c54c4c 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -7,6 +7,7 @@ import '../connector/meshcore_protocol.dart'; import '../l10n/l10n.dart'; import '../theme/mesh_theme.dart'; import '../helpers/snack_bar_builder.dart'; +import '../widgets/confirm_clear_dialog.dart'; import '../widgets/mesh_nav_tile.dart'; import '../widgets/adaptive_app_bar_title.dart'; import '../widgets/mesh_ui.dart'; @@ -621,6 +622,7 @@ class _SettingsScreenState extends State { MeshCoreConnector connector, ) { final l10n = context.l10n; + final scheme = Theme.of(context).colorScheme; final connected = connector.isConnected; final offline = l10n.settings_requiresConnection; return Column( @@ -643,8 +645,8 @@ class _SettingsScreenState extends State { icon: Icons.restart_alt, title: l10n.settings_rebootDevice, subtitle: connected ? l10n.settings_rebootDeviceSubtitle : offline, - titleColor: MeshPalette.warn, - iconColor: MeshPalette.warn, + titleColor: scheme.tertiary, + iconColor: scheme.tertiary, onTap: connected ? () => _confirmReboot(context, connector) : null, ), const Divider(height: 1, indent: 16), @@ -652,8 +654,8 @@ class _SettingsScreenState extends State { icon: Icons.delete_outline, title: l10n.settings_deleteAllPaths, subtitle: l10n.settings_deleteAllPathsSubtitle, - titleColor: MeshPalette.alert, - iconColor: MeshPalette.alert, + titleColor: scheme.error, + iconColor: scheme.error, onTap: () => _confirmDeleteAllPaths(context, connector), ), ], @@ -717,62 +719,34 @@ class _SettingsScreenState extends State { } } - void _confirmDeleteAllPaths( + Future _confirmDeleteAllPaths( BuildContext context, MeshCoreConnector connector, - ) { + ) async { final l10n = context.l10n; - showDialog( - context: context, - builder: (context) => AlertDialog( - title: Text(l10n.settings_deleteAllPaths), - content: Text(l10n.settings_deleteAllPathsSubtitle), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), - ), - TextButton( - onPressed: () { - Navigator.pop(context); - connector.deleteAllPaths(); - }, - child: Text( - l10n.common_deleteAll, - style: TextStyle(color: Theme.of(context).colorScheme.error), - ), - ), - ], - ), + final confirmed = await showConfirmClearDialog( + context, + title: l10n.settings_deleteAllPaths, + message: l10n.settings_deleteAllPathsSubtitle, + confirmLabel: l10n.common_deleteAll, ); + if (confirmed) connector.deleteAllPaths(); } - void _confirmReboot(BuildContext context, MeshCoreConnector connector) { + Future _confirmReboot( + BuildContext context, + MeshCoreConnector connector, + ) async { final l10n = context.l10n; - final screenContext = context; - showDialog( - context: context, - builder: (context) => AlertDialog( - title: Text(l10n.settings_rebootDevice), - content: Text(l10n.settings_rebootDeviceConfirm), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), - ), - TextButton( - onPressed: () { - Navigator.pop(context); - if (!_ensureConnected(screenContext, connector)) return; - connector.rebootDevice(); - }, - child: Text( - l10n.common_reboot, - style: TextStyle(color: Theme.of(context).colorScheme.tertiary), - ), - ), - ], - ), + final confirmed = await showConfirmClearDialog( + context, + title: l10n.settings_rebootDevice, + message: l10n.settings_rebootDeviceConfirm, + confirmLabel: l10n.common_reboot, + warning: true, ); + if (!confirmed || !context.mounted) return; + if (!_ensureConnected(context, connector)) return; + connector.rebootDevice(); } } diff --git a/lib/widgets/confirm_clear_dialog.dart b/lib/widgets/confirm_clear_dialog.dart index d1d046e8..384efbb5 100644 --- a/lib/widgets/confirm_clear_dialog.dart +++ b/lib/widgets/confirm_clear_dialog.dart @@ -2,34 +2,40 @@ import 'package:flutter/material.dart'; import '../l10n/l10n.dart'; -/// Asks the user to confirm clearing a log or history. Resolves to true only -/// when the user taps Clear. +/// Asks the user to confirm a destructive action (Clear by default). Resolves +/// to true only when the user taps the confirm button. [warning] uses the +/// amber warning colour instead of red. Future showConfirmClearDialog( BuildContext context, { required String title, required String message, + String? confirmLabel, + bool warning = false, }) async { final l10n = context.l10n; final confirmed = await showDialog( context: context, - builder: (dialogContext) => AlertDialog( - title: Text(title), - content: Text(message), - actions: [ - TextButton( - onPressed: () => Navigator.pop(dialogContext, false), - child: Text(l10n.common_cancel), - ), - FilledButton( - onPressed: () => Navigator.pop(dialogContext, true), - style: FilledButton.styleFrom( - backgroundColor: Theme.of(dialogContext).colorScheme.error, - foregroundColor: Theme.of(dialogContext).colorScheme.onError, + builder: (dialogContext) { + final scheme = Theme.of(dialogContext).colorScheme; + return AlertDialog( + title: Text(title), + content: Text(message), + actions: [ + TextButton( + onPressed: () => Navigator.pop(dialogContext, false), + child: Text(l10n.common_cancel), ), - child: Text(l10n.common_clear), - ), - ], - ), + FilledButton( + onPressed: () => Navigator.pop(dialogContext, true), + style: FilledButton.styleFrom( + backgroundColor: warning ? scheme.tertiary : scheme.error, + foregroundColor: warning ? scheme.onTertiary : scheme.onError, + ), + child: Text(confirmLabel ?? l10n.common_clear), + ), + ], + ); + }, ); return confirmed == true; } diff --git a/test/screens/settings_pages_test.dart b/test/screens/settings_pages_test.dart index 51d5713b..03cffb93 100644 --- a/test/screens/settings_pages_test.dart +++ b/test/screens/settings_pages_test.dart @@ -281,6 +281,55 @@ void main() { await tester.pumpWidget(const SizedBox()); }); + testWidgets('Reboot and Delete All Paths use theme colours and confirm', ( + tester, + ) async { + final connector = await _connectedConnector(tester); + Future settle() async { + for (var i = 0; i < 8; i++) { + await tester.pump(const Duration(milliseconds: 100)); + } + } + + await tester.pumpWidget(_app(connector, const SettingsScreen())); + await settle(); + final scheme = Theme.of( + tester.element(find.byType(SettingsScreen)), + ).colorScheme; + + final rows = { + _l10n.settings_rebootDevice: (_l10n.common_reboot, scheme.tertiary), + _l10n.settings_deleteAllPaths: (_l10n.common_deleteAll, scheme.error), + }; + for (final MapEntry(key: title, value: (label, color)) in rows.entries) { + await tester.scrollUntilVisible( + find.text(title), + 200, + scrollable: find + .descendant( + of: find.byType(ListView), + matching: find.byType(Scrollable), + ) + .first, + ); + await settle(); + expect(tester.widget(find.text(title)).style?.color, color); + + await tester.tap(find.text(title)); + await settle(); + final confirm = tester.widget( + find.widgetWithText(FilledButton, label), + ); + expect(confirm.style?.backgroundColor?.resolve({}), color, reason: title); + + // Cancel, so the review radio isn't rebooted. + await tester.tap(find.text(_l10n.common_cancel)); + await settle(); + expect(find.byType(AlertDialog), findsNothing, reason: title); + } + await tester.pumpWidget(const SizedBox()); + }); + testWidgets('Radio Settings shows Save only while something differs', ( tester, ) async { From 0aa867e40e4290cf63430f1e04c80b84a174c81d Mon Sep 17 00:00:00 2001 From: celsoazevedo Date: Tue, 24 Nov 2026 04:30:31 +0000 Subject: [PATCH 13/17] Progress bars: one shared 4px top bar in the theme colour Adds MeshProgressBar and MeshProgressAppBarBottom: 4px, theme progress colour and track, filling when progress is known, keeping their height when idle. The sync bar uses them (no more red/blue/green), as do Repeater "Refresh all", the chess game, chat search and the line-of-sight map. design.md gets the progress bar rules. Co-Authored-By: Claude Opus 5.5 --- documentation/design.md | 22 ++++++- lib/games/chess/ui/chess_game_screen.dart | 8 +-- lib/screens/line_of_sight_map_screen.dart | 6 +- lib/screens/repeater_settings_screen.dart | 11 ++-- lib/widgets/chat_search_results.dart | 6 +- lib/widgets/sync_progress_overlay.dart | 72 +++++++++++++++-------- test/widgets/mesh_progress_bar_test.dart | 35 +++++++++++ 7 files changed, 112 insertions(+), 48 deletions(-) create mode 100644 test/widgets/mesh_progress_bar_test.dart diff --git a/documentation/design.md b/documentation/design.md index 55c87d27..a5fcfa9f 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -146,7 +146,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act | Empty list | `EmptyState(icon:, title:, subtitle:, action:)` | Scrolls rather than overflowing at large text | | Inline error with retry | `ErrorRetryCard(message:, onRetry:, retryLabel:)` | Pass `retryLabel: context.l10n.common_retry` | | Radio offline on a remote-node screen | `RadioDisconnectedBanner` | Renders nothing while connected | -| Sync progress | `SyncProgressAppBarBottom` as the app bar `bottom` | 3px bar | +| Progress bar | `MeshProgressBar`; `MeshProgressAppBarBottom` as an app bar `bottom`; `SyncProgressAppBarBottom` for the app syncs (`widgets/sync_progress_overlay.dart`) | See [Progress bars](#progress-bars) | | Toast message | `showDismissibleSnackBar(context, content: Text(...))` | Tap to dismiss, replaces the current snackbar, safe after an async gap | | List item entrance | `ListEntrance(index:)` | Optional. Plays only for rows built while the list is at rest at the top; rows scrolled into view appear at once | @@ -211,6 +211,18 @@ A dialog that offers several missing models (backup restore) uses the same rows The channel's games list is a `showMeshSheet` with a `DraggableScrollableSheet`, the same layout as the Add channel sheet. Starting a game closes it and opens a second sheet, so sheets are never stacked. +### Progress bars + +A thin bar at the top of a screen or list shows that something is running. Bars inside content (model downloads, image send progress) are not covered here. + +1. 4px. +2. Theme colours: don't set a colour or track. The theme's `progressIndicatorTheme` (`primary` on `surfaceContainerHigh`) applies, so the bar follows light, dark and custom themes. +3. Use the shared widgets: `MeshProgressAppBarBottom` as an app bar `bottom` for the screen's own task (Refresh all in `repeater_settings_screen.dart`, the chess game), `SyncProgressAppBarBottom` for the app syncs (contacts, channels, queued messages), and `MeshProgressBar` at the top of content (chat search results, the line-of-sight map). +4. Fill (`value`) when the progress is known; move (`value: null`) when it isn't. +5. Keep the height while idle (`active: false`), so the content doesn't jump. A bar laid over content (the line-of-sight map) can be removed instead. +6. One bar at a time: when a screen's own task and an app sync overlap, the same bar shows one of them, never two stacked bars. +7. Waiting for the radio: when the user starts an action and the app waits for the radio, the control shows the 18×18 spinner (see [States](#9-states)) and the screen's top bar moves. Background traffic (polling, message sync, ACKs) doesn't; messages keep their own delivery status. + ## 6. Sheets, dialogs and pages What the code does: @@ -271,7 +283,7 @@ That is the Contacts list and its group member picker, Discovery, Map node searc - Order: screen-specific items first, then a `PopupMenuDivider` separating the trailing app-level section — Connect/Disconnect (`connectionMenuItem`) immediately followed by Settings (`settingsMenuItem`) — and destructive items last if a screen has any. Omit the divider when no items precede the app-level section (for example, `MapScreen` while building a path trace). Main views use `mainOverflowTrailingItems(screenContext, menuContext, hasPrecedingItems:)` in `lib/widgets/connect_sheet.dart` so they stay in sync. - Visual & interaction rules: rely on `MeshTheme`'s `popupMenuTheme` (`surfaceContainerHigh`, `MeshRadii.md` border radius, and consistent `menuPadding`, margins, item padding, and elevation), separate sections with `PopupMenuDivider`, build every row with `MeshMenuItemRow` (20px icon slot, 12px gap, 2-line wrap + ellipsis), use `context.l10n.contacts_moreOptions` as the button `tooltip` on main views, and capture the screen `context` (not the `itemBuilder`'s `menuContext`) for `onTap` callbacks since menus pop before `onTap` runs. Destructive items use `MeshMenuItemRow(color: scheme.error)` so both icon and label turn red (Clear chat in `chat_screen.dart`; Clear / Delete channel in `channel_chat_screen.dart`). - Search: tapping search swaps the title for the field and hides all actions (`actions: _searching ? null : [...]`). The leading back arrow and the system back gesture close the search (`PopScope(canPop: !_searching)`) instead of leaving the screen. -- Long operations: show progress as the app bar `bottom` (`SyncProgressAppBarBottom`, or a 4px `LinearProgressIndicator` for Refresh all in `repeater_settings_screen.dart`). +- Long operations: show progress as the app bar `bottom` with the shared bar (see [Progress bars](#progress-bars)). ## 9. States @@ -280,6 +292,7 @@ That is the Contacts list and its group member picker, Discovery, Map node searc | Loading, nothing to show yet | `Center(child: CircularProgressIndicator())`, only until the first data arrives; then show partial data (`channels_screen.dart`). | | Loading in place | Swap the control's icon for an 18×18 `CircularProgressIndicator(strokeWidth: 2)` and disable it (`_buildRefreshButton` in `repeater_settings_screen.dart`). | | Background sync | `SyncProgressAppBarBottom`. | +| Waiting for the radio | The control's 18×18 spinner and the screen's top bar, moving. See [Progress bars](#progress-bars). | | Empty | `EmptyState` with an icon, a short title, and an action when there is an obvious next step. Use a separate "no results" state (`Icons.search_off`) when a search or filter hides everything. | | Error | A snackbar for a failed action. `ErrorRetryCard` for a failed load the user can retry. Never show raw exception text alone. | | Companion radio disconnected | Main and chat screens stay open, read-only ([offline mode](offline-mode.md)). Decide with `isRadioReadOnly(connector)` / `context.radioReadOnly` (`lib/utils/radio_guard.dart`): disable menu items (`PopupMenuItem(enabled: false)`, drop destructive colors) and buttons, hide FABs, and call `ensureRadioConnected(context)` as the safety net in handlers. The chat composer shows `OfflineComposerBar` in the same bubble and margins. Repeater screens and the Settings pages that save to the radio stay open with `RadioDisconnectedBanner` at the top and disable radio-dependent actions, including Save. Settings rows that need the radio pass `onTap: null` and show `settings_requiresConnection` as the subtitle (`settings_screen.dart`). | @@ -324,6 +337,7 @@ Follow the same pattern for any new remote-value screen. - [ ] Settings stored on a radio use `SaveToRadioPage` and save only on Save; settings stored in the app apply immediately. - [ ] Contact, repeater, room and user search uses `compareContactQueryRank`: prefix, then substring, then hop hash. - [ ] Loading, empty, error, offline and unknown-value states handled. +- [ ] Top progress bars use the shared widgets (4px, theme colours); see [Progress bars](#progress-bars). - [ ] All strings in `app_en.arb`; checked in German or Portuguese at 1.3× and 2.0× on a narrow screen. - [ ] Settings row titles in Title Case (English); descriptions without a trailing full stop. - [ ] Light, dark and one custom theme checked. @@ -337,10 +351,12 @@ The current code does not yet follow this page everywhere: - **Disconnect icon-only error tint.** In overflow menus, Disconnect tints only the icon (`iconColor`), while Clear chat / Delete tint icon and label (`color`). - **Menu rows not using `MeshMenuItemRow`.** `channel_chat_screen.dart` bulk-select menu (Select all / Copy) puts a `ListTile` inside `PopupMenuItem`. `widgets/list_filter_widget.dart` and the group menu in `contacts_screen.dart` use plain `Text` items, which is acceptable for icon-less lists but does not limit wrapping. - **Tile titles without `MeshSettingsTileTheme`.** Backup & Restore (`CheckboxListTile`) and Themes (`SwitchListTile`) do not wrap their body in it, so those titles are not semibold like the other settings rows. +- **Bars inside content.** The map cache download bar (`map_cache_screen.dart`) uses a fixed `MeshPalette.blue`. +- **Radio waits not shown yet.** In Settings actions, Sync Time and Reboot show nothing while sending, and Refresh Contacts shows only the sync bar. `SaveToRadioPage` pages show the Save spinner but no top bar. Other radio actions are not reviewed yet. - **`ErrorRetryCard` is unused** and its fallback label is the hard-coded English `'Retry'` (`mesh_ui.dart`); screens show load errors in their own ways. - **Fixed-width label boxes.** `chat_screen.dart` `_buildInfoRow` (80px), `line_of_sight_map_screen.dart` endpoint label (54px, `fontSize: 12`), `channel_message_path_screen.dart` (72px, upper-cased `accentLabel` at its 11px default). - **11px text.** `MeshTheme.accentLabel()` without `fontSize` gives 11px in `channel_message_path_screen.dart`. The type scale's `labelSmall` (11) is used in `list_filter_widget.dart` section titles. -- **Hard-coded colours.** `SyncProgressAppBarBottom` uses `Colors.red`, `Colors.blue` and `Colors.green`; `AppBarTitle` subtitle uses `Colors.grey[600]` at a literal 14 instead of `onSurfaceVariant`; `telemetry_location_map.dart` uses raw `Colors.*`. `MeshPalette.ink/bg/line` still appear directly in a few screen/widget files: map marker overlays (node name labels and shared-count badges in `path_map_scaffold.dart`, the hop badge on avatars in `channel_message_path_screen.dart`) and the `channels_screen.dart` and `channel_chat_screen.dart` community dots with an 8px icon. The path map chrome (`PathMapBottomPanel`, `PathMapDesktopControls`, `PathViewModeToggle` and the panel contents in `path_map_ui.dart` and both path map screens) uses `ColorScheme` roles: `surfaceContainerLow` background, `outlineVariant` border and dividers, `onSurface`/`onSurfaceVariant` text and icons, `primary` for active toggles and `tertiary` for warnings. +- **Hard-coded colours.** `AppBarTitle` subtitle uses `Colors.grey[600]` at a literal 14 instead of `onSurfaceVariant`; `telemetry_location_map.dart` uses raw `Colors.*`. `MeshPalette.ink/bg/line` still appear directly in a few screen/widget files: map marker overlays (node name labels and shared-count badges in `path_map_scaffold.dart`, the hop badge on avatars in `channel_message_path_screen.dart`) and the `channels_screen.dart` and `channel_chat_screen.dart` community dots with an 8px icon. The path map chrome (`PathMapBottomPanel`, `PathMapDesktopControls`, `PathViewModeToggle` and the panel contents in `path_map_ui.dart` and both path map screens) uses `ColorScheme` roles: `surfaceContainerLow` background, `outlineVariant` border and dividers, `onSurface`/`onSurfaceVariant` text and icons, `primary` for active toggles and `tertiary` for warnings. - **Literal sizes instead of the theme.** About 300 literal `fontSize:` values in `lib/screens` and `lib/widgets` (most 12–14), e.g. `EmptyState` subtitle at 13.5; and 36 `BorderRadius.circular()` calls (8 and 12 most common) instead of `MeshRadii`. - **Navigation bar theme.** `navigationBarTheme` colours selected labels `onPrimary`, which is white-on-white in light mode; `QuickSwitchBar` overrides it. Any other `NavigationBar` would inherit the problem. - **Two badge styles.** `QuickSwitchBar` uses Material `Badge` capped at 99+; `UnreadBadge` caps at 9999+. diff --git a/lib/games/chess/ui/chess_game_screen.dart b/lib/games/chess/ui/chess_game_screen.dart index c99c02d0..735851dc 100644 --- a/lib/games/chess/ui/chess_game_screen.dart +++ b/lib/games/chess/ui/chess_game_screen.dart @@ -7,6 +7,7 @@ import '../../../theme/mesh_theme.dart'; import '../../../utils/radio_guard.dart'; import '../../../widgets/mesh_nav_tile.dart'; import '../../../widgets/mesh_ui.dart'; +import '../../../widgets/sync_progress_overlay.dart'; import '../chess_game.dart'; import '../chess_service.dart'; import 'chess_board.dart'; @@ -106,12 +107,7 @@ class _ChessGameScreenState extends State { maxLines: 1, overflow: TextOverflow.ellipsis, ), - bottom: busy - ? const PreferredSize( - preferredSize: Size.fromHeight(3), - child: LinearProgressIndicator(minHeight: 3), - ) - : null, + bottom: MeshProgressAppBarBottom(active: busy), ), body: SafeArea( child: LayoutBuilder( diff --git a/lib/screens/line_of_sight_map_screen.dart b/lib/screens/line_of_sight_map_screen.dart index ce393ade..e68a83ab 100644 --- a/lib/screens/line_of_sight_map_screen.dart +++ b/lib/screens/line_of_sight_map_screen.dart @@ -21,6 +21,7 @@ import '../widgets/app_bar.dart'; import '../widgets/mesh_ui.dart'; import '../widgets/path_map_scaffold.dart'; import '../widgets/quick_switch_bar.dart'; +import '../widgets/sync_progress_overlay.dart'; import '../icons/los_icon.dart'; import '../theme/mesh_theme.dart'; @@ -440,10 +441,7 @@ class _LineOfSightMapScreenState extends State { left: 0, right: 0, top: 0, - child: LinearProgressIndicator( - color: LosPalette.selected, - backgroundColor: LosPalette.chartBackground, - ), + child: const MeshProgressBar(), ), ], ), diff --git a/lib/screens/repeater_settings_screen.dart b/lib/screens/repeater_settings_screen.dart index 9b0fbb84..0e4b4dc5 100644 --- a/lib/screens/repeater_settings_screen.dart +++ b/lib/screens/repeater_settings_screen.dart @@ -17,6 +17,7 @@ import '../widgets/mesh_nav_tile.dart'; import '../widgets/mesh_ui.dart'; import '../widgets/radio_disconnected_banner.dart'; import '../widgets/routing_sheet.dart'; +import '../widgets/sync_progress_overlay.dart'; import '../utils/keys.dart'; import '../helpers/snack_bar_builder.dart'; @@ -889,12 +890,10 @@ class _RepeaterSettingsScreenState extends State { label: Text(l10n.common_save), ), ], - bottom: _loadingAll - ? PreferredSize( - preferredSize: const Size.fromHeight(4), - child: LinearProgressIndicator(value: _loadAllProgress), - ) - : null, + bottom: MeshProgressAppBarBottom( + active: _loadingAll, + value: _loadAllProgress, + ), ), body: MeshSettingsTileTheme( child: SafeArea( diff --git a/lib/widgets/chat_search_results.dart b/lib/widgets/chat_search_results.dart index 9e57e275..2515ad31 100644 --- a/lib/widgets/chat_search_results.dart +++ b/lib/widgets/chat_search_results.dart @@ -8,6 +8,7 @@ import '../helpers/snack_bar_builder.dart'; import '../l10n/l10n.dart'; import 'chat_day_separator.dart'; import 'empty_state.dart'; +import 'sync_progress_overlay.dart'; /// Results list for "search in this chat". Loads the full history through /// [loadEntries] (once, cached) and re-filters on each debounced [query]. @@ -86,10 +87,7 @@ class _ChatSearchResultsState extends State { final showEmpty = !_loading && _results.isEmpty; return Column( children: [ - SizedBox( - height: 3, - child: _loading ? const LinearProgressIndicator() : null, - ), + MeshProgressBar(active: _loading), if (!_loading && _results.isNotEmpty) Padding( padding: const EdgeInsets.fromLTRB(16, 10, 16, 6), diff --git a/lib/widgets/sync_progress_overlay.dart b/lib/widgets/sync_progress_overlay.dart index 4aef90ea..481c04ec 100644 --- a/lib/widgets/sync_progress_overlay.dart +++ b/lib/widgets/sync_progress_overlay.dart @@ -3,57 +3,79 @@ import 'package:provider/provider.dart'; import '../connector/meshcore_connector.dart'; +/// The thin progress bar at the top of a screen or list: 4px, in the theme's +/// progress colour and track. Fills when [value] is known, moves when it is +/// null. While inactive it keeps its height, so the content doesn't jump. +class MeshProgressBar extends StatelessWidget { + static const double height = 4; + + final bool active; + final double? value; + + const MeshProgressBar({super.key, this.active = true, this.value}); + + @override + Widget build(BuildContext context) { + return SizedBox( + height: height, + child: active + ? LinearProgressIndicator(value: value, minHeight: height) + : null, + ); + } +} + +/// [MeshProgressBar] as an app bar's `bottom`, for a screen's own task. +class MeshProgressAppBarBottom extends StatelessWidget + implements PreferredSizeWidget { + final bool active; + final double? value; + + const MeshProgressAppBarBottom({super.key, this.active = true, this.value}); + + @override + Size get preferredSize => const Size.fromHeight(MeshProgressBar.height); + + @override + Widget build(BuildContext context) => + MeshProgressBar(active: active, value: value); +} + +/// [MeshProgressBar] as an app bar's `bottom` for the app-wide syncs: +/// contacts, channels and queued messages, one at a time. class SyncProgressAppBarBottom extends StatelessWidget implements PreferredSizeWidget { - static const double height = 3; - const SyncProgressAppBarBottom({super.key}); @override - Size get preferredSize => const Size.fromHeight(height); + Size get preferredSize => const Size.fromHeight(MeshProgressBar.height); @override Widget build(BuildContext context) { return Consumer( builder: (context, connector, _) { final state = _SyncProgressState.fromConnector(connector); - if (state == null) return const SizedBox(height: height); - - return SizedBox( - height: height, - child: LinearProgressIndicator( - value: state.value, - minHeight: height, - color: state.color, - backgroundColor: state.color.withValues(alpha: 0.18), - ), - ); + return MeshProgressBar(active: state != null, value: state?.value); }, ); } } class _SyncProgressState { + /// Null while the progress is unknown. final double? value; - final Color color; - const _SyncProgressState({required this.value, required this.color}); + const _SyncProgressState({required this.value}); static _SyncProgressState? fromConnector(MeshCoreConnector connector) { if (connector.isLoadingContacts) { - return _SyncProgressState( - value: connector.contactSyncProgress, - color: Colors.red, - ); + return _SyncProgressState(value: connector.contactSyncProgress); } if (connector.isSyncingChannels) { - return _SyncProgressState( - value: connector.channelSyncProgress / 100, - color: Colors.blue, - ); + return _SyncProgressState(value: connector.channelSyncProgress / 100); } if (connector.isShowingQueuedMessageSyncProgress) { - return const _SyncProgressState(value: null, color: Colors.green); + return const _SyncProgressState(value: null); } return null; } diff --git a/test/widgets/mesh_progress_bar_test.dart b/test/widgets/mesh_progress_bar_test.dart new file mode 100644 index 00000000..18edc81c --- /dev/null +++ b/test/widgets/mesh_progress_bar_test.dart @@ -0,0 +1,35 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:meshcore_open/widgets/sync_progress_overlay.dart'; + +// The shared top progress bar: 4px, theme colours, keeps its height idle. +void main() { + Widget host(Widget child) => MaterialApp( + home: Scaffold(body: Column(children: [child])), + ); + + testWidgets('idle bar keeps its 4px height and draws nothing', ( + tester, + ) async { + await tester.pumpWidget(host(const MeshProgressBar(active: false))); + expect(tester.getSize(find.byType(MeshProgressBar)).height, 4); + expect(find.byType(LinearProgressIndicator), findsNothing); + }); + + testWidgets('active bar fills with the theme colour', (tester) async { + await tester.pumpWidget(host(const MeshProgressBar(value: 0.5))); + final bar = tester.widget( + find.byType(LinearProgressIndicator), + ); + expect(bar.value, 0.5); + expect(bar.minHeight, 4); + expect(bar.color, isNull); + expect(bar.backgroundColor, isNull); + }); + + test('app bar versions are 4px tall', () { + expect(const MeshProgressAppBarBottom().preferredSize.height, 4); + expect(const SyncProgressAppBarBottom().preferredSize.height, 4); + }); +} From c45424adaae5dcb50fbff2ce1899bf29a3798408 Mon Sep 17 00:00:00 2001 From: celsoazevedo Date: Tue, 24 Nov 2026 02:27:22 +0000 Subject: [PATCH 14/17] Settings actions: theme colours and filled confirm buttons Reboot and Delete All Paths rows use scheme.tertiary and scheme.error instead of fixed palette colours. Their dialogs use showConfirmClearDialog, which gains confirmLabel and warning options. Co-Authored-By: Claude Opus 5.5 --- documentation/design.md | 2 +- documentation/settings.md | 2 +- lib/screens/settings_screen.dart | 80 +++++++++------------------ lib/widgets/confirm_clear_dialog.dart | 44 ++++++++------- test/screens/settings_pages_test.dart | 49 ++++++++++++++++ 5 files changed, 103 insertions(+), 74 deletions(-) diff --git a/documentation/design.md b/documentation/design.md index a5fcfa9f..e3f5b7fb 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -156,7 +156,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act - `FilledButton.tonal`: a secondary action that still needs weight (rare). - `OutlinedButton(.icon)`: secondary actions next to a filled one. - `TextButton`: Cancel and low-emphasis actions in dialogs; inline actions in cards. -- Destructive confirm: `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError` (`showConfirmClearDialog` in `widgets/confirm_clear_dialog.dart`), or a `TextButton` with `foregroundColor: scheme.error` when it is not the primary action. +- Destructive confirm: `FilledButton` with `backgroundColor: scheme.error`, `foregroundColor: scheme.onError` (`showConfirmClearDialog` in `widgets/confirm_clear_dialog.dart`), or a `TextButton` with `foregroundColor: scheme.error` when it is not the primary action. Use `showConfirmClearDialog(confirmLabel:)` for any confirm dialog; `warning: true` makes the button `scheme.tertiary` for disruptive, non-destructive actions (Reboot in Settings). - Dialog action order: Cancel first, primary last. - Avoid `ElevatedButton` in new code. diff --git a/documentation/settings.md b/documentation/settings.md index 0bb7a47c..bdd2e323 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -210,7 +210,7 @@ One-tap device operations: | Sync Time | Sends current Unix timestamp to the device | | Refresh Contacts | Re-requests the full contact list | | Reboot Device | Confirmation dialog → reboots the device (shown in warning color) | -| Delete All Paths | Confirmation dialog → clears all stored routing paths (shown in alert color) | +| Delete All Paths | Confirmation dialog → clears all stored routing paths (shown in error color) | --- diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index fb4bd1f4..f5c54c4c 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -7,6 +7,7 @@ import '../connector/meshcore_protocol.dart'; import '../l10n/l10n.dart'; import '../theme/mesh_theme.dart'; import '../helpers/snack_bar_builder.dart'; +import '../widgets/confirm_clear_dialog.dart'; import '../widgets/mesh_nav_tile.dart'; import '../widgets/adaptive_app_bar_title.dart'; import '../widgets/mesh_ui.dart'; @@ -621,6 +622,7 @@ class _SettingsScreenState extends State { MeshCoreConnector connector, ) { final l10n = context.l10n; + final scheme = Theme.of(context).colorScheme; final connected = connector.isConnected; final offline = l10n.settings_requiresConnection; return Column( @@ -643,8 +645,8 @@ class _SettingsScreenState extends State { icon: Icons.restart_alt, title: l10n.settings_rebootDevice, subtitle: connected ? l10n.settings_rebootDeviceSubtitle : offline, - titleColor: MeshPalette.warn, - iconColor: MeshPalette.warn, + titleColor: scheme.tertiary, + iconColor: scheme.tertiary, onTap: connected ? () => _confirmReboot(context, connector) : null, ), const Divider(height: 1, indent: 16), @@ -652,8 +654,8 @@ class _SettingsScreenState extends State { icon: Icons.delete_outline, title: l10n.settings_deleteAllPaths, subtitle: l10n.settings_deleteAllPathsSubtitle, - titleColor: MeshPalette.alert, - iconColor: MeshPalette.alert, + titleColor: scheme.error, + iconColor: scheme.error, onTap: () => _confirmDeleteAllPaths(context, connector), ), ], @@ -717,62 +719,34 @@ class _SettingsScreenState extends State { } } - void _confirmDeleteAllPaths( + Future _confirmDeleteAllPaths( BuildContext context, MeshCoreConnector connector, - ) { + ) async { final l10n = context.l10n; - showDialog( - context: context, - builder: (context) => AlertDialog( - title: Text(l10n.settings_deleteAllPaths), - content: Text(l10n.settings_deleteAllPathsSubtitle), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), - ), - TextButton( - onPressed: () { - Navigator.pop(context); - connector.deleteAllPaths(); - }, - child: Text( - l10n.common_deleteAll, - style: TextStyle(color: Theme.of(context).colorScheme.error), - ), - ), - ], - ), + final confirmed = await showConfirmClearDialog( + context, + title: l10n.settings_deleteAllPaths, + message: l10n.settings_deleteAllPathsSubtitle, + confirmLabel: l10n.common_deleteAll, ); + if (confirmed) connector.deleteAllPaths(); } - void _confirmReboot(BuildContext context, MeshCoreConnector connector) { + Future _confirmReboot( + BuildContext context, + MeshCoreConnector connector, + ) async { final l10n = context.l10n; - final screenContext = context; - showDialog( - context: context, - builder: (context) => AlertDialog( - title: Text(l10n.settings_rebootDevice), - content: Text(l10n.settings_rebootDeviceConfirm), - actions: [ - TextButton( - onPressed: () => Navigator.pop(context), - child: Text(l10n.common_cancel), - ), - TextButton( - onPressed: () { - Navigator.pop(context); - if (!_ensureConnected(screenContext, connector)) return; - connector.rebootDevice(); - }, - child: Text( - l10n.common_reboot, - style: TextStyle(color: Theme.of(context).colorScheme.tertiary), - ), - ), - ], - ), + final confirmed = await showConfirmClearDialog( + context, + title: l10n.settings_rebootDevice, + message: l10n.settings_rebootDeviceConfirm, + confirmLabel: l10n.common_reboot, + warning: true, ); + if (!confirmed || !context.mounted) return; + if (!_ensureConnected(context, connector)) return; + connector.rebootDevice(); } } diff --git a/lib/widgets/confirm_clear_dialog.dart b/lib/widgets/confirm_clear_dialog.dart index d1d046e8..384efbb5 100644 --- a/lib/widgets/confirm_clear_dialog.dart +++ b/lib/widgets/confirm_clear_dialog.dart @@ -2,34 +2,40 @@ import 'package:flutter/material.dart'; import '../l10n/l10n.dart'; -/// Asks the user to confirm clearing a log or history. Resolves to true only -/// when the user taps Clear. +/// Asks the user to confirm a destructive action (Clear by default). Resolves +/// to true only when the user taps the confirm button. [warning] uses the +/// amber warning colour instead of red. Future showConfirmClearDialog( BuildContext context, { required String title, required String message, + String? confirmLabel, + bool warning = false, }) async { final l10n = context.l10n; final confirmed = await showDialog( context: context, - builder: (dialogContext) => AlertDialog( - title: Text(title), - content: Text(message), - actions: [ - TextButton( - onPressed: () => Navigator.pop(dialogContext, false), - child: Text(l10n.common_cancel), - ), - FilledButton( - onPressed: () => Navigator.pop(dialogContext, true), - style: FilledButton.styleFrom( - backgroundColor: Theme.of(dialogContext).colorScheme.error, - foregroundColor: Theme.of(dialogContext).colorScheme.onError, + builder: (dialogContext) { + final scheme = Theme.of(dialogContext).colorScheme; + return AlertDialog( + title: Text(title), + content: Text(message), + actions: [ + TextButton( + onPressed: () => Navigator.pop(dialogContext, false), + child: Text(l10n.common_cancel), ), - child: Text(l10n.common_clear), - ), - ], - ), + FilledButton( + onPressed: () => Navigator.pop(dialogContext, true), + style: FilledButton.styleFrom( + backgroundColor: warning ? scheme.tertiary : scheme.error, + foregroundColor: warning ? scheme.onTertiary : scheme.onError, + ), + child: Text(confirmLabel ?? l10n.common_clear), + ), + ], + ); + }, ); return confirmed == true; } diff --git a/test/screens/settings_pages_test.dart b/test/screens/settings_pages_test.dart index 51d5713b..03cffb93 100644 --- a/test/screens/settings_pages_test.dart +++ b/test/screens/settings_pages_test.dart @@ -281,6 +281,55 @@ void main() { await tester.pumpWidget(const SizedBox()); }); + testWidgets('Reboot and Delete All Paths use theme colours and confirm', ( + tester, + ) async { + final connector = await _connectedConnector(tester); + Future settle() async { + for (var i = 0; i < 8; i++) { + await tester.pump(const Duration(milliseconds: 100)); + } + } + + await tester.pumpWidget(_app(connector, const SettingsScreen())); + await settle(); + final scheme = Theme.of( + tester.element(find.byType(SettingsScreen)), + ).colorScheme; + + final rows = { + _l10n.settings_rebootDevice: (_l10n.common_reboot, scheme.tertiary), + _l10n.settings_deleteAllPaths: (_l10n.common_deleteAll, scheme.error), + }; + for (final MapEntry(key: title, value: (label, color)) in rows.entries) { + await tester.scrollUntilVisible( + find.text(title), + 200, + scrollable: find + .descendant( + of: find.byType(ListView), + matching: find.byType(Scrollable), + ) + .first, + ); + await settle(); + expect(tester.widget(find.text(title)).style?.color, color); + + await tester.tap(find.text(title)); + await settle(); + final confirm = tester.widget( + find.widgetWithText(FilledButton, label), + ); + expect(confirm.style?.backgroundColor?.resolve({}), color, reason: title); + + // Cancel, so the review radio isn't rebooted. + await tester.tap(find.text(_l10n.common_cancel)); + await settle(); + expect(find.byType(AlertDialog), findsNothing, reason: title); + } + await tester.pumpWidget(const SizedBox()); + }); + testWidgets('Radio Settings shows Save only while something differs', ( tester, ) async { From c20c6eb38fa91aa73a179f72ef8df44f1bef60e1 Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 23:17:04 -0700 Subject: [PATCH 15/17] Regenerate untranslated.json after dev merge --- untranslated.json | 57 +++++++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/untranslated.json b/untranslated.json index 7ba0f198..309eb1ec 100644 --- a/untranslated.json +++ b/untranslated.json @@ -5,7 +5,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "cs": [ @@ -14,7 +15,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "de": [ @@ -23,7 +25,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "es": [ @@ -32,7 +35,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "fr": [ @@ -41,7 +45,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "hu": [ @@ -50,7 +55,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "it": [ @@ -59,7 +65,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "ja": [ @@ -68,7 +75,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "ko": [ @@ -77,7 +85,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "nl": [ @@ -86,7 +95,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "pl": [ @@ -95,7 +105,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "pt": [ @@ -104,7 +115,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "pt_PT": [ @@ -113,7 +125,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "ru": [ @@ -122,7 +135,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "sk": [ @@ -131,7 +145,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "sl": [ @@ -140,7 +155,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "sv": [ @@ -149,7 +165,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "uk": [ @@ -158,7 +175,8 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ], "zh": [ @@ -167,6 +185,7 @@ "bookmarks_removeSelectedConfirmTitle", "bookmarks_removeSelectedConfirmMessage", "chat_resendSelectedTitle", - "chat_resendSelectedConfirm" + "chat_resendSelectedConfirm", + "messageUrlImageLoadFailed" ] } From 5b74383d105f144c1c13e5f68b0675456e5f65eb Mon Sep 17 00:00:00 2001 From: celsoazevedo Date: Tue, 24 Nov 2026 04:47:13 +0000 Subject: [PATCH 16/17] Settings actions: messages and radio progress Every action ends with a short message: Sync Time ("Time sent to the radio"), Refresh Contacts, Reboot and Delete All Paths. While Refresh Contacts or Reboot wait for the radio, the row shows a spinner (MeshNavTile busy) and the app bar the shared progress bar. Delete All Paths now says it clears the app's path history. Co-Authored-By: Claude Opus 5.5 --- documentation/design.md | 6 +- documentation/settings.md | 8 +- lib/l10n/app_bg.arb | 8 +- lib/l10n/app_cs.arb | 8 +- lib/l10n/app_de.arb | 8 +- lib/l10n/app_en.arb | 8 +- lib/l10n/app_es.arb | 8 +- lib/l10n/app_fr.arb | 8 +- lib/l10n/app_hu.arb | 8 +- lib/l10n/app_it.arb | 8 +- lib/l10n/app_ja.arb | 8 +- lib/l10n/app_ko.arb | 8 +- lib/l10n/app_localizations.dart | 32 +++++++- lib/l10n/app_localizations_bg.dart | 17 ++++- lib/l10n/app_localizations_cs.dart | 16 +++- lib/l10n/app_localizations_de.dart | 17 ++++- lib/l10n/app_localizations_en.dart | 16 +++- lib/l10n/app_localizations_es.dart | 17 ++++- lib/l10n/app_localizations_fr.dart | 17 ++++- lib/l10n/app_localizations_hu.dart | 17 ++++- lib/l10n/app_localizations_it.dart | 17 ++++- lib/l10n/app_localizations_ja.dart | 16 +++- lib/l10n/app_localizations_ko.dart | 16 +++- lib/l10n/app_localizations_nl.dart | 17 ++++- lib/l10n/app_localizations_pl.dart | 16 +++- lib/l10n/app_localizations_pt.dart | 34 ++++++++- lib/l10n/app_localizations_ru.dart | 17 ++++- lib/l10n/app_localizations_sk.dart | 16 +++- lib/l10n/app_localizations_sl.dart | 17 ++++- lib/l10n/app_localizations_sv.dart | 16 +++- lib/l10n/app_localizations_uk.dart | 17 ++++- lib/l10n/app_localizations_zh.dart | 16 +++- lib/l10n/app_nl.arb | 8 +- lib/l10n/app_pl.arb | 8 +- lib/l10n/app_pt.arb | 8 +- lib/l10n/app_pt_PT.arb | 8 +- lib/l10n/app_ru.arb | 8 +- lib/l10n/app_sk.arb | 8 +- lib/l10n/app_sl.arb | 8 +- lib/l10n/app_sv.arb | 8 +- lib/l10n/app_uk.arb | 8 +- lib/l10n/app_zh.arb | 8 +- lib/screens/settings_screen.dart | 101 +++++++++++++++++++++++-- lib/widgets/mesh_nav_tile.dart | 21 ++++- lib/widgets/sync_progress_overlay.dart | 12 ++- test/screens/settings_pages_test.dart | 69 +++++++++++++++++ 46 files changed, 637 insertions(+), 104 deletions(-) diff --git a/documentation/design.md b/documentation/design.md index e3f5b7fb..4b07c26d 100644 --- a/documentation/design.md +++ b/documentation/design.md @@ -146,7 +146,7 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act | Empty list | `EmptyState(icon:, title:, subtitle:, action:)` | Scrolls rather than overflowing at large text | | Inline error with retry | `ErrorRetryCard(message:, onRetry:, retryLabel:)` | Pass `retryLabel: context.l10n.common_retry` | | Radio offline on a remote-node screen | `RadioDisconnectedBanner` | Renders nothing while connected | -| Progress bar | `MeshProgressBar`; `MeshProgressAppBarBottom` as an app bar `bottom`; `SyncProgressAppBarBottom` for the app syncs (`widgets/sync_progress_overlay.dart`) | See [Progress bars](#progress-bars) | +| Progress bar | `MeshProgressBar`; `MeshProgressAppBarBottom` as an app bar `bottom`; `SyncProgressAppBarBottom` for the app syncs, with `busy: true` while the screen waits for the radio (Settings actions) (`widgets/sync_progress_overlay.dart`) | See [Progress bars](#progress-bars) | | Toast message | `showDismissibleSnackBar(context, content: Text(...))` | Tap to dismiss, replaces the current snackbar, safe after an async gap | | List item entrance | `ListEntrance(index:)` | Optional. Plays only for rows built while the list is at rest at the top; rows scrolled into view appear at once | @@ -290,7 +290,7 @@ That is the Contacts list and its group member picker, Discovery, Map node searc | State | How to show it | |---|---| | Loading, nothing to show yet | `Center(child: CircularProgressIndicator())`, only until the first data arrives; then show partial data (`channels_screen.dart`). | -| Loading in place | Swap the control's icon for an 18×18 `CircularProgressIndicator(strokeWidth: 2)` and disable it (`_buildRefreshButton` in `repeater_settings_screen.dart`). | +| Loading in place | Swap the control's icon for an 18×18 `CircularProgressIndicator(strokeWidth: 2)` and disable it (`_buildRefreshButton` in `repeater_settings_screen.dart`). A settings row that runs a radio command keeps its chevron and uses `MeshNavTile(busy: true)` while it waits: the chevron becomes the spinner and taps are ignored, with `SyncProgressAppBarBottom(busy: true)` in the app bar (Settings actions). | | Background sync | `SyncProgressAppBarBottom`. | | Waiting for the radio | The control's 18×18 spinner and the screen's top bar, moving. See [Progress bars](#progress-bars). | | Empty | `EmptyState` with an icon, a short title, and an action when there is an obvious next step. Use a separate "no results" state (`Icons.search_off`) when a search or filter hides everything. | @@ -352,7 +352,7 @@ The current code does not yet follow this page everywhere: - **Menu rows not using `MeshMenuItemRow`.** `channel_chat_screen.dart` bulk-select menu (Select all / Copy) puts a `ListTile` inside `PopupMenuItem`. `widgets/list_filter_widget.dart` and the group menu in `contacts_screen.dart` use plain `Text` items, which is acceptable for icon-less lists but does not limit wrapping. - **Tile titles without `MeshSettingsTileTheme`.** Backup & Restore (`CheckboxListTile`) and Themes (`SwitchListTile`) do not wrap their body in it, so those titles are not semibold like the other settings rows. - **Bars inside content.** The map cache download bar (`map_cache_screen.dart`) uses a fixed `MeshPalette.blue`. -- **Radio waits not shown yet.** In Settings actions, Sync Time and Reboot show nothing while sending, and Refresh Contacts shows only the sync bar. `SaveToRadioPage` pages show the Save spinner but no top bar. Other radio actions are not reviewed yet. +- **Radio waits not shown yet.** `SaveToRadioPage` pages show the Save spinner but no top bar. Other radio actions are not reviewed yet. - **`ErrorRetryCard` is unused** and its fallback label is the hard-coded English `'Retry'` (`mesh_ui.dart`); screens show load errors in their own ways. - **Fixed-width label boxes.** `chat_screen.dart` `_buildInfoRow` (80px), `line_of_sight_map_screen.dart` endpoint label (54px, `fontSize: 12`), `channel_message_path_screen.dart` (72px, upper-cased `accentLabel` at its 11px default). - **11px text.** `MeshTheme.accentLabel()` without `fontSize` gives 11px in `channel_message_path_screen.dart`. The type scale's `labelSmall` (11) is used in `list_filter_widget.dart` section titles. diff --git a/documentation/settings.md b/documentation/settings.md index bdd2e323..03049e10 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -203,14 +203,14 @@ On the Settings screen, below App Settings, **Message filter** opens a page to h ## Actions -One-tap device operations: +One-tap device operations. While an action waits for the radio, its row shows a spinner and the app bar a progress bar. Each action ends with a short message. | Action | Description | |---|---| -| Sync Time | Sends current Unix timestamp to the device | +| Sync Time | Sends the phone's time to the radio | | Refresh Contacts | Re-requests the full contact list | -| Reboot Device | Confirmation dialog → reboots the device (shown in warning color) | -| Delete All Paths | Confirmation dialog → clears all stored routing paths (shown in error color) | +| Reboot Device | Confirmation dialog → reboots the device; a message confirms the command was sent (shown in warning color) | +| Delete All Paths | Confirmation dialog → clears the app's path history for all contacts, not the paths stored on the radio (shown in error color) | --- diff --git a/lib/l10n/app_bg.arb b/lib/l10n/app_bg.arb index 90b8c6fe..7543d896 100644 --- a/lib/l10n/app_bg.arb +++ b/lib/l10n/app_bg.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Режим на поверителност е деактивиран", "settings_actions": "Действия", "settings_deleteAllPaths": "Изтрий всички пътища", - "settings_deleteAllPathsSubtitle": "Изчисти всички данни за пътищата от контактите", + "settings_deleteAllPathsSubtitle": "Изчисти историята на пътищата в приложението за всички контакти", + "settings_allPathsDeleted": "Пътищата са изтрити", + "settings_contactsRefreshed": "Контактите са презаредени", + "settings_rebootSent": "Рестартирането е изпратено. Радиото ще прекъсне връзката.", "settings_sendAdvertisement": "Изпрати обява", "settings_sendAdvertisementSubtitle": "Излъчи присъствието сега", "settings_advertisementSent": "Обявата е изпратена", "settings_syncTime": "Време за синхронизация", "settings_syncTimeSubtitle": "Задайте часовника на устройството да отговаря на времето на телефона", - "settings_timeSynchronized": "Синхронизирано във времето", + "settings_timeSent": "Часът е изпратен към радиото", + "settings_radioNoReply": "Няма отговор от радиото", "settings_refreshContacts": "Презареди контакти", "settings_refreshContactsSubtitle": "Презареди списъка с контакти от устройството", "settings_rebootDevice": "Рестартирай устройството", diff --git a/lib/l10n/app_cs.arb b/lib/l10n/app_cs.arb index 507e4a3e..27474262 100644 --- a/lib/l10n/app_cs.arb +++ b/lib/l10n/app_cs.arb @@ -288,13 +288,17 @@ "settings_telemetryModeUpdated": "Režim telemetrie aktualizován", "settings_actions": "Akce", "settings_deleteAllPaths": "Smazat všechny cesty", - "settings_deleteAllPathsSubtitle": "Vymazat všechna data cest z kontaktů", + "settings_deleteAllPathsSubtitle": "Vymazat historii cest v aplikaci pro všechny kontakty", + "settings_allPathsDeleted": "Cesty smazány", + "settings_contactsRefreshed": "Kontakty obnoveny", + "settings_rebootSent": "Restart odeslán. Rádio se odpojí.", "settings_sendAdvertisement": "Odeslat advert", "settings_sendAdvertisementSubtitle": "Ihned oznámit svou přítomnost", "settings_advertisementSent": "Advert odeslán", "settings_syncTime": "Synchronizovat čas", "settings_syncTimeSubtitle": "Nastavit hodiny zařízení podle času telefonu", - "settings_timeSynchronized": "Čas synchronizován", + "settings_timeSent": "Čas odeslán do rádia", + "settings_radioNoReply": "Rádio neodpovídá", "settings_refreshContacts": "Obnovit kontakty", "settings_refreshContactsSubtitle": "Znovu načíst seznam kontaktů ze zařízení", "settings_rebootDevice": "Restartovat zařízení", diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 19fd6939..04b7274f 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Privatsphärenmodus deaktiviert", "settings_actions": "Aktionen", "settings_deleteAllPaths": "Alle Pfade löschen", - "settings_deleteAllPathsSubtitle": "Alle Pfaddaten aus den Kontakten entfernen", + "settings_deleteAllPathsSubtitle": "Pfadverlauf der App für alle Kontakte löschen", + "settings_allPathsDeleted": "Pfade gelöscht", + "settings_contactsRefreshed": "Kontakte aktualisiert", + "settings_rebootSent": "Neustart gesendet. Das Funkgerät trennt die Verbindung.", "settings_sendAdvertisement": "Ankündigung senden", "settings_sendAdvertisementSubtitle": "Präsenz jetzt senden", "settings_advertisementSent": "Ankündigung gesendet", "settings_syncTime": "Zeit synchronisieren", "settings_syncTimeSubtitle": "Geräteuhr auf die Zeit des Telefons setzen", - "settings_timeSynchronized": "Zeit synchronisiert", + "settings_timeSent": "Zeit an das Funkgerät gesendet", + "settings_radioNoReply": "Keine Antwort vom Funkgerät", "settings_refreshContacts": "Kontakte aktualisieren", "settings_refreshContactsSubtitle": "Kontaktliste vom Gerät neu laden", "settings_rebootDevice": "Gerät neu starten", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 1a6893be..1c31bef5 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -365,13 +365,17 @@ "settings_telemetryModeUpdated": "Telemetry mode updated", "settings_actions": "Actions", "settings_deleteAllPaths": "Delete All Paths", - "settings_deleteAllPathsSubtitle": "Clear all path data from contacts", + "settings_deleteAllPathsSubtitle": "Clear the app's path history for all contacts", + "settings_allPathsDeleted": "Paths deleted", + "settings_contactsRefreshed": "Contacts refreshed", + "settings_rebootSent": "Reboot sent. The radio will disconnect.", "settings_sendAdvertisement": "Send Advertisement", "settings_sendAdvertisementSubtitle": "Broadcast presence now", "settings_advertisementSent": "Advertisement sent", "settings_syncTime": "Sync Time", "settings_syncTimeSubtitle": "Set device clock to phone time", - "settings_timeSynchronized": "Time synchronized", + "settings_timeSent": "Time sent to the radio", + "settings_radioNoReply": "No reply from the radio", "settings_refreshContacts": "Refresh Contacts", "settings_refreshContactsSubtitle": "Reload contact list from device", "settings_rebootDevice": "Reboot Device", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index ff107824..9fba4593 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Modo de privacidad desactivado", "settings_actions": "Acciones", "settings_deleteAllPaths": "Eliminar todas las rutas", - "settings_deleteAllPathsSubtitle": "Borrar todos los datos de ruta de los contactos", + "settings_deleteAllPathsSubtitle": "Borrar el historial de rutas de la app para todos los contactos", + "settings_allPathsDeleted": "Rutas eliminadas", + "settings_contactsRefreshed": "Contactos actualizados", + "settings_rebootSent": "Reinicio enviado. La radio se desconectará.", "settings_sendAdvertisement": "Enviar anuncio", "settings_sendAdvertisementSubtitle": "Difundir la presencia ahora", "settings_advertisementSent": "Anuncio enviado", "settings_syncTime": "Sincronizar hora", "settings_syncTimeSubtitle": "Establecer la hora del dispositivo con la del teléfono", - "settings_timeSynchronized": "Hora sincronizada", + "settings_timeSent": "Hora enviada a la radio", + "settings_radioNoReply": "Sin respuesta de la radio", "settings_refreshContacts": "Actualizar contactos", "settings_refreshContactsSubtitle": "Recargar lista de contactos del dispositivo", "settings_rebootDevice": "Reiniciar dispositivo", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 393797fb..6d5bfccf 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Mode de confidentialité désactivé", "settings_actions": "Actions", "settings_deleteAllPaths": "Supprimer tous les chemins", - "settings_deleteAllPathsSubtitle": "Effacer toutes les données de chemin des contacts", + "settings_deleteAllPathsSubtitle": "Effacer l'historique des chemins de l'app pour tous les contacts", + "settings_allPathsDeleted": "Chemins supprimés", + "settings_contactsRefreshed": "Contacts actualisés", + "settings_rebootSent": "Redémarrage envoyé. La radio va se déconnecter.", "settings_sendAdvertisement": "S'annoncer", "settings_sendAdvertisementSubtitle": "Diffuser la présence maintenant", "settings_advertisementSent": "Annonce envoyée", "settings_syncTime": "Synchroniser l'heure", "settings_syncTimeSubtitle": "Régler l'heure de l'appareil sur celle du téléphone", - "settings_timeSynchronized": "Heure synchronisée", + "settings_timeSent": "Heure envoyée à la radio", + "settings_radioNoReply": "Pas de réponse de la radio", "settings_refreshContacts": "Actualiser les contacts", "settings_refreshContactsSubtitle": "Recharger la liste des contacts depuis l'appareil", "settings_rebootDevice": "Redémarrer l'appareil", diff --git a/lib/l10n/app_hu.arb b/lib/l10n/app_hu.arb index d1db6dc5..01a54f87 100644 --- a/lib/l10n/app_hu.arb +++ b/lib/l10n/app_hu.arb @@ -187,13 +187,17 @@ "settings_privacyModeDisabled": "Az adatvédelmi mód letiltva", "settings_actions": "Akciók", "settings_deleteAllPaths": "Az összes elérési út törlése", - "settings_deleteAllPathsSubtitle": "Törölje az összes elérési utat a névjegyekből", + "settings_deleteAllPathsSubtitle": "Az alkalmazás elérési út előzményeinek törlése minden kapcsolatnál", + "settings_allPathsDeleted": "Elérési utak törölve", + "settings_contactsRefreshed": "Névjegyek frissítve", + "settings_rebootSent": "Újraindítás elküldve. A rádió bontja a kapcsolatot.", "settings_sendAdvertisement": "Hirdetés küldése", "settings_sendAdvertisementSubtitle": "Jelenlét a közvetítésben most", "settings_advertisementSent": "Hirdetés elküldve", "settings_syncTime": "Szinkronizálási idő", "settings_syncTimeSubtitle": "Az eszköz órájának beállítása a telefon idejére", - "settings_timeSynchronized": "Idő szinkronizálva", + "settings_timeSent": "Idő elküldve a rádiónak", + "settings_radioNoReply": "Nincs válasz a rádiótól", "settings_refreshContacts": "Névjegyek frissítése", "settings_refreshContactsSubtitle": "Névjegylista újratöltése az eszközről", "settings_rebootDevice": "Eszköz újraindítása", diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index 12366623..51486d9c 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -121,13 +121,17 @@ "settings_privacyModeDisabled": "Modalità privacy disabilitata", "settings_actions": "Azioni", "settings_deleteAllPaths": "Elimina tutti i percorsi", - "settings_deleteAllPathsSubtitle": "Cancella tutti i dati di percorso dai contatti", + "settings_deleteAllPathsSubtitle": "Cancella la cronologia dei percorsi dell'app per tutti i contatti", + "settings_allPathsDeleted": "Percorsi eliminati", + "settings_contactsRefreshed": "Contatti aggiornati", + "settings_rebootSent": "Riavvio inviato. La radio si disconnetterà.", "settings_sendAdvertisement": "Invia annuncio", "settings_sendAdvertisementSubtitle": "Trasmetti ora la presenza", "settings_advertisementSent": "Annuncio inviato", "settings_syncTime": "Sincronizza ora", "settings_syncTimeSubtitle": "Imposta l'orologio del dispositivo sull'ora del telefono", - "settings_timeSynchronized": "Ora sincronizzata", + "settings_timeSent": "Ora inviata alla radio", + "settings_radioNoReply": "Nessuna risposta dalla radio", "settings_refreshContacts": "Aggiorna contatti", "settings_refreshContactsSubtitle": "Ricarica l'elenco dei contatti dal dispositivo", "settings_rebootDevice": "Riavvia dispositivo", diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index b49fe02d..77a05f17 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -193,13 +193,17 @@ "settings_privacyModeDisabled": "プライバシーモードは無効です", "settings_actions": "操作", "settings_deleteAllPaths": "すべての経路を削除", - "settings_deleteAllPathsSubtitle": "連絡先からすべての経路データを消去します", + "settings_deleteAllPathsSubtitle": "すべての連絡先について、アプリの経路履歴を消去します", + "settings_allPathsDeleted": "経路を削除しました", + "settings_contactsRefreshed": "連絡先を更新しました", + "settings_rebootSent": "再起動を送信しました。ラジオとの接続が切れます。", "settings_sendAdvertisement": "アドバートを送信", "settings_sendAdvertisementSubtitle": "現在の存在を送信します", "settings_advertisementSent": "アドバートを送信しました", "settings_syncTime": "時刻を同期", "settings_syncTimeSubtitle": "デバイスの時刻をスマートフォンに合わせます", - "settings_timeSynchronized": "時刻を同期しました", + "settings_timeSent": "時刻をラジオに送信しました", + "settings_radioNoReply": "ラジオから応答がありません", "settings_refreshContacts": "連絡先を更新", "settings_refreshContactsSubtitle": "デバイスから連絡先リストを再読み込みします", "settings_rebootDevice": "デバイスを再起動", diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb index 9e9b84d1..b4739f42 100644 --- a/lib/l10n/app_ko.arb +++ b/lib/l10n/app_ko.arb @@ -187,13 +187,17 @@ "settings_privacyModeDisabled": "개인 정보 보호 모드 비활성화", "settings_actions": "행동", "settings_deleteAllPaths": "모든 경로 삭제", - "settings_deleteAllPathsSubtitle": "연락처의 모든 경로 데이터를 지웁니다", + "settings_deleteAllPathsSubtitle": "모든 연락처에 대한 앱의 경로 기록을 지웁니다", + "settings_allPathsDeleted": "경로를 삭제했습니다", + "settings_contactsRefreshed": "연락처를 새로고침했습니다", + "settings_rebootSent": "재부팅을 보냈습니다. 라디오 연결이 끊어집니다.", "settings_sendAdvertisement": "어드버트 전송", "settings_sendAdvertisementSubtitle": "현재 존재를 방송합니다.", "settings_advertisementSent": "어드버트가 전송되었습니다.", "settings_syncTime": "시간 동기화", "settings_syncTimeSubtitle": "장치 시계를 휴대폰 시간으로 설정", - "settings_timeSynchronized": "시간이 동기화되었습니다.", + "settings_timeSent": "시간을 라디오로 보냈습니다", + "settings_radioNoReply": "라디오에서 응답이 없습니다", "settings_refreshContacts": "연락처 새로고침", "settings_refreshContactsSubtitle": "장치에서 연락처 목록을 다시 불러오기", "settings_rebootDevice": "장치 재부팅", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 3e3163ac..b3a5b04d 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -1672,9 +1672,27 @@ abstract class AppLocalizations { /// No description provided for @settings_deleteAllPathsSubtitle. /// /// In en, this message translates to: - /// **'Clear all path data from contacts'** + /// **'Clear the app\'s path history for all contacts'** String get settings_deleteAllPathsSubtitle; + /// No description provided for @settings_allPathsDeleted. + /// + /// In en, this message translates to: + /// **'Paths deleted'** + String get settings_allPathsDeleted; + + /// No description provided for @settings_contactsRefreshed. + /// + /// In en, this message translates to: + /// **'Contacts refreshed'** + String get settings_contactsRefreshed; + + /// No description provided for @settings_rebootSent. + /// + /// In en, this message translates to: + /// **'Reboot sent. The radio will disconnect.'** + String get settings_rebootSent; + /// No description provided for @settings_sendAdvertisement. /// /// In en, this message translates to: @@ -1705,11 +1723,17 @@ abstract class AppLocalizations { /// **'Set device clock to phone time'** String get settings_syncTimeSubtitle; - /// No description provided for @settings_timeSynchronized. + /// No description provided for @settings_timeSent. /// /// In en, this message translates to: - /// **'Time synchronized'** - String get settings_timeSynchronized; + /// **'Time sent to the radio'** + String get settings_timeSent; + + /// No description provided for @settings_radioNoReply. + /// + /// In en, this message translates to: + /// **'No reply from the radio'** + String get settings_radioNoReply; /// No description provided for @settings_refreshContacts. /// diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 83234cc3..6debe08f 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -902,7 +902,17 @@ class AppLocalizationsBg extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Изчисти всички данни за пътищата от контактите'; + 'Изчисти историята на пътищата в приложението за всички контакти'; + + @override + String get settings_allPathsDeleted => 'Пътищата са изтрити'; + + @override + String get settings_contactsRefreshed => 'Контактите са презаредени'; + + @override + String get settings_rebootSent => + 'Рестартирането е изпратено. Радиото ще прекъсне връзката.'; @override String get settings_sendAdvertisement => 'Изпрати обява'; @@ -921,7 +931,10 @@ class AppLocalizationsBg extends AppLocalizations { 'Задайте часовника на устройството да отговаря на времето на телефона'; @override - String get settings_timeSynchronized => 'Синхронизирано във времето'; + String get settings_timeSent => 'Часът е изпратен към радиото'; + + @override + String get settings_radioNoReply => 'Няма отговор от радиото'; @override String get settings_refreshContacts => 'Презареди контакти'; diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 20439606..85a56f5f 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -889,7 +889,16 @@ class AppLocalizationsCs extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Vymazat všechna data cest z kontaktů'; + 'Vymazat historii cest v aplikaci pro všechny kontakty'; + + @override + String get settings_allPathsDeleted => 'Cesty smazány'; + + @override + String get settings_contactsRefreshed => 'Kontakty obnoveny'; + + @override + String get settings_rebootSent => 'Restart odeslán. Rádio se odpojí.'; @override String get settings_sendAdvertisement => 'Odeslat advert'; @@ -909,7 +918,10 @@ class AppLocalizationsCs extends AppLocalizations { 'Nastavit hodiny zařízení podle času telefonu'; @override - String get settings_timeSynchronized => 'Čas synchronizován'; + String get settings_timeSent => 'Čas odeslán do rádia'; + + @override + String get settings_radioNoReply => 'Rádio neodpovídá'; @override String get settings_refreshContacts => 'Obnovit kontakty'; diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index ee3413f2..8691e20d 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -900,7 +900,17 @@ class AppLocalizationsDe extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Alle Pfaddaten aus den Kontakten entfernen'; + 'Pfadverlauf der App für alle Kontakte löschen'; + + @override + String get settings_allPathsDeleted => 'Pfade gelöscht'; + + @override + String get settings_contactsRefreshed => 'Kontakte aktualisiert'; + + @override + String get settings_rebootSent => + 'Neustart gesendet. Das Funkgerät trennt die Verbindung.'; @override String get settings_sendAdvertisement => 'Ankündigung senden'; @@ -919,7 +929,10 @@ class AppLocalizationsDe extends AppLocalizations { 'Geräteuhr auf die Zeit des Telefons setzen'; @override - String get settings_timeSynchronized => 'Zeit synchronisiert'; + String get settings_timeSent => 'Zeit an das Funkgerät gesendet'; + + @override + String get settings_radioNoReply => 'Keine Antwort vom Funkgerät'; @override String get settings_refreshContacts => 'Kontakte aktualisieren'; diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index b14446ff..20fb4f55 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -882,7 +882,16 @@ class AppLocalizationsEn extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Clear all path data from contacts'; + 'Clear the app\'s path history for all contacts'; + + @override + String get settings_allPathsDeleted => 'Paths deleted'; + + @override + String get settings_contactsRefreshed => 'Contacts refreshed'; + + @override + String get settings_rebootSent => 'Reboot sent. The radio will disconnect.'; @override String get settings_sendAdvertisement => 'Send Advertisement'; @@ -900,7 +909,10 @@ class AppLocalizationsEn extends AppLocalizations { String get settings_syncTimeSubtitle => 'Set device clock to phone time'; @override - String get settings_timeSynchronized => 'Time synchronized'; + String get settings_timeSent => 'Time sent to the radio'; + + @override + String get settings_radioNoReply => 'No reply from the radio'; @override String get settings_refreshContacts => 'Refresh Contacts'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 659221d3..97de6938 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -897,7 +897,17 @@ class AppLocalizationsEs extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Borrar todos los datos de ruta de los contactos'; + 'Borrar el historial de rutas de la app para todos los contactos'; + + @override + String get settings_allPathsDeleted => 'Rutas eliminadas'; + + @override + String get settings_contactsRefreshed => 'Contactos actualizados'; + + @override + String get settings_rebootSent => + 'Reinicio enviado. La radio se desconectará.'; @override String get settings_sendAdvertisement => 'Enviar anuncio'; @@ -917,7 +927,10 @@ class AppLocalizationsEs extends AppLocalizations { 'Establecer la hora del dispositivo con la del teléfono'; @override - String get settings_timeSynchronized => 'Hora sincronizada'; + String get settings_timeSent => 'Hora enviada a la radio'; + + @override + String get settings_radioNoReply => 'Sin respuesta de la radio'; @override String get settings_refreshContacts => 'Actualizar contactos'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index acf529d3..8d829fcf 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -901,7 +901,17 @@ class AppLocalizationsFr extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Effacer toutes les données de chemin des contacts'; + 'Effacer l\'historique des chemins de l\'app pour tous les contacts'; + + @override + String get settings_allPathsDeleted => 'Chemins supprimés'; + + @override + String get settings_contactsRefreshed => 'Contacts actualisés'; + + @override + String get settings_rebootSent => + 'Redémarrage envoyé. La radio va se déconnecter.'; @override String get settings_sendAdvertisement => 'S\'annoncer'; @@ -921,7 +931,10 @@ class AppLocalizationsFr extends AppLocalizations { 'Régler l\'heure de l\'appareil sur celle du téléphone'; @override - String get settings_timeSynchronized => 'Heure synchronisée'; + String get settings_timeSent => 'Heure envoyée à la radio'; + + @override + String get settings_radioNoReply => 'Pas de réponse de la radio'; @override String get settings_refreshContacts => 'Actualiser les contacts'; diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index 50753f69..eb0904eb 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -894,7 +894,17 @@ class AppLocalizationsHu extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Törölje az összes elérési utat a névjegyekből'; + 'Az alkalmazás elérési út előzményeinek törlése minden kapcsolatnál'; + + @override + String get settings_allPathsDeleted => 'Elérési utak törölve'; + + @override + String get settings_contactsRefreshed => 'Névjegyek frissítve'; + + @override + String get settings_rebootSent => + 'Újraindítás elküldve. A rádió bontja a kapcsolatot.'; @override String get settings_sendAdvertisement => 'Hirdetés küldése'; @@ -914,7 +924,10 @@ class AppLocalizationsHu extends AppLocalizations { 'Az eszköz órájának beállítása a telefon idejére'; @override - String get settings_timeSynchronized => 'Idő szinkronizálva'; + String get settings_timeSent => 'Idő elküldve a rádiónak'; + + @override + String get settings_radioNoReply => 'Nincs válasz a rádiótól'; @override String get settings_refreshContacts => 'Névjegyek frissítése'; diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index 2cf5ddc3..d0d56b59 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -899,7 +899,17 @@ class AppLocalizationsIt extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Cancella tutti i dati di percorso dai contatti'; + 'Cancella la cronologia dei percorsi dell\'app per tutti i contatti'; + + @override + String get settings_allPathsDeleted => 'Percorsi eliminati'; + + @override + String get settings_contactsRefreshed => 'Contatti aggiornati'; + + @override + String get settings_rebootSent => + 'Riavvio inviato. La radio si disconnetterà.'; @override String get settings_sendAdvertisement => 'Invia annuncio'; @@ -918,7 +928,10 @@ class AppLocalizationsIt extends AppLocalizations { 'Imposta l\'orologio del dispositivo sull\'ora del telefono'; @override - String get settings_timeSynchronized => 'Ora sincronizzata'; + String get settings_timeSent => 'Ora inviata alla radio'; + + @override + String get settings_radioNoReply => 'Nessuna risposta dalla radio'; @override String get settings_refreshContacts => 'Aggiorna contatti'; diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index 6639865c..f3000d39 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -849,7 +849,16 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_deleteAllPaths => 'すべての経路を削除'; @override - String get settings_deleteAllPathsSubtitle => '連絡先からすべての経路データを消去します'; + String get settings_deleteAllPathsSubtitle => 'すべての連絡先について、アプリの経路履歴を消去します'; + + @override + String get settings_allPathsDeleted => '経路を削除しました'; + + @override + String get settings_contactsRefreshed => '連絡先を更新しました'; + + @override + String get settings_rebootSent => '再起動を送信しました。ラジオとの接続が切れます。'; @override String get settings_sendAdvertisement => 'アドバートを送信'; @@ -867,7 +876,10 @@ class AppLocalizationsJa extends AppLocalizations { String get settings_syncTimeSubtitle => 'デバイスの時刻をスマートフォンに合わせます'; @override - String get settings_timeSynchronized => '時刻を同期しました'; + String get settings_timeSent => '時刻をラジオに送信しました'; + + @override + String get settings_radioNoReply => 'ラジオから応答がありません'; @override String get settings_refreshContacts => '連絡先を更新'; diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index fb2c21f0..682da79c 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -851,7 +851,16 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_deleteAllPaths => '모든 경로 삭제'; @override - String get settings_deleteAllPathsSubtitle => '연락처의 모든 경로 데이터를 지웁니다'; + String get settings_deleteAllPathsSubtitle => '모든 연락처에 대한 앱의 경로 기록을 지웁니다'; + + @override + String get settings_allPathsDeleted => '경로를 삭제했습니다'; + + @override + String get settings_contactsRefreshed => '연락처를 새로고침했습니다'; + + @override + String get settings_rebootSent => '재부팅을 보냈습니다. 라디오 연결이 끊어집니다.'; @override String get settings_sendAdvertisement => '어드버트 전송'; @@ -869,7 +878,10 @@ class AppLocalizationsKo extends AppLocalizations { String get settings_syncTimeSubtitle => '장치 시계를 휴대폰 시간으로 설정'; @override - String get settings_timeSynchronized => '시간이 동기화되었습니다.'; + String get settings_timeSent => '시간을 라디오로 보냈습니다'; + + @override + String get settings_radioNoReply => '라디오에서 응답이 없습니다'; @override String get settings_refreshContacts => '연락처 새로고침'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index 7d4e1e0c..ad26af34 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -893,7 +893,17 @@ class AppLocalizationsNl extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Wis alle padgegevens van contacten'; + 'Wis de padgeschiedenis van de app voor alle contacten'; + + @override + String get settings_allPathsDeleted => 'Paden verwijderd'; + + @override + String get settings_contactsRefreshed => 'Contacten vernieuwd'; + + @override + String get settings_rebootSent => + 'Herstart verzonden. De radio verbreekt de verbinding.'; @override String get settings_sendAdvertisement => 'Advert verzenden'; @@ -912,7 +922,10 @@ class AppLocalizationsNl extends AppLocalizations { 'Stel de apparaatklok in op de tijd van de telefoon'; @override - String get settings_timeSynchronized => 'Tijd gesynchroniseerd'; + String get settings_timeSent => 'Tijd naar de radio verzonden'; + + @override + String get settings_radioNoReply => 'Geen antwoord van de radio'; @override String get settings_refreshContacts => 'Contacten vernieuwen'; diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 6e5b1625..be730096 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -907,7 +907,16 @@ class AppLocalizationsPl extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Wyczyść wszystkie dane ścieżek z kontaktów'; + 'Wyczyść historię ścieżek w aplikacji dla wszystkich kontaktów'; + + @override + String get settings_allPathsDeleted => 'Ścieżki usunięte'; + + @override + String get settings_contactsRefreshed => 'Kontakty odświeżone'; + + @override + String get settings_rebootSent => 'Wysłano restart. Radio się rozłączy.'; @override String get settings_sendAdvertisement => 'Wyślij rozgłoszenie'; @@ -926,7 +935,10 @@ class AppLocalizationsPl extends AppLocalizations { 'Ustaw zegar urządzenia na czas telefonu'; @override - String get settings_timeSynchronized => 'Czas zsynchronizowany'; + String get settings_timeSent => 'Czas wysłany do radia'; + + @override + String get settings_radioNoReply => 'Brak odpowiedzi z radia'; @override String get settings_refreshContacts => 'Odśwież Kontakty'; diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index 0a997079..2d9c5744 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -899,7 +899,17 @@ class AppLocalizationsPt extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Limpar todos os dados de caminhos dos contatos'; + 'Limpar o histórico de caminhos do app para todos os contatos'; + + @override + String get settings_allPathsDeleted => 'Caminhos excluídos'; + + @override + String get settings_contactsRefreshed => 'Contatos atualizados'; + + @override + String get settings_rebootSent => + 'Reinício enviado. O rádio vai desconectar.'; @override String get settings_sendAdvertisement => 'Enviar Anúncio'; @@ -919,7 +929,10 @@ class AppLocalizationsPt extends AppLocalizations { 'Definir o relógio do dispositivo para o horário do telefone'; @override - String get settings_timeSynchronized => 'Sincronizado com o tempo'; + String get settings_timeSent => 'Hora enviada ao rádio'; + + @override + String get settings_radioNoReply => 'Sem resposta do rádio'; @override String get settings_refreshContacts => 'Atualizar Contatos'; @@ -9186,7 +9199,17 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get settings_deleteAllPathsSubtitle => - 'Limpar todos os dados de caminhos dos contactos'; + 'Limpar o histórico de caminhos da app para todos os contactos'; + + @override + String get settings_allPathsDeleted => 'Caminhos eliminados'; + + @override + String get settings_contactsRefreshed => 'Contactos atualizados'; + + @override + String get settings_rebootSent => + 'Reinício enviado. O rádio vai desligar-se.'; @override String get settings_sendAdvertisement => 'Enviar anúncio'; @@ -9205,7 +9228,10 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { 'Acertar o relógio do dispositivo pela hora do telemóvel'; @override - String get settings_timeSynchronized => 'Hora sincronizada'; + String get settings_timeSent => 'Hora enviada para o rádio'; + + @override + String get settings_radioNoReply => 'Sem resposta do rádio'; @override String get settings_refreshContacts => 'Atualizar contactos'; diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index af72c48e..baf86d88 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -900,7 +900,17 @@ class AppLocalizationsRu extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Очистить все данные путей в контактах'; + 'Очистить историю путей в приложении для всех контактов'; + + @override + String get settings_allPathsDeleted => 'Пути удалены'; + + @override + String get settings_contactsRefreshed => 'Контакты обновлены'; + + @override + String get settings_rebootSent => + 'Перезагрузка отправлена. Радио отключится.'; @override String get settings_sendAdvertisement => 'Отправить анонсирование'; @@ -919,7 +929,10 @@ class AppLocalizationsRu extends AppLocalizations { String get settings_syncTimeSubtitle => 'Синхронизировать время с телефоном'; @override - String get settings_timeSynchronized => 'Время синхронизировано'; + String get settings_timeSent => 'Время отправлено на радио'; + + @override + String get settings_radioNoReply => 'Нет ответа от радио'; @override String get settings_refreshContacts => 'Обновить контакты'; diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 0e93dbfb..10bf6a11 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -893,7 +893,16 @@ class AppLocalizationsSk extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Vymazať všetky údaje o cestách z kontaktov'; + 'Vymazať históriu ciest v aplikácii pre všetky kontakty'; + + @override + String get settings_allPathsDeleted => 'Cesty odstránené'; + + @override + String get settings_contactsRefreshed => 'Kontakty načítané'; + + @override + String get settings_rebootSent => 'Reštart odoslaný. Rádio sa odpojí.'; @override String get settings_sendAdvertisement => 'Odoslať inzerát'; @@ -912,7 +921,10 @@ class AppLocalizationsSk extends AppLocalizations { 'Nastaviť hodiny zariadenia na čas telefónu'; @override - String get settings_timeSynchronized => 'Čas synchronizovaný'; + String get settings_timeSent => 'Čas odoslaný do rádia'; + + @override + String get settings_radioNoReply => 'Rádio neodpovedá'; @override String get settings_refreshContacts => 'Načítať Kontakty'; diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index 8c612210..473d4248 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -895,7 +895,17 @@ class AppLocalizationsSl extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Počisti vse podatke o poteh iz stikov'; + 'Počisti zgodovino poti v aplikaciji za vse stike'; + + @override + String get settings_allPathsDeleted => 'Poti izbrisane'; + + @override + String get settings_contactsRefreshed => 'Stiki osveženi'; + + @override + String get settings_rebootSent => + 'Ponovni zagon poslan. Radio se bo odklopil.'; @override String get settings_sendAdvertisement => 'Pošlji Oglas'; @@ -914,7 +924,10 @@ class AppLocalizationsSl extends AppLocalizations { String get settings_syncTimeSubtitle => 'Nastavi uro naprave na čas telefona'; @override - String get settings_timeSynchronized => 'Ura sinhronizirana'; + String get settings_timeSent => 'Čas poslan radiu'; + + @override + String get settings_radioNoReply => 'Ni odgovora radia'; @override String get settings_refreshContacts => 'Ponovno obišči kontakte'; diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index 1110afea..02bbd989 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -887,7 +887,16 @@ class AppLocalizationsSv extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Rensa all ruttdata från kontakter'; + 'Rensa appens rutthistorik för alla kontakter'; + + @override + String get settings_allPathsDeleted => 'Rutter raderade'; + + @override + String get settings_contactsRefreshed => 'Kontakter uppdaterade'; + + @override + String get settings_rebootSent => 'Omstart skickad. Radion kopplas från.'; @override String get settings_sendAdvertisement => 'Skicka annons'; @@ -905,7 +914,10 @@ class AppLocalizationsSv extends AppLocalizations { String get settings_syncTimeSubtitle => 'Ställ enheten till telefonens tid'; @override - String get settings_timeSynchronized => 'Tidssynkroniserat'; + String get settings_timeSent => 'Tid skickad till radion'; + + @override + String get settings_radioNoReply => 'Inget svar från radion'; @override String get settings_refreshContacts => 'Uppdatera Kontakter'; diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index 121883c5..81f13806 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -895,7 +895,17 @@ class AppLocalizationsUk extends AppLocalizations { @override String get settings_deleteAllPathsSubtitle => - 'Очистити всі дані шляхів у контактах'; + 'Очистити історію шляхів у застосунку для всіх контактів'; + + @override + String get settings_allPathsDeleted => 'Шляхи видалено'; + + @override + String get settings_contactsRefreshed => 'Контакти оновлено'; + + @override + String get settings_rebootSent => + 'Перезавантаження надіслано. Радіо від\'єднається.'; @override String get settings_sendAdvertisement => 'Оголосити себе'; @@ -915,7 +925,10 @@ class AppLocalizationsUk extends AppLocalizations { 'Встановити час пристрою відповідно до часу телефону'; @override - String get settings_timeSynchronized => 'Час синхронізовано'; + String get settings_timeSent => 'Час надіслано на радіо'; + + @override + String get settings_radioNoReply => 'Немає відповіді від радіо'; @override String get settings_refreshContacts => 'Оновити контакти'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index 9ad419c5..d688b4a2 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -832,7 +832,16 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_deleteAllPaths => '删除所有路径'; @override - String get settings_deleteAllPathsSubtitle => '清除联系人中的所有路径数据'; + String get settings_deleteAllPathsSubtitle => '清除应用中所有联系人的路径历史'; + + @override + String get settings_allPathsDeleted => '路径已删除'; + + @override + String get settings_contactsRefreshed => '联系人已刷新'; + + @override + String get settings_rebootSent => '已发送重启命令。无线电将断开连接。'; @override String get settings_sendAdvertisement => '发送广播'; @@ -850,7 +859,10 @@ class AppLocalizationsZh extends AppLocalizations { String get settings_syncTimeSubtitle => '将设备时钟设置为与手机时间一致'; @override - String get settings_timeSynchronized => '时间已同步'; + String get settings_timeSent => '时间已发送到无线电'; + + @override + String get settings_radioNoReply => '无线电无响应'; @override String get settings_refreshContacts => '刷新联系人'; diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index 21d7f20d..557a188e 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Privacy modus is uitgeschakeld", "settings_actions": "Acties", "settings_deleteAllPaths": "Alle paden verwijderen", - "settings_deleteAllPathsSubtitle": "Wis alle padgegevens van contacten", + "settings_deleteAllPathsSubtitle": "Wis de padgeschiedenis van de app voor alle contacten", + "settings_allPathsDeleted": "Paden verwijderd", + "settings_contactsRefreshed": "Contacten vernieuwd", + "settings_rebootSent": "Herstart verzonden. De radio verbreekt de verbinding.", "settings_sendAdvertisement": "Advert verzenden", "settings_sendAdvertisementSubtitle": "Nu aanwezigheid uitzenden", "settings_advertisementSent": "Advert verzonden", "settings_syncTime": "Tijd Synchroniseren", "settings_syncTimeSubtitle": "Stel de apparaatklok in op de tijd van de telefoon", - "settings_timeSynchronized": "Tijd gesynchroniseerd", + "settings_timeSent": "Tijd naar de radio verzonden", + "settings_radioNoReply": "Geen antwoord van de radio", "settings_refreshContacts": "Contacten vernieuwen", "settings_refreshContactsSubtitle": "Contactlijst opnieuw laden van het apparaat", "settings_rebootDevice": "Apparaat opnieuw opstarten", diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index e0d02776..8a76fce7 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Tryb prywatności wyłączony", "settings_actions": "Działania", "settings_deleteAllPaths": "Usuń wszystkie ścieżki", - "settings_deleteAllPathsSubtitle": "Wyczyść wszystkie dane ścieżek z kontaktów", + "settings_deleteAllPathsSubtitle": "Wyczyść historię ścieżek w aplikacji dla wszystkich kontaktów", + "settings_allPathsDeleted": "Ścieżki usunięte", + "settings_contactsRefreshed": "Kontakty odświeżone", + "settings_rebootSent": "Wysłano restart. Radio się rozłączy.", "settings_sendAdvertisement": "Wyślij rozgłoszenie", "settings_sendAdvertisementSubtitle": "Nadaj obecność teraz", "settings_advertisementSent": "Rozgłoszenie wysłane", "settings_syncTime": "Synchronizacja czasu", "settings_syncTimeSubtitle": "Ustaw zegar urządzenia na czas telefonu", - "settings_timeSynchronized": "Czas zsynchronizowany", + "settings_timeSent": "Czas wysłany do radia", + "settings_radioNoReply": "Brak odpowiedzi z radia", "settings_refreshContacts": "Odśwież Kontakty", "settings_refreshContactsSubtitle": "Odśwież listę kontaktów z urządzenia", "settings_rebootDevice": "Zrestartuj Urządzenie", diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index f3547f3f..d764b81e 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Modo de privacidade desativado", "settings_actions": "Ações", "settings_deleteAllPaths": "Excluir todos os caminhos", - "settings_deleteAllPathsSubtitle": "Limpar todos os dados de caminhos dos contatos", + "settings_deleteAllPathsSubtitle": "Limpar o histórico de caminhos do app para todos os contatos", + "settings_allPathsDeleted": "Caminhos excluídos", + "settings_contactsRefreshed": "Contatos atualizados", + "settings_rebootSent": "Reinício enviado. O rádio vai desconectar.", "settings_sendAdvertisement": "Enviar Anúncio", "settings_sendAdvertisementSubtitle": "Presença de transmissão agora", "settings_advertisementSent": "Anúncio enviado", "settings_syncTime": "Tempo de Sincronização", "settings_syncTimeSubtitle": "Definir o relógio do dispositivo para o horário do telefone", - "settings_timeSynchronized": "Sincronizado com o tempo", + "settings_timeSent": "Hora enviada ao rádio", + "settings_radioNoReply": "Sem resposta do rádio", "settings_refreshContacts": "Atualizar Contatos", "settings_refreshContactsSubtitle": "Recarregar a lista de contatos do dispositivo", "settings_rebootDevice": "Reiniciar Dispositivo", diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index 6f11ba88..0b26717e 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -255,13 +255,17 @@ "settings_telemetryModeUpdated": "Modo de telemetria atualizado", "settings_actions": "Ações", "settings_deleteAllPaths": "Eliminar todos os caminhos", - "settings_deleteAllPathsSubtitle": "Limpar todos os dados de caminhos dos contactos", + "settings_deleteAllPathsSubtitle": "Limpar o histórico de caminhos da app para todos os contactos", + "settings_allPathsDeleted": "Caminhos eliminados", + "settings_contactsRefreshed": "Contactos atualizados", + "settings_rebootSent": "Reinício enviado. O rádio vai desligar-se.", "settings_sendAdvertisement": "Enviar anúncio", "settings_sendAdvertisementSubtitle": "Difundir presença agora", "settings_advertisementSent": "Anúncio enviado", "settings_syncTime": "Sincronizar hora", "settings_syncTimeSubtitle": "Acertar o relógio do dispositivo pela hora do telemóvel", - "settings_timeSynchronized": "Hora sincronizada", + "settings_timeSent": "Hora enviada para o rádio", + "settings_radioNoReply": "Sem resposta do rádio", "settings_refreshContacts": "Atualizar contactos", "settings_refreshContactsSubtitle": "Recarregar a lista de contactos do dispositivo", "settings_rebootDevice": "Reiniciar dispositivo", diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index f1534715..631e13b7 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -101,13 +101,17 @@ "settings_privacyModeDisabled": "Режим конфиденциальности выключен", "settings_actions": "Действия", "settings_deleteAllPaths": "Удалить все пути", - "settings_deleteAllPathsSubtitle": "Очистить все данные путей в контактах", + "settings_deleteAllPathsSubtitle": "Очистить историю путей в приложении для всех контактов", + "settings_allPathsDeleted": "Пути удалены", + "settings_contactsRefreshed": "Контакты обновлены", + "settings_rebootSent": "Перезагрузка отправлена. Радио отключится.", "settings_sendAdvertisement": "Отправить анонсирование", "settings_sendAdvertisementSubtitle": "Отправить анонсирование о присутствии сейчас", "settings_advertisementSent": "Анонсирование отправлено", "settings_syncTime": "Синхронизация времени", "settings_syncTimeSubtitle": "Синхронизировать время с телефоном", - "settings_timeSynchronized": "Время синхронизировано", + "settings_timeSent": "Время отправлено на радио", + "settings_radioNoReply": "Нет ответа от радио", "settings_refreshContacts": "Обновить контакты", "settings_refreshContactsSubtitle": "Перезагрузить список контактов с устройства", "settings_rebootDevice": "Перезагрузить устройство", diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb index 14b282fa..f586d7e9 100644 --- a/lib/l10n/app_sk.arb +++ b/lib/l10n/app_sk.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Ochranný režim je vypnutý", "settings_actions": "Možné akcie", "settings_deleteAllPaths": "Odstrániť všetky cesty", - "settings_deleteAllPathsSubtitle": "Vymazať všetky údaje o cestách z kontaktov", + "settings_deleteAllPathsSubtitle": "Vymazať históriu ciest v aplikácii pre všetky kontakty", + "settings_allPathsDeleted": "Cesty odstránené", + "settings_contactsRefreshed": "Kontakty načítané", + "settings_rebootSent": "Reštart odoslaný. Rádio sa odpojí.", "settings_sendAdvertisement": "Odoslať inzerát", "settings_sendAdvertisementSubtitle": "Momentálne priezornejšie.", "settings_advertisementSent": "Inzerát odoslaný", "settings_syncTime": "Čas synchronizácie", "settings_syncTimeSubtitle": "Nastaviť hodiny zariadenia na čas telefónu", - "settings_timeSynchronized": "Čas synchronizovaný", + "settings_timeSent": "Čas odoslaný do rádia", + "settings_radioNoReply": "Rádio neodpovedá", "settings_refreshContacts": "Načítať Kontakty", "settings_refreshContactsSubtitle": "Načítať zoznam kontaktov z zariadenia", "settings_rebootDevice": "Restartovať zariadenie", diff --git a/lib/l10n/app_sl.arb b/lib/l10n/app_sl.arb index fc2acb06..fd8c2630 100644 --- a/lib/l10n/app_sl.arb +++ b/lib/l10n/app_sl.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Privatni način je onemogočen.", "settings_actions": "Akcije", "settings_deleteAllPaths": "Izbriši vse poti", - "settings_deleteAllPathsSubtitle": "Počisti vse podatke o poteh iz stikov", + "settings_deleteAllPathsSubtitle": "Počisti zgodovino poti v aplikaciji za vse stike", + "settings_allPathsDeleted": "Poti izbrisane", + "settings_contactsRefreshed": "Stiki osveženi", + "settings_rebootSent": "Ponovni zagon poslan. Radio se bo odklopil.", "settings_sendAdvertisement": "Pošlji Oglas", "settings_sendAdvertisementSubtitle": "Trenutna prisotnost v oddajah", "settings_advertisementSent": "Oglas poslan", "settings_syncTime": "Nastavi uro", "settings_syncTimeSubtitle": "Nastavi uro naprave na čas telefona", - "settings_timeSynchronized": "Ura sinhronizirana", + "settings_timeSent": "Čas poslan radiu", + "settings_radioNoReply": "Ni odgovora radia", "settings_refreshContacts": "Ponovno obišči kontakte", "settings_refreshContactsSubtitle": "Ponovno naloži seznam stikov v napravi", "settings_rebootDevice": "Ponovni zagon naprave", diff --git a/lib/l10n/app_sv.arb b/lib/l10n/app_sv.arb index 68f4d01e..4f99c69e 100644 --- a/lib/l10n/app_sv.arb +++ b/lib/l10n/app_sv.arb @@ -123,13 +123,17 @@ "settings_privacyModeDisabled": "Privatläge är avstängt", "settings_actions": "Åtgärder", "settings_deleteAllPaths": "Radera alla rutter", - "settings_deleteAllPathsSubtitle": "Rensa all ruttdata från kontakter", + "settings_deleteAllPathsSubtitle": "Rensa appens rutthistorik för alla kontakter", + "settings_allPathsDeleted": "Rutter raderade", + "settings_contactsRefreshed": "Kontakter uppdaterade", + "settings_rebootSent": "Omstart skickad. Radion kopplas från.", "settings_sendAdvertisement": "Skicka annons", "settings_sendAdvertisementSubtitle": "Sänd din närvaro nu", "settings_advertisementSent": "Annons skickad", "settings_syncTime": "Synkronisera tid", "settings_syncTimeSubtitle": "Ställ enheten till telefonens tid", - "settings_timeSynchronized": "Tidssynkroniserat", + "settings_timeSent": "Tid skickad till radion", + "settings_radioNoReply": "Inget svar från radion", "settings_refreshContacts": "Uppdatera Kontakter", "settings_refreshContactsSubtitle": "Ladda om kontaktlistan från enheten", "settings_rebootDevice": "Starta om enheten", diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index 418a62f0..095ac2d2 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -124,13 +124,17 @@ "settings_privacyModeDisabled": "Режим приватності вимкнено", "settings_actions": "Дії", "settings_deleteAllPaths": "Видалити всі шляхи", - "settings_deleteAllPathsSubtitle": "Очистити всі дані шляхів у контактах", + "settings_deleteAllPathsSubtitle": "Очистити історію шляхів у застосунку для всіх контактів", + "settings_allPathsDeleted": "Шляхи видалено", + "settings_contactsRefreshed": "Контакти оновлено", + "settings_rebootSent": "Перезавантаження надіслано. Радіо від'єднається.", "settings_sendAdvertisement": "Оголосити себе", "settings_sendAdvertisementSubtitle": "Транслювати присутність зараз", "settings_advertisementSent": "Оголошення надіслано", "settings_syncTime": "Синхронізація часу", "settings_syncTimeSubtitle": "Встановити час пристрою відповідно до часу телефону", - "settings_timeSynchronized": "Час синхронізовано", + "settings_timeSent": "Час надіслано на радіо", + "settings_radioNoReply": "Немає відповіді від радіо", "settings_refreshContacts": "Оновити контакти", "settings_refreshContactsSubtitle": "Перезавантажити список контактів з пристрою", "settings_rebootDevice": "Перезавантажити пристрій", diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 56a03ab2..2a3dc710 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -129,13 +129,17 @@ "settings_privacyModeDisabled": "隐私模式已关闭", "settings_actions": "操作", "settings_deleteAllPaths": "删除所有路径", - "settings_deleteAllPathsSubtitle": "清除联系人中的所有路径数据", + "settings_deleteAllPathsSubtitle": "清除应用中所有联系人的路径历史", + "settings_allPathsDeleted": "路径已删除", + "settings_contactsRefreshed": "联系人已刷新", + "settings_rebootSent": "已发送重启命令。无线电将断开连接。", "settings_sendAdvertisement": "发送广播", "settings_sendAdvertisementSubtitle": "立即发送广播", "settings_advertisementSent": "已发送广播", "settings_syncTime": "同步时间", "settings_syncTimeSubtitle": "将设备时钟设置为与手机时间一致", - "settings_timeSynchronized": "时间已同步", + "settings_timeSent": "时间已发送到无线电", + "settings_radioNoReply": "无线电无响应", "settings_refreshContacts": "刷新联系人", "settings_refreshContactsSubtitle": "从设备重新加载联系人列表", "settings_rebootDevice": "重启设备", diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index f5c54c4c..92e940c3 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -1,3 +1,5 @@ +import 'dart:async'; + import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:provider/provider.dart'; @@ -40,6 +42,9 @@ class SettingsScreen extends StatefulWidget { class _SettingsScreenState extends State { bool _showBatteryVoltage = false; bool _deviceInfoExpanded = false; + // Radio actions waiting on the radio, for the row spinner and app bar. + bool _refreshingContacts = false; + bool _rebooting = false; void _push(BuildContext context, Widget page) { Navigator.push(context, MaterialPageRoute(builder: (_) => page)); } @@ -52,7 +57,7 @@ class _SettingsScreenState extends State { // A plain title: AppBarTitle fills the bar and stays left-aligned. title: AdaptiveAppBarTitle(l10n.settings_title), centerTitle: true, - bottom: const SyncProgressAppBarBottom(), + bottom: SyncProgressAppBarBottom(busy: _rebooting), ), body: SafeArea( top: false, @@ -638,7 +643,8 @@ class _SettingsScreenState extends State { icon: Icons.refresh, title: l10n.settings_refreshContacts, subtitle: connected ? l10n.settings_refreshContactsSubtitle : offline, - onTap: connected ? () => connector.getContacts() : null, + busy: _refreshingContacts && connected, + onTap: connected ? () => _refreshContacts(context, connector) : null, ), const Divider(height: 1, indent: 16), MeshNavTile( @@ -647,6 +653,7 @@ class _SettingsScreenState extends State { subtitle: connected ? l10n.settings_rebootDeviceSubtitle : offline, titleColor: scheme.tertiary, iconColor: scheme.tertiary, + busy: _rebooting && connected, onTap: connected ? () => _confirmReboot(context, connector) : null, ), const Divider(height: 1, indent: 16), @@ -706,10 +713,7 @@ class _SettingsScreenState extends State { try { await connector.syncTime(); if (!context.mounted) return; - showDismissibleSnackBar( - context, - content: Text(l10n.settings_timeSynchronized), - ); + showDismissibleSnackBar(context, content: Text(l10n.settings_timeSent)); } catch (e) { if (!context.mounted) return; showDismissibleSnackBar( @@ -719,6 +723,39 @@ class _SettingsScreenState extends State { } } + Future _refreshContacts( + BuildContext context, + MeshCoreConnector connector, + ) async { + final l10n = context.l10n; + if (!_ensureConnected(context, connector)) return; + setState(() => _refreshingContacts = true); + try { + await connector.getContacts(); + // END_OF_CONTACTS sets hasLoadedContacts; a stalled sync ends without. + await _untilConnector(connector, () => !connector.isLoadingContacts); + } catch (e) { + if (context.mounted) { + showDismissibleSnackBar( + context, + content: Text(l10n.settings_error(e.toString())), + ); + } + return; + } finally { + if (mounted) setState(() => _refreshingContacts = false); + } + if (!context.mounted || !connector.isConnected) return; + showDismissibleSnackBar( + context, + content: Text( + connector.hasLoadedContacts + ? l10n.settings_contactsRefreshed + : l10n.settings_radioNoReply, + ), + ); + } + Future _confirmDeleteAllPaths( BuildContext context, MeshCoreConnector connector, @@ -730,7 +767,12 @@ class _SettingsScreenState extends State { message: l10n.settings_deleteAllPathsSubtitle, confirmLabel: l10n.common_deleteAll, ); - if (confirmed) connector.deleteAllPaths(); + if (!confirmed || !context.mounted) return; + connector.deleteAllPaths(); + showDismissibleSnackBar( + context, + content: Text(l10n.settings_allPathsDeleted), + ); } Future _confirmReboot( @@ -747,6 +789,49 @@ class _SettingsScreenState extends State { ); if (!confirmed || !context.mounted) return; if (!_ensureConnected(context, connector)) return; - connector.rebootDevice(); + try { + await connector.rebootDevice(); + } catch (e) { + if (context.mounted) { + showDismissibleSnackBar( + context, + content: Text(l10n.settings_error(e.toString())), + ); + } + return; + } + if (!context.mounted) return; + showDismissibleSnackBar(context, content: Text(l10n.settings_rebootSent)); + // No reply comes; busy until the radio drops off, at most 15 s. + setState(() => _rebooting = true); + await _untilConnector( + connector, + () => !connector.isConnected, + timeout: const Duration(seconds: 15), + ); + if (mounted) setState(() => _rebooting = false); + } + + /// Completes once [done] is true, checked on each connector change, or + /// after [timeout]. + Future _untilConnector( + MeshCoreConnector connector, + bool Function() done, { + Duration? timeout, + }) async { + final completer = Completer(); + void check() { + if (done() && !completer.isCompleted) completer.complete(); + } + + connector.addListener(check); + check(); + try { + await (timeout == null + ? completer.future + : completer.future.timeout(timeout, onTimeout: () {})); + } finally { + connector.removeListener(check); + } } } diff --git a/lib/widgets/mesh_nav_tile.dart b/lib/widgets/mesh_nav_tile.dart index 584f9d2c..fb1f33f2 100644 --- a/lib/widgets/mesh_nav_tile.dart +++ b/lib/widgets/mesh_nav_tile.dart @@ -44,6 +44,10 @@ class MeshNavTile extends StatelessWidget { final Color? titleColor; final Color? iconColor; final bool showChevron; + + /// Shows the 18px spinner in place of the chevron and ignores taps while + /// the row's action runs (e.g. a radio command). The row isn't dimmed. + final bool busy; final Widget? trailing; final int? subtitleMaxLines; final EdgeInsetsGeometry padding; @@ -58,6 +62,7 @@ class MeshNavTile extends StatelessWidget { this.titleColor, this.iconColor, this.showChevron = true, + this.busy = false, this.trailing, this.subtitleMaxLines, this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12), @@ -104,7 +109,17 @@ class MeshNavTile extends StatelessWidget { ), ), ?trailing, - if (showChevron && trailing == null) + if (busy && trailing == null) + const SizedBox.square( + dimension: 24, + child: Center( + child: SizedBox.square( + dimension: 18, + child: CircularProgressIndicator(strokeWidth: 2), + ), + ), + ) + else if (showChevron && trailing == null) Icon(Icons.chevron_right, color: scheme.onSurfaceVariant, size: 24), ], ); @@ -112,9 +127,9 @@ class MeshNavTile extends StatelessWidget { return MergeSemantics( child: Semantics( button: true, - enabled: enabled, + enabled: enabled && !busy, child: InkWell( - onTap: onTap, + onTap: busy ? null : onTap, child: Padding( padding: padding, // Dimmed rather than recoloured so warn/alert tints still read as diff --git a/lib/widgets/sync_progress_overlay.dart b/lib/widgets/sync_progress_overlay.dart index 481c04ec..c55a9938 100644 --- a/lib/widgets/sync_progress_overlay.dart +++ b/lib/widgets/sync_progress_overlay.dart @@ -45,7 +45,11 @@ class MeshProgressAppBarBottom extends StatelessWidget /// contacts, channels and queued messages, one at a time. class SyncProgressAppBarBottom extends StatelessWidget implements PreferredSizeWidget { - const SyncProgressAppBarBottom({super.key}); + /// Also shows the bar, moving, while the screen waits for the radio and no + /// sync is running. + final bool busy; + + const SyncProgressAppBarBottom({super.key, this.busy = false}); @override Size get preferredSize => const Size.fromHeight(MeshProgressBar.height); @@ -54,7 +58,11 @@ class SyncProgressAppBarBottom extends StatelessWidget Widget build(BuildContext context) { return Consumer( builder: (context, connector, _) { - final state = _SyncProgressState.fromConnector(connector); + final state = + _SyncProgressState.fromConnector(connector) ?? + (busy && connector.isConnected + ? const _SyncProgressState(value: null) + : null); return MeshProgressBar(active: state != null, value: state?.value); }, ); diff --git a/test/screens/settings_pages_test.dart b/test/screens/settings_pages_test.dart index 03cffb93..112de157 100644 --- a/test/screens/settings_pages_test.dart +++ b/test/screens/settings_pages_test.dart @@ -330,6 +330,75 @@ void main() { await tester.pumpWidget(const SizedBox()); }); + testWidgets('Sync Time and Refresh Contacts end with a message', ( + tester, + ) async { + final connector = await _connectedConnector(tester); + await tester.pumpWidget(_app(connector, const SettingsScreen())); + for (var i = 0; i < 8; i++) { + await tester.pump(const Duration(milliseconds: 100)); + } + // Refresh Contacts ends when the review radio sends END_OF_CONTACTS. + final rows = { + _l10n.settings_syncTime: _l10n.settings_timeSent, + _l10n.settings_refreshContacts: _l10n.settings_contactsRefreshed, + }; + for (final MapEntry(key: title, value: message) in rows.entries) { + await tester.scrollUntilVisible( + find.text(title), + 200, + scrollable: find + .descendant( + of: find.byType(ListView), + matching: find.byType(Scrollable), + ) + .first, + ); + await tester.pump(const Duration(milliseconds: 300)); + await tester.tap(find.text(title)); + await tester.pump(); + // Real time lets the reply arrive; pump runs the code waiting for it. + for (var i = 0; i < 200; i++) { + if (find.text(message).evaluate().isNotEmpty) break; + await tester.runAsync( + () => Future.delayed(const Duration(milliseconds: 25)), + ); + await tester.pump(const Duration(milliseconds: 50)); + } + expect(find.text(message), findsOneWidget, reason: title); + } + await tester.pumpWidget(const SizedBox()); + }); + + testWidgets('Delete All Paths confirms with a snackbar', (tester) async { + final connector = await _connectedConnector(tester); + Future settle() async { + for (var i = 0; i < 8; i++) { + await tester.pump(const Duration(milliseconds: 100)); + } + } + + await tester.pumpWidget(_app(connector, const SettingsScreen())); + await settle(); + await tester.scrollUntilVisible( + find.text(_l10n.settings_deleteAllPaths), + 200, + scrollable: find + .descendant( + of: find.byType(ListView), + matching: find.byType(Scrollable), + ) + .first, + ); + await settle(); + await tester.tap(find.text(_l10n.settings_deleteAllPaths)); + await settle(); + await tester.tap(find.widgetWithText(FilledButton, _l10n.common_deleteAll)); + await settle(); + expect(find.text(_l10n.settings_allPathsDeleted), findsOneWidget); + await tester.pumpWidget(const SizedBox()); + }); + testWidgets('Radio Settings shows Save only while something differs', ( tester, ) async { From 8a5b278062c4ae8088f1252d0d73cbcaf5ef40d0 Mon Sep 17 00:00:00 2001 From: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Mon, 23 Nov 2026 23:48:29 -0700 Subject: [PATCH 17/17] Make bulk selection test find the long-press row at 2.0x text Follow-up to #706. The helper matched the row's long-press detector by vertical distance to the message text, which finds nothing when the bubble is tall at 2.0x text. Look up the detector as an ancestor of the text. --- test/screens/bulk_message_selection_test.dart | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/test/screens/bulk_message_selection_test.dart b/test/screens/bulk_message_selection_test.dart index 9cd919bf..fddaba5b 100644 --- a/test/screens/bulk_message_selection_test.dart +++ b/test/screens/bulk_message_selection_test.dart @@ -448,17 +448,18 @@ Future _tearDown(WidgetTester tester) async { /// its long-press handler: a real long press on bubble text starts text /// selection in tests) and picks "Select messages". Future _enterSelectionFrom(WidgetTester tester, Finder message) async { - final target = tester.getCenter(message); + // The row's long-press detector wraps the bubble, so it is an ancestor of + // the message text whatever the text scale. final detector = find - .byWidgetPredicate((w) => w is GestureDetector && w.onLongPress != null) + .ancestor( + of: message.first, + matching: find.byWidgetPredicate( + (w) => w is GestureDetector && w.onLongPress != null, + ), + ) + .first .evaluate() - .firstWhere((e) { - final box = e.renderObject! as RenderBox; - // Full-width detectors: match on the message's row, not its text. - return (box.localToGlobal(box.size.center(Offset.zero)).dy - target.dy) - .abs() < - 20; - }); + .single; (detector.widget as GestureDetector).onLongPress!(); await _settle(tester); await tester.ensureVisible(find.text('Select messages'));