diff --git a/documentation/settings.md b/documentation/settings.md index bf380de4..7249dba0 100644 --- a/documentation/settings.md +++ b/documentation/settings.md @@ -122,12 +122,13 @@ Individual channels can be muted from the channel chat bell icon, the channel li - **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**: Enables weighted routing algorithm. When enabled, expands to show five slider sub-settings (hidden when off): +- **Auto Route Rotation**: Enables weighted routing algorithm. When enabled, expands to show five slider sub-settings (hidden when off) and a Reset button: - Max Route Weight (1–10, default 5, integer steps) - Initial Route Weight (0.5–5.0, default 3.0) - Success Increment (0.1–2.0, default 0.5, 0.1 steps) - Failure Decrement (0.1–2.0, default 0.2, 0.1 steps) - Max Message Retries (2–10, default 5) + - **Reset Routing Algorithm to Default**: Restores all five routing algorithm settings to their factory default values - **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 - **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: diff --git a/lib/l10n/app_bg.arb b/lib/l10n/app_bg.arb index 3993d19e..ab8d45c7 100644 --- a/lib/l10n/app_bg.arb +++ b/lib/l10n/app_bg.arb @@ -3360,6 +3360,9 @@ "settings_regionFetchNoneResponded": "Нито един близък ретранслатор не отговори. Приближете се до ретранслатор и опитайте отново.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Маршрутизиране", + "appSettings_resetRoutingToDefault": "Нулиране на алгоритъма за маршрутизация до стойност по подразбиране", + "appSettings_resetRoutingToDefaultSubtitle": "Възстановяване на настройките на алгоритъма за маршрутизация до заводските стойности по подразбиране", + "appSettings_routingResetToDefault": "Настройките на алгоритъма за маршрутизация са нулирани до стойност по подразбиране", "appSettings_imageMessagesSection": "Съобщения с изображения", "appSettings_showApiKey": "Показване на API ключа", "appSettings_hideApiKey": "Скриване на API ключа", diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 1fb06197..445e9fe9 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -3495,6 +3495,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_imageMessagesSection": "Bildnachrichten", "appSettings_showApiKey": "API-Schlüssel anzeigen", "appSettings_hideApiKey": "API-Schlüssel verbergen", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 9e163d3e..86824641 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -3653,6 +3653,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_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 8738430a..8f61957a 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -3380,6 +3380,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_imageMessagesSection": "Mensajes con imágenes", "appSettings_showApiKey": "Mostrar clave de API", "appSettings_hideApiKey": "Ocultar clave de API", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 6c8c0531..a39552e6 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -3380,6 +3380,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_imageMessagesSection": "Messages image", "appSettings_showApiKey": "Afficher la clé API", "appSettings_hideApiKey": "Masquer la clé API", diff --git a/lib/l10n/app_hu.arb b/lib/l10n/app_hu.arb index 441a6f3e..d764f245 100644 --- a/lib/l10n/app_hu.arb +++ b/lib/l10n/app_hu.arb @@ -3399,6 +3399,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_imageMessagesSection": "Képüzenetek", "appSettings_showApiKey": "API-kulcs megjelenítése", "appSettings_hideApiKey": "API-kulcs elrejtése", diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index 111bedf6..7ffb277d 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -3380,6 +3380,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_imageMessagesSection": "Messaggi immagine", "appSettings_showApiKey": "Mostra chiave API", "appSettings_hideApiKey": "Nascondi chiave API", diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index b45310db..2a6d16b2 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -3380,6 +3380,9 @@ "settings_regionFetchNoneResponded": "近くのリピータから応答がありませんでした。リピータに近づいてもう一度お試しください。", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "ルーティング", + "appSettings_resetRoutingToDefault": "ルーティングアルゴリズムをデフォルトにリセット", + "appSettings_resetRoutingToDefaultSubtitle": "ルーティングアルゴリズムの設定を工場出荷時のデフォルトに戻す", + "appSettings_routingResetToDefault": "ルーティングアルゴリズムの設定がデフォルトにリセットされました", "appSettings_imageMessagesSection": "画像メッセージ", "appSettings_showApiKey": "APIキーを表示", "appSettings_hideApiKey": "APIキーを非表示", diff --git a/lib/l10n/app_ko.arb b/lib/l10n/app_ko.arb index c9a44d90..69f4c33a 100644 --- a/lib/l10n/app_ko.arb +++ b/lib/l10n/app_ko.arb @@ -3380,6 +3380,9 @@ "settings_regionFetchNoneResponded": "응답한 주변 리피터가 없습니다. 리피터에 더 가까이 이동한 후 다시 시도하세요.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "라우팅", + "appSettings_resetRoutingToDefault": "라우팅 알고리즘 기본값으로 재설정", + "appSettings_resetRoutingToDefaultSubtitle": "라우팅 알고리즘 설정을 공장 기본값으로 복원", + "appSettings_routingResetToDefault": "라우팅 알고리즘 설정이 기본값으로 재설정되었습니다", "appSettings_imageMessagesSection": "이미지 메시지", "appSettings_showApiKey": "API 키 표시", "appSettings_hideApiKey": "API 키 숨기기", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 8908fd69..602883c3 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -11030,6 +11030,24 @@ abstract class AppLocalizations { /// **'Routing'** String get appSettings_routingSection; + /// No description provided for @appSettings_resetRoutingToDefault. + /// + /// In en, this message translates to: + /// **'Reset Routing Algorithm to Default'** + String get appSettings_resetRoutingToDefault; + + /// No description provided for @appSettings_resetRoutingToDefaultSubtitle. + /// + /// In en, this message translates to: + /// **'Restore routing algorithm settings to factory defaults'** + String get appSettings_resetRoutingToDefaultSubtitle; + + /// No description provided for @appSettings_routingResetToDefault. + /// + /// In en, this message translates to: + /// **'Routing algorithm settings reset to default'** + String get appSettings_routingResetToDefault; + /// No description provided for @appSettings_imageMessagesSection. /// /// In en, this message translates to: diff --git a/lib/l10n/app_localizations_bg.dart b/lib/l10n/app_localizations_bg.dart index 4783f614..8de7334c 100644 --- a/lib/l10n/app_localizations_bg.dart +++ b/lib/l10n/app_localizations_bg.dart @@ -6575,6 +6575,18 @@ class AppLocalizationsBg extends AppLocalizations { @override String get appSettings_routingSection => 'Маршрутизиране'; + @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_de.dart b/lib/l10n/app_localizations_de.dart index 806c399b..c49acbc1 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -6588,6 +6588,18 @@ class AppLocalizationsDe extends AppLocalizations { @override String get appSettings_routingSection => 'Routing'; + @override + String get appSettings_resetRoutingToDefault => + 'Routing-Algorithmus auf Standard zurücksetzen'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Routing-Algorithmus-Einstellungen auf Werkseinstellungen zurücksetzen'; + + @override + String get appSettings_routingResetToDefault => + 'Routing-Algorithmus-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 c835670d..3a474294 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -6482,6 +6482,18 @@ class AppLocalizationsEn extends AppLocalizations { @override String get appSettings_routingSection => 'Routing'; + @override + String get appSettings_resetRoutingToDefault => + 'Reset Routing Algorithm to Default'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Restore routing algorithm settings to factory defaults'; + + @override + String get appSettings_routingResetToDefault => + 'Routing algorithm settings reset to default'; + @override String get appSettings_imageMessagesSection => 'Image messages'; diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart index 5b056b44..617d3516 100644 --- a/lib/l10n/app_localizations_es.dart +++ b/lib/l10n/app_localizations_es.dart @@ -6573,6 +6573,18 @@ class AppLocalizationsEs extends AppLocalizations { @override String get appSettings_routingSection => 'Enrutamiento'; + @override + String get appSettings_resetRoutingToDefault => + 'Restablecer algoritmo de enrutamiento a predeterminado'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Restaurar la configuración del algoritmo de enrutamiento a los valores predeterminados de fábrica'; + + @override + String get appSettings_routingResetToDefault => + 'Configuración del algoritmo de enrutamiento restablecida a predeterminado'; + @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 08b3758a..1c1b2a6e 100644 --- a/lib/l10n/app_localizations_fr.dart +++ b/lib/l10n/app_localizations_fr.dart @@ -6596,6 +6596,18 @@ class AppLocalizationsFr extends AppLocalizations { @override String get appSettings_routingSection => 'Routage'; + @override + String get appSettings_resetRoutingToDefault => + 'Réinitialiser l\'algorithme de routage'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Restaurer les paramètres de l\'algorithme de routage aux valeurs par défaut'; + + @override + String get appSettings_routingResetToDefault => + 'Paramètres de l\'algorithme 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 897866a4..5ed46e87 100644 --- a/lib/l10n/app_localizations_hu.dart +++ b/lib/l10n/app_localizations_hu.dart @@ -6563,6 +6563,18 @@ class AppLocalizationsHu extends AppLocalizations { @override String get appSettings_routingSection => 'Útválasztás'; + @override + String get appSettings_resetRoutingToDefault => + 'Útvonaltervezési algoritmus 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'; + + @override + String get appSettings_routingResetToDefault => + 'Útvonaltervezési algoritmus beállításai 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 0b5a6208..881c0780 100644 --- a/lib/l10n/app_localizations_it.dart +++ b/lib/l10n/app_localizations_it.dart @@ -6583,6 +6583,18 @@ class AppLocalizationsIt extends AppLocalizations { @override String get appSettings_routingSection => 'Instradamento'; + @override + String get appSettings_resetRoutingToDefault => + 'Reimposta algoritmo di instradamento sui valori predefiniti'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Ripristina le impostazioni dell\'algoritmo di instradamento ai valori predefiniti di fabbrica'; + + @override + String get appSettings_routingResetToDefault => + 'Impostazioni algoritmo 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 8413e4b7..753617db 100644 --- a/lib/l10n/app_localizations_ja.dart +++ b/lib/l10n/app_localizations_ja.dart @@ -6269,6 +6269,17 @@ class AppLocalizationsJa extends AppLocalizations { @override String get appSettings_routingSection => 'ルーティング'; + @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_ko.dart b/lib/l10n/app_localizations_ko.dart index 05994b3c..41dd9d3f 100644 --- a/lib/l10n/app_localizations_ko.dart +++ b/lib/l10n/app_localizations_ko.dart @@ -6280,6 +6280,16 @@ class AppLocalizationsKo extends AppLocalizations { @override String get appSettings_routingSection => '라우팅'; + @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_nl.dart b/lib/l10n/app_localizations_nl.dart index 3be448a5..defa9ebe 100644 --- a/lib/l10n/app_localizations_nl.dart +++ b/lib/l10n/app_localizations_nl.dart @@ -6540,6 +6540,18 @@ class AppLocalizationsNl extends AppLocalizations { @override String get appSettings_routingSection => 'Routering'; + @override + String get appSettings_resetRoutingToDefault => + 'Routeringsalgoritme resetten naar standaard'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Routeringsalgoritme-instellingen herstellen naar fabrieksstandaardwaarden'; + + @override + String get appSettings_routingResetToDefault => + 'Routeringsalgoritme-instellingen 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 e9eba38a..7fd2eaa3 100644 --- a/lib/l10n/app_localizations_pl.dart +++ b/lib/l10n/app_localizations_pl.dart @@ -6604,6 +6604,18 @@ class AppLocalizationsPl extends AppLocalizations { @override String get appSettings_routingSection => 'Routing'; + @override + String get appSettings_resetRoutingToDefault => + 'Resetuj algorytm trasowania do domyślnych'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Przywróć ustawienia algorytmu trasowania do fabrycznych ustawień domyślnych'; + + @override + String get appSettings_routingResetToDefault => + 'Ustawienia algorytmu 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 b43c2aa6..e29f4464 100644 --- a/lib/l10n/app_localizations_pt.dart +++ b/lib/l10n/app_localizations_pt.dart @@ -6569,6 +6569,18 @@ class AppLocalizationsPt extends AppLocalizations { @override String get appSettings_routingSection => 'Roteamento'; + @override + String get appSettings_resetRoutingToDefault => + 'Redefinir algoritmo 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'; + + @override + String get appSettings_routingResetToDefault => + 'Configurações do algoritmo de roteamento redefinidas para o padrão'; + @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 5922d05c..02465389 100644 --- a/lib/l10n/app_localizations_ru.dart +++ b/lib/l10n/app_localizations_ru.dart @@ -6589,6 +6589,18 @@ class AppLocalizationsRu extends AppLocalizations { @override String get appSettings_routingSection => 'Маршрутизация'; + @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 9be22e45..88a08e28 100644 --- a/lib/l10n/app_localizations_sk.dart +++ b/lib/l10n/app_localizations_sk.dart @@ -6559,6 +6559,18 @@ class AppLocalizationsSk extends AppLocalizations { @override String get appSettings_routingSection => 'Smerovanie'; + @override + String get appSettings_resetRoutingToDefault => + 'Obnoviť algoritmus smerovania na predvolené'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Obnoviť nastavenia algoritmu smerovania na továrne predvolené hodnoty'; + + @override + String get appSettings_routingResetToDefault => + 'Nastavenia algoritmu 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 39fece9d..0bfaec74 100644 --- a/lib/l10n/app_localizations_sl.dart +++ b/lib/l10n/app_localizations_sl.dart @@ -6542,6 +6542,18 @@ class AppLocalizationsSl extends AppLocalizations { @override String get appSettings_routingSection => 'Usmerjanje'; + @override + String get appSettings_resetRoutingToDefault => + 'Ponastavite algoritem usmerjanja na privzeto'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Obnovite nastavitve algoritma usmerjanja na tovarniške privzetke'; + + @override + String get appSettings_routingResetToDefault => + 'Nastavitve algoritma usmerjanja so ponastavljene na privzeto'; + @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 d0bae11a..f46eaa4f 100644 --- a/lib/l10n/app_localizations_sv.dart +++ b/lib/l10n/app_localizations_sv.dart @@ -6517,6 +6517,18 @@ class AppLocalizationsSv extends AppLocalizations { @override String get appSettings_routingSection => 'Routing'; + @override + String get appSettings_resetRoutingToDefault => + 'Återställ rutningsalgoritm till standard'; + + @override + String get appSettings_resetRoutingToDefaultSubtitle => + 'Återställ rutningsalgoritmins inställningar till fabriksstandard'; + + @override + String get appSettings_routingResetToDefault => + 'Rutningsalgoritmins instä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 38482a52..405aa283 100644 --- a/lib/l10n/app_localizations_uk.dart +++ b/lib/l10n/app_localizations_uk.dart @@ -6595,6 +6595,18 @@ class AppLocalizationsUk extends AppLocalizations { @override String get appSettings_routingSection => 'Маршрутизація'; + @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 d3b0c4c5..f321022a 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -6123,6 +6123,15 @@ class AppLocalizationsZh extends AppLocalizations { @override String get appSettings_routingSection => '路由'; + @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_nl.arb b/lib/l10n/app_nl.arb index bb6ca89b..2f49b698 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -3261,6 +3261,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_imageMessagesSection": "Afbeeldingsberichten", "appSettings_showApiKey": "API-sleutel tonen", "appSettings_hideApiKey": "API-sleutel verbergen", diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index d2e636b4..11bce94a 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -3393,6 +3393,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_imageMessagesSection": "Wiadomości z obrazami", "appSettings_showApiKey": "Pokaż klucz API", "appSettings_hideApiKey": "Ukryj klucz API", diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index 58f6143d..14778af3 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -3246,6 +3246,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_imageMessagesSection": "Mensagens de imagem", "appSettings_showApiKey": "Mostrar chave de API", "appSettings_hideApiKey": "Ocultar chave de API", diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index e3077cb4..f800764e 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -2657,6 +2657,9 @@ "settings_regionFetchNoneResponded": "Ближайшие репитеры не ответили. Подойдите ближе к репитеру и повторите попытку.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Маршрутизация", + "appSettings_resetRoutingToDefault": "Сбросить алгоритм маршрутизации к значению по умолчанию", + "appSettings_resetRoutingToDefaultSubtitle": "Восстановить настройки алгоритма маршрутизации к заводским значениям по умолчанию", + "appSettings_routingResetToDefault": "Настройки алгоритма маршрутизации сброшены к значению по умолчанию", "appSettings_imageMessagesSection": "Сообщения-изображения", "appSettings_showApiKey": "Показать API-ключ", "appSettings_hideApiKey": "Скрыть API-ключ", diff --git a/lib/l10n/app_sk.arb b/lib/l10n/app_sk.arb index 328979fa..0d99c03d 100644 --- a/lib/l10n/app_sk.arb +++ b/lib/l10n/app_sk.arb @@ -3361,6 +3361,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_imageMessagesSection": "Obrazové správy", "appSettings_showApiKey": "Zobraziť API kľúč", "appSettings_hideApiKey": "Skryť API kľúč", diff --git a/lib/l10n/app_sl.arb b/lib/l10n/app_sl.arb index cbd5a560..28aa1ae7 100644 --- a/lib/l10n/app_sl.arb +++ b/lib/l10n/app_sl.arb @@ -3247,6 +3247,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_imageMessagesSection": "Sporočila s slikami", "appSettings_showApiKey": "Pokaži API ključ", "appSettings_hideApiKey": "Skrij API ključ", diff --git a/lib/l10n/app_sv.arb b/lib/l10n/app_sv.arb index d372bd24..4adc41f1 100644 --- a/lib/l10n/app_sv.arb +++ b/lib/l10n/app_sv.arb @@ -3241,6 +3241,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_imageMessagesSection": "Bildmeddelanden", "appSettings_showApiKey": "Visa API-nyckel", "appSettings_hideApiKey": "Dölj API-nyckel", diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index 04736e28..7b12c802 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -3340,6 +3340,9 @@ "settings_regionFetchNoneResponded": "Ближні ретранслятори не відповіли. Підійдіть ближче до ретранслятора й спробуйте ще раз.", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "Маршрутизація", + "appSettings_resetRoutingToDefault": "Скинути алгоритм маршрутизації до типового", + "appSettings_resetRoutingToDefaultSubtitle": "Відновити налаштування алгоритму маршрутизації до заводських значень за замовчуванням", + "appSettings_routingResetToDefault": "Налаштування алгоритму маршрутизації скинуто до типових", "appSettings_imageMessagesSection": "Повідомлення із зображеннями", "appSettings_showApiKey": "Показати API-ключ", "appSettings_hideApiKey": "Приховати API-ключ", diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 29a502be..af13cf02 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -3251,6 +3251,9 @@ "settings_regionFetchNoneResponded": "附近没有中继器响应。请靠近中继器后重试。", "appSettings_sourceSummary": "{label} - {description}", "appSettings_routingSection": "路由", + "appSettings_resetRoutingToDefault": "将路由算法重置为默认值", + "appSettings_resetRoutingToDefaultSubtitle": "将路由算法设置恢复为出厂默认值", + "appSettings_routingResetToDefault": "路由算法设置已重置为默认值", "appSettings_imageMessagesSection": "图片消息", "appSettings_showApiKey": "显示 API 密钥", "appSettings_hideApiKey": "隐藏 API 密钥", diff --git a/lib/models/app_settings.dart b/lib/models/app_settings.dart index a1970b2b..023807d5 100644 --- a/lib/models/app_settings.dart +++ b/lib/models/app_settings.dart @@ -98,6 +98,13 @@ class AppSettings { static const String defaultPublicIpfsGateway = 'https://ipfs.filebase.io/ipfs/'; + // Routing algorithm default values + static const double defaultMaxRouteWeight = 5.0; + static const double defaultInitialRouteWeight = 3.0; + static const double defaultRouteWeightSuccessIncrement = 0.5; + static const double defaultRouteWeightFailureDecrement = 0.2; + static const int defaultMaxMessageRetries = 5; + final bool clearPathOnMaxRetry; final bool mapShowRepeaters; final bool mapShowChatNodes; @@ -278,11 +285,11 @@ class AppSettings { this.autoSendZeroHopAdvertOnGpsUpdate = false, this.gpsIntervalSeconds = 900, this.autoRouteRotationEnabled = true, - this.maxRouteWeight = 5.0, - this.initialRouteWeight = 3.0, - this.routeWeightSuccessIncrement = 0.5, - this.routeWeightFailureDecrement = 0.2, - this.maxMessageRetries = 5, + this.maxRouteWeight = defaultMaxRouteWeight, + this.initialRouteWeight = defaultInitialRouteWeight, + this.routeWeightSuccessIncrement = defaultRouteWeightSuccessIncrement, + this.routeWeightFailureDecrement = defaultRouteWeightFailureDecrement, + this.maxMessageRetries = defaultMaxMessageRetries, this.channelMinHopsEnabled = false, this.channelMinHops = 2, this.channelMinHopsRetries = 1, @@ -515,14 +522,20 @@ class AppSettings { (json['gps_interval_seconds'] as num?)?.toInt() ?? 900, autoRouteRotationEnabled: json['auto_route_rotation_enabled'] as bool? ?? true, - maxRouteWeight: (json['max_route_weight'] as num?)?.toDouble() ?? 5.0, + maxRouteWeight: + (json['max_route_weight'] as num?)?.toDouble() ?? + defaultMaxRouteWeight, initialRouteWeight: - (json['initial_route_weight'] as num?)?.toDouble() ?? 3.0, + (json['initial_route_weight'] as num?)?.toDouble() ?? + defaultInitialRouteWeight, routeWeightSuccessIncrement: - (json['route_weight_success_increment'] as num?)?.toDouble() ?? 0.5, + (json['route_weight_success_increment'] as num?)?.toDouble() ?? + defaultRouteWeightSuccessIncrement, routeWeightFailureDecrement: - (json['route_weight_failure_decrement'] as num?)?.toDouble() ?? 0.2, - maxMessageRetries: json['max_message_retries'] as int? ?? 5, + (json['route_weight_failure_decrement'] as num?)?.toDouble() ?? + defaultRouteWeightFailureDecrement, + maxMessageRetries: + json['max_message_retries'] as int? ?? defaultMaxMessageRetries, 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, diff --git a/lib/screens/app_settings_screen.dart b/lib/screens/app_settings_screen.dart index 3ec2a153..a346d135 100644 --- a/lib/screens/app_settings_screen.dart +++ b/lib/screens/app_settings_screen.dart @@ -661,6 +661,38 @@ class AppSettingsScreen extends StatelessWidget { ], ), ), + 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), + ); + } + }, + ), ], ), ) diff --git a/lib/services/app_settings_service.dart b/lib/services/app_settings_service.dart index 22a2e565..d0758681 100644 --- a/lib/services/app_settings_service.dart +++ b/lib/services/app_settings_service.dart @@ -710,4 +710,18 @@ class AppSettingsService extends ChangeNotifier { ), ); } + + Future resetRoutingSettingsToDefault() async { + await updateSettings( + _settings.copyWith( + maxRouteWeight: AppSettings.defaultMaxRouteWeight, + initialRouteWeight: AppSettings.defaultInitialRouteWeight, + routeWeightSuccessIncrement: + AppSettings.defaultRouteWeightSuccessIncrement, + routeWeightFailureDecrement: + AppSettings.defaultRouteWeightFailureDecrement, + maxMessageRetries: AppSettings.defaultMaxMessageRetries, + ), + ); + } }