mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
Refactor localization keys for "neighbors" terminology across multiple languages
- Updated localization keys from "neighbours" to "neighbors" in the following files: - app_localizations_bg.dart - app_localizations_de.dart - app_localizations_en.dart - app_localizations_es.dart - app_localizations_fr.dart - app_localizations_it.dart - app_localizations_nl.dart - app_localizations_pl.dart - app_localizations_pt.dart - app_localizations_ru.dart - app_localizations_sk.dart - app_localizations_sl.dart - app_localizations_sv.dart - app_localizations_uk.dart - app_localizations_zh.dart - Updated corresponding ARB files to reflect the changes in keys. - Renamed the NeighboursScreen to NeighborsScreen in the chat and repeater hub screens for consistency.
This commit is contained in:
parent
42eb293d1c
commit
fdfc1f6d25
35 changed files with 155 additions and 164 deletions
|
|
@ -177,7 +177,7 @@ const int reqTypeGetStatus = 0x01;
|
|||
const int reqTypeKeepAlive = 0x02;
|
||||
const int reqTypeGetTelemetry = 0x03;
|
||||
const int reqTypeGetAccessList = 0x05;
|
||||
const int reqTypeGetNeighbours = 0x06;
|
||||
const int reqTypeGetNeighbors = 0x06;
|
||||
|
||||
// Repeater response codes
|
||||
const int respServerLoginOk = 0;
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighboursSubtitle": "Преглед на съседни възли с нулев скок.",
|
||||
"repeater_neighbours": "Съседи",
|
||||
"repeater_neighborsSubtitle": "Преглед на съседни възли с нулев скок.",
|
||||
"repeater_neighbors": "Съседи",
|
||||
"neighbors_receivedData": "Получени данни за съседи",
|
||||
"neighbors_requestTimedOut": "Съседите поискат изтичане на време.",
|
||||
"neighbors_errorLoading": "Грешка при зареждане на съседи: {error}",
|
||||
"neighbors_repeatersNeighbours": "Повторители Съседи",
|
||||
"neighbors_repeatersNeighbors": "Повторители Съседи",
|
||||
"neighbors_noData": "Няма налични данни за съседи.",
|
||||
"channels_createPrivateChannel": "Създай Частен Канал",
|
||||
"channels_joinPrivateChannel": "Присъедини се към Частен Канал",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Nachbarn",
|
||||
"repeater_neighboursSubtitle": "Anzahl der Hop-Nachbarn anzeigen.",
|
||||
"repeater_neighbors": "Nachbarn",
|
||||
"repeater_neighborsSubtitle": "Anzahl der Hop-Nachbarn anzeigen.",
|
||||
"neighbors_receivedData": "Empfangene Nachbarsdaten",
|
||||
"neighbors_requestTimedOut": "Anfrage durch Timeout fehlgeschlagen.",
|
||||
"neighbors_errorLoading": "Fehler beim Laden der Nachbarn: {error}",
|
||||
"neighbors_repeatersNeighbours": "Nachbarn",
|
||||
"neighbors_repeatersNeighbors": "Nachbarn",
|
||||
"neighbors_noData": "Keine Nachbarsdaten verfügbar.",
|
||||
"channels_joinPrivateChannel": "Treten Sie einem privaten Kanal bei",
|
||||
"channels_joinPrivateChannelDesc": "Manuelle Eingabe eines geheimen Schlüssels.",
|
||||
|
|
|
|||
|
|
@ -793,8 +793,8 @@
|
|||
"repeater_telemetrySubtitle": "View telemetry of sensors and system stats",
|
||||
"repeater_cli": "CLI",
|
||||
"repeater_cliSubtitle": "Send commands to the repeater",
|
||||
"repeater_neighbours": "Neighbors",
|
||||
"repeater_neighboursSubtitle": "View zero hop neighbors.",
|
||||
"repeater_neighbors": "Neighbors",
|
||||
"repeater_neighborsSubtitle": "View zero hop neighbors.",
|
||||
"repeater_settings": "Settings",
|
||||
"repeater_settingsSubtitle": "Configure repeater parameters",
|
||||
|
||||
|
|
@ -1098,16 +1098,16 @@
|
|||
}
|
||||
},
|
||||
|
||||
"neighbors_receivedData": "Received Neighbours Data",
|
||||
"neighbors_requestTimedOut": "Neighbours request timed out.",
|
||||
"neighbors_receivedData": "Received Neighbors Data",
|
||||
"neighbors_requestTimedOut": "Neighbors request timed out.",
|
||||
"neighbors_errorLoading": "Error loading neighbors: {error}",
|
||||
"@neighbors_errorLoading": {
|
||||
"placeholders": {
|
||||
"error": {"type": "String"}
|
||||
}
|
||||
},
|
||||
"neighbors_repeatersNeighbours": "Repeaters Neighbours",
|
||||
"neighbors_noData": "No neighbours data available.",
|
||||
"neighbors_repeatersNeighbors": "Repeaters Neighbors",
|
||||
"neighbors_noData": "No neighbors data available.",
|
||||
"neighbors_unknownContact": "Unknown {pubkey}",
|
||||
"@neighbors_unknownContact": {
|
||||
"placeholders": {
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Vecinos",
|
||||
"repeater_neighboursSubtitle": "Ver vecinos de salto cero.",
|
||||
"repeater_neighbors": "Vecinos",
|
||||
"repeater_neighborsSubtitle": "Ver vecinos de salto cero.",
|
||||
"neighbors_receivedData": "Recibidas Datos de Vecinos",
|
||||
"neighbors_requestTimedOut": "Los vecinos solicitan que se desconecte.",
|
||||
"neighbors_errorLoading": "Error al cargar vecinos: {error}",
|
||||
"neighbors_repeatersNeighbours": "Repetidores Vecinos",
|
||||
"neighbors_repeatersNeighbors": "Repetidores Vecinos",
|
||||
"neighbors_noData": "No hay datos de vecinos disponibles.",
|
||||
"channels_joinPrivateChannel": "Únete a un Canal Privado",
|
||||
"channels_createPrivateChannel": "Crear un Canal Privado",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Voisins",
|
||||
"repeater_neighboursSubtitle": "Afficher les voisins de saut nuls.",
|
||||
"repeater_neighbors": "Voisins",
|
||||
"repeater_neighborsSubtitle": "Afficher les voisins de saut nuls.",
|
||||
"neighbors_receivedData": "Données des voisins reçues",
|
||||
"neighbors_requestTimedOut": "Les voisins demandent un délai.",
|
||||
"neighbors_errorLoading": "Erreur lors du chargement des voisins : {error}",
|
||||
"neighbors_repeatersNeighbours": "Répéteurs Voisins",
|
||||
"neighbors_repeatersNeighbors": "Répéteurs Voisins",
|
||||
"neighbors_noData": "Aucune donnée concernant les voisins disponible.",
|
||||
"channels_createPrivateChannelDesc": "Sécurisé avec une clé secrète.",
|
||||
"channels_joinPrivateChannel": "Rejoindre un Canal Privé",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Vicini",
|
||||
"repeater_neighboursSubtitle": "Visualizza vicini di salto pari a zero.",
|
||||
"repeater_neighbors": "Vicini",
|
||||
"repeater_neighborsSubtitle": "Visualizza vicini di salto pari a zero.",
|
||||
"neighbors_receivedData": "Ricevute dati vicini",
|
||||
"neighbors_requestTimedOut": "I vicini richiedono un timeout.",
|
||||
"neighbors_errorLoading": "Errore nel caricamento dei vicini: {error}",
|
||||
"neighbors_repeatersNeighbours": "Ripetitori Vicini",
|
||||
"neighbors_repeatersNeighbors": "Ripetitori Vicini",
|
||||
"neighbors_noData": "Nessun dato sugli vicini disponibile.",
|
||||
"channels_createPrivateChannel": "Crea un Canale Privato",
|
||||
"channels_createPrivateChannelDesc": "Protetta con una chiave segreta.",
|
||||
|
|
|
|||
|
|
@ -3039,17 +3039,17 @@ abstract class AppLocalizations {
|
|||
/// **'Send commands to the repeater'**
|
||||
String get repeater_cliSubtitle;
|
||||
|
||||
/// No description provided for @repeater_neighbours.
|
||||
/// No description provided for @repeater_neighbors.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Neighbors'**
|
||||
String get repeater_neighbours;
|
||||
String get repeater_neighbors;
|
||||
|
||||
/// No description provided for @repeater_neighboursSubtitle.
|
||||
/// No description provided for @repeater_neighborsSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'View zero hop neighbors.'**
|
||||
String get repeater_neighboursSubtitle;
|
||||
String get repeater_neighborsSubtitle;
|
||||
|
||||
/// No description provided for @repeater_settings.
|
||||
///
|
||||
|
|
@ -4193,13 +4193,13 @@ abstract class AppLocalizations {
|
|||
/// No description provided for @neighbors_receivedData.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Received Neighbours Data'**
|
||||
/// **'Received Neighbors Data'**
|
||||
String get neighbors_receivedData;
|
||||
|
||||
/// No description provided for @neighbors_requestTimedOut.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Neighbours request timed out.'**
|
||||
/// **'Neighbors request timed out.'**
|
||||
String get neighbors_requestTimedOut;
|
||||
|
||||
/// No description provided for @neighbors_errorLoading.
|
||||
|
|
@ -4208,16 +4208,16 @@ abstract class AppLocalizations {
|
|||
/// **'Error loading neighbors: {error}'**
|
||||
String neighbors_errorLoading(String error);
|
||||
|
||||
/// No description provided for @neighbors_repeatersNeighbours.
|
||||
/// No description provided for @neighbors_repeatersNeighbors.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Repeaters Neighbours'**
|
||||
String get neighbors_repeatersNeighbours;
|
||||
/// **'Repeaters Neighbors'**
|
||||
String get neighbors_repeatersNeighbors;
|
||||
|
||||
/// No description provided for @neighbors_noData.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No neighbours data available.'**
|
||||
/// **'No neighbors data available.'**
|
||||
String get neighbors_noData;
|
||||
|
||||
/// No description provided for @neighbors_unknownContact.
|
||||
|
|
|
|||
|
|
@ -1681,10 +1681,10 @@ class AppLocalizationsBg extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Изпрати команди към ретранслатора';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Съседи';
|
||||
String get repeater_neighbors => 'Съседи';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle =>
|
||||
String get repeater_neighborsSubtitle =>
|
||||
'Преглед на съседни възли с нулев скок.';
|
||||
|
||||
@override
|
||||
|
|
@ -2384,7 +2384,7 @@ class AppLocalizationsBg extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Повторители Съседи';
|
||||
String get neighbors_repeatersNeighbors => 'Повторители Съседи';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Няма налични данни за съседи.';
|
||||
|
|
|
|||
|
|
@ -1680,10 +1680,10 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Sende Befehle an den Repeater';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Nachbarn';
|
||||
String get repeater_neighbors => 'Nachbarn';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'Anzahl der Hop-Nachbarn anzeigen.';
|
||||
String get repeater_neighborsSubtitle => 'Anzahl der Hop-Nachbarn anzeigen.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Einstellungen';
|
||||
|
|
@ -2386,7 +2386,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Nachbarn';
|
||||
String get neighbors_repeatersNeighbors => 'Nachbarn';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Keine Nachbarsdaten verfügbar.';
|
||||
|
|
|
|||
|
|
@ -1654,10 +1654,10 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Send commands to the repeater';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Neighbors';
|
||||
String get repeater_neighbors => 'Neighbors';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'View zero hop neighbors.';
|
||||
String get repeater_neighborsSubtitle => 'View zero hop neighbors.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Settings';
|
||||
|
|
@ -2333,10 +2333,10 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_receivedData => 'Received Neighbours Data';
|
||||
String get neighbors_receivedData => 'Received Neighbors Data';
|
||||
|
||||
@override
|
||||
String get neighbors_requestTimedOut => 'Neighbours request timed out.';
|
||||
String get neighbors_requestTimedOut => 'Neighbors request timed out.';
|
||||
|
||||
@override
|
||||
String neighbors_errorLoading(String error) {
|
||||
|
|
@ -2344,10 +2344,10 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Repeaters Neighbours';
|
||||
String get neighbors_repeatersNeighbors => 'Repeaters Neighbors';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'No neighbours data available.';
|
||||
String get neighbors_noData => 'No neighbors data available.';
|
||||
|
||||
@override
|
||||
String neighbors_unknownContact(String pubkey) {
|
||||
|
|
|
|||
|
|
@ -1678,10 +1678,10 @@ class AppLocalizationsEs extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Enviar comandos al repetidor';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Vecinos';
|
||||
String get repeater_neighbors => 'Vecinos';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'Ver vecinos de salto cero.';
|
||||
String get repeater_neighborsSubtitle => 'Ver vecinos de salto cero.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Configuración';
|
||||
|
|
@ -2380,7 +2380,7 @@ class AppLocalizationsEs extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Repetidores Vecinos';
|
||||
String get neighbors_repeatersNeighbors => 'Repetidores Vecinos';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'No hay datos de vecinos disponibles.';
|
||||
|
|
|
|||
|
|
@ -1686,11 +1686,10 @@ class AppLocalizationsFr extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Envoyer des commandes au répéteur';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Voisins';
|
||||
String get repeater_neighbors => 'Voisins';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle =>
|
||||
'Afficher les voisins de saut nuls.';
|
||||
String get repeater_neighborsSubtitle => 'Afficher les voisins de saut nuls.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Paramètres';
|
||||
|
|
@ -2395,7 +2394,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Répéteurs Voisins';
|
||||
String get neighbors_repeatersNeighbors => 'Répéteurs Voisins';
|
||||
|
||||
@override
|
||||
String get neighbors_noData =>
|
||||
|
|
|
|||
|
|
@ -1676,10 +1676,10 @@ class AppLocalizationsIt extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Invia comandi al ripetitore';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Vicini';
|
||||
String get repeater_neighbors => 'Vicini';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle =>
|
||||
String get repeater_neighborsSubtitle =>
|
||||
'Visualizza vicini di salto pari a zero.';
|
||||
|
||||
@override
|
||||
|
|
@ -2380,7 +2380,7 @@ class AppLocalizationsIt extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Ripetitori Vicini';
|
||||
String get neighbors_repeatersNeighbors => 'Ripetitori Vicini';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Nessun dato sugli vicini disponibile.';
|
||||
|
|
|
|||
|
|
@ -1672,10 +1672,10 @@ class AppLocalizationsNl extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Verzend commando\'s naar de repeater';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Buren';
|
||||
String get repeater_neighbors => 'Buren';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'Bekijk nul hops buren.';
|
||||
String get repeater_neighborsSubtitle => 'Bekijk nul hops buren.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Instellingen';
|
||||
|
|
@ -2371,7 +2371,7 @@ class AppLocalizationsNl extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Herhalingen Buren';
|
||||
String get neighbors_repeatersNeighbors => 'Herhalingen Buren';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Geen gegevens van buren beschikbaar.';
|
||||
|
|
|
|||
|
|
@ -1680,10 +1680,10 @@ class AppLocalizationsPl extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Wyślij polecenia do powielacza';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Sąsiedzi';
|
||||
String get repeater_neighbors => 'Sąsiedzi';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle =>
|
||||
String get repeater_neighborsSubtitle =>
|
||||
'Wyświetl sąsiedztwo zerowych hopów.';
|
||||
|
||||
@override
|
||||
|
|
@ -2379,7 +2379,7 @@ class AppLocalizationsPl extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Powtarzacze Sąsiedzi';
|
||||
String get neighbors_repeatersNeighbors => 'Powtarzacze Sąsiedzi';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Brak danych dotyczących sąsiadów.';
|
||||
|
|
|
|||
|
|
@ -1678,11 +1678,10 @@ class AppLocalizationsPt extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Enviar comandos ao repetidor';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Vizinhos';
|
||||
String get repeater_neighbors => 'Vizinhos';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle =>
|
||||
'Visualizar vizinhos de salto zero.';
|
||||
String get repeater_neighborsSubtitle => 'Visualizar vizinhos de salto zero.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Configurações';
|
||||
|
|
@ -2381,7 +2380,7 @@ class AppLocalizationsPt extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Repetidores Vizinhos';
|
||||
String get neighbors_repeatersNeighbors => 'Repetidores Vizinhos';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Não estão disponíveis dados de vizinhos.';
|
||||
|
|
|
|||
|
|
@ -1680,10 +1680,10 @@ class AppLocalizationsRu extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Отправка команд репитеру';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Соседи';
|
||||
String get repeater_neighbors => 'Соседи';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'Просмотр соседей на нулевом хопе.';
|
||||
String get repeater_neighborsSubtitle => 'Просмотр соседей на нулевом хопе.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Настройки';
|
||||
|
|
@ -2383,7 +2383,7 @@ class AppLocalizationsRu extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Соседи репитеров';
|
||||
String get neighbors_repeatersNeighbors => 'Соседи репитеров';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Данные о соседях недоступны.';
|
||||
|
|
|
|||
|
|
@ -1673,10 +1673,10 @@ class AppLocalizationsSk extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Pošlite príkazy opakovaču';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Súsezný';
|
||||
String get repeater_neighbors => 'Súsezný';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'Zobraziť susedné body bez skokov.';
|
||||
String get repeater_neighborsSubtitle => 'Zobraziť susedné body bez skokov.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Nastavenia';
|
||||
|
|
@ -2367,7 +2367,7 @@ class AppLocalizationsSk extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Opakovadlá Súsezná';
|
||||
String get neighbors_repeatersNeighbors => 'Opakovadlá Súsezná';
|
||||
|
||||
@override
|
||||
String get neighbors_noData =>
|
||||
|
|
|
|||
|
|
@ -1672,10 +1672,10 @@ class AppLocalizationsSl extends AppLocalizations {
|
|||
'Pošlji ukazne povelje na ponovitveno enoto.';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Sosedi';
|
||||
String get repeater_neighbors => 'Sosedi';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'Pogledati nič sosednjih hopjev.';
|
||||
String get repeater_neighborsSubtitle => 'Pogledati nič sosednjih hopjev.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Nastavitve';
|
||||
|
|
@ -2371,7 +2371,7 @@ class AppLocalizationsSl extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Ponovitve Sosedi';
|
||||
String get neighbors_repeatersNeighbors => 'Ponovitve Sosedi';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Niso na voljo podatki o sosedih.';
|
||||
|
|
|
|||
|
|
@ -1662,10 +1662,10 @@ class AppLocalizationsSv extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Skicka kommandon till repetitorn';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Grannar';
|
||||
String get repeater_neighbors => 'Grannar';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => 'Visa noll hoppgrannar.';
|
||||
String get repeater_neighborsSubtitle => 'Visa noll hoppgrannar.';
|
||||
|
||||
@override
|
||||
String get repeater_settings => 'Inställningar';
|
||||
|
|
@ -2356,7 +2356,7 @@ class AppLocalizationsSv extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Upprepar grannar';
|
||||
String get neighbors_repeatersNeighbors => 'Upprepar grannar';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Inga grannuppgifter finns tillgängliga.';
|
||||
|
|
|
|||
|
|
@ -1679,10 +1679,10 @@ class AppLocalizationsUk extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => 'Надіслати команди ретранслятору';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => 'Сусіди';
|
||||
String get repeater_neighbors => 'Сусіди';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle =>
|
||||
String get repeater_neighborsSubtitle =>
|
||||
'Показати сусідів нульового стрибка.';
|
||||
|
||||
@override
|
||||
|
|
@ -2384,7 +2384,7 @@ class AppLocalizationsUk extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => 'Ретранслятори-сусіди';
|
||||
String get neighbors_repeatersNeighbors => 'Ретранслятори-сусіди';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => 'Дані про сусідів недоступні.';
|
||||
|
|
|
|||
|
|
@ -1601,10 +1601,10 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||
String get repeater_cliSubtitle => '向复用器发送指令';
|
||||
|
||||
@override
|
||||
String get repeater_neighbours => '邻居';
|
||||
String get repeater_neighbors => '邻居';
|
||||
|
||||
@override
|
||||
String get repeater_neighboursSubtitle => '查看邻居节点(无需中间节点)。';
|
||||
String get repeater_neighborsSubtitle => '查看邻居节点(无需中间节点)。';
|
||||
|
||||
@override
|
||||
String get repeater_settings => '设置';
|
||||
|
|
@ -2251,7 +2251,7 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||
}
|
||||
|
||||
@override
|
||||
String get neighbors_repeatersNeighbours => '重复使用的邻居';
|
||||
String get neighbors_repeatersNeighbors => '重复使用的邻居';
|
||||
|
||||
@override
|
||||
String get neighbors_noData => '没有可用的邻居信息。';
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Buren",
|
||||
"repeater_neighboursSubtitle": "Bekijk nul hops buren.",
|
||||
"repeater_neighbors": "Buren",
|
||||
"repeater_neighborsSubtitle": "Bekijk nul hops buren.",
|
||||
"neighbors_receivedData": "Ontvangen Buurdata",
|
||||
"neighbors_requestTimedOut": "Buren vragen om tijdelijk uitgeschakeld.",
|
||||
"neighbors_errorLoading": "Fout bij het laden van buren: {error}",
|
||||
"neighbors_repeatersNeighbours": "Herhalingen Buren",
|
||||
"neighbors_repeatersNeighbors": "Herhalingen Buren",
|
||||
"neighbors_noData": "Geen gegevens van buren beschikbaar.",
|
||||
"channels_createPrivateChannelDesc": "Beveiligd met een geheime sleutel.",
|
||||
"channels_createPrivateChannel": "Maak een Privé Kanaal",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Sąsiedzi",
|
||||
"repeater_neighboursSubtitle": "Wyświetl sąsiedztwo zerowych hopów.",
|
||||
"repeater_neighbors": "Sąsiedzi",
|
||||
"repeater_neighborsSubtitle": "Wyświetl sąsiedztwo zerowych hopów.",
|
||||
"neighbors_receivedData": "Otrzymano dane sąsiedztwa",
|
||||
"neighbors_requestTimedOut": "Sąsiedzi proszą o wyłączenie timingu.",
|
||||
"neighbors_errorLoading": "Błąd podczas ładowania sąsiadów: {error}",
|
||||
"neighbors_repeatersNeighbours": "Powtarzacze Sąsiedzi",
|
||||
"neighbors_repeatersNeighbors": "Powtarzacze Sąsiedzi",
|
||||
"neighbors_noData": "Brak danych dotyczących sąsiadów.",
|
||||
"channels_joinPrivateChannelDesc": "Ręcznie wprowadź klucz tajny.",
|
||||
"channels_createPrivateChannel": "Utwórz Prywatny Kanał",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Vizinhos",
|
||||
"repeater_neighbors": "Vizinhos",
|
||||
"neighbors_receivedData": "Dados dos Vizinhos Recebidos",
|
||||
"repeater_neighboursSubtitle": "Visualizar vizinhos de salto zero.",
|
||||
"repeater_neighborsSubtitle": "Visualizar vizinhos de salto zero.",
|
||||
"neighbors_requestTimedOut": "Vizinhos solicitam tempo limite esgotado.",
|
||||
"neighbors_errorLoading": "Erro ao carregar vizinhos: {error}",
|
||||
"neighbors_repeatersNeighbours": "Repetidores Vizinhos",
|
||||
"neighbors_repeatersNeighbors": "Repetidores Vizinhos",
|
||||
"neighbors_noData": "Não estão disponíveis dados de vizinhos.",
|
||||
"channels_createPrivateChannelDesc": "Protegido com uma chave secreta.",
|
||||
"channels_joinPrivateChannelDesc": "Inserir uma chave secreta manualmente.",
|
||||
|
|
|
|||
|
|
@ -472,8 +472,8 @@
|
|||
"repeater_telemetrySubtitle": "Просмотр телеметрии датчиков и системной статистики",
|
||||
"repeater_cli": "CLI",
|
||||
"repeater_cliSubtitle": "Отправка команд репитеру",
|
||||
"repeater_neighbours": "Соседи",
|
||||
"repeater_neighboursSubtitle": "Просмотр соседей на нулевом хопе.",
|
||||
"repeater_neighbors": "Соседи",
|
||||
"repeater_neighborsSubtitle": "Просмотр соседей на нулевом хопе.",
|
||||
"repeater_settings": "Настройки",
|
||||
"repeater_settingsSubtitle": "Настройка параметров репитера",
|
||||
"repeater_statusTitle": "Статус репитера",
|
||||
|
|
@ -666,7 +666,7 @@
|
|||
"neighbors_receivedData": "Полученные данные о соседях",
|
||||
"neighbors_requestTimedOut": "Время ожидания данных о соседях истекло.",
|
||||
"neighbors_errorLoading": "Ошибка загрузки соседей: {error}",
|
||||
"neighbors_repeatersNeighbours": "Соседи репитеров",
|
||||
"neighbors_repeatersNeighbors": "Соседи репитеров",
|
||||
"neighbors_noData": "Данные о соседях недоступны.",
|
||||
"neighbors_unknownContact": "Неизвестный {pubkey}",
|
||||
"neighbors_heardA ago": "Слышали: {time} назад",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighboursSubtitle": "Zobraziť susedné body bez skokov.",
|
||||
"repeater_neighborsSubtitle": "Zobraziť susedné body bez skokov.",
|
||||
"neighbors_requestTimedOut": "Súďia žiadajú o časové ukončenie.",
|
||||
"neighbors_receivedData": "Obdielo dáta suseda",
|
||||
"repeater_neighbours": "Súsezný",
|
||||
"repeater_neighbors": "Súsezný",
|
||||
"neighbors_errorLoading": "Chyba pri načítaní susedov: {error}",
|
||||
"neighbors_repeatersNeighbours": "Opakovadlá Súsezná",
|
||||
"neighbors_repeatersNeighbors": "Opakovadlá Súsezná",
|
||||
"neighbors_noData": "Nie je dostupná žiadna informácia o susedoch.",
|
||||
"channels_createPrivateChannel": "Vytvorte súkromný kanál",
|
||||
"channels_joinPrivateChannel": "Pripojiť sa k súkromnému kanálu",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighboursSubtitle": "Pogledati nič sosednjih hopjev.",
|
||||
"repeater_neighbours": "Sosedi",
|
||||
"repeater_neighborsSubtitle": "Pogledati nič sosednjih hopjev.",
|
||||
"repeater_neighbors": "Sosedi",
|
||||
"neighbors_receivedData": "Prejeto podatke o sosedih",
|
||||
"neighbors_requestTimedOut": "Sosedi zahtevajo izklop po dogovoru.",
|
||||
"neighbors_errorLoading": "Napaka pri obnašanju sosedov: {error}",
|
||||
"neighbors_repeatersNeighbours": "Ponovitve Sosedi",
|
||||
"neighbors_repeatersNeighbors": "Ponovitve Sosedi",
|
||||
"neighbors_noData": "Niso na voljo podatki o sosedih.",
|
||||
"channels_joinPrivateChannel": "Pridružite se zasebni skupini",
|
||||
"channels_createPrivateChannelDesc": "Varno zaklenjeno s skrivnim ključem.",
|
||||
|
|
|
|||
|
|
@ -1356,12 +1356,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Grannar",
|
||||
"repeater_neighboursSubtitle": "Visa noll hoppgrannar.",
|
||||
"repeater_neighbors": "Grannar",
|
||||
"repeater_neighborsSubtitle": "Visa noll hoppgrannar.",
|
||||
"neighbors_receivedData": "Mottagna grannars data",
|
||||
"neighbors_requestTimedOut": "Grannar begär tidsinställd utskick.",
|
||||
"neighbors_errorLoading": "Fel vid inläsning av grannar: {error}",
|
||||
"neighbors_repeatersNeighbours": "Upprepar grannar",
|
||||
"neighbors_repeatersNeighbors": "Upprepar grannar",
|
||||
"neighbors_noData": "Inga grannuppgifter finns tillgängliga.",
|
||||
"channels_createPrivateChannel": "Skapa en privat kanal",
|
||||
"channels_joinPrivateChannel": "Gå med i en Privat Kanal",
|
||||
|
|
|
|||
|
|
@ -1357,12 +1357,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"repeater_neighbours": "Сусіди",
|
||||
"repeater_neighboursSubtitle": "Показати сусідів нульового стрибка.",
|
||||
"repeater_neighbors": "Сусіди",
|
||||
"repeater_neighborsSubtitle": "Показати сусідів нульового стрибка.",
|
||||
"neighbors_receivedData": "Дані сусідів отримано",
|
||||
"neighbors_requestTimedOut": "Час запиту сусідів вичерпано.",
|
||||
"neighbors_errorLoading": "Помилка завантаження сусідів: {error}",
|
||||
"neighbors_repeatersNeighbours": "Ретранслятори-сусіди",
|
||||
"neighbors_repeatersNeighbors": "Ретранслятори-сусіди",
|
||||
"neighbors_noData": "Дані про сусідів недоступні.",
|
||||
"channels_createPrivateChannelDesc": "Захищено секретним ключем.",
|
||||
"channels_joinPrivateChannel": "Приєднатися до приватного каналу",
|
||||
|
|
|
|||
|
|
@ -900,8 +900,8 @@
|
|||
"repeater_telemetrySubtitle": "查看传感器和系统状态的数据。",
|
||||
"repeater_cli": "命令行界面",
|
||||
"repeater_cliSubtitle": "向复用器发送指令",
|
||||
"repeater_neighbours": "邻居",
|
||||
"repeater_neighboursSubtitle": "查看邻居节点(无需中间节点)。",
|
||||
"repeater_neighbors": "邻居",
|
||||
"repeater_neighborsSubtitle": "查看邻居节点(无需中间节点)。",
|
||||
"repeater_settings": "设置",
|
||||
"repeater_settingsSubtitle": "配置重复器参数",
|
||||
"repeater_statusTitle": "重复器状态",
|
||||
|
|
@ -1271,7 +1271,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"neighbors_repeatersNeighbours": "重复使用的邻居",
|
||||
"neighbors_repeatersNeighbors": "重复使用的邻居",
|
||||
"neighbors_noData": "没有可用的邻居信息。",
|
||||
"neighbors_unknownContact": "Unknown {pubkey}",
|
||||
"@neighbors_unknownContact": {
|
||||
|
|
|
|||
|
|
@ -497,7 +497,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
|||
path.pathBytes.isNotEmpty &&
|
||||
directRepeater.pubkeyFirstByte ==
|
||||
path.pathBytes.first;
|
||||
final isSecoundDirectRepeater =
|
||||
final isSecondDirectRepeater =
|
||||
secondDirectRepeater != null &&
|
||||
path.pathBytes.isNotEmpty &&
|
||||
secondDirectRepeater.pubkeyFirstByte ==
|
||||
|
|
@ -510,7 +510,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
|||
Color color = Colors.grey;
|
||||
if (isDirectRepeater) {
|
||||
color = Colors.green;
|
||||
} else if (isSecoundDirectRepeater) {
|
||||
} else if (isSecondDirectRepeater) {
|
||||
color = Colors.yellow;
|
||||
} else if (isThirdDirectRepeater) {
|
||||
color = Colors.red;
|
||||
|
|
|
|||
|
|
@ -12,28 +12,28 @@ import '../services/repeater_command_service.dart';
|
|||
import '../widgets/path_management_dialog.dart';
|
||||
import '../widgets/snr_indicator.dart';
|
||||
|
||||
class NeighboursScreen extends StatefulWidget {
|
||||
class NeighborsScreen extends StatefulWidget {
|
||||
final Contact repeater;
|
||||
final String password;
|
||||
|
||||
const NeighboursScreen({
|
||||
const NeighborsScreen({
|
||||
super.key,
|
||||
required this.repeater,
|
||||
required this.password,
|
||||
});
|
||||
|
||||
@override
|
||||
State<NeighboursScreen> createState() => _NeighboursScreenState();
|
||||
State<NeighborsScreen> createState() => _NeighborsScreenState();
|
||||
}
|
||||
|
||||
class _NeighboursScreenState extends State<NeighboursScreen> {
|
||||
static const int _reqNeighboursKeyLen = 4;
|
||||
class _NeighborsScreenState extends State<NeighborsScreen> {
|
||||
static const int _reqNeighborsKeyLen = 4;
|
||||
static const int _statusPayloadOffset = 8;
|
||||
static const int _statusStatsSize = 52;
|
||||
static const int _statusResponseBytes =
|
||||
_statusPayloadOffset + _statusStatsSize;
|
||||
Uint8List _tagData = Uint8List(4);
|
||||
int _neighbourCount = 0;
|
||||
int _neighborCount = 0;
|
||||
|
||||
bool _isLoading = false;
|
||||
bool _isLoaded = false;
|
||||
|
|
@ -42,7 +42,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
StreamSubscription<Uint8List>? _frameSubscription;
|
||||
RepeaterCommandService? _commandService;
|
||||
PathSelection? _pendingStatusSelection;
|
||||
List<Map<String, dynamic>>? _parsedNeighbours;
|
||||
List<Map<String, dynamic>>? _parsedNeighbors;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
|
@ -50,7 +50,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
_commandService = RepeaterCommandService(connector);
|
||||
_setupMessageListener();
|
||||
_loadNeighbours();
|
||||
_loadNeighbors();
|
||||
_hasData = false;
|
||||
}
|
||||
|
||||
|
|
@ -63,13 +63,12 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
|
||||
if (frame[0] == respCodeSent) {
|
||||
_tagData = frame.sublist(2, 6);
|
||||
//_timeEstment = frame.buffer.asByteData().getUint32(6, Endian.little);
|
||||
}
|
||||
|
||||
// Check if it's a binary response
|
||||
if (frame[0] == pushCodeBinaryResponse &&
|
||||
listEquals(frame.sublist(2, 6), _tagData)) {
|
||||
_handleNeighboursResponse(connector, frame.sublist(6));
|
||||
_handleNeighborsResponse(connector, frame.sublist(6));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -92,14 +91,14 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
return '${h}h ${m2}m';
|
||||
}
|
||||
|
||||
static List<Map<String, dynamic>> parseNeighboursData(
|
||||
static List<Map<String, dynamic>> parseNeighborsData(
|
||||
BufferReader buffer,
|
||||
int resultsCount,
|
||||
) {
|
||||
final Map<int, Map<String, dynamic>> neighbours = {};
|
||||
final Map<int, Map<String, dynamic>> neighbors = {};
|
||||
try {
|
||||
for (var i = 0; i < resultsCount; i++) {
|
||||
final neighbourData = neighbours.putIfAbsent(
|
||||
final neighborData = neighbors.putIfAbsent(
|
||||
i,
|
||||
() => {
|
||||
'contact': null,
|
||||
|
|
@ -108,46 +107,43 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
'snr': <double>{},
|
||||
},
|
||||
);
|
||||
neighbourData['publicKey'] = buffer.readBytes(_reqNeighboursKeyLen);
|
||||
neighbourData['lastHeard'] = buffer.readUInt32LE();
|
||||
neighbourData['snr'] = buffer.readInt8() / 4.0;
|
||||
neighborData['publicKey'] = buffer.readBytes(_reqNeighborsKeyLen);
|
||||
neighborData['lastHeard'] = buffer.readUInt32LE();
|
||||
neighborData['snr'] = buffer.readInt8() / 4.0;
|
||||
}
|
||||
|
||||
return neighbours.values.toList();
|
||||
return neighbors.values.toList();
|
||||
} catch (e) {
|
||||
appLogger.error(
|
||||
'Error parsing neighbours data: $e',
|
||||
tag: 'NeighboursScreen',
|
||||
'Error parsing neighbors data: $e',
|
||||
tag: 'NeighborsScreen',
|
||||
);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
void _handleNeighboursResponse(MeshCoreConnector connector, Uint8List frame) {
|
||||
void _handleNeighborsResponse(MeshCoreConnector connector, Uint8List frame) {
|
||||
final buffer = BufferReader(frame);
|
||||
try {
|
||||
final neighbourCount = buffer.readUInt16LE();
|
||||
final parsedNeighbours = parseNeighboursData(
|
||||
buffer,
|
||||
buffer.readUInt16LE(),
|
||||
);
|
||||
final neighborCount = buffer.readUInt16LE();
|
||||
final parsedNeighbors = parseNeighborsData(buffer, buffer.readUInt16LE());
|
||||
connector.contacts.where((c) => c.type == advTypeRepeater).forEach((
|
||||
repeater,
|
||||
) {
|
||||
for (var neighbourData in parsedNeighbours) {
|
||||
final publicKey = neighbourData['publicKey'];
|
||||
for (var neighborData in parsedNeighbors) {
|
||||
final publicKey = neighborData['publicKey'];
|
||||
if (listEquals(
|
||||
repeater.publicKey.sublist(0, _reqNeighboursKeyLen),
|
||||
repeater.publicKey.sublist(0, _reqNeighborsKeyLen),
|
||||
publicKey,
|
||||
)) {
|
||||
neighbourData['contact'] = repeater;
|
||||
neighborData['contact'] = repeater;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
setState(() {
|
||||
_parsedNeighbours = parsedNeighbours;
|
||||
_neighbourCount = neighbourCount;
|
||||
_parsedNeighbors = parsedNeighbors;
|
||||
_neighborCount = neighborCount;
|
||||
});
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
|
|
@ -164,7 +160,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
_hasData = true;
|
||||
});
|
||||
} catch (e) {
|
||||
appLogger.error('Error handling neighbours response: $e');
|
||||
appLogger.error('Error handling neighbors response: $e');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -175,7 +171,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
);
|
||||
}
|
||||
|
||||
Future<void> _loadNeighbours() async {
|
||||
Future<void> _loadNeighbors() async {
|
||||
if (_commandService == null) return;
|
||||
|
||||
setState(() {
|
||||
|
|
@ -188,17 +184,17 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
final selection = await connector.preparePathForContactSend(repeater);
|
||||
_pendingStatusSelection = selection;
|
||||
|
||||
//[version][number of requested neighbours][offset_16bit][order by][len of public key]
|
||||
//[version][number of requested neighbors][offset_16bit][order by][len of public key]
|
||||
final frame = buildSendBinaryReq(
|
||||
repeater.publicKey,
|
||||
payload: Uint8List.fromList([
|
||||
reqTypeGetNeighbours,
|
||||
reqTypeGetNeighbors,
|
||||
0x00,
|
||||
0x0F,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
_reqNeighboursKeyLen,
|
||||
_reqNeighborsKeyLen,
|
||||
]),
|
||||
);
|
||||
await connector.sendFrame(frame);
|
||||
|
|
@ -274,7 +270,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
l10n.neighbors_repeatersNeighbours,
|
||||
l10n.neighbors_repeatersNeighbors,
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
Text(
|
||||
|
|
@ -361,7 +357,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
: const Icon(Icons.refresh),
|
||||
onPressed: _isLoading ? null : _loadNeighbours,
|
||||
onPressed: _isLoading ? null : _loadNeighbors,
|
||||
tooltip: l10n.repeater_refresh,
|
||||
),
|
||||
],
|
||||
|
|
@ -369,13 +365,13 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
body: SafeArea(
|
||||
top: false,
|
||||
child: RefreshIndicator(
|
||||
onRefresh: _loadNeighbours,
|
||||
onRefresh: _loadNeighbors,
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
children: [
|
||||
if (!_isLoaded &&
|
||||
!_hasData &&
|
||||
(_parsedNeighbours == null || _parsedNeighbours!.isEmpty))
|
||||
(_parsedNeighbors == null || _parsedNeighbors!.isEmpty))
|
||||
Center(
|
||||
child: Text(
|
||||
l10n.neighbors_noData,
|
||||
|
|
@ -384,10 +380,9 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
),
|
||||
if (_isLoaded ||
|
||||
_hasData &&
|
||||
!(_parsedNeighbours == null ||
|
||||
_parsedNeighbours!.isEmpty))
|
||||
_buildNeighboursInfoCard(
|
||||
"${l10n.repeater_neighbours} - $_neighbourCount",
|
||||
!(_parsedNeighbors == null || _parsedNeighbors!.isEmpty))
|
||||
_buildNeighborsInfoCard(
|
||||
"${l10n.repeater_neighbors} - $_neighborCount",
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
@ -396,7 +391,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
);
|
||||
}
|
||||
|
||||
Widget _buildNeighboursInfoCard(String title) {
|
||||
Widget _buildNeighborsInfoCard(String title) {
|
||||
final connector = Provider.of<MeshCoreConnector>(context, listen: false);
|
||||
return Card(
|
||||
child: Padding(
|
||||
|
|
@ -421,7 +416,7 @@ class _NeighboursScreenState extends State<NeighboursScreen> {
|
|||
],
|
||||
),
|
||||
const Divider(),
|
||||
for (final entry in _parsedNeighbours!.asMap().entries)
|
||||
for (final entry in _parsedNeighbors!.asMap().entries)
|
||||
_buildInfoRow(
|
||||
entry.value['contact'] != null
|
||||
? entry.value['contact'].name
|
||||
|
|
@ -6,7 +6,7 @@ import 'repeater_status_screen.dart';
|
|||
import 'repeater_cli_screen.dart';
|
||||
import 'repeater_settings_screen.dart';
|
||||
import 'telemetry_screen.dart';
|
||||
import 'neighbours_screen.dart';
|
||||
import 'neighbors_screen.dart';
|
||||
|
||||
class RepeaterHubScreen extends StatelessWidget {
|
||||
final Contact repeater;
|
||||
|
|
@ -174,17 +174,15 @@ class RepeaterHubScreen extends StatelessWidget {
|
|||
_buildManagementCard(
|
||||
context,
|
||||
icon: Icons.group,
|
||||
title: l10n.repeater_neighbours,
|
||||
subtitle: l10n.repeater_neighboursSubtitle,
|
||||
title: l10n.repeater_neighbors,
|
||||
subtitle: l10n.repeater_neighborsSubtitle,
|
||||
color: Colors.orange,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => NeighboursScreen(
|
||||
repeater: repeater,
|
||||
password: password,
|
||||
),
|
||||
builder: (context) =>
|
||||
NeighborsScreen(repeater: repeater, password: password),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue