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:
Janez T
2025-10-28 10:17:02 +01:00
parent 6b15006d4e
commit e6289199ba
20 changed files with 1092 additions and 122 deletions

View File

@@ -1922,4 +1922,53 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get recentMessages => 'Nedavna sporočila';
@override
String get addChannel => 'Dodaj kanal';
@override
String get channelName => 'Ime kanala';
@override
String get channelNameHint => 'npr. Reševalna ekipa Alfa';
@override
String get channelSecret => 'Geslo kanala';
@override
String get channelSecretHint => 'Skupno geslo za ta kanal';
@override
String get channelSecretHelp =>
'To geslo mora biti deljeno z vsemi člani ekipe, ki potrebujejo dostop do tega kanala';
@override
String get channelNameRequired => 'Ime kanala je obvezno';
@override
String get channelNameTooLong => 'Ime kanala mora imeti največ 31 znakov';
@override
String get channelSecretRequired => 'Geslo kanala je obvezno';
@override
String get channelSecretTooLong => 'Geslo kanala mora imeti največ 32 znakov';
@override
String get invalidAsciiCharacters => 'Dovoljeni so samo ASCII znaki';
@override
String get channelCreatedSuccessfully => 'Kanal uspešno ustvarjen';
@override
String channelCreationFailed(String error) {
return 'Neuspešno ustvarjanje kanala: $error';
}
@override
String get allChannelSlotsInUse =>
'Vsa mesta za kanale so zasedena (maksimalno 39 prilagojenih kanalov)';
@override
String get createChannel => 'Ustvari kanal';
}