mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-12 00:40:28 +00:00
Add channel management features and localization support
- Implemented functionality to add new channels with a dialog interface. - Added validation for channel name and secret inputs, ensuring they meet specified criteria. - Integrated channel creation logic into the connection provider, including automatic slot assignment and MD5 hashing for channel secrets. - Updated localization files for multiple languages (Spanish, French, Croatian, Italian, German, Slovenian, and English) to include new channel-related strings. - Enhanced the contacts tab to display the add channel button conditionally based on device connection status. - Refactored the contacts tab to improve readability and maintainability.
This commit is contained in:
@@ -1932,4 +1932,55 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get recentMessages => 'Messaggi Recenti';
|
||||
|
||||
@override
|
||||
String get addChannel => 'Aggiungi Canale';
|
||||
|
||||
@override
|
||||
String get channelName => 'Nome del Canale';
|
||||
|
||||
@override
|
||||
String get channelNameHint => 'es. Squadra di Soccorso Alfa';
|
||||
|
||||
@override
|
||||
String get channelSecret => 'Password del Canale';
|
||||
|
||||
@override
|
||||
String get channelSecretHint => 'Password condivisa per questo canale';
|
||||
|
||||
@override
|
||||
String get channelSecretHelp =>
|
||||
'Questa password deve essere condivisa con tutti i membri del team che necessitano di accesso a questo canale';
|
||||
|
||||
@override
|
||||
String get channelNameRequired => 'Il nome del canale è obbligatorio';
|
||||
|
||||
@override
|
||||
String get channelNameTooLong =>
|
||||
'Il nome del canale deve contenere al massimo 31 caratteri';
|
||||
|
||||
@override
|
||||
String get channelSecretRequired => 'La password del canale è obbligatoria';
|
||||
|
||||
@override
|
||||
String get channelSecretTooLong =>
|
||||
'La password del canale deve contenere al massimo 32 caratteri';
|
||||
|
||||
@override
|
||||
String get invalidAsciiCharacters => 'Sono consentiti solo caratteri ASCII';
|
||||
|
||||
@override
|
||||
String get channelCreatedSuccessfully => 'Canale creato con successo';
|
||||
|
||||
@override
|
||||
String channelCreationFailed(String error) {
|
||||
return 'Creazione del canale fallita: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get allChannelSlotsInUse =>
|
||||
'Tutti gli slot dei canali sono in uso (massimo 39 canali personalizzati)';
|
||||
|
||||
@override
|
||||
String get createChannel => 'Crea Canale';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user