diff --git a/documentation/additional-features.md b/documentation/additional-features.md index b160577d..86739e68 100644 --- a/documentation/additional-features.md +++ b/documentation/additional-features.md @@ -156,7 +156,7 @@ Maintains an in-memory LRU cache of up to 50 contacts, each with up to 100 route Each route keeps delivery and failure counts that fade over time (half their weight per day, at most 16 recent results). For each send attempt a route is chosen by Thompson sampling over those counts, adjusted slightly for speed and for what the radio currently hears. There are no user-tunable weights. A route is deleted only when it keeps failing and hasn't delivered for a week. Flood deliveries that receive an ACK credit the specific return path. Details: [Auto route selection](routing-paths.md#auto-route-selection). Used internally for: -- **Auto route rotation**: Picks a route for each attempt; retries usually move to a different route, and the last attempt floods +- **Auto route rotation**: Picks a route for each direct attempt; retries usually move to a different route, then the flood attempts run - **Flood statistics**: Tracks flood deliveries and failures --- @@ -167,16 +167,17 @@ Used internally for: Handles reliable delivery of outgoing direct messages: 1. Assigns a UUID and sends immediately. Only one message per contact can be in-flight at a time (avoids overflowing the firmware's 8-entry ACK table); subsequent messages are queued 2. Listens for ACK frames matched via SHA-256 hash of `[timestamp][attempt][text][sender_pubkey]` -3. On timeout, retries with exponential backoff: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s...) -4. Each retry may use a different path (via path history diversity window) -5. After max retries: marks failed but keeps a **30-second grace window** during which a late ACK can still resolve the message to "delivered". Optionally clears the contact's path +3. On timeout, retries with exponential backoff: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s...), capped at 32 seconds +4. Each direct retry may use a different path (via path history diversity window) when auto route rotation is on +5. After the configured direct and flood attempts: marks failed but keeps a **30-second grace window** during which a late ACK can still resolve the message to "delivered". Optionally clears the contact's path 6. Reports RTT and path data for quality learning 7. Maintains an ACK hash history (last 50 entries) to handle duplicate ACKs -### Configurable Settings (App Settings → Messaging) -- Max retries (2–10, default 5) +### Configurable Settings (App Settings → Routing) +- Direct attempts (0–15, default 4) and flood attempts (0–10, default 1), set separately from auto route rotation +- Login attempts for a repeater or room server (1–10, default 5). Telemetry requests are not retried - Clear path on max retry (on/off) -- Auto route rotation with weight parameters +- Auto route rotation --- diff --git a/documentation/channels.md b/documentation/channels.md index a8ce6641..4830c666 100644 --- a/documentation/channels.md +++ b/documentation/channels.md @@ -124,7 +124,7 @@ The app bar overflow menu (⋮) has **Filter messages in this channel** (shown w ### Channel Auto-Resend -With **Resend channel messages until they travel far enough** on (App Settings → Messaging), the app waits after each channel send and checks how far the message was heard repeated. If no repeat reached the required hop count, it sends the message again, up to the configured number of times. +With **Resend channel messages until they travel far enough** on (App Settings → Routing), the app waits after each channel send and checks how far the message was heard repeated. If no repeat reached the required hop count, it sends the message again, up to the configured number of times. Where your radio only hears nearby repeaters, turn on **Also count different nearby repeaters**: the message then also counts as sent once the required number of *different* first-hop repeaters have repeated it, across all attempts. Your own radio's echo and zero-hop echoes don't count. diff --git a/documentation/chat-and-messaging.md b/documentation/chat-and-messaging.md index 53a47331..2a3aaa0c 100644 --- a/documentation/chat-and-messaging.md +++ b/documentation/chat-and-messaging.md @@ -102,11 +102,11 @@ When a direct message is sent: 1. The app computes an expected ACK hash: `SHA256([timestamp][attempt][text][selfPubKey])[0:4]` — matching the firmware's hash calculation. If SMAZ compression is enabled, the compressed text (not the original) is hashed 2. On device acknowledgment (`RESP_CODE_SENT`), the message transitions to "sent" and a timeout timer starts. If that acknowledgment never arrives (for example a dropped BLE notification), a backup timer (the delivery timeout plus 5 seconds) runs the normal retry path instead of leaving the message pending; a late ACK still marks it delivered 3. **Timeout duration**: Preferably from the ML timeout prediction service; otherwise from the device's own `est_timeout` in `RESP_CODE_SENT` (clamped to the physics range); otherwise calculated from LoRa airtime physics: `500 + (airtime × 6 + 250) × (pathLength + 1)` ms for direct paths, `500 + 16 × airtime` ms for flood (airtime is estimated from the radio's current spreading factor, bandwidth, and coding rate). The result is capped at 45 seconds. -4. On timeout, the message is retried with **exponential backoff**: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s, 16s...) -5. **Max retries**: Configurable (default 5, range 2–10) -6. After max retries, the message is marked "failed" — but a **30-second grace window** remains during which a late ACK can still resolve the message to "delivered" -7. If **Clear Path on Max Retry** is enabled (App Settings), the contact's stored routing path is automatically cleared when max retries are exhausted -8. **Auto route rotation**: When enabled (and no manual path override is set), the retry service uses a diversity window to avoid re-using recently tried paths, cycling through known routes on each attempt +4. On timeout, the message is retried with **exponential backoff**: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s, 16s...), capped at 32 seconds +5. **Direct and flood attempts**: Set separately in App Settings → Routing (defaults 4 direct and 1 flood; up to 15 direct and 10 flood). With auto route rotation on, the direct attempts use known routes and the flood attempts follow. With it off, every attempt stays on the contact's current path and only that path's limit applies. Zero on both still sends once +6. After those attempts, the message is marked "failed" — but a **30-second grace window** remains during which a late ACK can still resolve the message to "delivered" +7. If **Clear Path on Max Retry** is enabled (App Settings → Routing), the contact's stored routing path is automatically cleared when the attempts are exhausted +8. **Auto route rotation**: When enabled (and no manual path override is set), the retry service uses a diversity window to avoid re-using recently tried paths, cycling through known routes on each direct attempt. Flood attempts come after those ### Manual Retry diff --git a/documentation/design.md b/documentation/design.md index 423b53aa..7047e0c6 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) 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) 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. ## 1. Principles @@ -117,6 +117,8 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act | 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 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` | The title includes the selected number, so it stays visible. The drag bubble repeats it | | Radio-style choice in a sheet | `MeshSheetOption` | Used by the language picker and map time filter | | 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:)` | | Popup menu row | **always** `PopupMenuItem(child: MeshMenuItemRow(icon:, label:))` | Label wraps to 2 lines then ellipsizes; `leading:` for `ThemedIcon`; no icon keeps the 20px slot | @@ -147,6 +149,16 @@ Icon sizes in use: 24 for tile and banner icons, 20 for menu icons and small act **IconButton.** Always set `tooltip:` with a localized string. It is the accessible name. +### Reveal on enable + +A switch that uncovers more controls uses `SettingsReveal` (`lib/widgets/settings_reveal.dart`). The block's height eases over 200ms (`RevealOnEnable.duration`, `Curves.easeInOut`, aligned to the top). While the switch is off the extra controls are not in the tree, so they are not announced. The panel uses `surfaceContainerHighest` and a 16px start indent. + +The same animation without the tint is `RevealOnEnable`. Use it when the revealed control is not a settings sub-panel: the Cyrillic-to-Latin profile picker, the Bluetooth-off banner on the scanner, and the device-info rows on the Settings screen. + +Do not add a second duration, and do not reveal the controls with a plain `if` that pops them in. A block that swaps between two bodies, such as the filtered-message preview, keeps `AnimatedSize` but uses `RevealOnEnable.duration` and `RevealOnEnable.curve`. + +Sliders that belong to a setting use `SettingsValueSlider`. Put the selected number in the title (a localized string with the count). The slider's drag label repeats that number; it is not the only place the value appears. + ## 6. Sheets, dialogs and pages What the code does: @@ -216,6 +228,7 @@ Follow the same pattern for any new remote-value screen. - [ ] Colours from `colorScheme` or theme extensions; no raw `Colors.*` or `MeshPalette.ink/bg/line` in chrome. - [ ] Text styles from `textTheme` or `MeshTheme.mono`; nothing below 12. - [ ] Settings rows use `MeshNavTile` / `SwitchListTile` inside `MeshSettingsTileTheme`; cards are `MeshCard` with a `SectionHeader`. +- [ ] A switch that reveals more controls uses `SettingsReveal`. A settings slider uses `SettingsValueSlider` so the selected value stays in the title. - [ ] Popup menu rows use `MeshMenuItemRow`; segmented buttons use `MeshSegmentLabel`; destructive menu items last, in `scheme.error`. - [ ] Every `IconButton` and FAB has a localized `tooltip`. - [ ] Tap targets at least 48×48. diff --git a/documentation/routing-paths.md b/documentation/routing-paths.md index 74548258..131b5b1c 100644 --- a/documentation/routing-paths.md +++ b/documentation/routing-paths.md @@ -55,7 +55,7 @@ Contacts/messages persist hop count, path bytes, and width. Legacy contact recor - **Faded stats:** each route keeps delivery and failure counts that lose half their weight every 24 hours (`routeStatsHalfLife`), so recent behaviour outweighs old. - **Thompson sampling:** for each attempt, a plausible delivery rate is drawn for every route from its faded counts and the best draw wins. Proven routes win most of the time; untested or recovering routes are still tried occasionally. Speed adjusts the score slightly. - **Context:** `MeshCoreConnector.routeContextFor` reports what the radio heard in the last two hours (advertisers heard directly and the last hop of relayed adverts). Routes whose first hop was heard — or the direct route, when the contact itself was heard directly — score higher; routes that don't fit score lower. Not hearing a repeater is weak evidence, so nothing is excluded. With nothing heard, context has no effect. -- **Retries** halve the score of routes already tried for the same message, so they usually try something different without wasting an attempt on a much weaker route. The final attempt always floods. +- **Retries** halve the score of routes already tried for the same message, so they usually try something different without wasting an attempt on a much weaker route. Direct attempts use a known route. Once those are used up, the remaining attempts flood (`SendAttemptPlan.floodFromAttempt`). With flood attempts set to 0, a send never switches to flood. - **Offline contacts:** `MessageRetryService` holds a message's route failures until its fate is known. If any attempt is acknowledged, the routes that timed out are blamed; if nothing gets through, the contact was probably unreachable and no route is blamed. - **Forgetting:** a failing route is deleted only after it hasn't delivered for a week, so a repeater that is down for a day is still known when it returns. - Route picks and their results are written to the app debug log under the `Routing` tag. diff --git a/documentation/settings.md b/documentation/settings.md index 3f101f07..2efb4be9 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -119,18 +119,26 @@ A dedicated sub-screen for app-level preferences (nothing here is sent to the de Individual channels can be muted from the channel chat bell icon, the channel list, or the channel notification. Replying from notifications, watches, and Android Auto is described in [Notifications](notifications.md). ### Messaging -- **Clear Path on Max Retry**: Erases the stored routing path after all retries fail - **Jump to Oldest Unread**: When opening a chat, scrolls to the oldest unread message instead of the newest - **Auto-fetch Repeater Settings** (off by default): Requests every setting when a repeater's settings screen opens. Each setting is a separate request over LoRa, so this is slow and uses airtime; when off, use Refresh All or the per-setting refresh buttons. See [Repeater Settings](repeater-management.md#repeater-settings) -- **Auto Route Rotation**: Lets the app choose each message's route from the routes that have worked for that contact (see [Auto route selection](routing-paths.md#auto-route-selection)). When enabled, it expands (hidden when off) to show: - - Max Message Retries (2–10, default 5) - - **Reset Routing Algorithm to Default**: Restores the routing settings to their factory defaults - **Enable Message Tracing**: Shows path trace overlays and extra metadata on messages - **Region next to hop count** (default off): Shows a channel message's region chip on the same line as its hop count instead of below it + +### Routing +What happens when a message is sent. Each slider shows its selected number in the title. Turning a switch on reveals its extra controls with the same animation. + +- **Clear Path on Max Retry**: Erases the stored routing path after every send attempt fails +- **Direct attempts** (0–15, default 4): How many times to try a known route. Available whether or not auto route rotation is on +- **Flood attempts** (0–10, default 1): How many times to flood. Floods use more airtime. With rotation on, these run after the direct attempts. With it off, they apply only when the contact's path is already Flood +- **Login attempts** (1–10, default 5): How many times to try logging in to a repeater or room server. Telemetry fetches are sent once and have no retry setting +- **Auto Route Rotation**: Lets the app choose each direct attempt's route from the routes that have worked for that contact (see [Auto route selection](routing-paths.md#auto-route-selection)). Off keeps the contact's current path for every attempt - **Resend channel messages until they travel far enough** (default off): If your channel message isn't heard coming back through enough repeaters, it's sent again. Uses more airtime. When on, it shows: - Required hops (1–8, default 2) - Resend up to (1–5 times, default 1) - **Also count different nearby repeaters** (default off): Treats the message as sent once that many *different* first-hop repeaters have repeated it, even if you can't hear it travel further. Useful where only nearby repeaters are audible. See [Channels](channels.md#channel-auto-resend) +- **Reset routing settings to defaults**: Restores every control in this section (the toggles, the attempt limits, and the stored route-weight constants) to the factory defaults + +If both direct and flood attempts are 0, the message is still sent once on the current path. A saved `max_message_retries` value from an older version becomes that many attempts minus one direct, plus one flood, which keeps the old "last attempt floods" behaviour for the previous default of 5 (4 direct + 1 flood). ### Battery - **Battery Chemistry**: NMC / LiFePO4 / LiPo (per device, used to calibrate percentage from voltage) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index ad9fa57e..9d59570e 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -18,6 +18,7 @@ import '../models/contact.dart'; import '../models/message_filter.dart'; import '../models/message.dart'; import '../models/path_selection.dart'; +import '../models/send_attempt_plan.dart'; import '../models/translation_support.dart'; import '../helpers/reaction_helper.dart'; import '../helpers/channel_resend_coverage.dart'; @@ -2405,11 +2406,11 @@ class MeshCoreConnector extends ChangeNotifier { debugLogService: _appDebugLogService, recordPathResult: _recordPathResult, selectRetryPath: - (contactKey, attemptIndex, maxRetries, recentSelections) => + (contactKey, attemptIndex, directRetries, recentSelections) => _selectAutoPathForAttempt( contactKey, attemptIndex: attemptIndex, - maxRetries: maxRetries, + directRetries: directRetries, recentSelections: recentSelections, ), onDeliveryObserved: (contactKey, pathLength, messageBytes, tripTimeMs) { @@ -2422,8 +2423,6 @@ class MeshCoreConnector extends ChangeNotifier { }, ), ); - final maxRetries = _appSettingsService?.settings.maxMessageRetries ?? 5; - _retryService?.setMaxRetries(maxRetries); } Future loadContactCache() async { @@ -2866,7 +2865,7 @@ class MeshCoreConnector extends ChangeNotifier { PathSelection? _selectAutoPathForAttempt( String contactPubKeyHex, { required int attemptIndex, - required int maxRetries, + required int directRetries, List recentSelections = const [], }) { final hasKnownPaths = @@ -2881,7 +2880,7 @@ class MeshCoreConnector extends ChangeNotifier { final selection = _pathHistoryService?.selectPathForAttempt( contactPubKeyHex, attemptIndex: attemptIndex, - maxRetries: maxRetries, + directRetries: directRetries, recentSelections: recentSelections, context: routeContext, ); @@ -2891,7 +2890,8 @@ class MeshCoreConnector extends ChangeNotifier { // app debug log on a live mesh. _appDebugLogService?.info( 'Route pick for ${contact?.name ?? contactPubKeyHex.substring(0, 8)}: ' - 'attempt ${attemptIndex + 1}/$maxRetries → ${_describeRoute(selection)} ' + 'attempt ${attemptIndex + 1} ' + '→ ${_describeRoute(selection)} ' '(heard nearby: ${routeContext.hasNeighbourInfo}, ' 'contact heard direct: ${routeContext.contactHeardDirectly})', tag: 'Routing', @@ -5442,11 +5442,13 @@ class MeshCoreConnector extends ChangeNotifier { final autoRotationEnabled = _appSettingsService?.settings.autoRouteRotationEnabled == true; if (autoRotationEnabled && contact.pathOverride == null) { - final maxRetries = _appSettingsService?.settings.maxMessageRetries ?? 5; + final directRetries = + _appSettingsService?.settings.directRetries ?? + SendAttemptPlan.defaultDirectRetries; autoSelection = _selectAutoPathForAttempt( contact.publicKeyHex, attemptIndex: 0, - maxRetries: maxRetries, + directRetries: directRetries, ); } diff --git a/lib/l10n/app_bg.arb b/lib/l10n/app_bg.arb index 913a0815..47ddb12f 100644 --- a/lib/l10n/app_bg.arb +++ b/lib/l10n/app_bg.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Покажи известие, когато бъдат открити нови възли.", "appSettings_messaging": "Съобщения", "appSettings_clearPathOnMaxRetry": "Изчисти пътя при максимален брой опити", - "appSettings_clearPathOnMaxRetrySubtitle": "Възстанови пътя към контакта след 5 неуспешни опита за изпращане", - "appSettings_pathsWillBeCleared": "Пътищата ще бъдат почистени след 5 неуспешни опита.", + "appSettings_clearPathOnMaxRetrySubtitle": "Нулиране на записания път към контакта, когато всички опити за изпращане се провалят", + "appSettings_pathsWillBeCleared": "Пътищата се изчистват, когато всички опити за изпращане се провалят", "appSettings_pathsWillNotBeCleared": "Пътищата няма да бъдат автоматично изчистени.", "appSettings_autoRouteRotation": "Автоматична ротация на маршрутите", - "appSettings_autoRouteRotationSubtitle": "Превключвайте между най-добрите пътища и режим Flood", + "appSettings_autoRouteRotationSubtitle": "При всеки директен опит се пробва друг известен маршрут. Следващите опити са Flood. Изключено запазва текущия път на контакта.", "appSettings_autoRouteRotationEnabled": "Автоматичната ротация на маршрутите е включена", "appSettings_autoRouteRotationDisabled": "Автоматичната ротация на маршрутите е изключена", "appSettings_battery": "Батерия", @@ -3353,9 +3353,9 @@ "settings_regionFetchNoneResponded": "Нито един близък ретранслатор не отговори. Приближете се до ретранслатор и опитайте отново.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Маршрутизиране", - "appSettings_resetRoutingToDefault": "Нулиране на алгоритъма за маршрутизация до стойност по подразбиране", - "appSettings_resetRoutingToDefaultSubtitle": "Възстановяване на настройките на алгоритъма за маршрутизация до заводските стойности по подразбиране", - "appSettings_routingResetToDefault": "Настройките на алгоритъма за маршрутизация са нулирани до стойност по подразбиране", + "appSettings_resetRoutingToDefault": "Нулиране на настройките за маршрутизация до стойностите по подразбиране", + "appSettings_resetRoutingToDefaultSubtitle": "Възстановяване на настройките за маршрутизация в този раздел до стойностите по подразбиране", + "appSettings_routingResetToDefault": "Настройките за маршрутизация са нулирани до стойностите по подразбиране", "appSettings_imageMessagesSection": "Съобщения с изображения", "appSettings_showApiKey": "Показване на API ключа", "appSettings_hideApiKey": "Скриване на API ключа", @@ -3776,5 +3776,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB или TCP", "connectSheet_stopReconnecting": "Спри повторното свързване", "connectSheet_reconnectFailed": "Няма връзка с {name}. Уверете се, че е включено и наблизо.", - "chat_composerOffline": "Свържете се с радио, за да изпращате съобщения" + "chat_composerOffline": "Свържете се с радио, за да изпращате съобщения", + "appSettings_directRetries": "Директни опити: {count}", + "appSettings_directRetriesSubtitle": "Колко пъти да се пробва известен маршрут. Достъпно и когато автоматичната ротация е изключена.", + "appSettings_floodRetries": "Опити Flood: {count}", + "appSettings_floodRetriesSubtitle": "Колко пъти да се използва Flood. Flood заема повече ефирно време. При включена ротация идват след директните опити.", + "appSettings_loginAttempts": "Опити за вход: {count}", + "appSettings_loginAttemptsSubtitle": "Колко пъти да се опитва вход към ретранслатор или room сървър, преди да се откаже." } diff --git a/lib/l10n/app_cs.arb b/lib/l10n/app_cs.arb index f72e9821..1d9843eb 100644 --- a/lib/l10n/app_cs.arb +++ b/lib/l10n/app_cs.arb @@ -549,11 +549,11 @@ "appSettings_advertisementNotificationsSubtitle": "Zobrazit oznámení při objevení nových uzlů", "appSettings_messaging": "Zprávy", "appSettings_clearPathOnMaxRetry": "Vymazat cestu po maximu pokusů", - "appSettings_clearPathOnMaxRetrySubtitle": "Resetovat cestu kontaktu po 5 neúspěšných pokusech o odeslání", - "appSettings_pathsWillBeCleared": "Cesty budou vymazány po 5 neúspěšných pokusech", + "appSettings_clearPathOnMaxRetrySubtitle": "Resetovat uloženou cestu kontaktu, když selžou všechny pokusy o odeslání", + "appSettings_pathsWillBeCleared": "Cesty se vymažou, když selžou všechny pokusy o odeslání", "appSettings_pathsWillNotBeCleared": "Cesty nebudou automaticky mazány", "appSettings_autoRouteRotation": "Automatické střídání tras", - "appSettings_autoRouteRotationSubtitle": "Střídat nejlepší cesty a režim flood", + "appSettings_autoRouteRotationSubtitle": "Při každém přímém pokusu zkusit jinou známou trasu. Pozdější pokusy jsou Flood. Vypnuto ponechá aktuální cestu kontaktu.", "appSettings_autoRouteRotationEnabled": "Automatické střídání tras zapnuto", "appSettings_autoRouteRotationDisabled": "Automatické střídání tras vypnuto", "appSettings_maxMessageRetries": "Maximum opakování zprávy", @@ -3890,9 +3890,9 @@ } }, "appSettings_routingSection": "Směrování", - "appSettings_resetRoutingToDefault": "Obnovit výchozí směrovací algoritmus", - "appSettings_resetRoutingToDefaultSubtitle": "Obnovit nastavení směrovacího algoritmu na tovární hodnoty", - "appSettings_routingResetToDefault": "Nastavení směrovacího algoritmu obnoveno na výchozí", + "appSettings_resetRoutingToDefault": "Obnovit výchozí nastavení směrování", + "appSettings_resetRoutingToDefaultSubtitle": "Obnovit nastavení směrování v této části na výchozí hodnoty", + "appSettings_routingResetToDefault": "Nastavení směrování obnoveno na výchozí", "appSettings_imageMessagesSection": "Obrázkové zprávy", "appSettings_showApiKey": "Zobrazit klíč API", "appSettings_hideApiKey": "Skrýt klíč API", @@ -4389,5 +4389,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB nebo TCP", "connectSheet_stopReconnecting": "Zastavit připojování", "connectSheet_reconnectFailed": "Nelze se spojit s {name}. Ujistěte se, že je zapnuté a nablízku.", - "chat_composerOffline": "Pro odesílání zpráv se připojte k rádiu" + "chat_composerOffline": "Pro odesílání zpráv se připojte k rádiu", + "appSettings_directRetries": "Přímé pokusy: {count}", + "appSettings_directRetriesSubtitle": "Kolikrát se zkusí známá trasa. Dostupné i když je automatické střídání tras vypnuté.", + "appSettings_floodRetries": "Pokusy Flood: {count}", + "appSettings_floodRetriesSubtitle": "Kolikrát se použije Flood. Flood zabere víc vysílacího času. Při zapnutém střídání následují po přímých pokusech.", + "appSettings_loginAttempts": "Pokusy o přihlášení: {count}", + "appSettings_loginAttemptsSubtitle": "Kolikrát se zkusí přihlášení k opakovači nebo room serveru, než se to vzdá." } diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 40d00f84..e996a4d4 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Benachrichtigung anzeigen, wenn neue Knoten entdeckt werden", "appSettings_messaging": "Nachrichten", "appSettings_clearPathOnMaxRetry": "Pfad bei maximalen Wiederholungsversuchen löschen", - "appSettings_clearPathOnMaxRetrySubtitle": "Kontaktpfade nach 5 fehlgeschlagenen Sendeversuchen zurücksetzen", - "appSettings_pathsWillBeCleared": "Pfade werden nach 5 fehlgeschlagenen Wiederholungen gelöscht.", + "appSettings_clearPathOnMaxRetrySubtitle": "Gespeicherten Kontaktpfad zurücksetzen, wenn alle Sendeversuche fehlschlagen", + "appSettings_pathsWillBeCleared": "Pfade werden gelöscht, wenn alle Sendeversuche fehlschlagen", "appSettings_pathsWillNotBeCleared": "Pfade werden nicht automatisch gelöscht.", "appSettings_autoRouteRotation": "Automatische Routenrotation", - "appSettings_autoRouteRotationSubtitle": "Zwischen den besten Pfaden und dem Flood-Modus wechseln", + "appSettings_autoRouteRotationSubtitle": "Bei jedem direkten Versuch eine andere bekannte Route nutzen. Die späteren Versuche sind Flood. Aus behält den aktuellen Pfad des Kontakts.", "appSettings_autoRouteRotationEnabled": "Automatische Routenrotation aktiviert", "appSettings_autoRouteRotationDisabled": "Automatische Routenrotation deaktiviert", "appSettings_battery": "Akku", @@ -3488,9 +3488,9 @@ "settings_regionFetchNoneResponded": "Kein Repeater in der Nähe hat geantwortet. Gehe näher an einen Repeater heran und versuche es erneut.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Routing", - "appSettings_resetRoutingToDefault": "Routing-Algorithmus auf Standard zurücksetzen", - "appSettings_resetRoutingToDefaultSubtitle": "Routing-Algorithmus-Einstellungen auf Werkseinstellungen zurücksetzen", - "appSettings_routingResetToDefault": "Routing-Algorithmus-Einstellungen auf Standard zurückgesetzt", + "appSettings_resetRoutingToDefault": "Routing-Einstellungen auf Standard zurücksetzen", + "appSettings_resetRoutingToDefaultSubtitle": "Die Routing-Einstellungen in diesem Abschnitt auf die Standardwerte zurücksetzen", + "appSettings_routingResetToDefault": "Routing-Einstellungen auf Standard zurückgesetzt", "appSettings_imageMessagesSection": "Bildnachrichten", "appSettings_showApiKey": "API-Schlüssel anzeigen", "appSettings_hideApiKey": "API-Schlüssel verbergen", @@ -3911,5 +3911,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB oder TCP", "connectSheet_stopReconnecting": "Wiederverbindung abbrechen", "connectSheet_reconnectFailed": "{name} ist nicht erreichbar. Stellen Sie sicher, dass es eingeschaltet und in der Nähe ist.", - "chat_composerOffline": "Mit einem Funkgerät verbinden, um Nachrichten zu senden" + "chat_composerOffline": "Mit einem Funkgerät verbinden, um Nachrichten zu senden", + "appSettings_directRetries": "Direkte Versuche: {count}", + "appSettings_directRetriesSubtitle": "Wie oft eine bekannte Route versucht wird. Auch verfügbar, wenn die automatische Routenrotation aus ist.", + "appSettings_floodRetries": "Flood-Versuche: {count}", + "appSettings_floodRetriesSubtitle": "Wie oft geflutet wird. Flood verbraucht mehr Sendezeit. Bei eingeschalteter Rotation folgen diese auf die direkten Versuche.", + "appSettings_loginAttempts": "Anmeldeversuche: {count}", + "appSettings_loginAttemptsSubtitle": "Wie oft die Anmeldung an einem Repeater oder Room-Server versucht wird, bevor abgebrochen wird." } diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index e18f6ed9..52461453 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -617,15 +617,42 @@ "appSettings_advertisementNotificationsSubtitle": "Show notification when new nodes are discovered", "appSettings_messaging": "Messaging", "appSettings_clearPathOnMaxRetry": "Clear Path on Max Retry", - "appSettings_clearPathOnMaxRetrySubtitle": "Reset contact path after 5 failed send attempts", - "appSettings_pathsWillBeCleared": "Paths will be cleared after 5 failed retries", + "appSettings_clearPathOnMaxRetrySubtitle": "Reset the contact's saved path after every send attempt fails", + "appSettings_pathsWillBeCleared": "Paths will be cleared after all send attempts fail", "appSettings_pathsWillNotBeCleared": "Paths will not be auto-cleared", "appSettings_autoRouteRotation": "Auto Route Rotation", - "appSettings_autoRouteRotationSubtitle": "Cycle between best paths and flood mode", + "appSettings_autoRouteRotationSubtitle": "On each direct attempt, try a different known route. Later attempts flood. Off keeps the contact's current path.", "appSettings_autoRouteRotationEnabled": "Auto route rotation enabled", "appSettings_autoRouteRotationDisabled": "Auto route rotation disabled", "appSettings_maxMessageRetries": "Max Message Retries", "appSettings_maxMessageRetriesSubtitle": "Number of retry attempts before marking a message as failed", + "appSettings_directRetries": "Direct attempts: {count}", + "@appSettings_directRetries": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "appSettings_directRetriesSubtitle": "How many times to try a known route. This stays available when auto route rotation is off.", + "appSettings_floodRetries": "Flood attempts: {count}", + "@appSettings_floodRetries": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "appSettings_floodRetriesSubtitle": "How many times to flood. Floods use more airtime. With rotation on, these follow the direct attempts.", + "appSettings_loginAttempts": "Login attempts: {count}", + "@appSettings_loginAttempts": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "appSettings_loginAttemptsSubtitle": "How many times to try logging in to a repeater or room server before giving up.", "appSettings_ipfsImageLinks": "IPFS provider configuration", "appSettings_ipfsImageLinksSubtitle": "Upload for url Images (or Files) via IPFS provider and default gateway to receive", "appSettings_loadLinkImages": "Load images from links", @@ -3905,9 +3932,9 @@ "appSettings_sourceSummary": "{label} - {description}", "@appSettings_sourceSummary": {"placeholders": {"label": {"type": "String"}, "description": {"type": "String"}}}, "appSettings_routingSection": "Routing", - "appSettings_resetRoutingToDefault": "Reset Routing Algorithm to Default", - "appSettings_resetRoutingToDefaultSubtitle": "Restore routing algorithm settings to factory defaults", - "appSettings_routingResetToDefault": "Routing algorithm settings reset to default", + "appSettings_resetRoutingToDefault": "Reset routing settings to defaults", + "appSettings_resetRoutingToDefaultSubtitle": "Restore the routing settings in this section to their defaults", + "appSettings_routingResetToDefault": "Routing settings reset to defaults", "appSettings_imageMessagesSection": "Image messages", "appSettings_showApiKey": "Show API key", "appSettings_hideApiKey": "Hide API key", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 1b0ddb11..95c9fb04 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Mostrar notificación cuando se descubren nuevos nodos", "appSettings_messaging": "Mensajería", "appSettings_clearPathOnMaxRetry": "Borrar ruta al máximo de reintentos", - "appSettings_clearPathOnMaxRetrySubtitle": "Restablecer la ruta de contacto después de 5 intentos de envío fallidos", - "appSettings_pathsWillBeCleared": "Las rutas se borrarán después de 5 intentos fallidos.", + "appSettings_clearPathOnMaxRetrySubtitle": "Restablecer la ruta guardada del contacto cuando fallen todos los intentos de envío", + "appSettings_pathsWillBeCleared": "Las rutas se borrarán cuando fallen todos los intentos de envío", "appSettings_pathsWillNotBeCleared": "Las rutas no se eliminarán automáticamente.", "appSettings_autoRouteRotation": "Rotación automática de rutas", - "appSettings_autoRouteRotationSubtitle": "Alternar entre las mejores rutas y el modo Flood", + "appSettings_autoRouteRotationSubtitle": "En cada intento directo, probar otra ruta conocida. Los intentos siguientes son Flood. Desactivado mantiene la ruta actual del contacto.", "appSettings_autoRouteRotationEnabled": "Rotación de ruta automática habilitada", "appSettings_autoRouteRotationDisabled": "Rotación de ruta automática desactivada", "appSettings_battery": "Batería", @@ -3373,9 +3373,9 @@ "settings_regionFetchNoneResponded": "Ningún repetidor cercano respondió. Acércate a un repetidor e inténtalo de nuevo.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Enrutamiento", - "appSettings_resetRoutingToDefault": "Restablecer algoritmo de enrutamiento a predeterminado", - "appSettings_resetRoutingToDefaultSubtitle": "Restaurar la configuración del algoritmo de enrutamiento a los valores predeterminados de fábrica", - "appSettings_routingResetToDefault": "Configuración del algoritmo de enrutamiento restablecida a predeterminado", + "appSettings_resetRoutingToDefault": "Restablecer la configuración de enrutamiento", + "appSettings_resetRoutingToDefaultSubtitle": "Restaurar los ajustes de enrutamiento de esta sección a sus valores predeterminados", + "appSettings_routingResetToDefault": "Configuración de enrutamiento restablecida", "appSettings_imageMessagesSection": "Mensajes con imágenes", "appSettings_showApiKey": "Mostrar clave de API", "appSettings_hideApiKey": "Ocultar clave de API", @@ -3962,5 +3962,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB o TCP", "connectSheet_stopReconnecting": "Dejar de reconectar", "connectSheet_reconnectFailed": "No se pudo conectar con {name}. Comprueba que esté encendida y cerca.", - "chat_composerOffline": "Conéctate a una radio para enviar mensajes" + "chat_composerOffline": "Conéctate a una radio para enviar mensajes", + "appSettings_directRetries": "Intentos directos: {count}", + "appSettings_directRetriesSubtitle": "Cuántas veces probar una ruta conocida. Sigue disponible aunque la rotación automática esté desactivada.", + "appSettings_floodRetries": "Intentos Flood: {count}", + "appSettings_floodRetriesSubtitle": "Cuántas veces usar Flood. Flood usa más tiempo de aire. Con la rotación activada, van después de los intentos directos.", + "appSettings_loginAttempts": "Intentos de inicio de sesión: {count}", + "appSettings_loginAttemptsSubtitle": "Cuántas veces intentar iniciar sesión en un repetidor o servidor de sala antes de rendirse." } diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index de3c1be3..7328109b 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Afficher une notification lors de la découverte de nouveaux nœuds", "appSettings_messaging": "Messagerie", "appSettings_clearPathOnMaxRetry": "Effacer le chemin après le nombre maximal de tentatives", - "appSettings_clearPathOnMaxRetrySubtitle": "Réinitialiser le chemin de contact après 5 tentatives d'envoi infructueuses", - "appSettings_pathsWillBeCleared": "Les chemins seront effacés après 5 échecs.", + "appSettings_clearPathOnMaxRetrySubtitle": "Réinitialiser le chemin enregistré du contact lorsque toutes les tentatives d'envoi échouent", + "appSettings_pathsWillBeCleared": "Les chemins seront effacés si toutes les tentatives d'envoi échouent", "appSettings_pathsWillNotBeCleared": "Les chemins ne seront pas effacés automatiquement.", "appSettings_autoRouteRotation": "Rotation automatique du routage", - "appSettings_autoRouteRotationSubtitle": "Alterner entre les meilleurs chemins et le mode flood", + "appSettings_autoRouteRotationSubtitle": "À chaque tentative directe, essayer une autre route connue. Les tentatives suivantes sont en Flood. Désactivé : le chemin actuel du contact est conservé.", "appSettings_autoRouteRotationEnabled": "Rotation automatique du routage activée", "appSettings_autoRouteRotationDisabled": "Rotation automatique du routage désactivée", "appSettings_battery": "Batterie", @@ -3373,9 +3373,9 @@ "settings_regionFetchNoneResponded": "Aucun répéteur à proximité n'a répondu. Rapprochez-vous d'un répéteur et réessayez.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Routage", - "appSettings_resetRoutingToDefault": "Réinitialiser l'algorithme de routage", - "appSettings_resetRoutingToDefaultSubtitle": "Restaurer les paramètres de l'algorithme de routage aux valeurs par défaut", - "appSettings_routingResetToDefault": "Paramètres de l'algorithme de routage réinitialisés", + "appSettings_resetRoutingToDefault": "Réinitialiser les paramètres de routage", + "appSettings_resetRoutingToDefaultSubtitle": "Rétablir les paramètres de routage de cette section à leurs valeurs par défaut", + "appSettings_routingResetToDefault": "Paramètres de routage réinitialisés", "appSettings_imageMessagesSection": "Messages image", "appSettings_showApiKey": "Afficher la clé API", "appSettings_hideApiKey": "Masquer la clé API", @@ -3910,5 +3910,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB ou TCP", "connectSheet_stopReconnecting": "Arrêter la reconnexion", "connectSheet_reconnectFailed": "Impossible de joindre {name}. Vérifiez qu'elle est allumée et à proximité.", - "chat_composerOffline": "Connectez-vous à une radio pour envoyer des messages" + "chat_composerOffline": "Connectez-vous à une radio pour envoyer des messages", + "appSettings_directRetries": "Tentatives directes : {count}", + "appSettings_directRetriesSubtitle": "Nombre d'essais sur une route connue. Disponible même si la rotation automatique des routes est désactivée.", + "appSettings_floodRetries": "Tentatives Flood : {count}", + "appSettings_floodRetriesSubtitle": "Nombre de Flood. Un Flood utilise plus de temps d'antenne. Avec la rotation activée, ils suivent les tentatives directes.", + "appSettings_loginAttempts": "Tentatives de connexion : {count}", + "appSettings_loginAttemptsSubtitle": "Nombre d'essais de connexion à un répéteur ou à un serveur de salon avant d'abandonner." } diff --git a/lib/l10n/app_hu.arb b/lib/l10n/app_hu.arb index ba73a0d6..243963b5 100644 --- a/lib/l10n/app_hu.arb +++ b/lib/l10n/app_hu.arb @@ -269,11 +269,11 @@ "appSettings_advertisementNotificationsSubtitle": "Értesítés megjelenítése új csomópontok felfedezésekor", "appSettings_messaging": "Üzenetküldés", "appSettings_clearPathOnMaxRetry": "Útvonal törlése a Max. újrapróbálkozásnál", - "appSettings_clearPathOnMaxRetrySubtitle": "Állítsa vissza a kapcsolati elérési utat 5 sikertelen küldési kísérlet után", - "appSettings_pathsWillBeCleared": "Az elérési utak 5 sikertelen újrapróbálkozás után törlődnek", + "appSettings_clearPathOnMaxRetrySubtitle": "A kapcsolat mentett útvonalának visszaállítása, ha minden küldési próbálkozás sikertelen", + "appSettings_pathsWillBeCleared": "Az útvonalak törlődnek, ha minden küldési próbálkozás sikertelen", "appSettings_pathsWillNotBeCleared": "Az útvonalak nem törlődnek automatikusan", "appSettings_autoRouteRotation": "Automatikus útvonalváltás", - "appSettings_autoRouteRotationSubtitle": "Váltson a legjobb útvonalak és a flood mód között", + "appSettings_autoRouteRotationSubtitle": "Minden közvetlen próbálkozásnál másik ismert útvonalat próbál. A későbbiek Flood. Kikapcsolva a kapcsolat jelenlegi útvonalát használja.", "appSettings_autoRouteRotationEnabled": "Az automatikus útvonalforgatás engedélyezve", "appSettings_autoRouteRotationDisabled": "Az automatikus útvonalforgatás letiltva", "appSettings_maxMessageRetries": "Üzenet újrapróbálkozások maximális száma", @@ -3392,9 +3392,9 @@ "settings_regionFetchNoneResponded": "Egyik közeli átjátszó sem válaszolt. Menjen közelebb egy átjátszóhoz, és próbálja újra.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Útválasztás", - "appSettings_resetRoutingToDefault": "Útvonaltervezési algoritmus visszaállítása alapértelmezettre", - "appSettings_resetRoutingToDefaultSubtitle": "Útvonaltervezési algoritmus beállításainak visszaállítása gyári alapértelmezett értékekre", - "appSettings_routingResetToDefault": "Útvonaltervezési algoritmus beállításai visszaállítva alapértelmezettre", + "appSettings_resetRoutingToDefault": "Útválasztási beállítások visszaállítása alapértelmezettre", + "appSettings_resetRoutingToDefaultSubtitle": "A szakasz útvonalbeállításainak visszaállítása az alapértelmezett értékekre", + "appSettings_routingResetToDefault": "Útválasztási beállítások visszaállítva alapértelmezettre", "appSettings_imageMessagesSection": "Képüzenetek", "appSettings_showApiKey": "API-kulcs megjelenítése", "appSettings_hideApiKey": "API-kulcs elrejtése", @@ -3867,5 +3867,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB vagy TCP", "connectSheet_stopReconnecting": "Újracsatlakozás leállítása", "connectSheet_reconnectFailed": "Nem érhető el: {name}. Ellenőrizze, hogy be van-e kapcsolva és a közelben van-e.", - "chat_composerOffline": "Üzenetküldéshez csatlakozzon rádióhoz" + "chat_composerOffline": "Üzenetküldéshez csatlakozzon rádióhoz", + "appSettings_directRetries": "Közvetlen próbálkozások: {count}", + "appSettings_directRetriesSubtitle": "Hányszor próbáljon ismert útvonalat. Akkor is beállítható, ha az automatikus útvonalváltás ki van kapcsolva.", + "appSettings_floodRetries": "Flood próbálkozások: {count}", + "appSettings_floodRetriesSubtitle": "Hányszor használjon Floodot. A Flood több adásidőt használ. Bekapcsolt váltásnál a közvetlen próbálkozások után jönnek.", + "appSettings_loginAttempts": "Bejelentkezési próbálkozások: {count}", + "appSettings_loginAttemptsSubtitle": "Hányszor próbáljon bejelentkezni egy átjátszóra vagy room szerverre, mielőtt feladja." } diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index 8d6bd2ec..9ef267fc 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -197,11 +197,11 @@ "appSettings_advertisementNotificationsSubtitle": "Mostra notifica quando vengono scoperti nuovi nodi", "appSettings_messaging": "Messaggi", "appSettings_clearPathOnMaxRetry": "Cancella percorso al massimo dei tentativi", - "appSettings_clearPathOnMaxRetrySubtitle": "Reimposta il percorso di contatto dopo 5 tentativi di invio falliti", - "appSettings_pathsWillBeCleared": "I percorsi verranno cancellati dopo 5 tentativi falliti.", + "appSettings_clearPathOnMaxRetrySubtitle": "Reimposta il percorso salvato del contatto quando tutti i tentativi di invio falliscono", + "appSettings_pathsWillBeCleared": "I percorsi verranno cancellati quando tutti i tentativi di invio falliscono", "appSettings_pathsWillNotBeCleared": "I percorsi non verranno cancellati automaticamente.", "appSettings_autoRouteRotation": "Rotazione Percorso Automatico", - "appSettings_autoRouteRotationSubtitle": "Alterna tra i percorsi migliori e la modalità flood", + "appSettings_autoRouteRotationSubtitle": "A ogni tentativo diretto, prova un altro percorso noto. I tentativi successivi sono Flood. Disattivato mantiene il percorso attuale del contatto.", "appSettings_autoRouteRotationEnabled": "Rotazione percorso automatico abilitata", "appSettings_autoRouteRotationDisabled": "Rotazione del percorso automatico disabilitata", "appSettings_battery": "Batteria", @@ -3373,9 +3373,9 @@ "settings_regionFetchNoneResponded": "Nessun ripetitore vicino ha risposto. Avvicinati a un ripetitore e riprova.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Instradamento", - "appSettings_resetRoutingToDefault": "Reimposta algoritmo di instradamento sui valori predefiniti", - "appSettings_resetRoutingToDefaultSubtitle": "Ripristina le impostazioni dell'algoritmo di instradamento ai valori predefiniti di fabbrica", - "appSettings_routingResetToDefault": "Impostazioni algoritmo di instradamento reimpostate sui valori predefiniti", + "appSettings_resetRoutingToDefault": "Reimposta le impostazioni di instradamento sui valori predefiniti", + "appSettings_resetRoutingToDefaultSubtitle": "Ripristina le impostazioni di instradamento di questa sezione ai valori predefiniti", + "appSettings_routingResetToDefault": "Impostazioni di instradamento reimpostate sui valori predefiniti", "appSettings_imageMessagesSection": "Messaggi immagine", "appSettings_showApiKey": "Mostra chiave API", "appSettings_hideApiKey": "Nascondi chiave API", @@ -3910,5 +3910,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB o TCP", "connectSheet_stopReconnecting": "Interrompi la riconnessione", "connectSheet_reconnectFailed": "Impossibile raggiungere {name}. Assicurati che sia acceso e nelle vicinanze.", - "chat_composerOffline": "Connettiti a una radio per inviare messaggi" + "chat_composerOffline": "Connettiti a una radio per inviare messaggi", + "appSettings_directRetries": "Tentativi diretti: {count}", + "appSettings_directRetriesSubtitle": "Quante volte provare un percorso noto. Resta disponibile anche con la rotazione automatica disattivata.", + "appSettings_floodRetries": "Tentativi Flood: {count}", + "appSettings_floodRetriesSubtitle": "Quante volte usare Flood. Flood usa più tempo in aria. Con la rotazione attiva, seguono i tentativi diretti.", + "appSettings_loginAttempts": "Tentativi di accesso: {count}", + "appSettings_loginAttemptsSubtitle": "Quante volte provare l'accesso a un ripetitore o a un server room prima di rinunciare." } diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index 0a3b8931..10a5b039 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -275,11 +275,11 @@ "appSettings_advertisementNotificationsSubtitle": "新しいノードが発見された場合に通知を表示する", "appSettings_messaging": "メッセージング", "appSettings_clearPathOnMaxRetry": "最大再試行時に経路を消去", - "appSettings_clearPathOnMaxRetrySubtitle": "5 回送信に失敗したら連絡先の経路をリセットします", - "appSettings_pathsWillBeCleared": "5 回失敗すると経路を消去します", + "appSettings_clearPathOnMaxRetrySubtitle": "すべての送信が失敗したら、連絡先の保存済み経路をリセットします", + "appSettings_pathsWillBeCleared": "すべての送信が失敗すると経路を消去します", "appSettings_pathsWillNotBeCleared": "経路は自動では消去されません", "appSettings_autoRouteRotation": "自動経路切り替え", - "appSettings_autoRouteRotationSubtitle": "最適な経路とフラッドモードを切り替えます", + "appSettings_autoRouteRotationSubtitle": "直接の試行ごとに別の既知の経路を試します。その後の試行は Flood です。オフのときは連絡先の現在の経路を使います。", "appSettings_autoRouteRotationEnabled": "自動経路切り替えが有効です", "appSettings_autoRouteRotationDisabled": "自動経路切り替えは無効です", "appSettings_maxMessageRetries": "最大メッセージ再試行回数", @@ -3373,9 +3373,9 @@ "settings_regionFetchNoneResponded": "近くのリピータから応答がありませんでした。リピータに近づいてもう一度お試しください。", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "ルーティング", - "appSettings_resetRoutingToDefault": "ルーティングアルゴリズムをデフォルトにリセット", - "appSettings_resetRoutingToDefaultSubtitle": "ルーティングアルゴリズムの設定を工場出荷時のデフォルトに戻す", - "appSettings_routingResetToDefault": "ルーティングアルゴリズムの設定がデフォルトにリセットされました", + "appSettings_resetRoutingToDefault": "ルーティング設定をデフォルトにリセット", + "appSettings_resetRoutingToDefaultSubtitle": "このセクションの経路設定を初期値に戻します", + "appSettings_routingResetToDefault": "ルーティング設定がデフォルトにリセットされました", "appSettings_imageMessagesSection": "画像メッセージ", "appSettings_showApiKey": "APIキーを表示", "appSettings_hideApiKey": "APIキーを非表示", @@ -4116,5 +4116,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth、USB、またはTCP", "connectSheet_stopReconnecting": "再接続を停止", "connectSheet_reconnectFailed": "{name} に接続できませんでした。電源が入っていて近くにあることを確認してください。", - "chat_composerOffline": "メッセージを送信するには無線機に接続してください" + "chat_composerOffline": "メッセージを送信するには無線機に接続してください", + "appSettings_directRetries": "直接の試行: {count}", + "appSettings_directRetriesSubtitle": "既知の経路を試す回数です。自動経路切り替えがオフでも設定できます。", + "appSettings_floodRetries": "Flood の試行: {count}", + "appSettings_floodRetriesSubtitle": "Flood する回数です。Flood は通信時間を多く使います。切り替えがオンのとき、直接の試行の後に行います。", + "appSettings_loginAttempts": "ログイン試行: {count}", + "appSettings_loginAttemptsSubtitle": "リピータまたはルームサーバーへのログインをあきらめるまでの回数です。" } diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb index dcaf27a3..39f55216 100644 --- a/lib/l10n/app_ko.arb +++ b/lib/l10n/app_ko.arb @@ -269,11 +269,11 @@ "appSettings_advertisementNotificationsSubtitle": "새 노드가 발견되었을 때 알림 표시", "appSettings_messaging": "메시징", "appSettings_clearPathOnMaxRetry": "최대 재시도 시 경로 지우기", - "appSettings_clearPathOnMaxRetrySubtitle": "전송 시도가 5번 실패하면 연락 경로를 재설정합니다.", - "appSettings_pathsWillBeCleared": "5번 실패하면 해당 경로를 지웁니다.", + "appSettings_clearPathOnMaxRetrySubtitle": "모든 전송 시도가 실패하면 연락처의 저장된 경로를 재설정합니다", + "appSettings_pathsWillBeCleared": "모든 전송 시도가 실패하면 경로를 지웁니다", "appSettings_pathsWillNotBeCleared": "경로를 자동으로 지우지 않습니다.", "appSettings_autoRouteRotation": "자동 경로 순환", - "appSettings_autoRouteRotationSubtitle": "최적 경로와 플러딩 모드 사이를 전환합니다.", + "appSettings_autoRouteRotationSubtitle": "직접 시도마다 다른 알려진 경로를 사용합니다. 이후 시도는 Flood입니다. 끄면 연락처의 현재 경로를 유지합니다.", "appSettings_autoRouteRotationEnabled": "자동 경로 순환 기능 활성화", "appSettings_autoRouteRotationDisabled": "자동 경로 순환 기능 비활성화", "appSettings_maxMessageRetries": "최대 메시지 재시도 횟수", @@ -3373,9 +3373,9 @@ "settings_regionFetchNoneResponded": "응답한 주변 리피터가 없습니다. 리피터에 더 가까이 이동한 후 다시 시도하세요.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "라우팅", - "appSettings_resetRoutingToDefault": "라우팅 알고리즘 기본값으로 재설정", - "appSettings_resetRoutingToDefaultSubtitle": "라우팅 알고리즘 설정을 공장 기본값으로 복원", - "appSettings_routingResetToDefault": "라우팅 알고리즘 설정이 기본값으로 재설정되었습니다", + "appSettings_resetRoutingToDefault": "라우팅 설정을 기본값으로 재설정", + "appSettings_resetRoutingToDefaultSubtitle": "이 섹션의 라우팅 설정을 기본값으로 되돌립니다", + "appSettings_routingResetToDefault": "라우팅 설정이 기본값으로 재설정되었습니다", "appSettings_imageMessagesSection": "이미지 메시지", "appSettings_showApiKey": "API 키 표시", "appSettings_hideApiKey": "API 키 숨기기", @@ -4116,5 +4116,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB 또는 TCP", "connectSheet_stopReconnecting": "재연결 중지", "connectSheet_reconnectFailed": "{name}에 연결할 수 없습니다. 전원이 켜져 있고 가까이 있는지 확인하세요.", - "chat_composerOffline": "메시지를 보내려면 무전기에 연결하세요" + "chat_composerOffline": "메시지를 보내려면 무전기에 연결하세요", + "appSettings_directRetries": "직접 시도: {count}", + "appSettings_directRetriesSubtitle": "알려진 경로를 시도하는 횟수입니다. 자동 경로 순환을 꺼도 설정할 수 있습니다.", + "appSettings_floodRetries": "Flood 시도: {count}", + "appSettings_floodRetriesSubtitle": "Flood를 사용하는 횟수입니다. Flood는 전파 시간을 더 씁니다. 순환이 켜져 있으면 직접 시도 다음에 실행됩니다.", + "appSettings_loginAttempts": "로그인 시도: {count}", + "appSettings_loginAttemptsSubtitle": "중계기나 룸 서버 로그인을 포기하기 전까지의 시도 횟수입니다." } diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 53e641fa..48f7031a 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -2632,13 +2632,13 @@ abstract class AppLocalizations { /// No description provided for @appSettings_clearPathOnMaxRetrySubtitle. /// /// In en, this message translates to: - /// **'Reset contact path after 5 failed send attempts'** + /// **'Reset the contact\'s saved path after every send attempt fails'** String get appSettings_clearPathOnMaxRetrySubtitle; /// No description provided for @appSettings_pathsWillBeCleared. /// /// In en, this message translates to: - /// **'Paths will be cleared after 5 failed retries'** + /// **'Paths will be cleared after all send attempts fail'** String get appSettings_pathsWillBeCleared; /// No description provided for @appSettings_pathsWillNotBeCleared. @@ -2656,7 +2656,7 @@ abstract class AppLocalizations { /// No description provided for @appSettings_autoRouteRotationSubtitle. /// /// In en, this message translates to: - /// **'Cycle between best paths and flood mode'** + /// **'On each direct attempt, try a different known route. Later attempts flood. Off keeps the contact\'s current path.'** String get appSettings_autoRouteRotationSubtitle; /// No description provided for @appSettings_autoRouteRotationEnabled. @@ -2683,6 +2683,42 @@ abstract class AppLocalizations { /// **'Number of retry attempts before marking a message as failed'** String get appSettings_maxMessageRetriesSubtitle; + /// No description provided for @appSettings_directRetries. + /// + /// In en, this message translates to: + /// **'Direct attempts: {count}'** + String appSettings_directRetries(int count); + + /// No description provided for @appSettings_directRetriesSubtitle. + /// + /// In en, this message translates to: + /// **'How many times to try a known route. This stays available when auto route rotation is off.'** + String get appSettings_directRetriesSubtitle; + + /// No description provided for @appSettings_floodRetries. + /// + /// In en, this message translates to: + /// **'Flood attempts: {count}'** + String appSettings_floodRetries(int count); + + /// No description provided for @appSettings_floodRetriesSubtitle. + /// + /// In en, this message translates to: + /// **'How many times to flood. Floods use more airtime. With rotation on, these follow the direct attempts.'** + String get appSettings_floodRetriesSubtitle; + + /// No description provided for @appSettings_loginAttempts. + /// + /// In en, this message translates to: + /// **'Login attempts: {count}'** + String appSettings_loginAttempts(int count); + + /// No description provided for @appSettings_loginAttemptsSubtitle. + /// + /// In en, this message translates to: + /// **'How many times to try logging in to a repeater or room server before giving up.'** + String get appSettings_loginAttemptsSubtitle; + /// No description provided for @appSettings_ipfsImageLinks. /// /// In en, this message translates to: @@ -11744,19 +11780,19 @@ abstract class AppLocalizations { /// No description provided for @appSettings_resetRoutingToDefault. /// /// In en, this message translates to: - /// **'Reset Routing Algorithm to Default'** + /// **'Reset routing settings to defaults'** String get appSettings_resetRoutingToDefault; /// No description provided for @appSettings_resetRoutingToDefaultSubtitle. /// /// In en, this message translates to: - /// **'Restore routing algorithm settings to factory defaults'** + /// **'Restore the routing settings in this section to their defaults'** String get appSettings_resetRoutingToDefaultSubtitle; /// No description provided for @appSettings_routingResetToDefault. /// /// In en, this message translates to: - /// **'Routing algorithm settings reset to default'** + /// **'Routing settings reset to defaults'** String get appSettings_routingResetToDefault; /// No description provided for @appSettings_imageMessagesSection. diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index cc0a9670..ca492bc5 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -1443,11 +1443,11 @@ class AppLocalizationsBg extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Възстанови пътя към контакта след 5 неуспешни опита за изпращане'; + 'Нулиране на записания път към контакта, когато всички опити за изпращане се провалят'; @override String get appSettings_pathsWillBeCleared => - 'Пътищата ще бъдат почистени след 5 неуспешни опита.'; + 'Пътищата се изчистват, когато всички опити за изпращане се провалят'; @override String get appSettings_pathsWillNotBeCleared => @@ -1459,7 +1459,7 @@ class AppLocalizationsBg extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Превключвайте между най-добрите пътища и режим Flood'; + 'При всеки директен опит се пробва друг известен маршрут. Следващите опити са Flood. Изключено запазва текущия път на контакта.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1477,6 +1477,33 @@ class AppLocalizationsBg extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Брой опити за повторно изпращане, преди съобщението да бъде маркирано като неуспешно.'; + @override + String appSettings_directRetries(int count) { + return 'Директни опити: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Колко пъти да се пробва известен маршрут. Достъпно и когато автоматичната ротация е изключена.'; + + @override + String appSettings_floodRetries(int count) { + return 'Опити Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Колко пъти да се използва Flood. Flood заема повече ефирно време. При включена ротация идват след директните опити.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Опити за вход: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Колко пъти да се опитва вход към ретранслатор или room сървър, преди да се откаже.'; + @override String get appSettings_ipfsImageLinks => 'Конфигурация на IPFS доставчик'; @@ -7037,15 +7064,15 @@ class AppLocalizationsBg extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Нулиране на алгоритъма за маршрутизация до стойност по подразбиране'; + 'Нулиране на настройките за маршрутизация до стойностите по подразбиране'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Възстановяване на настройките на алгоритъма за маршрутизация до заводските стойности по подразбиране'; + 'Възстановяване на настройките за маршрутизация в този раздел до стойностите по подразбиране'; @override String get appSettings_routingResetToDefault => - 'Настройките на алгоритъма за маршрутизация са нулирани до стойност по подразбиране'; + 'Настройките за маршрутизация са нулирани до стойностите по подразбиране'; @override String get appSettings_imageMessagesSection => 'Съобщения с изображения'; diff --git a/lib/l10n/app_localizations_cs.dart b/lib/l10n/app_localizations_cs.dart index 60ad5ee3..81ff8f3f 100644 --- a/lib/l10n/app_localizations_cs.dart +++ b/lib/l10n/app_localizations_cs.dart @@ -1434,11 +1434,11 @@ class AppLocalizationsCs extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Resetovat cestu kontaktu po 5 neúspěšných pokusech o odeslání'; + 'Resetovat uloženou cestu kontaktu, když selžou všechny pokusy o odeslání'; @override String get appSettings_pathsWillBeCleared => - 'Cesty budou vymazány po 5 neúspěšných pokusech'; + 'Cesty se vymažou, když selžou všechny pokusy o odeslání'; @override String get appSettings_pathsWillNotBeCleared => @@ -1449,7 +1449,7 @@ class AppLocalizationsCs extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Střídat nejlepší cesty a režim flood'; + 'Při každém přímém pokusu zkusit jinou známou trasu. Pozdější pokusy jsou Flood. Vypnuto ponechá aktuální cestu kontaktu.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1466,6 +1466,33 @@ class AppLocalizationsCs extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Počet opakovaných pokusů, než se zpráva označí jako neodeslaná'; + @override + String appSettings_directRetries(int count) { + return 'Přímé pokusy: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Kolikrát se zkusí známá trasa. Dostupné i když je automatické střídání tras vypnuté.'; + + @override + String appSettings_floodRetries(int count) { + return 'Pokusy Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Kolikrát se použije Flood. Flood zabere víc vysílacího času. Při zapnutém střídání následují po přímých pokusech.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Pokusy o přihlášení: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Kolikrát se zkusí přihlášení k opakovači nebo room serveru, než se to vzdá.'; + @override String get appSettings_ipfsImageLinks => 'Konfigurace poskytovatele IPFS'; @@ -7017,15 +7044,15 @@ class AppLocalizationsCs extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Obnovit výchozí směrovací algoritmus'; + 'Obnovit výchozí nastavení směrování'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Obnovit nastavení směrovacího algoritmu na tovární hodnoty'; + 'Obnovit nastavení směrování v této části na výchozí hodnoty'; @override String get appSettings_routingResetToDefault => - 'Nastavení směrovacího algoritmu obnoveno na výchozí'; + 'Nastavení směrování obnoveno na výchozí'; @override String get appSettings_imageMessagesSection => 'Obrázkové zprávy'; diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index 587287f7..d43bf080 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -1445,11 +1445,11 @@ class AppLocalizationsDe extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Kontaktpfade nach 5 fehlgeschlagenen Sendeversuchen zurücksetzen'; + 'Gespeicherten Kontaktpfad zurücksetzen, wenn alle Sendeversuche fehlschlagen'; @override String get appSettings_pathsWillBeCleared => - 'Pfade werden nach 5 fehlgeschlagenen Wiederholungen gelöscht.'; + 'Pfade werden gelöscht, wenn alle Sendeversuche fehlschlagen'; @override String get appSettings_pathsWillNotBeCleared => @@ -1460,7 +1460,7 @@ class AppLocalizationsDe extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Zwischen den besten Pfaden und dem Flood-Modus wechseln'; + 'Bei jedem direkten Versuch eine andere bekannte Route nutzen. Die späteren Versuche sind Flood. Aus behält den aktuellen Pfad des Kontakts.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1478,6 +1478,33 @@ class AppLocalizationsDe extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Anzahl der Versuche, eine Nachricht erneut zu senden, bevor sie als fehlgeschlagen markiert wird.'; + @override + String appSettings_directRetries(int count) { + return 'Direkte Versuche: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Wie oft eine bekannte Route versucht wird. Auch verfügbar, wenn die automatische Routenrotation aus ist.'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood-Versuche: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Wie oft geflutet wird. Flood verbraucht mehr Sendezeit. Bei eingeschalteter Rotation folgen diese auf die direkten Versuche.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Anmeldeversuche: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Wie oft die Anmeldung an einem Repeater oder Room-Server versucht wird, bevor abgebrochen wird.'; + @override String get appSettings_ipfsImageLinks => 'IPFS-Anbieter-Konfiguration'; @@ -7052,15 +7079,15 @@ class AppLocalizationsDe extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Routing-Algorithmus auf Standard zurücksetzen'; + 'Routing-Einstellungen auf Standard zurücksetzen'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Routing-Algorithmus-Einstellungen auf Werkseinstellungen zurücksetzen'; + 'Die Routing-Einstellungen in diesem Abschnitt auf die Standardwerte zurücksetzen'; @override String get appSettings_routingResetToDefault => - 'Routing-Algorithmus-Einstellungen auf Standard zurückgesetzt'; + 'Routing-Einstellungen auf Standard zurückgesetzt'; @override String get appSettings_imageMessagesSection => 'Bildnachrichten'; diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index f73db6d1..6b8136a3 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -1417,11 +1417,11 @@ class AppLocalizationsEn extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Reset contact path after 5 failed send attempts'; + 'Reset the contact\'s saved path after every send attempt fails'; @override String get appSettings_pathsWillBeCleared => - 'Paths will be cleared after 5 failed retries'; + 'Paths will be cleared after all send attempts fail'; @override String get appSettings_pathsWillNotBeCleared => @@ -1432,7 +1432,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Cycle between best paths and flood mode'; + 'On each direct attempt, try a different known route. Later attempts flood. Off keeps the contact\'s current path.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1449,6 +1449,33 @@ class AppLocalizationsEn extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Number of retry attempts before marking a message as failed'; + @override + String appSettings_directRetries(int count) { + return 'Direct attempts: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'How many times to try a known route. This stays available when auto route rotation is off.'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood attempts: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'How many times to flood. Floods use more airtime. With rotation on, these follow the direct attempts.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Login attempts: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'How many times to try logging in to a repeater or room server before giving up.'; + @override String get appSettings_ipfsImageLinks => 'IPFS provider configuration'; @@ -6938,15 +6965,15 @@ class AppLocalizationsEn extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Reset Routing Algorithm to Default'; + 'Reset routing settings to defaults'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Restore routing algorithm settings to factory defaults'; + 'Restore the routing settings in this section to their defaults'; @override String get appSettings_routingResetToDefault => - 'Routing algorithm settings reset to default'; + 'Routing settings reset to defaults'; @override String get appSettings_imageMessagesSection => 'Image messages'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 8dd0aa61..2acf9ddc 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -1436,11 +1436,11 @@ class AppLocalizationsEs extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Restablecer la ruta de contacto después de 5 intentos de envío fallidos'; + 'Restablecer la ruta guardada del contacto cuando fallen todos los intentos de envío'; @override String get appSettings_pathsWillBeCleared => - 'Las rutas se borrarán después de 5 intentos fallidos.'; + 'Las rutas se borrarán cuando fallen todos los intentos de envío'; @override String get appSettings_pathsWillNotBeCleared => @@ -1451,7 +1451,7 @@ class AppLocalizationsEs extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Alternar entre las mejores rutas y el modo Flood'; + 'En cada intento directo, probar otra ruta conocida. Los intentos siguientes son Flood. Desactivado mantiene la ruta actual del contacto.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1469,6 +1469,33 @@ class AppLocalizationsEs extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Número de intentos de reintento antes de marcar un mensaje como fallido.'; + @override + String appSettings_directRetries(int count) { + return 'Intentos directos: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Cuántas veces probar una ruta conocida. Sigue disponible aunque la rotación automática esté desactivada.'; + + @override + String appSettings_floodRetries(int count) { + return 'Intentos Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Cuántas veces usar Flood. Flood usa más tiempo de aire. Con la rotación activada, van después de los intentos directos.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Intentos de inicio de sesión: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Cuántas veces intentar iniciar sesión en un repetidor o servidor de sala antes de rendirse.'; + @override String get appSettings_ipfsImageLinks => 'Configuración del proveedor IPFS'; @@ -7033,15 +7060,15 @@ class AppLocalizationsEs extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Restablecer algoritmo de enrutamiento a predeterminado'; + 'Restablecer la configuración de enrutamiento'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Restaurar la configuración del algoritmo de enrutamiento a los valores predeterminados de fábrica'; + 'Restaurar los ajustes de enrutamiento de esta sección a sus valores predeterminados'; @override String get appSettings_routingResetToDefault => - 'Configuración del algoritmo de enrutamiento restablecida a predeterminado'; + 'Configuración de enrutamiento restablecida'; @override String get appSettings_imageMessagesSection => 'Mensajes con imágenes'; diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart index 9e1cde19..c24ec931 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -1442,11 +1442,11 @@ class AppLocalizationsFr extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Réinitialiser le chemin de contact après 5 tentatives d\'envoi infructueuses'; + 'Réinitialiser le chemin enregistré du contact lorsque toutes les tentatives d\'envoi échouent'; @override String get appSettings_pathsWillBeCleared => - 'Les chemins seront effacés après 5 échecs.'; + 'Les chemins seront effacés si toutes les tentatives d\'envoi échouent'; @override String get appSettings_pathsWillNotBeCleared => @@ -1457,7 +1457,7 @@ class AppLocalizationsFr extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Alterner entre les meilleurs chemins et le mode flood'; + 'À chaque tentative directe, essayer une autre route connue. Les tentatives suivantes sont en Flood. Désactivé : le chemin actuel du contact est conservé.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1475,6 +1475,33 @@ class AppLocalizationsFr extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Nombre de tentatives avant de marquer un message comme ayant échoué.'; + @override + String appSettings_directRetries(int count) { + return 'Tentatives directes : $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Nombre d\'essais sur une route connue. Disponible même si la rotation automatique des routes est désactivée.'; + + @override + String appSettings_floodRetries(int count) { + return 'Tentatives Flood : $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Nombre de Flood. Un Flood utilise plus de temps d\'antenne. Avec la rotation activée, ils suivent les tentatives directes.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Tentatives de connexion : $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Nombre d\'essais de connexion à un répéteur ou à un serveur de salon avant d\'abandonner.'; + @override String get appSettings_ipfsImageLinks => 'Configuration du fournisseur IPFS'; @@ -7058,15 +7085,15 @@ class AppLocalizationsFr extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Réinitialiser l\'algorithme de routage'; + 'Réinitialiser les paramètres de routage'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Restaurer les paramètres de l\'algorithme de routage aux valeurs par défaut'; + 'Rétablir les paramètres de routage de cette section à leurs valeurs par défaut'; @override String get appSettings_routingResetToDefault => - 'Paramètres de l\'algorithme de routage réinitialisés'; + 'Paramètres de routage réinitialisés'; @override String get appSettings_imageMessagesSection => 'Messages image'; diff --git a/lib/l10n/app_localizations_hu.dart b/lib/l10n/app_localizations_hu.dart index fae906b6..c6954bba 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -1434,11 +1434,11 @@ class AppLocalizationsHu extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Állítsa vissza a kapcsolati elérési utat 5 sikertelen küldési kísérlet után'; + 'A kapcsolat mentett útvonalának visszaállítása, ha minden küldési próbálkozás sikertelen'; @override String get appSettings_pathsWillBeCleared => - 'Az elérési utak 5 sikertelen újrapróbálkozás után törlődnek'; + 'Az útvonalak törlődnek, ha minden küldési próbálkozás sikertelen'; @override String get appSettings_pathsWillNotBeCleared => @@ -1449,7 +1449,7 @@ class AppLocalizationsHu extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Váltson a legjobb útvonalak és a flood mód között'; + 'Minden közvetlen próbálkozásnál másik ismert útvonalat próbál. A későbbiek Flood. Kikapcsolva a kapcsolat jelenlegi útvonalát használja.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1467,6 +1467,33 @@ class AppLocalizationsHu extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Az üzenet sikertelenként való megjelölése előtti újrapróbálkozások száma'; + @override + String appSettings_directRetries(int count) { + return 'Közvetlen próbálkozások: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Hányszor próbáljon ismert útvonalat. Akkor is beállítható, ha az automatikus útvonalváltás ki van kapcsolva.'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood próbálkozások: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Hányszor használjon Floodot. A Flood több adásidőt használ. Bekapcsolt váltásnál a közvetlen próbálkozások után jönnek.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Bejelentkezési próbálkozások: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Hányszor próbáljon bejelentkezni egy átjátszóra vagy room szerverre, mielőtt feladja.'; + @override String get appSettings_ipfsImageLinks => 'IPFS-szolgáltató beállítása'; @@ -7028,15 +7055,15 @@ class AppLocalizationsHu extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Útvonaltervezési algoritmus visszaállítása alapértelmezettre'; + 'Útválasztási beállítások visszaállítása alapértelmezettre'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Útvonaltervezési algoritmus beállításainak visszaállítása gyári alapértelmezett értékekre'; + 'A szakasz útvonalbeállításainak visszaállítása az alapértelmezett értékekre'; @override String get appSettings_routingResetToDefault => - 'Útvonaltervezési algoritmus beállításai visszaállítva alapértelmezettre'; + 'Útválasztási beállítások visszaállítva alapértelmezettre'; @override String get appSettings_imageMessagesSection => 'Képüzenetek'; diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart index 9d96718d..e3e38cca 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -1440,11 +1440,11 @@ class AppLocalizationsIt extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Reimposta il percorso di contatto dopo 5 tentativi di invio falliti'; + 'Reimposta il percorso salvato del contatto quando tutti i tentativi di invio falliscono'; @override String get appSettings_pathsWillBeCleared => - 'I percorsi verranno cancellati dopo 5 tentativi falliti.'; + 'I percorsi verranno cancellati quando tutti i tentativi di invio falliscono'; @override String get appSettings_pathsWillNotBeCleared => @@ -1455,7 +1455,7 @@ class AppLocalizationsIt extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Alterna tra i percorsi migliori e la modalità flood'; + 'A ogni tentativo diretto, prova un altro percorso noto. I tentativi successivi sono Flood. Disattivato mantiene il percorso attuale del contatto.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1473,6 +1473,33 @@ class AppLocalizationsIt extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Numero di tentativi di riprova prima di considerare un messaggio come fallito.'; + @override + String appSettings_directRetries(int count) { + return 'Tentativi diretti: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Quante volte provare un percorso noto. Resta disponibile anche con la rotazione automatica disattivata.'; + + @override + String appSettings_floodRetries(int count) { + return 'Tentativi Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Quante volte usare Flood. Flood usa più tempo in aria. Con la rotazione attiva, seguono i tentativi diretti.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Tentativi di accesso: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Quante volte provare l\'accesso a un ripetitore o a un server room prima di rinunciare.'; + @override String get appSettings_ipfsImageLinks => 'Configurazione del provider IPFS'; @@ -7041,15 +7068,15 @@ class AppLocalizationsIt extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Reimposta algoritmo di instradamento sui valori predefiniti'; + 'Reimposta le impostazioni di instradamento sui valori predefiniti'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Ripristina le impostazioni dell\'algoritmo di instradamento ai valori predefiniti di fabbrica'; + 'Ripristina le impostazioni di instradamento di questa sezione ai valori predefiniti'; @override String get appSettings_routingResetToDefault => - 'Impostazioni algoritmo di instradamento reimpostate sui valori predefiniti'; + 'Impostazioni di instradamento reimpostate sui valori predefiniti'; @override String get appSettings_imageMessagesSection => 'Messaggi immagine'; diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart index 10908f1e..f9c76c8b 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -1370,10 +1370,10 @@ class AppLocalizationsJa extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - '5 回送信に失敗したら連絡先の経路をリセットします'; + 'すべての送信が失敗したら、連絡先の保存済み経路をリセットします'; @override - String get appSettings_pathsWillBeCleared => '5 回失敗すると経路を消去します'; + String get appSettings_pathsWillBeCleared => 'すべての送信が失敗すると経路を消去します'; @override String get appSettings_pathsWillNotBeCleared => '経路は自動では消去されません'; @@ -1382,7 +1382,8 @@ class AppLocalizationsJa extends AppLocalizations { String get appSettings_autoRouteRotation => '自動経路切り替え'; @override - String get appSettings_autoRouteRotationSubtitle => '最適な経路とフラッドモードを切り替えます'; + String get appSettings_autoRouteRotationSubtitle => + '直接の試行ごとに別の既知の経路を試します。その後の試行は Flood です。オフのときは連絡先の現在の経路を使います。'; @override String get appSettings_autoRouteRotationEnabled => '自動経路切り替えが有効です'; @@ -1396,6 +1397,33 @@ class AppLocalizationsJa extends AppLocalizations { @override String get appSettings_maxMessageRetriesSubtitle => 'メッセージを失敗として扱うまでの再試行回数'; + @override + String appSettings_directRetries(int count) { + return '直接の試行: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + '既知の経路を試す回数です。自動経路切り替えがオフでも設定できます。'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood の試行: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Flood する回数です。Flood は通信時間を多く使います。切り替えがオンのとき、直接の試行の後に行います。'; + + @override + String appSettings_loginAttempts(int count) { + return 'ログイン試行: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'リピータまたはルームサーバーへのログインをあきらめるまでの回数です。'; + @override String get appSettings_ipfsImageLinks => 'IPFSプロバイダー設定'; @@ -6708,15 +6736,14 @@ class AppLocalizationsJa extends AppLocalizations { String get appSettings_routingSection => 'ルーティング'; @override - String get appSettings_resetRoutingToDefault => 'ルーティングアルゴリズムをデフォルトにリセット'; + String get appSettings_resetRoutingToDefault => 'ルーティング設定をデフォルトにリセット'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'ルーティングアルゴリズムの設定を工場出荷時のデフォルトに戻す'; + 'このセクションの経路設定を初期値に戻します'; @override - String get appSettings_routingResetToDefault => - 'ルーティングアルゴリズムの設定がデフォルトにリセットされました'; + String get appSettings_routingResetToDefault => 'ルーティング設定がデフォルトにリセットされました'; @override String get appSettings_imageMessagesSection => '画像メッセージ'; diff --git a/lib/l10n/app_localizations_ko.dart b/lib/l10n/app_localizations_ko.dart index 2ed52089..9a6c10bc 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -1373,10 +1373,10 @@ class AppLocalizationsKo extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - '전송 시도가 5번 실패하면 연락 경로를 재설정합니다.'; + '모든 전송 시도가 실패하면 연락처의 저장된 경로를 재설정합니다'; @override - String get appSettings_pathsWillBeCleared => '5번 실패하면 해당 경로를 지웁니다.'; + String get appSettings_pathsWillBeCleared => '모든 전송 시도가 실패하면 경로를 지웁니다'; @override String get appSettings_pathsWillNotBeCleared => '경로를 자동으로 지우지 않습니다.'; @@ -1386,7 +1386,7 @@ class AppLocalizationsKo extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - '최적 경로와 플러딩 모드 사이를 전환합니다.'; + '직접 시도마다 다른 알려진 경로를 사용합니다. 이후 시도는 Flood입니다. 끄면 연락처의 현재 경로를 유지합니다.'; @override String get appSettings_autoRouteRotationEnabled => '자동 경로 순환 기능 활성화'; @@ -1400,6 +1400,33 @@ class AppLocalizationsKo extends AppLocalizations { @override String get appSettings_maxMessageRetriesSubtitle => '메시지를 실패로 처리하기 전 시도 횟수'; + @override + String appSettings_directRetries(int count) { + return '직접 시도: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + '알려진 경로를 시도하는 횟수입니다. 자동 경로 순환을 꺼도 설정할 수 있습니다.'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood 시도: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Flood를 사용하는 횟수입니다. Flood는 전파 시간을 더 씁니다. 순환이 켜져 있으면 직접 시도 다음에 실행됩니다.'; + + @override + String appSettings_loginAttempts(int count) { + return '로그인 시도: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + '중계기나 룸 서버 로그인을 포기하기 전까지의 시도 횟수입니다.'; + @override String get appSettings_ipfsImageLinks => 'IPFS 제공자 설정'; @@ -6724,14 +6751,14 @@ class AppLocalizationsKo extends AppLocalizations { String get appSettings_routingSection => '라우팅'; @override - String get appSettings_resetRoutingToDefault => '라우팅 알고리즘 기본값으로 재설정'; + String get appSettings_resetRoutingToDefault => '라우팅 설정을 기본값으로 재설정'; @override String get appSettings_resetRoutingToDefaultSubtitle => - '라우팅 알고리즘 설정을 공장 기본값으로 복원'; + '이 섹션의 라우팅 설정을 기본값으로 되돌립니다'; @override - String get appSettings_routingResetToDefault => '라우팅 알고리즘 설정이 기본값으로 재설정되었습니다'; + String get appSettings_routingResetToDefault => '라우팅 설정이 기본값으로 재설정되었습니다'; @override String get appSettings_imageMessagesSection => '이미지 메시지'; diff --git a/lib/l10n/app_localizations_nl.dart b/lib/l10n/app_localizations_nl.dart index cc092841..d1c1ace3 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -1433,11 +1433,11 @@ class AppLocalizationsNl extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Reset contactpad na 5 mislukte verzendpogingen'; + 'Het opgeslagen pad van het contact resetten als alle verzendpogingen mislukken'; @override String get appSettings_pathsWillBeCleared => - 'Paden worden gewist na 5 mislukte pogingen'; + 'Paden worden gewist als alle verzendpogingen mislukken'; @override String get appSettings_pathsWillNotBeCleared => @@ -1448,7 +1448,7 @@ class AppLocalizationsNl extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Wissel tussen beste paden en floodmodus'; + 'Bij elke directe poging een andere bekende route proberen. Latere pogingen zijn Flood. Uit houdt het huidige pad van het contact.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1465,6 +1465,33 @@ class AppLocalizationsNl extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Aantal pogingen om een bericht opnieuw te versturen voordat het als mislukt wordt gemarkeerd'; + @override + String appSettings_directRetries(int count) { + return 'Directe pogingen: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Hoe vaak een bekende route wordt geprobeerd. Blijft beschikbaar als automatische routerotatie uit staat.'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood-pogingen: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Hoe vaak Flood wordt gebruikt. Flood kost meer zendtijd. Met rotatie aan volgen ze op de directe pogingen.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Inlogpogingen: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Hoe vaak wordt geprobeerd in te loggen op een repeater of roomserver voordat het stopt.'; + @override String get appSettings_ipfsImageLinks => 'IPFS-providerconfiguratie'; @@ -7001,15 +7028,15 @@ class AppLocalizationsNl extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Routeringsalgoritme resetten naar standaard'; + 'Routeringsinstellingen resetten naar standaard'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Routeringsalgoritme-instellingen herstellen naar fabrieksstandaardwaarden'; + 'De routeringsinstellingen in dit gedeelte terugzetten naar de standaardwaarden'; @override String get appSettings_routingResetToDefault => - 'Routeringsalgoritme-instellingen gereset naar standaard'; + 'Routeringsinstellingen gereset naar standaard'; @override String get appSettings_imageMessagesSection => 'Afbeeldingsberichten'; diff --git a/lib/l10n/app_localizations_pl.dart b/lib/l10n/app_localizations_pl.dart index 62a18751..51954827 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -1447,11 +1447,11 @@ class AppLocalizationsPl extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Resetuj ścieżkę kontaktu po 5 nieudanych próbach wysłania'; + 'Resetuj zapisaną ścieżkę kontaktu, gdy wszystkie próby wysłania się nie powiodą'; @override String get appSettings_pathsWillBeCleared => - 'Ścieżka zostanie wyczyszczona po 5 nieudanych próbach.'; + 'Ścieżki zostaną wyczyszczone, gdy wszystkie próby wysłania się nie powiodą'; @override String get appSettings_pathsWillNotBeCleared => @@ -1462,7 +1462,7 @@ class AppLocalizationsPl extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Przełączaj się między najlepszymi ścieżkami a trybem flood.'; + 'Przy każdej próbie bezpośredniej wypróbuj inną znaną trasę. Późniejsze próby to Flood. Wyłączone zostawia bieżącą ścieżkę kontaktu.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1480,6 +1480,33 @@ class AppLocalizationsPl extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Liczba prób ponownego wysłania wiadomości przed oznaczaniem jej jako nieudanej'; + @override + String appSettings_directRetries(int count) { + return 'Próby bezpośrednie: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Ile razy próbować znanej trasy. Dostępne także przy wyłączonej automatycznej rotacji trasy.'; + + @override + String appSettings_floodRetries(int count) { + return 'Próby Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Ile razy użyć Flood. Flood zużywa więcej czasu antenowego. Przy włączonej rotacji następują po próbach bezpośrednich.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Próby logowania: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Ile razy próbować logowania do przemiennika lub serwera room, zanim aplikacja zrezygnuje.'; + @override String get appSettings_ipfsImageLinks => 'Konfiguracja dostawcy IPFS'; @@ -7075,15 +7102,15 @@ class AppLocalizationsPl extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Resetuj algorytm trasowania do domyślnych'; + 'Resetuj ustawienia trasowania do domyślnych'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Przywróć ustawienia algorytmu trasowania do fabrycznych ustawień domyślnych'; + 'Przywróć ustawienia trasowania w tej sekcji do wartości domyślnych'; @override String get appSettings_routingResetToDefault => - 'Ustawienia algorytmu trasowania zresetowane do domyślnych'; + 'Ustawienia trasowania zresetowane do domyślnych'; @override String get appSettings_imageMessagesSection => 'Wiadomości z obrazami'; diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart index 48a93255..1b367341 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -1439,11 +1439,11 @@ class AppLocalizationsPt extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Redefinir o caminho de contato após 5 tentativas de envio falhas'; + 'Redefinir o caminho salvo do contato quando todas as tentativas de envio falharem'; @override String get appSettings_pathsWillBeCleared => - 'Os caminhos serão limpos após 5 tentativas falhas.'; + 'Os caminhos serão limpos quando todas as tentativas de envio falharem'; @override String get appSettings_pathsWillNotBeCleared => @@ -1454,7 +1454,7 @@ class AppLocalizationsPt extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Alternar entre os melhores caminhos e o modo Flood'; + 'Em cada tentativa direta, experimentar outra rota conhecida. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contato.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1472,6 +1472,33 @@ class AppLocalizationsPt extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Número de tentativas de reenvio antes de classificar uma mensagem como falha.'; + @override + String appSettings_directRetries(int count) { + return 'Tentativas diretas: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Quantas vezes tentar uma rota conhecida. Continua disponível com a rotação automática de rotas desligada.'; + + @override + String appSettings_floodRetries(int count) { + return 'Tentativas Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Quantas vezes usar Flood. Flood usa mais tempo de ar. Com a rotação ligada, vêm depois das tentativas diretas.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Tentativas de login: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Quantas vezes tentar entrar em um repetidor ou servidor de sala antes de desistir.'; + @override String get appSettings_ipfsImageLinks => 'Configuração do provedor IPFS'; @@ -7026,15 +7053,15 @@ class AppLocalizationsPt extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Redefinir algoritmo de roteamento para o padrão'; + 'Redefinir configurações de roteamento para o padrão'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Restaurar as configurações do algoritmo de roteamento para os valores padrão de fábrica'; + 'Restaurar as configurações de roteamento desta seção para os padrões'; @override String get appSettings_routingResetToDefault => - 'Configurações do algoritmo de roteamento redefinidas para o padrão'; + 'Configurações de roteamento redefinidas para o padrão'; @override String get appSettings_imageMessagesSection => 'Mensagens de imagem'; @@ -8993,11 +9020,11 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Repor o caminho do contacto após 5 tentativas de envio falhadas'; + 'Repor o caminho guardado do contacto quando todas as tentativas de envio falharem'; @override String get appSettings_pathsWillBeCleared => - 'Os caminhos serão limpos após 5 tentativas falhadas'; + 'Os caminhos serão limpos quando todas as tentativas de envio falharem'; @override String get appSettings_pathsWillNotBeCleared => @@ -9008,7 +9035,7 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_autoRouteRotationSubtitle => - 'Alterna entre os melhores caminhos e o modo flood'; + 'Em cada tentativa direta, experimentar outro caminho conhecido. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contacto.'; @override String get appSettings_autoRouteRotationEnabled => @@ -9025,6 +9052,33 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { String get appSettings_maxMessageRetriesSubtitle => 'Número de tentativas antes de marcar uma mensagem como falhada'; + @override + String appSettings_directRetries(int count) { + return 'Tentativas diretas: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Quantas vezes tentar um caminho conhecido. Continua disponível com a rotação automática de caminhos desligada.'; + + @override + String appSettings_floodRetries(int count) { + return 'Tentativas Flood: $count'; + } + + @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.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Tentativas de início de sessão: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Quantas vezes tentar iniciar sessão num repetidor ou servidor de sala antes de desistir.'; + @override String get appSettings_ipfsImageLinks => 'Configuração do fornecedor IPFS'; @@ -14477,15 +14531,15 @@ class AppLocalizationsPtPt extends AppLocalizationsPt { @override String get appSettings_resetRoutingToDefault => - 'Repor algoritmo de encaminhamento'; + 'Repor definições de encaminhamento'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Repõe as definições do algoritmo de encaminhamento para os valores de fábrica'; + 'Repor as definições de encaminhamento desta secção para os valores predefinidos'; @override String get appSettings_routingResetToDefault => - 'Definições do algoritmo de encaminhamento repostas'; + 'Definições de encaminhamento repostas'; @override String get appSettings_imageMessagesSection => 'Mensagens de imagem'; diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart index b2d7a486..3d4111b2 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -1438,11 +1438,11 @@ class AppLocalizationsRu extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Сбросить маршрут контакта после 5 неудачных попыток отправки'; + 'Сбросить сохранённый маршрут контакта, когда все попытки отправки не удались'; @override String get appSettings_pathsWillBeCleared => - 'Маршруты будут сброшены после 5 неудачных попыток'; + 'Маршруты будут сброшены, когда все попытки отправки не удались'; @override String get appSettings_pathsWillNotBeCleared => @@ -1454,7 +1454,7 @@ class AppLocalizationsRu extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Циклически переключаться между лучшими маршрутами и режимом Flood'; + 'При каждой прямой попытке пробовать другой известный маршрут. Следующие попытки — Flood. Выключено оставляет текущий маршрут контакта.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1472,6 +1472,33 @@ class AppLocalizationsRu extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Количество попыток повторной отправки сообщения перед тем, как пометить его как неудачное.'; + @override + String appSettings_directRetries(int count) { + return 'Прямые попытки: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Сколько раз пробовать известный маршрут. Доступно и когда автоматическая ротация выключена.'; + + @override + String appSettings_floodRetries(int count) { + return 'Попытки Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Сколько раз использовать Flood. Flood занимает больше эфирного времени. При включённой ротации они идут после прямых попыток.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Попытки входа: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Сколько раз пытаться войти на ретранслятор или room-сервер, прежде чем сдаться.'; + @override String get appSettings_ipfsImageLinks => 'Настройка провайдера IPFS'; @@ -7052,15 +7079,15 @@ class AppLocalizationsRu extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Сбросить алгоритм маршрутизации к значению по умолчанию'; + 'Сбросить настройки маршрутизации к значениям по умолчанию'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Восстановить настройки алгоритма маршрутизации к заводским значениям по умолчанию'; + 'Вернуть настройки маршрутизации в этом разделе к значениям по умолчанию'; @override String get appSettings_routingResetToDefault => - 'Настройки алгоритма маршрутизации сброшены к значению по умолчанию'; + 'Настройки маршрутизации сброшены к значениям по умолчанию'; @override String get appSettings_imageMessagesSection => 'Сообщения-изображения'; diff --git a/lib/l10n/app_localizations_sk.dart b/lib/l10n/app_localizations_sk.dart index 0c1327b4..932b79d4 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -1433,11 +1433,11 @@ class AppLocalizationsSk extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Resetovať cestu kontaktu po 5 neúspešných pokusoch o odoslanie'; + 'Resetovať uloženú cestu kontaktu, keď zlyhajú všetky pokusy o odoslanie'; @override String get appSettings_pathsWillBeCleared => - 'Cesty budú vymazané po 5 neúspešných pokusoch.'; + 'Cesty sa vymažú, keď zlyhajú všetky pokusy o odoslanie'; @override String get appSettings_pathsWillNotBeCleared => @@ -1448,7 +1448,7 @@ class AppLocalizationsSk extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Striedajte sa medzi najlepšími trasami a flood režimom.'; + 'Pri každom priamom pokuse skúsiť inú známu trasu. Neskoršie pokusy sú Flood. Vypnuté ponechá aktuálnu cestu kontaktu.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1466,6 +1466,33 @@ class AppLocalizationsSk extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Počet opakovaných pokusov pred označením správy ako neúspešnej'; + @override + String appSettings_directRetries(int count) { + return 'Priame pokusy: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Koľkokrát sa skúsi známa trasa. Dostupné aj keď je automatické striedanie trás vypnuté.'; + + @override + String appSettings_floodRetries(int count) { + return 'Pokusy Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Koľkokrát sa použije Flood. Flood zaberie viac vysielacieho času. Pri zapnutom striedaní nasledujú po priamych pokusoch.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Pokusy o prihlásenie: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Koľkokrát sa skúsi prihlásenie k opakovaču alebo room serveru, kým sa to vzdá.'; + @override String get appSettings_ipfsImageLinks => 'Konfigurácia poskytovateľa IPFS'; @@ -7025,15 +7052,15 @@ class AppLocalizationsSk extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Obnoviť algoritmus smerovania na predvolené'; + 'Obnoviť nastavenia smerovania na predvolené'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Obnoviť nastavenia algoritmu smerovania na továrne predvolené hodnoty'; + 'Obnoviť nastavenia smerovania v tejto časti na predvolené hodnoty'; @override String get appSettings_routingResetToDefault => - 'Nastavenia algoritmu smerovania obnovené na predvolené'; + 'Nastavenia smerovania obnovené na predvolené'; @override String get appSettings_imageMessagesSection => 'Obrazové správy'; diff --git a/lib/l10n/app_localizations_sl.dart b/lib/l10n/app_localizations_sl.dart index 3701f9e0..40527806 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -1431,11 +1431,11 @@ class AppLocalizationsSl extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Ponastavi pot stika po 5 neuspelih poskusih pošiljanja'; + 'Ponastavi shranjeno pot stika, ko spodletijo vsi poskusi pošiljanja'; @override String get appSettings_pathsWillBeCleared => - 'Poti bodo počiščene po 5 neuspelih poskusih.'; + 'Poti se počistijo, ko spodletijo vsi poskusi pošiljanja'; @override String get appSettings_pathsWillNotBeCleared => @@ -1446,7 +1446,7 @@ class AppLocalizationsSl extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Izmenjuj najboljše poti in flood način'; + 'Ob vsakem neposrednem poskusu preizkusi drugo znano pot. Kasnejši poskusi so Flood. Izklopljeno ohrani trenutno pot stika.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1464,6 +1464,33 @@ class AppLocalizationsSl extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Število poskusov ponovnega poslanja, preden se sporočilo označuje kot neuspešno'; + @override + String appSettings_directRetries(int count) { + return 'Neposredni poskusi: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Kolikokrat se preizkusi znana pot. Na voljo tudi, ko je samodejno kroženje poti izklopljeno.'; + + @override + String appSettings_floodRetries(int count) { + return 'Poskusi Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Kolikokrat se uporabi Flood. Flood porabi več oddajnega časa. Ob vklopljenem kroženju sledijo neposrednim poskusom.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Poskusi prijave: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Kolikokrat se poskusi prijava v ponavljalnik ali room strežnik, preden obupa.'; + @override String get appSettings_ipfsImageLinks => 'Konfiguracija ponudnika IPFS'; @@ -7013,15 +7040,15 @@ class AppLocalizationsSl extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Ponastavite algoritem usmerjanja na privzeto'; + 'Ponastavi nastavitve usmerjanja na privzete'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Obnovite nastavitve algoritma usmerjanja na tovarniške privzetke'; + 'Obnovi nastavitve usmerjanja v tem razdelku na privzete vrednosti'; @override String get appSettings_routingResetToDefault => - 'Nastavitve algoritma usmerjanja so ponastavljene na privzeto'; + 'Nastavitve usmerjanja so ponastavljene na privzete'; @override String get appSettings_imageMessagesSection => 'Sporočila s slikami'; diff --git a/lib/l10n/app_localizations_sv.dart b/lib/l10n/app_localizations_sv.dart index 9aa969ce..fae3713e 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -1421,11 +1421,11 @@ class AppLocalizationsSv extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Återställ kontaktens rutt efter 5 misslyckade sändningsförsök'; + 'Återställ kontaktens sparade rutt när alla sändningsförsök misslyckas'; @override String get appSettings_pathsWillBeCleared => - 'Rutter rensas efter 5 misslyckade försök'; + 'Rutter rensas när alla sändningsförsök misslyckas'; @override String get appSettings_pathsWillNotBeCleared => @@ -1436,7 +1436,7 @@ class AppLocalizationsSv extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Växla mellan de bästa rutterna och flood-läge'; + 'Vid varje direkt försök, prova en annan känd rutt. Senare försök är Flood. Av behåller kontaktens aktuella rutt.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1453,6 +1453,33 @@ class AppLocalizationsSv extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Antal försök att skicka om ett meddelande innan det markeras som misslyckat.'; + @override + String appSettings_directRetries(int count) { + return 'Direkta försök: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Hur många gånger en känd rutt provas. Finns kvar även när automatisk ruttrotation är av.'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood-försök: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Hur många gånger Flood används. Flood tar mer sändningstid. Med rotation på kommer de efter de direkta försöken.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Inloggningsförsök: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Hur många gånger inloggning till en repeater eller room-server provas innan den ger upp.'; + @override String get appSettings_ipfsImageLinks => 'Konfiguration av IPFS-leverantör'; @@ -6980,15 +7007,15 @@ class AppLocalizationsSv extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Återställ rutningsalgoritm till standard'; + 'Återställ rutningsinställningar till standard'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Återställ rutningsalgoritmins inställningar till fabriksstandard'; + 'Återställ routningsinställningarna i det här avsnittet till standardvärden'; @override String get appSettings_routingResetToDefault => - 'Rutningsalgoritmins inställningar återställda till standard'; + 'Rutningsinställningar återställda till standard'; @override String get appSettings_imageMessagesSection => 'Bildmeddelanden'; diff --git a/lib/l10n/app_localizations_uk.dart b/lib/l10n/app_localizations_uk.dart index de2125bc..32159140 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -1433,11 +1433,11 @@ class AppLocalizationsUk extends AppLocalizations { @override String get appSettings_clearPathOnMaxRetrySubtitle => - 'Скидати шлях до контакту після 5 невдалих спроб надсилання'; + 'Скинути збережений шлях контакту, коли всі спроби надсилання не вдаються'; @override String get appSettings_pathsWillBeCleared => - 'Шляхи будуть очищені після 5 невдалих спроб.'; + 'Шляхи буде очищено, коли всі спроби надсилання не вдадуться'; @override String get appSettings_pathsWillNotBeCleared => @@ -1448,7 +1448,7 @@ class AppLocalizationsUk extends AppLocalizations { @override String get appSettings_autoRouteRotationSubtitle => - 'Чергувати найкращі шляхи та режим Flood'; + 'На кожній прямій спробі пробувати інший відомий маршрут. Наступні спроби — Flood. Вимкнено залишає поточний шлях контакту.'; @override String get appSettings_autoRouteRotationEnabled => @@ -1466,6 +1466,33 @@ class AppLocalizationsUk extends AppLocalizations { String get appSettings_maxMessageRetriesSubtitle => 'Кількість спроб повторного відправлення повідомлення перед тим, як позначити його як невдале'; + @override + String appSettings_directRetries(int count) { + return 'Прямі спроби: $count'; + } + + @override + String get appSettings_directRetriesSubtitle => + 'Скільки разів пробувати відомий маршрут. Доступно і коли авторотацію вимкнено.'; + + @override + String appSettings_floodRetries(int count) { + return 'Спроби Flood: $count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + 'Скільки разів використовувати Flood. Flood займає більше ефірного часу. Якщо ротацію ввімкнено, вони йдуть після прямих спроб.'; + + @override + String appSettings_loginAttempts(int count) { + return 'Спроби входу: $count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => + 'Скільки разів пробувати вхід до ретранслятора або room-сервера, перш ніж здатися.'; + @override String get appSettings_ipfsImageLinks => 'Налаштування IPFS-провайдера'; @@ -7060,15 +7087,15 @@ class AppLocalizationsUk extends AppLocalizations { @override String get appSettings_resetRoutingToDefault => - 'Скинути алгоритм маршрутизації до типового'; + 'Скинути налаштування маршрутизації до типових'; @override String get appSettings_resetRoutingToDefaultSubtitle => - 'Відновити налаштування алгоритму маршрутизації до заводських значень за замовчуванням'; + 'Відновити налаштування маршрутизації в цьому розділі до значень за замовчуванням'; @override String get appSettings_routingResetToDefault => - 'Налаштування алгоритму маршрутизації скинуто до типових'; + 'Налаштування маршрутизації скинуто до типових'; @override String get appSettings_imageMessagesSection => 'Повідомлення із зображеннями'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index 241d78de..a1d5c7f1 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -1347,10 +1347,11 @@ class AppLocalizationsZh extends AppLocalizations { String get appSettings_clearPathOnMaxRetry => '达到最大重试次数时清除路径'; @override - String get appSettings_clearPathOnMaxRetrySubtitle => '在5次发送失败后重置联系路径。'; + String get appSettings_clearPathOnMaxRetrySubtitle => + '所有发送尝试都失败后,重置联系人已保存的路径'; @override - String get appSettings_pathsWillBeCleared => '5次失败后将重新路由'; + String get appSettings_pathsWillBeCleared => '所有发送尝试失败后将清除路径'; @override String get appSettings_pathsWillNotBeCleared => '路径不会自动清除'; @@ -1359,7 +1360,8 @@ class AppLocalizationsZh extends AppLocalizations { String get appSettings_autoRouteRotation => '自动路径轮换'; @override - String get appSettings_autoRouteRotationSubtitle => '在最佳路径和泛洪模式之间切换'; + String get appSettings_autoRouteRotationSubtitle => + '每次直接尝试换一条已知路由。之后的尝试使用 Flood。关闭后保持联系人的当前路径。'; @override String get appSettings_autoRouteRotationEnabled => '自动路径轮换已启用'; @@ -1373,6 +1375,31 @@ class AppLocalizationsZh extends AppLocalizations { @override String get appSettings_maxMessageRetriesSubtitle => '在将消息标记为失败之前,允许尝试的次数'; + @override + String appSettings_directRetries(int count) { + return '直接尝试:$count'; + } + + @override + String get appSettings_directRetriesSubtitle => '尝试已知路由的次数。关闭自动路径轮换后仍然可以设置。'; + + @override + String appSettings_floodRetries(int count) { + return 'Flood 尝试:$count'; + } + + @override + String get appSettings_floodRetriesSubtitle => + '使用 Flood 的次数。Flood 占用更多空中时间。开启轮换时,这些尝试排在直接尝试之后。'; + + @override + String appSettings_loginAttempts(int count) { + return '登录尝试:$count'; + } + + @override + String get appSettings_loginAttemptsSubtitle => '登录中继或房间服务器时,放弃前的尝试次数。'; + @override String get appSettings_ipfsImageLinks => 'IPFS 提供商配置'; @@ -6561,13 +6588,13 @@ class AppLocalizationsZh extends AppLocalizations { String get appSettings_routingSection => '路由'; @override - String get appSettings_resetRoutingToDefault => '将路由算法重置为默认值'; + String get appSettings_resetRoutingToDefault => '将路由设置重置为默认值'; @override - String get appSettings_resetRoutingToDefaultSubtitle => '将路由算法设置恢复为出厂默认值'; + String get appSettings_resetRoutingToDefaultSubtitle => '将本部分的路由设置恢复为默认值'; @override - String get appSettings_routingResetToDefault => '路由算法设置已重置为默认值'; + String get appSettings_routingResetToDefault => '路由设置已重置为默认值'; @override String get appSettings_imageMessagesSection => '图片消息'; diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index 2f192869..5a7dbd73 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -203,11 +203,11 @@ "appSettings_advertisementNotificationsSubtitle": "Toon notificatie wanneer nieuwe nodes worden ontdekt", "appSettings_messaging": "Berichten", "appSettings_clearPathOnMaxRetry": "Pad wissen na max. pogingen", - "appSettings_clearPathOnMaxRetrySubtitle": "Reset contactpad na 5 mislukte verzendpogingen", - "appSettings_pathsWillBeCleared": "Paden worden gewist na 5 mislukte pogingen", + "appSettings_clearPathOnMaxRetrySubtitle": "Het opgeslagen pad van het contact resetten als alle verzendpogingen mislukken", + "appSettings_pathsWillBeCleared": "Paden worden gewist als alle verzendpogingen mislukken", "appSettings_pathsWillNotBeCleared": "Paden worden niet automatisch gewist", "appSettings_autoRouteRotation": "Route Automatisch Roteren", - "appSettings_autoRouteRotationSubtitle": "Wissel tussen beste paden en floodmodus", + "appSettings_autoRouteRotationSubtitle": "Bij elke directe poging een andere bekende route proberen. Latere pogingen zijn Flood. Uit houdt het huidige pad van het contact.", "appSettings_autoRouteRotationEnabled": "Automatische route rotatie ingeschakeld", "appSettings_autoRouteRotationDisabled": "Automatische route rotatie is uitgeschakeld", "appSettings_battery": "Batterij", @@ -3254,9 +3254,9 @@ "settings_regionFetchNoneResponded": "Geen repeaters in de buurt hebben geantwoord. Ga dichter bij een repeater staan en probeer het opnieuw.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Routering", - "appSettings_resetRoutingToDefault": "Routeringsalgoritme resetten naar standaard", - "appSettings_resetRoutingToDefaultSubtitle": "Routeringsalgoritme-instellingen herstellen naar fabrieksstandaardwaarden", - "appSettings_routingResetToDefault": "Routeringsalgoritme-instellingen gereset naar standaard", + "appSettings_resetRoutingToDefault": "Routeringsinstellingen resetten naar standaard", + "appSettings_resetRoutingToDefaultSubtitle": "De routeringsinstellingen in dit gedeelte terugzetten naar de standaardwaarden", + "appSettings_routingResetToDefault": "Routeringsinstellingen gereset naar standaard", "appSettings_imageMessagesSection": "Afbeeldingsberichten", "appSettings_showApiKey": "API-sleutel tonen", "appSettings_hideApiKey": "API-sleutel verbergen", @@ -3677,5 +3677,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB of TCP", "connectSheet_stopReconnecting": "Opnieuw verbinden stoppen", "connectSheet_reconnectFailed": "Kan {name} niet bereiken. Controleer of het aan staat en in de buurt is.", - "chat_composerOffline": "Verbind met een radio om berichten te versturen" + "chat_composerOffline": "Verbind met een radio om berichten te versturen", + "appSettings_directRetries": "Directe pogingen: {count}", + "appSettings_directRetriesSubtitle": "Hoe vaak een bekende route wordt geprobeerd. Blijft beschikbaar als automatische routerotatie uit staat.", + "appSettings_floodRetries": "Flood-pogingen: {count}", + "appSettings_floodRetriesSubtitle": "Hoe vaak Flood wordt gebruikt. Flood kost meer zendtijd. Met rotatie aan volgen ze op de directe pogingen.", + "appSettings_loginAttempts": "Inlogpogingen: {count}", + "appSettings_loginAttemptsSubtitle": "Hoe vaak wordt geprobeerd in te loggen op een repeater of roomserver voordat het stopt." } diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index af3783a1..f0abd6ed 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Wyświetl powiadomienie, gdy zostaną wykryte nowe węzły.", "appSettings_messaging": "Wiadomości", "appSettings_clearPathOnMaxRetry": "Wyczyść ścieżkę po maks. liczbie prób", - "appSettings_clearPathOnMaxRetrySubtitle": "Resetuj ścieżkę kontaktu po 5 nieudanych próbach wysłania", - "appSettings_pathsWillBeCleared": "Ścieżka zostanie wyczyszczona po 5 nieudanych próbach.", + "appSettings_clearPathOnMaxRetrySubtitle": "Resetuj zapisaną ścieżkę kontaktu, gdy wszystkie próby wysłania się nie powiodą", + "appSettings_pathsWillBeCleared": "Ścieżki zostaną wyczyszczone, gdy wszystkie próby wysłania się nie powiodą", "appSettings_pathsWillNotBeCleared": "Ścieżka nie zostanie automatycznie wyczyszczona.", "appSettings_autoRouteRotation": "Automatyczna rotacja trasy", - "appSettings_autoRouteRotationSubtitle": "Przełączaj się między najlepszymi ścieżkami a trybem flood.", + "appSettings_autoRouteRotationSubtitle": "Przy każdej próbie bezpośredniej wypróbuj inną znaną trasę. Późniejsze próby to Flood. Wyłączone zostawia bieżącą ścieżkę kontaktu.", "appSettings_autoRouteRotationEnabled": "Automatyczne obracanie tras włączone", "appSettings_autoRouteRotationDisabled": "Automatyczne obracanie tras wyłączone", "appSettings_battery": "Bateria", @@ -3386,9 +3386,9 @@ "settings_regionFetchNoneResponded": "Żaden pobliski przekaźnik nie odpowiedział. Zbliż się do przekaźnika i spróbuj ponownie.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Routing", - "appSettings_resetRoutingToDefault": "Resetuj algorytm trasowania do domyślnych", - "appSettings_resetRoutingToDefaultSubtitle": "Przywróć ustawienia algorytmu trasowania do fabrycznych ustawień domyślnych", - "appSettings_routingResetToDefault": "Ustawienia algorytmu trasowania zresetowane do domyślnych", + "appSettings_resetRoutingToDefault": "Resetuj ustawienia trasowania do domyślnych", + "appSettings_resetRoutingToDefaultSubtitle": "Przywróć ustawienia trasowania w tej sekcji do wartości domyślnych", + "appSettings_routingResetToDefault": "Ustawienia trasowania zresetowane do domyślnych", "appSettings_imageMessagesSection": "Wiadomości z obrazami", "appSettings_showApiKey": "Pokaż klucz API", "appSettings_hideApiKey": "Ukryj klucz API", @@ -4015,5 +4015,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB lub TCP", "connectSheet_stopReconnecting": "Zatrzymaj ponowne łączenie", "connectSheet_reconnectFailed": "Nie można połączyć z {name}. Upewnij się, że jest włączone i w pobliżu.", - "chat_composerOffline": "Połącz się z radiem, aby wysyłać wiadomości" + "chat_composerOffline": "Połącz się z radiem, aby wysyłać wiadomości", + "appSettings_directRetries": "Próby bezpośrednie: {count}", + "appSettings_directRetriesSubtitle": "Ile razy próbować znanej trasy. Dostępne także przy wyłączonej automatycznej rotacji trasy.", + "appSettings_floodRetries": "Próby Flood: {count}", + "appSettings_floodRetriesSubtitle": "Ile razy użyć Flood. Flood zużywa więcej czasu antenowego. Przy włączonej rotacji następują po próbach bezpośrednich.", + "appSettings_loginAttempts": "Próby logowania: {count}", + "appSettings_loginAttemptsSubtitle": "Ile razy próbować logowania do przemiennika lub serwera room, zanim aplikacja zrezygnuje." } diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index ad24e07a..9b7c454a 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Mostrar notificação quando novos nós forem descobertos", "appSettings_messaging": "Mensagens", "appSettings_clearPathOnMaxRetry": "Limpar Caminho em Tentativas Máximas", - "appSettings_clearPathOnMaxRetrySubtitle": "Redefinir o caminho de contato após 5 tentativas de envio falhas", - "appSettings_pathsWillBeCleared": "Os caminhos serão limpos após 5 tentativas falhas.", + "appSettings_clearPathOnMaxRetrySubtitle": "Redefinir o caminho salvo do contato quando todas as tentativas de envio falharem", + "appSettings_pathsWillBeCleared": "Os caminhos serão limpos quando todas as tentativas de envio falharem", "appSettings_pathsWillNotBeCleared": "Os caminhos não serão limpos automaticamente.", "appSettings_autoRouteRotation": "Rotação de Rota Automática", - "appSettings_autoRouteRotationSubtitle": "Alternar entre os melhores caminhos e o modo Flood", + "appSettings_autoRouteRotationSubtitle": "Em cada tentativa direta, experimentar outra rota conhecida. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contato.", "appSettings_autoRouteRotationEnabled": "Rotação de roteamento automático habilitada", "appSettings_autoRouteRotationDisabled": "Rotação de roteamento automático desativada", "appSettings_battery": "Bateria", @@ -3239,9 +3239,9 @@ "settings_regionFetchNoneResponded": "Nenhum repetidor próximo respondeu. Aproxime-se de um repetidor e tente novamente.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Roteamento", - "appSettings_resetRoutingToDefault": "Redefinir algoritmo de roteamento para o padrão", - "appSettings_resetRoutingToDefaultSubtitle": "Restaurar as configurações do algoritmo de roteamento para os valores padrão de fábrica", - "appSettings_routingResetToDefault": "Configurações do algoritmo de roteamento redefinidas para o padrão", + "appSettings_resetRoutingToDefault": "Redefinir configurações de roteamento para o padrão", + "appSettings_resetRoutingToDefaultSubtitle": "Restaurar as configurações de roteamento desta seção para os padrões", + "appSettings_routingResetToDefault": "Configurações de roteamento redefinidas para o padrão", "appSettings_imageMessagesSection": "Mensagens de imagem", "appSettings_showApiKey": "Mostrar chave de API", "appSettings_hideApiKey": "Ocultar chave de API", @@ -3828,5 +3828,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB ou TCP", "connectSheet_stopReconnecting": "Parar de reconectar", "connectSheet_reconnectFailed": "Não foi possível alcançar {name}. Verifique se está ligado e por perto.", - "chat_composerOffline": "Conecte-se a um rádio para enviar mensagens" + "chat_composerOffline": "Conecte-se a um rádio para enviar mensagens", + "appSettings_directRetries": "Tentativas diretas: {count}", + "appSettings_directRetriesSubtitle": "Quantas vezes tentar uma rota conhecida. 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 depois das tentativas diretas.", + "appSettings_loginAttempts": "Tentativas de login: {count}", + "appSettings_loginAttemptsSubtitle": "Quantas vezes tentar entrar em um repetidor ou servidor de sala antes de desistir." } diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index 80218599..5b326773 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -415,11 +415,11 @@ "appSettings_advertisementNotificationsSubtitle": "Mostrar notificação quando são descobertos novos nós", "appSettings_messaging": "Mensagens", "appSettings_clearPathOnMaxRetry": "Limpar caminho no máx. de tentativas", - "appSettings_clearPathOnMaxRetrySubtitle": "Repor o caminho do contacto após 5 tentativas de envio falhadas", - "appSettings_pathsWillBeCleared": "Os caminhos serão limpos após 5 tentativas falhadas", + "appSettings_clearPathOnMaxRetrySubtitle": "Repor o caminho guardado do contacto quando todas as tentativas de envio falharem", + "appSettings_pathsWillBeCleared": "Os caminhos serão limpos quando todas as tentativas de envio falharem", "appSettings_pathsWillNotBeCleared": "Os caminhos não serão limpos automaticamente", "appSettings_autoRouteRotation": "Rotação automática de rotas", - "appSettings_autoRouteRotationSubtitle": "Alterna entre os melhores caminhos e o modo flood", + "appSettings_autoRouteRotationSubtitle": "Em cada tentativa direta, experimentar outro caminho conhecido. As tentativas seguintes são Flood. Desligado mantém o caminho atual do contacto.", "appSettings_autoRouteRotationEnabled": "Rotação automática de rotas ativada", "appSettings_autoRouteRotationDisabled": "Rotação automática de rotas desativada", "appSettings_maxMessageRetries": "Máx. de tentativas por mensagem", @@ -1907,9 +1907,9 @@ "settings_regionFetchNoneResponded": "Nenhum repetidor próximo respondeu. Aproxime-se de um repetidor e tente novamente.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Encaminhamento", - "appSettings_resetRoutingToDefault": "Repor algoritmo de encaminhamento", - "appSettings_resetRoutingToDefaultSubtitle": "Repõe as definições do algoritmo de encaminhamento para os valores de fábrica", - "appSettings_routingResetToDefault": "Definições do algoritmo de encaminhamento repostas", + "appSettings_resetRoutingToDefault": "Repor definições de encaminhamento", + "appSettings_resetRoutingToDefaultSubtitle": "Repor as definições de encaminhamento desta secção para os valores predefinidos", + "appSettings_routingResetToDefault": "Definições de encaminhamento repostas", "appSettings_imageMessagesSection": "Mensagens de imagem", "appSettings_showApiKey": "Mostrar chave API", "appSettings_hideApiKey": "Ocultar chave API", @@ -2055,5 +2055,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB ou TCP", "connectSheet_stopReconnecting": "Parar de religar", "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" + "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_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." } diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index f5ff336c..2bf49032 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -162,11 +162,11 @@ "appSettings_advertisementNotificationsSubtitle": "Показывать уведомление при обнаружении новых нод", "appSettings_messaging": "Обмен сообщениями", "appSettings_clearPathOnMaxRetry": "Сбросить маршрут после максимального числа попыток", - "appSettings_clearPathOnMaxRetrySubtitle": "Сбросить маршрут контакта после 5 неудачных попыток отправки", - "appSettings_pathsWillBeCleared": "Маршруты будут сброшены после 5 неудачных попыток", + "appSettings_clearPathOnMaxRetrySubtitle": "Сбросить сохранённый маршрут контакта, когда все попытки отправки не удались", + "appSettings_pathsWillBeCleared": "Маршруты будут сброшены, когда все попытки отправки не удались", "appSettings_pathsWillNotBeCleared": "Маршруты не будут автоматически сбрасываться", "appSettings_autoRouteRotation": "Автоматическое переключение маршрутов", - "appSettings_autoRouteRotationSubtitle": "Циклически переключаться между лучшими маршрутами и режимом Flood", + "appSettings_autoRouteRotationSubtitle": "При каждой прямой попытке пробовать другой известный маршрут. Следующие попытки — Flood. Выключено оставляет текущий маршрут контакта.", "appSettings_autoRouteRotationEnabled": "Автоматическое переключение маршрутов включено", "appSettings_autoRouteRotationDisabled": "Автоматическое переключение маршрутов отключено", "appSettings_battery": "Батарея", @@ -2650,9 +2650,9 @@ "settings_regionFetchNoneResponded": "Ближайшие репитеры не ответили. Подойдите ближе к репитеру и повторите попытку.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Маршрутизация", - "appSettings_resetRoutingToDefault": "Сбросить алгоритм маршрутизации к значению по умолчанию", - "appSettings_resetRoutingToDefaultSubtitle": "Восстановить настройки алгоритма маршрутизации к заводским значениям по умолчанию", - "appSettings_routingResetToDefault": "Настройки алгоритма маршрутизации сброшены к значению по умолчанию", + "appSettings_resetRoutingToDefault": "Сбросить настройки маршрутизации к значениям по умолчанию", + "appSettings_resetRoutingToDefaultSubtitle": "Вернуть настройки маршрутизации в этом разделе к значениям по умолчанию", + "appSettings_routingResetToDefault": "Настройки маршрутизации сброшены к значениям по умолчанию", "appSettings_imageMessagesSection": "Сообщения-изображения", "appSettings_showApiKey": "Показать API-ключ", "appSettings_hideApiKey": "Скрыть API-ключ", @@ -3073,5 +3073,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB или TCP", "connectSheet_stopReconnecting": "Остановить переподключение", "connectSheet_reconnectFailed": "Не удалось связаться с {name}. Убедитесь, что оно включено и находится рядом.", - "chat_composerOffline": "Подключитесь к радио, чтобы отправлять сообщения" + "chat_composerOffline": "Подключитесь к радио, чтобы отправлять сообщения", + "appSettings_directRetries": "Прямые попытки: {count}", + "appSettings_directRetriesSubtitle": "Сколько раз пробовать известный маршрут. Доступно и когда автоматическая ротация выключена.", + "appSettings_floodRetries": "Попытки Flood: {count}", + "appSettings_floodRetriesSubtitle": "Сколько раз использовать Flood. Flood занимает больше эфирного времени. При включённой ротации они идут после прямых попыток.", + "appSettings_loginAttempts": "Попытки входа: {count}", + "appSettings_loginAttemptsSubtitle": "Сколько раз пытаться войти на ретранслятор или room-сервер, прежде чем сдаться." } diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb index c582c8f4..c4c5e618 100644 --- a/lib/l10n/app_sk.arb +++ b/lib/l10n/app_sk.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Zobraziť upozornenie, keď sa objavia nové uzly.", "appSettings_messaging": "Správy", "appSettings_clearPathOnMaxRetry": "Vymazať cestu pri maximálnom počte pokusov", - "appSettings_clearPathOnMaxRetrySubtitle": "Resetovať cestu kontaktu po 5 neúspešných pokusoch o odoslanie", - "appSettings_pathsWillBeCleared": "Cesty budú vymazané po 5 neúspešných pokusoch.", + "appSettings_clearPathOnMaxRetrySubtitle": "Resetovať uloženú cestu kontaktu, keď zlyhajú všetky pokusy o odoslanie", + "appSettings_pathsWillBeCleared": "Cesty sa vymažú, keď zlyhajú všetky pokusy o odoslanie", "appSettings_pathsWillNotBeCleared": "Cesty sa automaticky nevymazávajú.", "appSettings_autoRouteRotation": "Automatické striedanie trás", - "appSettings_autoRouteRotationSubtitle": "Striedajte sa medzi najlepšími trasami a flood režimom.", + "appSettings_autoRouteRotationSubtitle": "Pri každom priamom pokuse skúsiť inú známu trasu. Neskoršie pokusy sú Flood. Vypnuté ponechá aktuálnu cestu kontaktu.", "appSettings_autoRouteRotationEnabled": "Automatické striedanie trás je zapnuté", "appSettings_autoRouteRotationDisabled": "Automatické striedanie trás je vypnuté", "appSettings_battery": "Batéria", @@ -3354,9 +3354,9 @@ "settings_regionFetchNoneResponded": "Blízke opakovače neodpovedali. Priblížte sa k opakovaču a skúste to znova.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Smerovanie", - "appSettings_resetRoutingToDefault": "Obnoviť algoritmus smerovania na predvolené", - "appSettings_resetRoutingToDefaultSubtitle": "Obnoviť nastavenia algoritmu smerovania na továrne predvolené hodnoty", - "appSettings_routingResetToDefault": "Nastavenia algoritmu smerovania obnovené na predvolené", + "appSettings_resetRoutingToDefault": "Obnoviť nastavenia smerovania na predvolené", + "appSettings_resetRoutingToDefaultSubtitle": "Obnoviť nastavenia smerovania v tejto časti na predvolené hodnoty", + "appSettings_routingResetToDefault": "Nastavenia smerovania obnovené na predvolené", "appSettings_imageMessagesSection": "Obrazové správy", "appSettings_showApiKey": "Zobraziť API kľúč", "appSettings_hideApiKey": "Skryť API kľúč", @@ -3829,5 +3829,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB alebo TCP", "connectSheet_stopReconnecting": "Zastaviť pripájanie", "connectSheet_reconnectFailed": "Nedá sa spojiť s {name}. Uistite sa, že je zapnuté a nablízku.", - "chat_composerOffline": "Na odosielanie správ sa pripojte k rádiu" + "chat_composerOffline": "Na odosielanie správ sa pripojte k rádiu", + "appSettings_directRetries": "Priame pokusy: {count}", + "appSettings_directRetriesSubtitle": "Koľkokrát sa skúsi známa trasa. Dostupné aj keď je automatické striedanie trás vypnuté.", + "appSettings_floodRetries": "Pokusy Flood: {count}", + "appSettings_floodRetriesSubtitle": "Koľkokrát sa použije Flood. Flood zaberie viac vysielacieho času. Pri zapnutom striedaní nasledujú po priamych pokusoch.", + "appSettings_loginAttempts": "Pokusy o prihlásenie: {count}", + "appSettings_loginAttemptsSubtitle": "Koľkokrát sa skúsi prihlásenie k opakovaču alebo room serveru, kým sa to vzdá." } diff --git a/lib/l10n/app_sl.arb b/lib/l10n/app_sl.arb index 3dcbeb94..53088560 100644 --- a/lib/l10n/app_sl.arb +++ b/lib/l10n/app_sl.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Pokaži obvestilo, ko so najdene nove naprave.", "appSettings_messaging": "Komuniciranje", "appSettings_clearPathOnMaxRetry": "Počisti pot ob največ poskusih", - "appSettings_clearPathOnMaxRetrySubtitle": "Ponastavi pot stika po 5 neuspelih poskusih pošiljanja", - "appSettings_pathsWillBeCleared": "Poti bodo počiščene po 5 neuspelih poskusih.", + "appSettings_clearPathOnMaxRetrySubtitle": "Ponastavi shranjeno pot stika, ko spodletijo vsi poskusi pošiljanja", + "appSettings_pathsWillBeCleared": "Poti se počistijo, ko spodletijo vsi poskusi pošiljanja", "appSettings_pathsWillNotBeCleared": "Poti ne bodo samodejno počiščene.", "appSettings_autoRouteRotation": "Samodejno kroženje poti", - "appSettings_autoRouteRotationSubtitle": "Izmenjuj najboljše poti in flood način", + "appSettings_autoRouteRotationSubtitle": "Ob vsakem neposrednem poskusu preizkusi drugo znano pot. Kasnejši poskusi so Flood. Izklopljeno ohrani trenutno pot stika.", "appSettings_autoRouteRotationEnabled": "Samodejno kroženje poti omogočeno", "appSettings_autoRouteRotationDisabled": "Samodejno kroženje poti onemogočeno", "appSettings_battery": "Baterija", @@ -3240,9 +3240,9 @@ "settings_regionFetchNoneResponded": "Noben bližnji ponovitelj ni odgovoril. Približajte se ponovitelju in poskusite znova.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Usmerjanje", - "appSettings_resetRoutingToDefault": "Ponastavite algoritem usmerjanja na privzeto", - "appSettings_resetRoutingToDefaultSubtitle": "Obnovite nastavitve algoritma usmerjanja na tovarniške privzetke", - "appSettings_routingResetToDefault": "Nastavitve algoritma usmerjanja so ponastavljene na privzeto", + "appSettings_resetRoutingToDefault": "Ponastavi nastavitve usmerjanja na privzete", + "appSettings_resetRoutingToDefaultSubtitle": "Obnovi nastavitve usmerjanja v tem razdelku na privzete vrednosti", + "appSettings_routingResetToDefault": "Nastavitve usmerjanja so ponastavljene na privzete", "appSettings_imageMessagesSection": "Sporočila s slikami", "appSettings_showApiKey": "Pokaži API ključ", "appSettings_hideApiKey": "Skrij API ključ", @@ -3983,5 +3983,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB ali TCP", "connectSheet_stopReconnecting": "Ustavi ponovno povezovanje", "connectSheet_reconnectFailed": "Ni mogoče doseči {name}. Preverite, ali je vklopljen in v bližini.", - "chat_composerOffline": "Za pošiljanje sporočil se povežite z radiem" + "chat_composerOffline": "Za pošiljanje sporočil se povežite z radiem", + "appSettings_directRetries": "Neposredni poskusi: {count}", + "appSettings_directRetriesSubtitle": "Kolikokrat se preizkusi znana pot. Na voljo tudi, ko je samodejno kroženje poti izklopljeno.", + "appSettings_floodRetries": "Poskusi Flood: {count}", + "appSettings_floodRetriesSubtitle": "Kolikokrat se uporabi Flood. Flood porabi več oddajnega časa. Ob vklopljenem kroženju sledijo neposrednim poskusom.", + "appSettings_loginAttempts": "Poskusi prijave: {count}", + "appSettings_loginAttemptsSubtitle": "Kolikokrat se poskusi prijava v ponavljalnik ali room strežnik, preden obupa." } diff --git a/lib/l10n/app_sv.arb b/lib/l10n/app_sv.arb index 7ec4e120..64039433 100644 --- a/lib/l10n/app_sv.arb +++ b/lib/l10n/app_sv.arb @@ -198,11 +198,11 @@ "appSettings_advertisementNotificationsSubtitle": "Visa en notifiering när nya noder upptäcks", "appSettings_messaging": "Meddelanden", "appSettings_clearPathOnMaxRetry": "Rensa rutt efter maximalt antal försök", - "appSettings_clearPathOnMaxRetrySubtitle": "Återställ kontaktens rutt efter 5 misslyckade sändningsförsök", - "appSettings_pathsWillBeCleared": "Rutter rensas efter 5 misslyckade försök", + "appSettings_clearPathOnMaxRetrySubtitle": "Återställ kontaktens sparade rutt när alla sändningsförsök misslyckas", + "appSettings_pathsWillBeCleared": "Rutter rensas när alla sändningsförsök misslyckas", "appSettings_pathsWillNotBeCleared": "Rutter rensas inte automatiskt", "appSettings_autoRouteRotation": "Automatisk ruttrotation", - "appSettings_autoRouteRotationSubtitle": "Växla mellan de bästa rutterna och flood-läge", + "appSettings_autoRouteRotationSubtitle": "Vid varje direkt försök, prova en annan känd rutt. Senare försök är Flood. Av behåller kontaktens aktuella rutt.", "appSettings_autoRouteRotationEnabled": "Automatisk ruttrotation är aktiverad", "appSettings_autoRouteRotationDisabled": "Automatisk ruttrotation är avstängd", "appSettings_battery": "Batteri", @@ -3234,9 +3234,9 @@ "settings_regionFetchNoneResponded": "Ingen repeater i närheten svarade. Flytta dig närmare en repeater och försök igen.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Routing", - "appSettings_resetRoutingToDefault": "Återställ rutningsalgoritm till standard", - "appSettings_resetRoutingToDefaultSubtitle": "Återställ rutningsalgoritmins inställningar till fabriksstandard", - "appSettings_routingResetToDefault": "Rutningsalgoritmins inställningar återställda till standard", + "appSettings_resetRoutingToDefault": "Återställ rutningsinställningar till standard", + "appSettings_resetRoutingToDefaultSubtitle": "Återställ routningsinställningarna i det här avsnittet till standardvärden", + "appSettings_routingResetToDefault": "Rutningsinställningar återställda till standard", "appSettings_imageMessagesSection": "Bildmeddelanden", "appSettings_showApiKey": "Visa API-nyckel", "appSettings_hideApiKey": "Dölj API-nyckel", @@ -3823,5 +3823,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB eller TCP", "connectSheet_stopReconnecting": "Sluta återansluta", "connectSheet_reconnectFailed": "Kunde inte nå {name}. Kontrollera att den är påslagen och i närheten.", - "chat_composerOffline": "Anslut till en radio för att skicka meddelanden" + "chat_composerOffline": "Anslut till en radio för att skicka meddelanden", + "appSettings_directRetries": "Direkta försök: {count}", + "appSettings_directRetriesSubtitle": "Hur många gånger en känd rutt provas. Finns kvar även när automatisk ruttrotation är av.", + "appSettings_floodRetries": "Flood-försök: {count}", + "appSettings_floodRetriesSubtitle": "Hur många gånger Flood används. Flood tar mer sändningstid. Med rotation på kommer de efter de direkta försöken.", + "appSettings_loginAttempts": "Inloggningsförsök: {count}", + "appSettings_loginAttemptsSubtitle": "Hur många gånger inloggning till en repeater eller room-server provas innan den ger upp." } diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index 16d0ca20..8b3847e9 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -200,11 +200,11 @@ "appSettings_advertisementNotificationsSubtitle": "Показувати сповіщення при виявленні нових вузлів", "appSettings_messaging": "Обмін повідомленнями", "appSettings_clearPathOnMaxRetry": "Очищати шлях після макс. спроб", - "appSettings_clearPathOnMaxRetrySubtitle": "Скидати шлях до контакту після 5 невдалих спроб надсилання", - "appSettings_pathsWillBeCleared": "Шляхи будуть очищені після 5 невдалих спроб.", + "appSettings_clearPathOnMaxRetrySubtitle": "Скинути збережений шлях контакту, коли всі спроби надсилання не вдаються", + "appSettings_pathsWillBeCleared": "Шляхи буде очищено, коли всі спроби надсилання не вдадуться", "appSettings_pathsWillNotBeCleared": "Шляхи не будуть очищатись автоматично.", "appSettings_autoRouteRotation": "Авторотація маршруту", - "appSettings_autoRouteRotationSubtitle": "Чергувати найкращі шляхи та режим Flood", + "appSettings_autoRouteRotationSubtitle": "На кожній прямій спробі пробувати інший відомий маршрут. Наступні спроби — Flood. Вимкнено залишає поточний шлях контакту.", "appSettings_autoRouteRotationEnabled": "Авторотація маршрутизації увімкнена", "appSettings_autoRouteRotationDisabled": "Авторотація маршрутизації вимкнена", "appSettings_battery": "Батарея", @@ -3333,9 +3333,9 @@ "settings_regionFetchNoneResponded": "Ближні ретранслятори не відповіли. Підійдіть ближче до ретранслятора й спробуйте ще раз.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Маршрутизація", - "appSettings_resetRoutingToDefault": "Скинути алгоритм маршрутизації до типового", - "appSettings_resetRoutingToDefaultSubtitle": "Відновити налаштування алгоритму маршрутизації до заводських значень за замовчуванням", - "appSettings_routingResetToDefault": "Налаштування алгоритму маршрутизації скинуто до типових", + "appSettings_resetRoutingToDefault": "Скинути налаштування маршрутизації до типових", + "appSettings_resetRoutingToDefaultSubtitle": "Відновити налаштування маршрутизації в цьому розділі до значень за замовчуванням", + "appSettings_routingResetToDefault": "Налаштування маршрутизації скинуто до типових", "appSettings_imageMessagesSection": "Повідомлення із зображеннями", "appSettings_showApiKey": "Показати API-ключ", "appSettings_hideApiKey": "Приховати API-ключ", @@ -3756,5 +3756,11 @@ "connectSheet_chooseRadioSubtitle": "Bluetooth, USB або TCP", "connectSheet_stopReconnecting": "Зупинити перепідключення", "connectSheet_reconnectFailed": "Не вдалося зв'язатися з {name}. Переконайтеся, що воно увімкнене й поруч.", - "chat_composerOffline": "Підключіться до радіо, щоб надсилати повідомлення" + "chat_composerOffline": "Підключіться до радіо, щоб надсилати повідомлення", + "appSettings_directRetries": "Прямі спроби: {count}", + "appSettings_directRetriesSubtitle": "Скільки разів пробувати відомий маршрут. Доступно і коли авторотацію вимкнено.", + "appSettings_floodRetries": "Спроби Flood: {count}", + "appSettings_floodRetriesSubtitle": "Скільки разів використовувати Flood. Flood займає більше ефірного часу. Якщо ротацію ввімкнено, вони йдуть після прямих спроб.", + "appSettings_loginAttempts": "Спроби входу: {count}", + "appSettings_loginAttemptsSubtitle": "Скільки разів пробувати вхід до ретранслятора або room-сервера, перш ніж здатися." } diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 6b70ddb0..05e27bb4 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -212,11 +212,11 @@ "appSettings_advertisementNotificationsSubtitle": "发现新节点时显示通知", "appSettings_messaging": "消息", "appSettings_clearPathOnMaxRetry": "达到最大重试次数时清除路径", - "appSettings_clearPathOnMaxRetrySubtitle": "在5次发送失败后重置联系路径。", - "appSettings_pathsWillBeCleared": "5次失败后将重新路由", + "appSettings_clearPathOnMaxRetrySubtitle": "所有发送尝试都失败后,重置联系人已保存的路径", + "appSettings_pathsWillBeCleared": "所有发送尝试失败后将清除路径", "appSettings_pathsWillNotBeCleared": "路径不会自动清除", "appSettings_autoRouteRotation": "自动路径轮换", - "appSettings_autoRouteRotationSubtitle": "在最佳路径和泛洪模式之间切换", + "appSettings_autoRouteRotationSubtitle": "每次直接尝试换一条已知路由。之后的尝试使用 Flood。关闭后保持联系人的当前路径。", "appSettings_autoRouteRotationEnabled": "自动路径轮换已启用", "appSettings_autoRouteRotationDisabled": "自动路径轮换已禁用", "appSettings_battery": "电池", @@ -3244,9 +3244,9 @@ "settings_regionFetchNoneResponded": "附近没有中继器响应。请靠近中继器后重试。", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "路由", - "appSettings_resetRoutingToDefault": "将路由算法重置为默认值", - "appSettings_resetRoutingToDefaultSubtitle": "将路由算法设置恢复为出厂默认值", - "appSettings_routingResetToDefault": "路由算法设置已重置为默认值", + "appSettings_resetRoutingToDefault": "将路由设置重置为默认值", + "appSettings_resetRoutingToDefaultSubtitle": "将本部分的路由设置恢复为默认值", + "appSettings_routingResetToDefault": "路由设置已重置为默认值", "appSettings_imageMessagesSection": "图片消息", "appSettings_showApiKey": "显示 API 密钥", "appSettings_hideApiKey": "隐藏 API 密钥", @@ -3833,5 +3833,11 @@ "connectSheet_chooseRadioSubtitle": "蓝牙、USB 或 TCP", "connectSheet_stopReconnecting": "停止重新连接", "connectSheet_reconnectFailed": "无法连接到 {name}。请确保其已开机且在附近。", - "chat_composerOffline": "连接到无线电后才能发送消息" + "chat_composerOffline": "连接到无线电后才能发送消息", + "appSettings_directRetries": "直接尝试:{count}", + "appSettings_directRetriesSubtitle": "尝试已知路由的次数。关闭自动路径轮换后仍然可以设置。", + "appSettings_floodRetries": "Flood 尝试:{count}", + "appSettings_floodRetriesSubtitle": "使用 Flood 的次数。Flood 占用更多空中时间。开启轮换时,这些尝试排在直接尝试之后。", + "appSettings_loginAttempts": "登录尝试:{count}", + "appSettings_loginAttemptsSubtitle": "登录中继或房间服务器时,放弃前的尝试次数。" } diff --git a/lib/models/app_settings.dart b/lib/models/app_settings.dart index 9b2b80b6..20c8ab63 100644 --- a/lib/models/app_settings.dart +++ b/lib/models/app_settings.dart @@ -1,5 +1,6 @@ import 'custom_theme.dart'; import 'image_codec_support.dart'; +import 'send_attempt_plan.dart'; import 'translation_support.dart'; enum UnitSystem { metric, imperial } @@ -103,7 +104,9 @@ class AppSettings { static const double defaultInitialRouteWeight = 3.0; static const double defaultRouteWeightSuccessIncrement = 0.5; static const double defaultRouteWeightFailureDecrement = 0.2; - static const int defaultMaxMessageRetries = 5; + static const int defaultDirectRetries = SendAttemptPlan.defaultDirectRetries; + static const int defaultFloodRetries = SendAttemptPlan.defaultFloodRetries; + static const int defaultLoginAttempts = SendAttemptPlan.defaultLoginAttempts; final bool clearPathOnMaxRetry; final bool mapShowRepeaters; @@ -137,7 +140,11 @@ class AppSettings { final double initialRouteWeight; final double routeWeightSuccessIncrement; final double routeWeightFailureDecrement; - final int maxMessageRetries; + final int directRetries; + final int floodRetries; + + /// How many times a repeater or room-server login is sent before giving up. + final int loginAttempts; final bool channelMinHopsEnabled; final int channelMinHops; final int channelMinHopsRetries; @@ -236,6 +243,16 @@ class AppSettings { downloadedModels: imageCodecDownloadedModels, ); + /// Attempts for one direct message. [rotating] is auto route rotation with + /// no manual path. [floodPath] is the contact's fixed path. + int sendAttemptLimit({required bool rotating, required bool floodPath}) { + return SendAttemptPlan( + directRetries: directRetries, + floodRetries: floodRetries, + rotateRoutes: rotating, + ).attemptLimit(floodPath: floodPath); + } + String get effectiveMapTileApiKey { final apiKey = mapTileApiKey?.trim(); if (apiKey == null || apiKey.isEmpty) { @@ -291,7 +308,9 @@ class AppSettings { this.initialRouteWeight = defaultInitialRouteWeight, this.routeWeightSuccessIncrement = defaultRouteWeightSuccessIncrement, this.routeWeightFailureDecrement = defaultRouteWeightFailureDecrement, - this.maxMessageRetries = defaultMaxMessageRetries, + this.directRetries = defaultDirectRetries, + this.floodRetries = defaultFloodRetries, + this.loginAttempts = defaultLoginAttempts, this.channelMinHopsEnabled = false, this.channelMinHops = 2, this.channelMinHopsRetries = 1, @@ -389,7 +408,9 @@ class AppSettings { 'initial_route_weight': initialRouteWeight, 'route_weight_success_increment': routeWeightSuccessIncrement, 'route_weight_failure_decrement': routeWeightFailureDecrement, - 'max_message_retries': maxMessageRetries, + 'max_direct_retries': directRetries, + 'max_flood_retries': floodRetries, + 'login_attempts': loginAttempts, 'channel_min_hops_enabled': channelMinHopsEnabled, 'channel_min_hops': channelMinHops, 'channel_min_hops_retries': channelMinHopsRetries, @@ -539,8 +560,11 @@ class AppSettings { routeWeightFailureDecrement: (json['route_weight_failure_decrement'] as num?)?.toDouble() ?? defaultRouteWeightFailureDecrement, - maxMessageRetries: - json['max_message_retries'] as int? ?? defaultMaxMessageRetries, + directRetries: SendAttemptPlan.retriesFromJson(json).direct, + floodRetries: SendAttemptPlan.retriesFromJson(json).flood, + loginAttempts: SendAttemptPlan.clampLogin( + (json['login_attempts'] as num?)?.toInt() ?? defaultLoginAttempts, + ), channelMinHopsEnabled: json['channel_min_hops_enabled'] as bool? ?? false, channelMinHops: json['channel_min_hops'] as int? ?? 2, channelMinHopsRetries: json['channel_min_hops_retries'] as int? ?? 1, @@ -698,7 +722,9 @@ class AppSettings { double? initialRouteWeight, double? routeWeightSuccessIncrement, double? routeWeightFailureDecrement, - int? maxMessageRetries, + int? directRetries, + int? floodRetries, + int? loginAttempts, bool? channelMinHopsEnabled, int? channelMinHops, int? channelMinHopsRetries, @@ -791,7 +817,9 @@ class AppSettings { routeWeightSuccessIncrement ?? this.routeWeightSuccessIncrement, routeWeightFailureDecrement: routeWeightFailureDecrement ?? this.routeWeightFailureDecrement, - maxMessageRetries: maxMessageRetries ?? this.maxMessageRetries, + directRetries: directRetries ?? this.directRetries, + floodRetries: floodRetries ?? this.floodRetries, + loginAttempts: loginAttempts ?? this.loginAttempts, channelMinHopsEnabled: channelMinHopsEnabled ?? this.channelMinHopsEnabled, channelMinHops: channelMinHops ?? this.channelMinHops, diff --git a/lib/models/send_attempt_plan.dart b/lib/models/send_attempt_plan.dart new file mode 100644 index 00000000..7fea0b1e --- /dev/null +++ b/lib/models/send_attempt_plan.dart @@ -0,0 +1,88 @@ +/// How many times a direct message is sent, split by route kind. +/// +/// Direct attempts use a known route. Flood attempts ask the mesh to flood. +/// With [rotateRoutes] on (and no manual path), the direct attempts run first +/// and the flood attempts follow. With it off, every attempt stays on the +/// contact's current path and only that path's limit applies. +class SendAttemptPlan { + static const int minDirectRetries = 0; + static const int maxDirectRetries = 15; + static const int defaultDirectRetries = 4; + + static const int minFloodRetries = 0; + static const int maxFloodRetries = 10; + + /// One flood, matching the previous single limit of 5 whose last attempt + /// flooded when auto route rotation was on (4 direct + 1 flood). + static const int defaultFloodRetries = 1; + + static const int minLoginAttempts = 1; + static const int maxLoginAttempts = 10; + static const int defaultLoginAttempts = 5; + + final int directRetries; + final int floodRetries; + + /// When true, direct attempts may change route and are followed by floods. + final bool rotateRoutes; + + const SendAttemptPlan({ + required this.directRetries, + required this.floodRetries, + required this.rotateRoutes, + }); + + static int clampDirect(int value) => + value.clamp(minDirectRetries, maxDirectRetries); + + static int clampFlood(int value) => + value.clamp(minFloodRetries, maxFloodRetries); + + static int clampLogin(int value) => + value.clamp(minLoginAttempts, maxLoginAttempts); + + /// Reads the split limits, or derives them from the old single + /// `max_message_retries` value. That value was a total: every attempt but + /// the last used a route, then one attempt flooded. + static ({int direct, int flood}) retriesFromJson(Map json) { + final direct = json['max_direct_retries']; + final flood = json['max_flood_retries']; + if (direct is num || flood is num) { + return ( + direct: clampDirect( + direct is num ? direct.toInt() : defaultDirectRetries, + ), + flood: clampFlood(flood is num ? flood.toInt() : defaultFloodRetries), + ); + } + final legacy = json['max_message_retries']; + if (legacy is num) { + return ( + direct: clampDirect(legacy.toInt() - 1), + flood: defaultFloodRetries, + ); + } + return (direct: defaultDirectRetries, flood: defaultFloodRetries); + } + + /// How many times to send before giving up. + /// + /// [floodPath] is the contact's fixed path. It is ignored while rotating, + /// because those sends spend [directRetries] then [floodRetries]. A plan + /// with both limits at 0 still sends once, on the current path. + int attemptLimit({required bool floodPath}) { + if (rotateRoutes) { + final total = directRetries + floodRetries; + return total < 1 ? 1 : total; + } + final count = floodPath ? floodRetries : directRetries; + return count < 1 ? 1 : count; + } + + /// First attempt index that should flood, or null when this plan never + /// switches onto a flood (rotation off, or no flood attempts configured). + int? get floodFromAttempt { + if (!rotateRoutes || floodRetries < 1) return null; + return directRetries; + } +} diff --git a/lib/screens/app_settings_screen.dart b/lib/screens/app_settings_screen.dart index 126216cb..fa89851d 100644 --- a/lib/screens/app_settings_screen.dart +++ b/lib/screens/app_settings_screen.dart @@ -19,6 +19,8 @@ import '../widgets/language_picker_sheet.dart'; import '../widgets/mesh_nav_tile.dart'; import '../widgets/mesh_ui.dart'; import '../widgets/network_map_settings_section.dart'; +import '../models/send_attempt_plan.dart'; +import '../widgets/settings_reveal.dart'; import '../widgets/sync_progress_overlay.dart'; import '../widgets/translation_settings_section.dart'; import '../helpers/snack_bar_builder.dart'; @@ -414,29 +416,6 @@ class AppSettingsScreen extends StatelessWidget { ) { return Column( children: [ - SwitchListTile( - contentPadding: const EdgeInsets.symmetric( - horizontal: 16, - vertical: 4, - ), - secondary: const Icon(Icons.refresh_outlined, size: 24), - title: Text(context.l10n.appSettings_clearPathOnMaxRetry), - subtitle: Text(context.l10n.appSettings_clearPathOnMaxRetrySubtitle), - value: settingsService.settings.clearPathOnMaxRetry, - onChanged: (value) { - settingsService.setClearPathOnMaxRetry(value); - showDismissibleSnackBar( - context, - content: Text( - value - ? context.l10n.appSettings_pathsWillBeCleared - : context.l10n.appSettings_pathsWillNotBeCleared, - ), - duration: const Duration(seconds: 2), - ); - }, - ), - const Divider(height: 1, indent: 16), SwitchListTile( contentPadding: const EdgeInsets.symmetric( horizontal: 16, @@ -496,104 +475,82 @@ class AppSettingsScreen extends StatelessWidget { BuildContext context, AppSettingsService settingsService, ) { - final autoRouteEnabled = settingsService.settings.autoRouteRotationEnabled; + final settings = settingsService.settings; + final l10n = context.l10n; return Column( children: [ + SwitchListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, + ), + secondary: const Icon(Icons.refresh_outlined, size: 24), + title: Text(l10n.appSettings_clearPathOnMaxRetry), + subtitle: Text(l10n.appSettings_clearPathOnMaxRetrySubtitle), + value: settings.clearPathOnMaxRetry, + onChanged: (value) { + settingsService.setClearPathOnMaxRetry(value); + showDismissibleSnackBar( + context, + content: Text( + value + ? l10n.appSettings_pathsWillBeCleared + : l10n.appSettings_pathsWillNotBeCleared, + ), + duration: const Duration(seconds: 2), + ); + }, + ), + const Divider(height: 1, indent: 16), + SettingsValueSlider( + title: l10n.appSettings_directRetries(settings.directRetries), + subtitle: l10n.appSettings_directRetriesSubtitle, + value: settings.directRetries, + min: SendAttemptPlan.minDirectRetries, + max: SendAttemptPlan.maxDirectRetries, + onChanged: settingsService.setDirectRetries, + ), + const Divider(height: 1, indent: 16), + SettingsValueSlider( + title: l10n.appSettings_floodRetries(settings.floodRetries), + subtitle: l10n.appSettings_floodRetriesSubtitle, + value: settings.floodRetries, + min: SendAttemptPlan.minFloodRetries, + max: SendAttemptPlan.maxFloodRetries, + onChanged: settingsService.setFloodRetries, + ), + const Divider(height: 1, indent: 16), + SettingsValueSlider( + title: l10n.appSettings_loginAttempts(settings.loginAttempts), + subtitle: l10n.appSettings_loginAttemptsSubtitle, + value: settings.loginAttempts, + min: SendAttemptPlan.minLoginAttempts, + max: SendAttemptPlan.maxLoginAttempts, + onChanged: settingsService.setLoginAttempts, + ), + const Divider(height: 1, indent: 16), SwitchListTile( contentPadding: const EdgeInsets.symmetric( horizontal: 16, vertical: 4, ), secondary: const Icon(Icons.alt_route, size: 24), - title: Text(context.l10n.appSettings_autoRouteRotation), - subtitle: Text(context.l10n.appSettings_autoRouteRotationSubtitle), - value: autoRouteEnabled, + title: Text(l10n.appSettings_autoRouteRotation), + subtitle: Text(l10n.appSettings_autoRouteRotationSubtitle), + value: settings.autoRouteRotationEnabled, onChanged: (value) { settingsService.setAutoRouteRotationEnabled(value); showDismissibleSnackBar( context, content: Text( value - ? context.l10n.appSettings_autoRouteRotationEnabled - : context.l10n.appSettings_autoRouteRotationDisabled, + ? l10n.appSettings_autoRouteRotationEnabled + : l10n.appSettings_autoRouteRotationDisabled, ), duration: const Duration(seconds: 2), ); }, ), - // AnimatedSize sub-options for auto-route rotation - AnimatedSize( - duration: const Duration(milliseconds: 200), - alignment: Alignment.topCenter, - child: autoRouteEnabled - ? Container( - color: Theme.of(context).colorScheme.surfaceContainerHighest, - padding: const EdgeInsets.only(left: 16), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Divider(height: 1), - ListTile( - title: Text(context.l10n.appSettings_maxMessageRetries), - subtitle: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - context - .l10n - .appSettings_maxMessageRetriesSubtitle, - ), - Slider( - value: settingsService.settings.maxMessageRetries - .toDouble(), - min: 2, - max: 10, - divisions: 8, - label: settingsService.settings.maxMessageRetries - .toString(), - onChanged: (value) => settingsService - .setMaxMessageRetries(value.toInt()), - ), - ], - ), - ), - const Divider(height: 1), - ListTile( - contentPadding: const EdgeInsets.symmetric( - horizontal: 16, - vertical: 4, - ), - leading: const Icon(Icons.restart_alt, size: 24), - title: Text( - context.l10n.appSettings_resetRoutingToDefault, - ), - subtitle: Text( - context - .l10n - .appSettings_resetRoutingToDefaultSubtitle, - ), - trailing: const Icon( - Icons.keyboard_arrow_right, - size: 18, - ), - onTap: () async { - await settingsService.resetRoutingSettingsToDefault(); - if (context.mounted) { - showDismissibleSnackBar( - context, - content: Text( - context.l10n.appSettings_routingResetToDefault, - ), - duration: const Duration(seconds: 2), - ); - } - }, - ), - ], - ), - ) - : const SizedBox.shrink(), - ), const Divider(height: 1, indent: 16), SwitchListTile( contentPadding: const EdgeInsets.symmetric( @@ -601,60 +558,70 @@ class AppSettingsScreen extends StatelessWidget { vertical: 4, ), secondary: const Icon(Icons.cell_tower, size: 24), - title: Text(context.l10n.appSettings_channelMinHops), - subtitle: Text(context.l10n.appSettings_channelMinHopsSubtitle), - value: settingsService.settings.channelMinHopsEnabled, + title: Text(l10n.appSettings_channelMinHops), + subtitle: Text(l10n.appSettings_channelMinHopsSubtitle), + value: settings.channelMinHopsEnabled, onChanged: settingsService.setChannelMinHopsEnabled, ), - if (settingsService.settings.channelMinHopsEnabled) ...[ - ListTile( - title: Text( - context.l10n.appSettings_channelMinHopsCount( - settingsService.settings.channelMinHops, + SettingsReveal( + visible: settings.channelMinHopsEnabled, + children: [ + SettingsValueSlider( + title: l10n.appSettings_channelMinHopsCount( + settings.channelMinHops, ), - ), - subtitle: Slider( - value: settingsService.settings.channelMinHops.toDouble(), + value: settings.channelMinHops, min: 1, max: 8, - divisions: 7, - label: settingsService.settings.channelMinHops.toString(), - onChanged: (value) => - settingsService.setChannelMinHops(value.toInt()), + onChanged: settingsService.setChannelMinHops, ), - ), - ListTile( - title: Text( - context.l10n.appSettings_channelMinHopsRetries( - settingsService.settings.channelMinHopsRetries, + SettingsValueSlider( + title: l10n.appSettings_channelMinHopsRetries( + settings.channelMinHopsRetries, ), - ), - subtitle: Slider( - value: settingsService.settings.channelMinHopsRetries.toDouble(), + value: settings.channelMinHopsRetries, min: 1, max: 5, - divisions: 4, - label: settingsService.settings.channelMinHopsRetries.toString(), - onChanged: (value) => - settingsService.setChannelMinHopsRetries(value.toInt()), + onChanged: settingsService.setChannelMinHopsRetries, ), - ), - SwitchListTile( - contentPadding: const EdgeInsets.symmetric( - horizontal: 16, - vertical: 4, - ), - secondary: const Icon(Icons.hub_outlined, size: 24), - title: Text(context.l10n.appSettings_channelMinHopsCountRepeaters), - subtitle: Text( - context.l10n.appSettings_channelMinHopsCountRepeatersSubtitle( - settingsService.settings.channelMinHops, + SwitchListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, ), + secondary: const Icon(Icons.hub_outlined, size: 24), + title: Text(l10n.appSettings_channelMinHopsCountRepeaters), + subtitle: Text( + l10n.appSettings_channelMinHopsCountRepeatersSubtitle( + settings.channelMinHops, + ), + ), + value: settings.channelMinHopsCountRepeaters, + onChanged: settingsService.setChannelMinHopsCountRepeaters, ), - value: settingsService.settings.channelMinHopsCountRepeaters, - onChanged: settingsService.setChannelMinHopsCountRepeaters, + ], + ), + const Divider(height: 1, indent: 16), + ListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, ), - ], + leading: const Icon(Icons.restart_alt, size: 24), + title: Text(l10n.appSettings_resetRoutingToDefault), + subtitle: Text(l10n.appSettings_resetRoutingToDefaultSubtitle), + trailing: const Icon(Icons.keyboard_arrow_right, size: 18), + onTap: () async { + await settingsService.resetRoutingSettingsToDefault(); + if (context.mounted) { + showDismissibleSnackBar( + context, + content: Text(l10n.appSettings_routingResetToDefault), + duration: const Duration(seconds: 2), + ); + } + }, + ), ], ); } @@ -726,21 +693,24 @@ class AppSettingsScreen extends StatelessWidget { }, ), ), - if (settingsService.settings.imageMessagesEnabled) ...[ - SwitchListTile( - contentPadding: const EdgeInsets.symmetric( - horizontal: 16, - vertical: 4, + SettingsReveal( + visible: settingsService.settings.imageMessagesEnabled, + children: [ + SwitchListTile( + contentPadding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 4, + ), + secondary: const Icon(Icons.auto_awesome_outlined, size: 24), + title: Text(context.l10n.imageMessages_autoProcessTitle), + subtitle: Text(context.l10n.imageMessages_autoProcessSubtitle), + value: settingsService.settings.imageProcessAutomatically, + onChanged: (value) => + settingsService.setImageProcessAutomatically(value), ), - secondary: const Icon(Icons.auto_awesome_outlined, size: 24), - title: Text(context.l10n.imageMessages_autoProcessTitle), - subtitle: Text(context.l10n.imageMessages_autoProcessSubtitle), - value: settingsService.settings.imageProcessAutomatically, - onChanged: (value) => - settingsService.setImageProcessAutomatically(value), - ), - _buildImageCodecModels(context), - ], + _buildImageCodecModels(context), + ], + ), ], ); } diff --git a/lib/screens/channels_screen.dart b/lib/screens/channels_screen.dart index 6f247343..e3e64935 100644 --- a/lib/screens/channels_screen.dart +++ b/lib/screens/channels_screen.dart @@ -25,6 +25,7 @@ import '../widgets/connect_sheet.dart'; import '../widgets/list_filter_widget.dart'; import '../widgets/empty_state.dart'; import '../widgets/mesh_ui.dart'; +import '../widgets/settings_reveal.dart'; import '../widgets/network_map_opt_in_dialog.dart'; import '../widgets/qr_code_display.dart'; import '../widgets/quick_switch_bar.dart'; @@ -2045,8 +2046,9 @@ void showEditChannelSheet( } }), ), - if (cyr2latEnabled) ...[ - Padding( + RevealOnEnable( + visible: cyr2latEnabled, + child: Padding( padding: const EdgeInsets.fromLTRB(0, 8, 0, 8), child: DropdownButtonFormField( isExpanded: true, @@ -2073,7 +2075,7 @@ void showEditChannelSheet( }), ), ), - ], + ), SwitchListTile( contentPadding: EdgeInsets.zero, title: Text(sheetContext.l10n.urlImage_enable), diff --git a/lib/screens/chat_screen.dart b/lib/screens/chat_screen.dart index ad509b82..572835db 100644 --- a/lib/screens/chat_screen.dart +++ b/lib/screens/chat_screen.dart @@ -19,6 +19,7 @@ import '../helpers/message_url_image_helper.dart'; import '../helpers/path_helper.dart'; import '../helpers/reaction_helper.dart'; import '../widgets/message_status_icon.dart'; +import '../widgets/settings_reveal.dart'; import '../widgets/empty_state.dart'; import '../helpers/chat_scroll_controller.dart'; import '../helpers/gif_helper.dart'; @@ -707,6 +708,13 @@ class _ChatScreenState extends State { } final messageIndex = index; Contact contact = _resolveContact(connector); + final sendSettings = context.read().settings; + final retryLimit = sendSettings.sendAttemptLimit( + rotating: + sendSettings.autoRouteRotationEnabled && + contact.pathOverride == null, + floodPath: (contact.pathOverride ?? contact.pathLength) < 0, + ); final bool isRoom = contact.type == advTypeRoom; final message = reversedMessages[messageIndex]; String fourByteHex = ''; @@ -736,6 +744,7 @@ class _ChatScreenState extends State { ); final bubble = _MessageBubble( message: message, + maxSendAttempts: retryLimit, senderName: isRoom ? (roomAuthor != null ? "${roomAuthor.name} [$fourByteHex]" @@ -1209,8 +1218,9 @@ class _ChatScreenState extends State { }); }, ), - if (cyr2latEnabled) ...[ - Padding( + RevealOnEnable( + visible: cyr2latEnabled, + child: Padding( padding: const EdgeInsets.fromLTRB(0, 8, 0, 8), child: DropdownButtonFormField( isExpanded: true, @@ -1242,7 +1252,7 @@ class _ChatScreenState extends State { }, ), ), - ], + ), const Divider(height: 8), SwitchListTile( contentPadding: EdgeInsets.zero, @@ -1623,6 +1633,7 @@ class _ChatScreenState extends State { class _MessageBubble extends StatelessWidget { final Message message; + final int maxSendAttempts; final String senderName; final VoidCallback? onLongPress; final void Function(Message message, String emoji)? onRetryReaction; @@ -1632,6 +1643,7 @@ class _MessageBubble extends StatelessWidget { const _MessageBubble({ required this.message, + required this.maxSendAttempts, required this.senderName, required this.sourceId, required this.textScale, @@ -1871,10 +1883,7 @@ class _MessageBubble extends StatelessWidget { child: Text( context.l10n.chat_retryCount( message.retryCount, - context - .read() - .settings - .maxMessageRetries, + maxSendAttempts, ), style: MeshTheme.mono( fontSize: 12 * textScale, diff --git a/lib/screens/filtered_messages_screen.dart b/lib/screens/filtered_messages_screen.dart index c981f692..c1eac3d2 100644 --- a/lib/screens/filtered_messages_screen.dart +++ b/lib/screens/filtered_messages_screen.dart @@ -12,6 +12,7 @@ import '../widgets/adaptive_app_bar_title.dart'; import '../widgets/chat_send_pipeline.dart'; import '../widgets/empty_state.dart'; import '../widgets/mesh_ui.dart'; +import '../widgets/settings_reveal.dart'; /// Recent filtered channel messages across all channels, newest first. /// @@ -286,7 +287,8 @@ class _FilteredMessageCard extends StatelessWidget { ), const SizedBox(height: 8), AnimatedSize( - duration: const Duration(milliseconds: 150), + duration: RevealOnEnable.duration, + curve: RevealOnEnable.curve, alignment: AlignmentDirectional.topStart, child: Padding( padding: const EdgeInsetsDirectional.only(end: 8), diff --git a/lib/screens/scanner_screen.dart b/lib/screens/scanner_screen.dart index 3d416501..c668dd12 100644 --- a/lib/screens/scanner_screen.dart +++ b/lib/screens/scanner_screen.dart @@ -15,6 +15,7 @@ import '../widgets/device_tile.dart'; import '../widgets/empty_state.dart'; import '../widgets/get_node_banner.dart'; import '../widgets/mesh_ui.dart'; +import '../widgets/settings_reveal.dart'; import '../helpers/snack_bar_builder.dart'; import '../review_mode/review_mode_entry.dart'; import '../utils/main_navigation.dart'; @@ -151,17 +152,13 @@ class _ScannerScreenState extends State { builder: (context, connector, child) { return Column( children: [ - // Bluetooth off warning — slides in/out with AnimatedSize - AnimatedSize( - duration: const Duration(milliseconds: 250), - curve: Curves.easeInOut, - child: _bluetoothState == BluetoothAdapterState.off - ? _BluetoothOffBanner( - onEnable: PlatformInfo.isAndroid - ? () => FlutterBluePlus.turnOn() - : null, - ) - : const SizedBox.shrink(), + RevealOnEnable( + visible: _bluetoothState == BluetoothAdapterState.off, + child: _BluetoothOffBanner( + onEnable: PlatformInfo.isAndroid + ? () => FlutterBluePlus.turnOn() + : null, + ), ), // Connection status header diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index 9a6bc11e..1be0b39f 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -14,6 +14,7 @@ import '../helpers/snack_bar_builder.dart'; import '../helpers/utf8_length_limiter.dart'; import '../widgets/mesh_nav_tile.dart'; import '../widgets/mesh_ui.dart'; +import '../widgets/settings_reveal.dart'; import '../widgets/radio_settings_dialog.dart'; import 'app_settings_screen.dart'; import 'app_debug_log_screen.dart'; @@ -301,62 +302,58 @@ class _SettingsScreenState extends State { ), ), - // Expandable detail rows - AnimatedSize( - duration: const Duration(milliseconds: 200), - alignment: Alignment.topCenter, - child: _deviceInfoExpanded - ? Padding( - padding: const EdgeInsets.fromLTRB(16, 0, 16, 14), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Divider(height: 1), - const SizedBox(height: 10), - _infoRow( - context, - label: l10n.settings_infoId, - value: connector.deviceIdLabel, - ), - _buildBatteryInfoRow(context, connector), - if (connector.manufacturerName != null) - _infoRow( - context, - label: l10n.settings_infoHardware, - value: connector.manufacturerName!, - ), - if (connector.firmwareVersionString != null) - _infoRow( - context, - label: l10n.settings_infoFirmware, - value: connector.firmwareVersionString!, - ), - if (connector.selfName != null) - _infoRow( - context, - label: l10n.settings_nodeName, - value: connector.selfName!, - ), - if (connector.selfPublicKey != null) - _publicKeyRow( - context, - label: l10n.settings_infoPublicKey, - publicKeyHex: pubKeyToHex(connector.selfPublicKey!), - ), - _infoRow( - context, - label: l10n.settings_infoContactsCount, - value: '${connector.contacts.length}', - ), - _infoRow( - context, - label: l10n.settings_infoChannelCount, - value: '${connector.channels.length}', - ), - ], + RevealOnEnable( + visible: _deviceInfoExpanded, + child: Padding( + padding: const EdgeInsets.fromLTRB(16, 0, 16, 14), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Divider(height: 1), + const SizedBox(height: 10), + _infoRow( + context, + label: l10n.settings_infoId, + value: connector.deviceIdLabel, + ), + _buildBatteryInfoRow(context, connector), + if (connector.manufacturerName != null) + _infoRow( + context, + label: l10n.settings_infoHardware, + value: connector.manufacturerName!, ), - ) - : const SizedBox.shrink(), + if (connector.firmwareVersionString != null) + _infoRow( + context, + label: l10n.settings_infoFirmware, + value: connector.firmwareVersionString!, + ), + if (connector.selfName != null) + _infoRow( + context, + label: l10n.settings_nodeName, + value: connector.selfName!, + ), + if (connector.selfPublicKey != null) + _publicKeyRow( + context, + label: l10n.settings_infoPublicKey, + publicKeyHex: pubKeyToHex(connector.selfPublicKey!), + ), + _infoRow( + context, + label: l10n.settings_infoContactsCount, + value: '${connector.contacts.length}', + ), + _infoRow( + context, + label: l10n.settings_infoChannelCount, + value: '${connector.channels.length}', + ), + ], + ), + ), ), ], ); diff --git a/lib/services/app_settings_service.dart b/lib/services/app_settings_service.dart index d0758681..ae761062 100644 --- a/lib/services/app_settings_service.dart +++ b/lib/services/app_settings_service.dart @@ -3,6 +3,7 @@ import 'dart:convert'; import 'package:flutter/foundation.dart'; import '../models/app_settings.dart'; import '../models/custom_theme.dart'; +import '../models/send_attempt_plan.dart'; import '../models/holiday_schedule.dart'; import '../models/image_codec_support.dart'; import '../models/translation_support.dart'; @@ -228,8 +229,22 @@ class AppSettingsService extends ChangeNotifier { ); } - Future setMaxMessageRetries(int value) async { - await updateSettings(_settings.copyWith(maxMessageRetries: value)); + Future setDirectRetries(int value) async { + await updateSettings( + _settings.copyWith(directRetries: SendAttemptPlan.clampDirect(value)), + ); + } + + Future setFloodRetries(int value) async { + await updateSettings( + _settings.copyWith(floodRetries: SendAttemptPlan.clampFlood(value)), + ); + } + + Future setLoginAttempts(int value) async { + await updateSettings( + _settings.copyWith(loginAttempts: SendAttemptPlan.clampLogin(value)), + ); } Future setChannelMinHopsEnabled(bool value) async { @@ -714,13 +729,21 @@ class AppSettingsService extends ChangeNotifier { Future resetRoutingSettingsToDefault() async { await updateSettings( _settings.copyWith( + clearPathOnMaxRetry: false, + autoRouteRotationEnabled: true, maxRouteWeight: AppSettings.defaultMaxRouteWeight, initialRouteWeight: AppSettings.defaultInitialRouteWeight, routeWeightSuccessIncrement: AppSettings.defaultRouteWeightSuccessIncrement, routeWeightFailureDecrement: AppSettings.defaultRouteWeightFailureDecrement, - maxMessageRetries: AppSettings.defaultMaxMessageRetries, + directRetries: AppSettings.defaultDirectRetries, + floodRetries: AppSettings.defaultFloodRetries, + loginAttempts: AppSettings.defaultLoginAttempts, + channelMinHopsEnabled: false, + channelMinHops: 2, + channelMinHopsRetries: 1, + channelMinHopsCountRepeaters: false, ), ); } diff --git a/lib/services/message_retry_service.dart b/lib/services/message_retry_service.dart index 4495ce91..835facdb 100644 --- a/lib/services/message_retry_service.dart +++ b/lib/services/message_retry_service.dart @@ -7,6 +7,7 @@ import '../connector/meshcore_protocol.dart'; import '../models/contact.dart'; import '../models/message.dart'; import '../models/path_selection.dart'; +import '../models/send_attempt_plan.dart'; import 'app_settings_service.dart'; import 'app_debug_log_service.dart'; @@ -58,7 +59,7 @@ class RetryServiceConfig { final PathSelection? Function( String contactKey, int attemptIndex, - int maxRetries, + int directRetries, List recentSelections, )? selectRetryPath; @@ -88,8 +89,21 @@ class MessageRetryService extends ChangeNotifier { /// shared globally; cap at 6 to leave two slots of headroom. static const int _maxGlobalInFlight = 6; - int _maxRetries = 5; - int get maxRetries => _maxRetries; + int? _directOverride; + int? _floodOverride; + bool? _rotateOverride; + + /// Pins both limits and turns rotation off. Tests use this to send a fixed + /// number of attempts on the contact's current path. + void setMaxRetries(int value) { + final attempts = value < 1 ? 1 : value; + _directOverride = attempts; + _floodOverride = attempts.clamp( + SendAttemptPlan.minFloodRetries, + SendAttemptPlan.maxFloodRetries, + ); + _rotateOverride = false; + } final Map _timeoutTimers = {}; final Map _pendingMessages = {}; @@ -110,6 +124,7 @@ class MessageRetryService extends ChangeNotifier { final Set _activeMessages = {}; final Set _resolvedMessages = {}; final Map _expectedHashToMessageId = {}; + final Map _attemptLimits = {}; RetryServiceConfig? _config; @@ -123,8 +138,26 @@ class MessageRetryService extends ChangeNotifier { _config = config; } - void setMaxRetries(int value) { - _maxRetries = value.clamp(2, 10); + SendAttemptPlan _planFor(Contact contact) { + final settings = _config?.appSettingsService?.settings; + final direct = + _directOverride ?? + settings?.directRetries ?? + SendAttemptPlan.defaultDirectRetries; + final flood = + _floodOverride ?? + settings?.floodRetries ?? + SendAttemptPlan.defaultFloodRetries; + final rotateFlag = + _rotateOverride ?? settings?.autoRouteRotationEnabled ?? true; + return SendAttemptPlan( + directRetries: direct, + floodRetries: flood, + rotateRoutes: + rotateFlag && + contact.pathOverride == null && + _config?.selectRetryPath != null, + ); } /// Compute expected ACK hash using same algorithm as firmware: @@ -176,6 +209,9 @@ class MessageRetryService extends ChangeNotifier { pathBytes ?? Uint8List.fromList(resolved.pathBytes); final messagePathLength = pathLength ?? (resolved.useFlood ? -1 : resolved.hopCount); + _attemptLimits[messageId] = _planFor( + contact, + ).attemptLimit(floodPath: messagePathLength < 0); final message = Message( senderKey: contact.publicKey, text: text, @@ -289,11 +325,8 @@ class MessageRetryService extends ChangeNotifier { PathSelection? _selectPathForAttempt(Message message, Contact contact) { final config = _config; if (config == null) return null; - final autoRotationEnabled = - config.appSettingsService?.settings.autoRouteRotationEnabled == true; - if (!autoRotationEnabled || - contact.pathOverride != null || - config.selectRetryPath == null) { + final plan = _planFor(contact); + if (!plan.rotateRoutes || config.selectRetryPath == null) { return null; } @@ -303,7 +336,7 @@ class MessageRetryService extends ChangeNotifier { return config.selectRetryPath!( contact.publicKeyHex, message.retryCount, - maxRetries, + plan.floodFromAttempt ?? (1 << 30), recentSelections, ); } @@ -626,6 +659,7 @@ class MessageRetryService extends ChangeNotifier { _pendingMessages.remove(messageId); _pendingContacts.remove(messageId); _attemptPathHistory.remove(messageId); + _attemptLimits.remove(messageId); _deferredRouteFailures.remove(messageId); _timeoutTimers.remove(messageId); _resolvedMessages.remove(messageId); @@ -657,9 +691,16 @@ class MessageRetryService extends ChangeNotifier { tag: 'AckHash', ); - if (message.retryCount < maxRetries - 1 && + final limit = + _attemptLimits[messageId] ?? + _planFor( + contact, + ).attemptLimit(floodPath: resolvePathSelection(contact).useFlood); + if (message.retryCount < limit - 1 && _textFitsAttempt(message, contact, message.retryCount + 1)) { - final backoffMs = 1000 * (1 << message.retryCount); + // Cap the shift so a high retry limit does not wait for minutes. + final shift = message.retryCount.clamp(0, 5); + final backoffMs = 1000 * (1 << shift); if (selection != null) { _deferredRouteFailures.putIfAbsent(messageId, () => []).add(( diff --git a/lib/services/path_history_service.dart b/lib/services/path_history_service.dart index 43cec96b..2c5562b1 100644 --- a/lib/services/path_history_service.dart +++ b/lib/services/path_history_service.dart @@ -259,18 +259,19 @@ class PathHistoryService extends ChangeNotifier { /// Route for one send attempt of a message to [contactPubKeyHex]. /// - /// The last attempt always floods. Otherwise a known route is drawn by - /// Thompson sampling over faded delivery stats, weighted by how well it - /// fits [context]; routes used for this message's recent attempts score - /// lower so retries usually try something different. + /// Attempts before [directRetries] draw a known route by Thompson sampling + /// over faded delivery stats, weighted by how well it fits [context]; + /// routes used for this message's recent attempts score lower so retries + /// usually try something different. From [directRetries] on, the attempt + /// floods. [directRetries] of 0 floods immediately. PathSelection selectPathForAttempt( String contactPubKeyHex, { required int attemptIndex, - required int maxRetries, + required int directRetries, List recentSelections = const [], RouteContext context = RouteContext.unknown, }) { - if (maxRetries <= 0 || attemptIndex >= maxRetries - 1) { + if (directRetries <= 0 || attemptIndex >= directRetries) { return const PathSelection(pathBytes: [], hopCount: -1, useFlood: true); } diff --git a/lib/widgets/repeater_login_dialog.dart b/lib/widgets/repeater_login_dialog.dart index 041a8b25..9402a719 100644 --- a/lib/widgets/repeater_login_dialog.dart +++ b/lib/widgets/repeater_login_dialog.dart @@ -6,6 +6,7 @@ import 'package:provider/provider.dart'; import '../l10n/l10n.dart'; import '../models/contact.dart'; import '../l10n/contact_localization.dart'; +import '../services/app_settings_service.dart'; import '../services/storage_service.dart'; import '../services/repeater_command_service.dart'; import '../connector/meshcore_connector.dart'; @@ -40,7 +41,9 @@ class _RepeaterLoginDialogState extends State { String? _loginError; late MeshCoreConnector _connector; int _currentAttempt = 0; - static const int _maxAttempts = 5; + + int get _maxAttempts => + context.read().settings.loginAttempts; @override void initState() { diff --git a/lib/widgets/room_login_dialog.dart b/lib/widgets/room_login_dialog.dart index 42b46f6c..5ea47a06 100644 --- a/lib/widgets/room_login_dialog.dart +++ b/lib/widgets/room_login_dialog.dart @@ -7,6 +7,7 @@ import 'package:provider/provider.dart'; import '../l10n/l10n.dart'; import '../models/contact.dart'; import '../l10n/contact_localization.dart'; +import '../services/app_settings_service.dart'; import '../services/storage_service.dart'; import '../connector/meshcore_connector.dart'; import '../connector/meshcore_protocol.dart'; @@ -36,7 +37,9 @@ class _RoomLoginDialogState extends State { bool _obscurePassword = true; late MeshCoreConnector _connector; int _currentAttempt = 0; - static const int _maxAttempts = 5; + + int get _maxAttempts => + context.read().settings.loginAttempts; @override void initState() { diff --git a/lib/widgets/settings_reveal.dart b/lib/widgets/settings_reveal.dart new file mode 100644 index 00000000..7e84951c --- /dev/null +++ b/lib/widgets/settings_reveal.dart @@ -0,0 +1,111 @@ +import 'package:flutter/material.dart'; + +/// Shows or hides [child] by animating its height. +/// +/// Use this wherever turning something on reveals more controls, and for any +/// other block that grows or collapses in place. Hidden controls are not in +/// the tree, so they are not announced. The duration and curve are fixed so +/// every reveal moves the same way. See documentation/design.md. +class RevealOnEnable extends StatelessWidget { + static const Duration duration = Duration(milliseconds: 200); + static const Curve curve = Curves.easeInOut; + + final bool visible; + final Widget child; + final AlignmentGeometry alignment; + + const RevealOnEnable({ + super.key, + required this.visible, + required this.child, + this.alignment = Alignment.topCenter, + }); + + @override + Widget build(BuildContext context) { + return AnimatedSize( + duration: duration, + curve: curve, + alignment: alignment, + child: visible + ? child + : const SizedBox(width: double.infinity, height: 0), + ); + } +} + +/// Nested controls under a settings switch: the shared reveal animation on a +/// tinted, indented panel. +class SettingsReveal extends StatelessWidget { + final bool visible; + final List children; + + const SettingsReveal({ + super.key, + required this.visible, + required this.children, + }); + + @override + Widget build(BuildContext context) { + return RevealOnEnable( + visible: visible, + child: Material( + color: Theme.of(context).colorScheme.surfaceContainerHighest, + child: Padding( + padding: const EdgeInsets.only(left: 16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: children, + ), + ), + ), + ); + } +} + +/// A settings slider whose selected value stays visible in the title. +/// +/// The drag bubble repeats the same number. Pass a [title] that already +/// includes [value], the way the channel-hop titles do. +class SettingsValueSlider extends StatelessWidget { + final String title; + final String? subtitle; + final int value; + final int min; + final int max; + final ValueChanged onChanged; + + const SettingsValueSlider({ + super.key, + required this.title, + this.subtitle, + required this.value, + required this.min, + required this.max, + required this.onChanged, + }); + + @override + Widget build(BuildContext context) { + final clamped = value.clamp(min, max); + return ListTile( + contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4), + title: Text(title), + subtitle: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (subtitle != null) Text(subtitle!), + Slider( + value: clamped.toDouble(), + min: min.toDouble(), + max: max.toDouble(), + divisions: max > min ? max - min : null, + label: '$clamped', + onChanged: (next) => onChanged(next.round()), + ), + ], + ), + ); + } +} diff --git a/test/models/model_changes_test.dart b/test/models/model_changes_test.dart index 1815e9d9..db09207a 100644 --- a/test/models/model_changes_test.dart +++ b/test/models/model_changes_test.dart @@ -404,7 +404,9 @@ void main() { expect(settings.initialRouteWeight, equals(3.0)); expect(settings.routeWeightSuccessIncrement, equals(0.5)); expect(settings.routeWeightFailureDecrement, equals(0.2)); - expect(settings.maxMessageRetries, equals(5)); + expect(settings.directRetries, equals(4)); + expect(settings.floodRetries, equals(1)); + expect(settings.loginAttempts, equals(5)); expect(settings.evictDiscoveredContactsEnabled, isTrue); }); @@ -415,13 +417,17 @@ void main() { expect(json.containsKey('initial_route_weight'), isTrue); expect(json.containsKey('route_weight_success_increment'), isTrue); expect(json.containsKey('route_weight_failure_decrement'), isTrue); - expect(json.containsKey('max_message_retries'), isTrue); + expect(json.containsKey('max_direct_retries'), isTrue); + expect(json.containsKey('max_flood_retries'), isTrue); + expect(json.containsKey('login_attempts'), isTrue); expect(json.containsKey('evict_discovered_contacts_enabled'), isTrue); expect(json['max_route_weight'], equals(5.0)); expect(json['initial_route_weight'], equals(3.0)); expect(json['route_weight_success_increment'], equals(0.5)); expect(json['route_weight_failure_decrement'], equals(0.2)); - expect(json['max_message_retries'], equals(5)); + expect(json['max_direct_retries'], equals(4)); + expect(json['max_flood_retries'], equals(1)); + expect(json['login_attempts'], equals(5)); expect(json['evict_discovered_contacts_enabled'], isTrue); }); @@ -431,7 +437,9 @@ void main() { 'initial_route_weight': 2.0, 'route_weight_success_increment': 1.0, 'route_weight_failure_decrement': 1.5, - 'max_message_retries': 8, + 'max_direct_retries': 8, + 'max_flood_retries': 3, + 'login_attempts': 7, 'evict_discovered_contacts_enabled': false, }; final settings = AppSettings.fromJson(json); @@ -439,7 +447,9 @@ void main() { expect(settings.initialRouteWeight, equals(2.0)); expect(settings.routeWeightSuccessIncrement, equals(1.0)); expect(settings.routeWeightFailureDecrement, equals(1.5)); - expect(settings.maxMessageRetries, equals(8)); + expect(settings.directRetries, equals(8)); + expect(settings.floodRetries, equals(3)); + expect(settings.loginAttempts, equals(7)); expect(settings.evictDiscoveredContactsEnabled, isFalse); }); @@ -503,7 +513,9 @@ void main() { expect(settings.initialRouteWeight, equals(3.0)); expect(settings.routeWeightSuccessIncrement, equals(0.5)); expect(settings.routeWeightFailureDecrement, equals(0.2)); - expect(settings.maxMessageRetries, equals(5)); + expect(settings.directRetries, equals(4)); + expect(settings.floodRetries, equals(1)); + expect(settings.loginAttempts, equals(5)); }, ); @@ -513,7 +525,7 @@ void main() { expect(updated.maxRouteWeight, equals(8.0)); // Other fields should be unchanged expect(updated.initialRouteWeight, equals(settings.initialRouteWeight)); - expect(updated.maxMessageRetries, equals(settings.maxMessageRetries)); + expect(updated.directRetries, equals(settings.directRetries)); }); test('copyWith works for initialRouteWeight', () { @@ -543,10 +555,10 @@ void main() { ); }); - test('copyWith works for maxMessageRetries', () { + test('copyWith works for directRetries', () { final settings = AppSettings(); - final updated = settings.copyWith(maxMessageRetries: 10); - expect(updated.maxMessageRetries, equals(10)); + final updated = settings.copyWith(directRetries: 10); + expect(updated.directRetries, equals(10)); expect(updated.maxRouteWeight, equals(settings.maxRouteWeight)); }); }); diff --git a/test/models/send_attempt_plan_test.dart b/test/models/send_attempt_plan_test.dart new file mode 100644 index 00000000..13ad8ec0 --- /dev/null +++ b/test/models/send_attempt_plan_test.dart @@ -0,0 +1,151 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:shared_preferences/shared_preferences.dart'; + +import 'package:meshcore_open/models/app_settings.dart'; +import 'package:meshcore_open/models/send_attempt_plan.dart'; +import 'package:meshcore_open/services/app_settings_service.dart'; +import 'package:meshcore_open/storage/prefs_manager.dart'; + +void main() { + group('SendAttemptPlan', () { + const rotating = SendAttemptPlan( + directRetries: 4, + floodRetries: 1, + rotateRoutes: true, + ); + const fixed = SendAttemptPlan( + directRetries: 4, + floodRetries: 2, + rotateRoutes: false, + ); + + test('rotation spends direct attempts then flood attempts', () { + expect(rotating.attemptLimit(floodPath: false), 5); + expect(rotating.attemptLimit(floodPath: true), 5); + expect(rotating.floodFromAttempt, 4); + }); + + test('a fixed path uses only that path kind', () { + expect(fixed.attemptLimit(floodPath: false), 4); + expect(fixed.attemptLimit(floodPath: true), 2); + expect(fixed.floodFromAttempt, isNull); + }); + + test('both limits at zero still send once and do not switch to flood', () { + const plan = SendAttemptPlan( + directRetries: 0, + floodRetries: 0, + rotateRoutes: true, + ); + expect(plan.attemptLimit(floodPath: false), 1); + expect(plan.floodFromAttempt, isNull); + }); + + test('direct zero with rotation floods from the first attempt', () { + const plan = SendAttemptPlan( + directRetries: 0, + floodRetries: 3, + rotateRoutes: true, + ); + expect(plan.attemptLimit(floodPath: false), 3); + expect(plan.floodFromAttempt, 0); + }); + + test('flood zero with rotation never switches to flood', () { + const plan = SendAttemptPlan( + directRetries: 6, + floodRetries: 0, + rotateRoutes: true, + ); + expect(plan.attemptLimit(floodPath: true), 6); + expect(plan.floodFromAttempt, isNull); + }); + }); + + group('AppSettings retry migration', () { + test('a saved single retry limit becomes direct plus one flood', () { + final settings = AppSettings.fromJson({'max_message_retries': 5}); + expect(settings.directRetries, 4); + expect(settings.floodRetries, 1); + expect(settings.toJson().containsKey('max_message_retries'), isFalse); + }); + + test('the old maximum of 10 keeps nine direct attempts and one flood', () { + final settings = AppSettings.fromJson({'max_message_retries': 10}); + expect(settings.directRetries, 9); + expect(settings.floodRetries, 1); + }); + + test('new keys win over a leftover single limit and are clamped', () { + final settings = AppSettings.fromJson({ + 'max_message_retries': 5, + 'max_direct_retries': 40, + 'max_flood_retries': -2, + 'login_attempts': 0, + }); + expect(settings.directRetries, SendAttemptPlan.maxDirectRetries); + expect(settings.floodRetries, SendAttemptPlan.minFloodRetries); + expect(settings.loginAttempts, SendAttemptPlan.minLoginAttempts); + }); + + test('round trip keeps the split limits', () { + final saved = AppSettings( + directRetries: 12, + floodRetries: 7, + loginAttempts: 3, + clearPathOnMaxRetry: true, + autoRouteRotationEnabled: false, + channelMinHopsEnabled: true, + ).toJson(); + final restored = AppSettings.fromJson(saved); + expect(restored.directRetries, 12); + expect(restored.floodRetries, 7); + expect(restored.loginAttempts, 3); + expect(restored.clearPathOnMaxRetry, isTrue); + expect(restored.autoRouteRotationEnabled, isFalse); + expect(restored.channelMinHopsEnabled, isTrue); + }); + }); + + test('reset routing settings restores the moved controls', () async { + SharedPreferences.setMockInitialValues({}); + await PrefsManager.initialize(); + final service = AppSettingsService(); + await service.loadSettings(); + await service.updateSettings( + service.settings.copyWith( + clearPathOnMaxRetry: true, + autoRouteRotationEnabled: false, + directRetries: 15, + floodRetries: 10, + loginAttempts: 9, + channelMinHopsEnabled: true, + channelMinHops: 6, + channelMinHopsRetries: 4, + channelMinHopsCountRepeaters: true, + maxRouteWeight: 9, + ), + ); + + await service.resetRoutingSettingsToDefault(); + final settings = service.settings; + expect(settings.clearPathOnMaxRetry, isFalse); + expect(settings.autoRouteRotationEnabled, isTrue); + expect(settings.directRetries, SendAttemptPlan.defaultDirectRetries); + expect(settings.floodRetries, SendAttemptPlan.defaultFloodRetries); + expect(settings.loginAttempts, SendAttemptPlan.defaultLoginAttempts); + expect(settings.channelMinHopsEnabled, isFalse); + expect(settings.channelMinHops, 2); + expect(settings.channelMinHopsRetries, 1); + expect(settings.channelMinHopsCountRepeaters, isFalse); + expect(settings.maxRouteWeight, AppSettings.defaultMaxRouteWeight); + + final reloaded = AppSettingsService(); + await reloaded.loadSettings(); + expect( + reloaded.settings.directRetries, + SendAttemptPlan.defaultDirectRetries, + ); + expect(reloaded.settings.floodRetries, SendAttemptPlan.defaultFloodRetries); + }); +} diff --git a/test/screens/routing_settings_screen_test.dart b/test/screens/routing_settings_screen_test.dart new file mode 100644 index 00000000..402d95cb --- /dev/null +++ b/test/screens/routing_settings_screen_test.dart @@ -0,0 +1,107 @@ +import 'package:flutter/material.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/send_attempt_plan.dart'; +import 'package:meshcore_open/screens/app_settings_screen.dart'; +import 'package:meshcore_open/services/app_settings_service.dart'; +import 'package:meshcore_open/services/network_map/network_map_upload_service.dart'; +import 'package:meshcore_open/services/translation_service.dart'; +import 'package:meshcore_open/storage/prefs_manager.dart'; +import 'package:meshcore_open/widgets/settings_reveal.dart'; + +void main() { + testWidgets( + 'routing settings show both retry limits and reveal channel options', + (tester) async { + SharedPreferences.setMockInitialValues({}); + await PrefsManager.initialize(); + final settings = AppSettingsService(); + await settings.loadSettings(); + await settings.updateSettings( + settings.settings.copyWith(autoRouteRotationEnabled: false), + ); + + tester.view.physicalSize = const Size(800, 8000); + tester.view.devicePixelRatio = 1; + addTearDown(tester.view.resetPhysicalSize); + addTearDown(tester.view.resetDevicePixelRatio); + + final connector = MeshCoreConnector(); + final translation = TranslationService(settings); + final uploads = NetworkMapUploadService( + connector: connector, + settings: settings, + ); + addTearDown(connector.dispose); + addTearDown(translation.dispose); + addTearDown(uploads.dispose); + + await tester.pumpWidget( + MultiProvider( + providers: [ + ChangeNotifierProvider.value(value: settings), + ChangeNotifierProvider.value(value: connector), + ChangeNotifierProvider.value(value: translation), + ChangeNotifierProvider.value(value: uploads), + ], + child: const MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: AppSettingsScreen(), + ), + ), + ); + await tester.pumpAndSettle(); + + final context = tester.element(find.byType(AppSettingsScreen)); + final l10n = AppLocalizations.of(context); + + expect(find.text(l10n.appSettings_clearPathOnMaxRetry), findsOneWidget); + expect( + find.text( + l10n.appSettings_directRetries(SendAttemptPlan.defaultDirectRetries), + ), + findsOneWidget, + ); + expect( + find.text( + l10n.appSettings_floodRetries(SendAttemptPlan.defaultFloodRetries), + ), + findsOneWidget, + ); + expect( + find.text( + l10n.appSettings_loginAttempts(SendAttemptPlan.defaultLoginAttempts), + ), + findsOneWidget, + ); + // Retry limits stay visible while route rotation is off. + expect(find.text(l10n.appSettings_autoRouteRotation), findsOneWidget); + expect(find.text(l10n.appSettings_channelMinHopsCount(2)), findsNothing); + expect(find.text(l10n.appSettings_resetRoutingToDefault), findsOneWidget); + + final channelSwitch = find.text(l10n.appSettings_channelMinHops); + await tester.tap(channelSwitch); + await tester.pump(); + await tester.pump(RevealOnEnable.duration); + await tester.pumpAndSettle(); + + expect( + find.text(l10n.appSettings_channelMinHopsCount(2)), + findsOneWidget, + ); + expect( + find.text(l10n.appSettings_channelMinHopsRetries(1)), + findsOneWidget, + ); + + await tester.tap(channelSwitch); + await tester.pumpAndSettle(); + expect(find.text(l10n.appSettings_channelMinHopsCount(2)), findsNothing); + }, + ); +} diff --git a/test/services/message_retry_split_limits_test.dart b/test/services/message_retry_split_limits_test.dart new file mode 100644 index 00000000..f2fdcc4d --- /dev/null +++ b/test/services/message_retry_split_limits_test.dart @@ -0,0 +1,168 @@ +import 'dart:typed_data'; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:shared_preferences/shared_preferences.dart'; + +import 'package:meshcore_open/models/contact.dart'; +import 'package:meshcore_open/models/message.dart'; +import 'package:meshcore_open/models/path_selection.dart'; +import 'package:meshcore_open/services/app_settings_service.dart'; +import 'package:meshcore_open/services/message_retry_service.dart'; +import 'package:meshcore_open/storage/prefs_manager.dart'; + +Contact _contact({int pathLength = 1, List path = const [0x11]}) => + Contact( + publicKey: Uint8List.fromList(List.generate(32, (i) => i + 1)), + name: 'Test', + type: 1, + pathLength: pathLength, + path: Uint8List.fromList(path), + lastSeen: DateTime.now(), + ); + +void main() { + setUp(() async { + SharedPreferences.setMockInitialValues({}); + await PrefsManager.initialize(); + }); + + test('rotation sends direct attempts, then flood, then stops', () async { + final settings = AppSettingsService(); + await settings.loadSettings(); + await settings.updateSettings( + settings.settings.copyWith( + autoRouteRotationEnabled: true, + directRetries: 1, + floodRetries: 1, + ), + ); + + final service = MessageRetryService( + sentWatchdogGrace: const Duration(milliseconds: 5), + ); + addTearDown(service.dispose); + final sends = []; + final thresholds = []; + service.initialize( + RetryServiceConfig( + sendMessage: (_, _, attempt, _) async { + sends.add(attempt); + }, + addMessage: (_, _) {}, + updateMessage: (_) {}, + calculateTimeout: (_, _, {String? contactKey, int? deviceTimeoutMs}) => + 15, + appSettingsService: settings, + selectRetryPath: (_, attemptIndex, directRetries, _) { + thresholds.add(directRetries); + if (attemptIndex >= directRetries) { + return const PathSelection( + pathBytes: [], + hopCount: -1, + useFlood: true, + ); + } + return const PathSelection( + pathBytes: [0x22], + hopCount: 1, + useFlood: false, + ); + }, + ), + ); + + await service.sendMessageWithRetry(contact: _contact(), text: 'hello'); + await pumpEventQueue(); + await Future.delayed(const Duration(milliseconds: 1400)); + + expect(sends, [0, 1]); + expect(thresholds, [1, 1]); + }); + + test('rotation off keeps retrying a direct path without flooding', () async { + final settings = AppSettingsService(); + await settings.loadSettings(); + await settings.updateSettings( + settings.settings.copyWith( + autoRouteRotationEnabled: false, + directRetries: 2, + floodRetries: 5, + ), + ); + + final service = MessageRetryService( + sentWatchdogGrace: const Duration(milliseconds: 5), + ); + addTearDown(service.dispose); + final sends = []; + var picked = false; + service.initialize( + RetryServiceConfig( + sendMessage: (_, _, attempt, _) async { + sends.add(attempt); + }, + addMessage: (_, _) {}, + updateMessage: (_) {}, + calculateTimeout: (_, _, {String? contactKey, int? deviceTimeoutMs}) => + 15, + appSettingsService: settings, + selectRetryPath: (_, _, _, _) { + picked = true; + return const PathSelection( + pathBytes: [], + hopCount: -1, + useFlood: true, + ); + }, + ), + ); + + await service.sendMessageWithRetry(contact: _contact(), text: 'hello'); + await pumpEventQueue(); + await Future.delayed(const Duration(milliseconds: 1400)); + + expect(sends, [0, 1]); + expect(picked, isFalse); + }); + + test('a flood path without rotation stops after the flood budget', () async { + final settings = AppSettingsService(); + await settings.loadSettings(); + await settings.updateSettings( + settings.settings.copyWith( + autoRouteRotationEnabled: false, + directRetries: 4, + floodRetries: 1, + ), + ); + + final service = MessageRetryService( + sentWatchdogGrace: const Duration(milliseconds: 5), + ); + addTearDown(service.dispose); + final latest = []; + final sends = []; + service.initialize( + RetryServiceConfig( + sendMessage: (_, _, attempt, _) async { + sends.add(attempt); + }, + addMessage: (_, message) => latest.add(message), + updateMessage: (message) => latest.add(message), + calculateTimeout: (_, _, {String? contactKey, int? deviceTimeoutMs}) => + 15, + appSettingsService: settings, + ), + ); + + await service.sendMessageWithRetry( + contact: _contact(pathLength: -1, path: const []), + text: 'hello', + ); + await pumpEventQueue(); + await Future.delayed(const Duration(milliseconds: 200)); + + expect(sends, [0]); + expect(latest.last.status, MessageStatus.failed); + }); +} diff --git a/test/services/message_retry_watchdog_test.dart b/test/services/message_retry_watchdog_test.dart index 9b0f29ec..b000d024 100644 --- a/test/services/message_retry_watchdog_test.dart +++ b/test/services/message_retry_watchdog_test.dart @@ -56,7 +56,12 @@ void main() { ); test('missing RESP_CODE_SENT times out and retries', () async { - await service.sendMessageWithRetry(contact: _contact(), text: 'hello'); + // A direct path uses the direct budget (default 4). A flood path would + // stop after the default single flood attempt. + await service.sendMessageWithRetry( + contact: _contact(pathLength: 1, path: const [0x11]), + text: 'hello', + ); await pumpEventQueue(); expect(sends.map((s) => s.attempt), [0]); @@ -80,7 +85,10 @@ void main() { }); test('late ACK for an attempt whose SENT was lost still delivers', () async { - await service.sendMessageWithRetry(contact: _contact(), text: 'hello'); + await service.sendMessageWithRetry( + contact: _contact(pathLength: 1, path: const [0x11]), + text: 'hello', + ); await pumpEventQueue(); // Let the watchdog fire; the retry is now waiting on its backoff. diff --git a/test/services/path_history_service_test.dart b/test/services/path_history_service_test.dart index 95f3b497..532c64b4 100644 --- a/test/services/path_history_service_test.dart +++ b/test/services/path_history_service_test.dart @@ -121,7 +121,7 @@ void main() { final pick = svc.selectPathForAttempt( pubKey, attemptIndex: attemptIndex, - maxRetries: 5, + directRetries: 4, recentSelections: recent, ); final key = pick.useFlood @@ -139,7 +139,7 @@ void main() { final selection = svc.selectPathForAttempt( pubKey, attemptIndex: 0, - maxRetries: 5, + directRetries: 4, ); expect(selection.useFlood, isTrue); }); @@ -150,7 +150,7 @@ void main() { final selection = svc.selectPathForAttempt( pubKey, attemptIndex: 0, - maxRetries: 0, + directRetries: 0, ); expect(selection.useFlood, isTrue); }); @@ -163,7 +163,7 @@ void main() { final selection = svc.selectPathForAttempt( pubKey, attemptIndex: i, - maxRetries: 5, + directRetries: 4, ); expect( selection.useFlood, @@ -274,7 +274,7 @@ void main() { final pick = svc.selectPathForAttempt( pubKey, attemptIndex: 0, - maxRetries: 5, + directRetries: 4, ); expect(pick.useFlood, isFalse); expect(pick.hopCount, 0); @@ -299,21 +299,28 @@ void main() { expect(resolved.pathBytes, isEmpty); }); - test('final attempt is always flood regardless of known paths', () async { + test('attempts at and after directRetries flood', () async { final pubKey = _hex('ef01'); await _seed(svc, pubKey, pathBytes: [0x01], hopCount: 1); - for (final retries in [1, 2, 5, 10]) { - final lastAttempt = svc.selectPathForAttempt( + for (final direct in [0, 1, 4, 9]) { + final flooded = svc.selectPathForAttempt( pubKey, - attemptIndex: retries - 1, - maxRetries: retries, + attemptIndex: direct, + directRetries: direct, ); expect( - lastAttempt.useFlood, + flooded.useFlood, isTrue, - reason: 'maxRetries=$retries: last attempt must be flood', + reason: 'directRetries=$direct: that attempt floods', ); + if (direct == 0) continue; + final routed = svc.selectPathForAttempt( + pubKey, + attemptIndex: direct - 1, + directRetries: direct, + ); + expect(routed.useFlood, isFalse); } }); }); diff --git a/test/services/route_chooser_test.dart b/test/services/route_chooser_test.dart index 33330614..b78f4fb3 100644 --- a/test/services/route_chooser_test.dart +++ b/test/services/route_chooser_test.dart @@ -205,7 +205,7 @@ void main() { final pick = svc.selectPathForAttempt( contact, attemptIndex: attempt, - maxRetries: maxRetries, + directRetries: maxRetries - 1, recentSelections: used, context: context, ); diff --git a/untranslated.json b/untranslated.json index 75375aac..bd211125 100644 --- a/untranslated.json +++ b/untranslated.json @@ -12,7 +12,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "cs": [ @@ -28,7 +35,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "de": [ @@ -44,7 +58,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "es": [ @@ -60,7 +81,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "fr": [ @@ -76,7 +104,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "hu": [ @@ -92,7 +127,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "it": [ @@ -108,7 +150,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "ja": [ @@ -124,7 +173,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "ko": [ @@ -140,7 +196,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "nl": [ @@ -156,7 +219,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "pl": [ @@ -172,7 +242,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "pt": [ @@ -188,7 +265,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "pt_PT": [ @@ -204,7 +288,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "ru": [ @@ -220,7 +311,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "sk": [ @@ -236,7 +334,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "sl": [ @@ -252,7 +357,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "sv": [ @@ -268,7 +380,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "uk": [ @@ -284,7 +403,14 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" + "settings_exportBookmarksNoBookmarks", + "receivedImage_packetEchoes", + "receivedImage_recoveryPacketEchoes", + "imageSend_preparingPreview", + "imageSend_tryAnother", + "imageSend_versionsHint", + "imageSend_versionLabel", + "imageSend_versionPackets" ], "zh": [ @@ -300,187 +426,7 @@ "settings_exportBookmarks", "settings_exportBookmarksSubtitle", "settings_exportBookmarksSuccess", - "settings_exportBookmarksNoBookmarks" - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "cs": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "de": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "es": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "fr": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "hu": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "it": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "ja": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "ko": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "nl": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "pl": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "pt": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "pt_PT": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "ru": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "sk": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "sl": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "sv": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "uk": [ - "receivedImage_packetEchoes", - "receivedImage_recoveryPacketEchoes", - "imageSend_preparingPreview", - "imageSend_tryAnother", - "imageSend_versionsHint", - "imageSend_versionLabel", - "imageSend_versionPackets" - ], - - "zh": [ + "settings_exportBookmarksNoBookmarks", "receivedImage_packetEchoes", "receivedImage_recoveryPacketEchoes", "imageSend_preparingPreview",