mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30: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:
@@ -1941,4 +1941,56 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get recentMessages => 'Messages Récents';
|
||||
|
||||
@override
|
||||
String get addChannel => 'Ajouter un Canal';
|
||||
|
||||
@override
|
||||
String get channelName => 'Nom du Canal';
|
||||
|
||||
@override
|
||||
String get channelNameHint => 'par ex. Équipe de Sauvetage Alpha';
|
||||
|
||||
@override
|
||||
String get channelSecret => 'Mot de Passe du Canal';
|
||||
|
||||
@override
|
||||
String get channelSecretHint => 'Mot de passe partagé pour ce canal';
|
||||
|
||||
@override
|
||||
String get channelSecretHelp =>
|
||||
'Ce mot de passe doit être partagé avec tous les membres de l\'équipe qui ont besoin d\'accéder à ce canal';
|
||||
|
||||
@override
|
||||
String get channelNameRequired => 'Le nom du canal est requis';
|
||||
|
||||
@override
|
||||
String get channelNameTooLong =>
|
||||
'Le nom du canal doit contenir 31 caractères ou moins';
|
||||
|
||||
@override
|
||||
String get channelSecretRequired => 'Le mot de passe du canal est requis';
|
||||
|
||||
@override
|
||||
String get channelSecretTooLong =>
|
||||
'Le mot de passe du canal doit contenir 32 caractères ou moins';
|
||||
|
||||
@override
|
||||
String get invalidAsciiCharacters =>
|
||||
'Seuls les caractères ASCII sont autorisés';
|
||||
|
||||
@override
|
||||
String get channelCreatedSuccessfully => 'Canal créé avec succès';
|
||||
|
||||
@override
|
||||
String channelCreationFailed(String error) {
|
||||
return 'Échec de la création du canal : $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get allChannelSlotsInUse =>
|
||||
'Tous les emplacements de canaux sont utilisés (maximum 39 canaux personnalisés)';
|
||||
|
||||
@override
|
||||
String get createChannel => 'Créer un Canal';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user