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

@@ -981,5 +981,21 @@
"showForestRoads": "Prikaži šumske ceste",
"wmsOverlays": "WMS Prekrivanja",
"recentMessages": "Nedavne poruke"
"recentMessages": "Nedavne poruke",
"addChannel": "Dodaj kanal",
"channelName": "Ime kanala",
"channelNameHint": "npr. Spasilačka ekipa Alfa",
"channelSecret": "Lozinka kanala",
"channelSecretHint": "Zajednička lozinka za ovaj kanal",
"channelSecretHelp": "Ova lozinka mora biti podijeljena sa svim članovima tima koji trebaju pristup ovom kanalu",
"channelNameRequired": "Ime kanala je obavezno",
"channelNameTooLong": "Ime kanala mora imati najviše 31 znak",
"channelSecretRequired": "Lozinka kanala je obavezna",
"channelSecretTooLong": "Lozinka kanala mora imati najviše 32 znaka",
"invalidAsciiCharacters": "Samo ASCII znakovi su dozvoljeni",
"channelCreatedSuccessfully": "Kanal uspješno kreiran",
"channelCreationFailed": "Neuspješno kreiranje kanala: {error}",
"allChannelSlotsInUse": "Svi slotovi kanala su zauzeti (maksimalno 39 prilagođenih kanala)",
"createChannel": "Kreiraj kanal"
}