diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index f9705a1c..7e1a3da2 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -2,7 +2,17 @@ "Tray": { "Quit": "Quit", "Hide": "Hide", - "Show": "Show" + "Show": "Show", + "Theme": "Theme", + "System": "System", + "Light": "Light", + "Dark": "Dark", + "Check for updates": "Check for updates", + "Download version": "Download version {{version}}", + "Up to date title": "NethLink is up to date", + "Up to date description": "Version {{version}} is the latest one.", + "Update check failed title": "Cannot check for updates", + "Update check failed description": "Check the internet connection and try again." }, "Common": { "Showing": "Showing", @@ -87,7 +97,11 @@ "PlusOther_one": "+ {{count}} other", "PlusOther_other": "+ {{count}} others", "Copy": "Copy", - "Copied": "Copied" + "Copied": "Copied", + "Back": "Back", + "Clear search": "Clear search", + "Show password": "Show password", + "Hide password": "Hide password" }, "Login": { "Welcome": "Welcome", @@ -107,9 +121,7 @@ "Use Another Account": "Use another account", "New Account title": "Welcome", "New Account description": "Sign in to NethLink with your NethVoice CTI username and password.", - "Account List title": "Account list", - "Account List description": "Choose an account to continue to NethLink.", - "Delete account": "Are you sure you want to delete {{username}}?", + "Account List description": "The accounts you have used on this computer.", "Back": "Back", "User not authorized for NethLink": "User not authorized for NethLink", "Sign in with SSO": "Sign in with SSO", @@ -120,14 +132,23 @@ "OTP code": "OTP code", "OTP invalid": "The code you entered is invalid or has expired. Please check your authenticator app and try again.", "OTP verification failed": "OTP verification failed", - "Two-Factor Authentication": "Two-Factor Authentication", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code." + "Two-Factor Authentication": "Two-factor authentication", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.", + "Digit": "Digit {{number}}" }, - "Continue": "Continue" + "Continue": "Continue", + "Add account": "Add account", + "Host step description": "Enter the address of your NethVoice CTI.", + "Credentials description": "Sign in to {{host}} with your NethVoice CTI username and password.", + "Choose an account": "Choose an account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Remove account", + "Remove account description": "Account {{username}} will be removed from the list. You can sign in with it again at any time.", + "Remove": "Remove" }, "SplashScreen": { - "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to you phonebook and much more.", - "Initializing": "Initializing the application..." + "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to your phonebook and much more.", + "Initializing": "Initializing the application…" }, "Notification": { "contact_created_title": "Contact created!", @@ -209,8 +230,7 @@ "Edit contact": "Edit contact", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Create new contact", - "View details": "View details", + "View details": "Details", "Details": "Details", "No contacts found": "No contacts found", "Try changing your search": "Try changing your search", @@ -238,7 +258,10 @@ "Province": "Province", "Postal code": "Postal code", "Country": "Country", - "Social": "Social" + "Social": "Social", + "Details contact": "Details {{name}}", + "Search results": "Search results", + "No phone number": "No phone number" }, "History": { "History": "History", @@ -305,7 +328,8 @@ "Video call": "Video call", "Enable camera permission": "Enable camera permission", "Busy": "Busy", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Call {{number}}" }, "Applications": { "Applications": "Applications", @@ -346,7 +370,7 @@ "Refresh calls every": "Refresh calls every", "Load calls of last": "Load calls of last", "Cache cleared": "Cache cleared", - "Mobile App": "Mobile App", + "Mobile App": "Mobile app", "Generate QR code": "Generate QR code", "New QR code creation": "New QR code creation", "Generate": "Regenerate", @@ -379,14 +403,14 @@ "Upload image to continue": "Upload image to continue", "Wrong file type": "Wrong file type", "Delete profile picture": "Delete profile picture", - "Devices": "Audio and Video", - "IncomingCalls": "Incoming Calls", + "Devices": "Audio and video", + "IncomingCalls": "Incoming calls", "Notifications": "Notifications", "Ringtone": "Ringtone", "Time preferences": "Time preferences", - "Login/logout preferences": "Login/logout preferences", - "Logout from queue automatically": "Logout from queue automatically", - "Login from queue automatically": "Login from queue automatically", + "Login/logout preferences": "Sign-in and sign-out preferences", + "Logout from queue automatically": "Sign out of queues automatically", + "Login from queue automatically": "Sign in to queues automatically", "Pause from queue automatically": "Pause from queue automatically", "When you exit the app": "When you exit the app", "When you enter the app": "When you enter the app", @@ -395,9 +419,9 @@ "Do not disturb": "Do not disturb", "Available presence": "Available presence", "IP Phone": "IP Phone", - "Only nethlink": "Only Nethlink", - "ShortcutToCall": "Shortcut to Call", - "CommandBarShortcut": "Shortcut for Command Bar", + "Only nethlink": "Only NethLink", + "ShortcutToCall": "Shortcut to call", + "CommandBarShortcut": "Shortcut for the command bar", "NotificationsDescription": "Manage notifications for call features and AI-generated content.", "NotificationsScopeDescription": "Settings apply to web phone and desktop app.", "CallSummaryNotifications": "Call summary notifications", @@ -414,7 +438,6 @@ "Signed in as": "Signed in as", "Switch to light theme": "Switch to light theme", "Switch to dark theme": "Switch to dark theme", - "Logout": "Logout", "Make and receive phone calls": "Make and receive phone calls.", "Forward incoming calls to another phone number": "Forward incoming calls to another phone number.", "Do not disturb": "Do not disturb", @@ -429,22 +452,23 @@ "Voicemail": "Voicemail", "Mobile": "Mobile", "Cellphone": "Cellphone", - "Activate voicemail": "Activate voicemail", + "Activate voicemail": "Enable voicemail", "Go to NethVoice CTI": "Go to NethVoice CTI", "Pair device": "Pair device", "Theme": "Theme", "Settings": "Settings", "Shortcut": "Shortcut", - "Keyboard shortcut to call": "Keyboard shortcut to Call", - "Keyboard shortcut for command bar": "Keyboard shortcut for Command bar", "Shortcut title description": "Choose a keyboard shortcut to dial any selected number. ", - "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the Command Bar. To trigger it, press the shortcut twice in a row.", + "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the command bar. To trigger it, press the shortcut twice in a row.", "Shortcut subtitle description": "The shortcut must include at least one modifier key (Ctrl, Alt, Cmd). Avoid using system-reserved shortcuts.", "Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift. Single keys without a modifier (e.g. \"6\", \"R\") are not allowed.", - "Preferred devices": "Audio and Video settings", + "Preferred devices": "Audio and video settings", "Microphone": "Microphone", "Speaker": "Speaker", - "Camera": "Camera" + "Camera": "Camera", + "Sign out": "Sign out", + "Call shortcut title": "Keyboard shortcut to call", + "Command bar shortcut title": "Keyboard shortcut for the command bar" }, "OperatorDrawer": { "Book": "Book", @@ -473,99 +497,53 @@ }, "Queues": { "Queues": "Queues", - "Filter queues": "Filter queues", - "Login to all queues": "Login to all queues", - "Logout from all queues": "Logout from all queues", - "Pause on all queues": "Pause on all queues", - "End pause on all queues": "End pause on all queues", - "Collapse all queues": "Collapse all queues", - "Expand all queues": "Expand all queues", "No queues": "No queues", - "You are member of no queues": "You are member of no queues", - "Toggle favorite queue": "Toggle favorite queue", - "Total calls": "Total calls", "Waiting calls": "Waiting calls", - "Connected calls": "Connected calls", - "Active operators": "Active operators", - "Logged in": "Logged in", "On a break": "On a break", + "Max wait": "Max wait", + "Queue": "Queue", + "Operator": "Operator", + "Wait": "Wait", + "waiting_calls_count_zero": "No waiting calls", + "waiting_calls_count_one": "{{count}} waiting call", + "waiting_calls_count_other": "{{count}} waiting calls", + "active_of_total": "{{active}} of {{total}}", + "Static member description": "You are a static member of this queue and cannot log out.", + "Queue not changed description": "Queue {{name}} has not changed. Try again.", + "Some queues not changed description": "Some queues have not changed. Try again.", + "No queues description": "You are not a member of any queue.", + "Queues in CTI description": "Statistics and the calls of each queue are in NethVoice CTI.", + "Open NethVoice CTI": "Open NethVoice CTI", + "Operators": "Operators", + "Log in": "Log in", + "Log out": "Log out", + "Log in to queue": "Log in to {{name}}", + "Log out of queue": "Log out of {{name}}", + "Log in to all queues": "Log in to all queues", + "Log out of all queues": "Log out of all queues", + "Logged in": "Logged in", "Logged out": "Logged out", - "Logout": "Logout", + "Cannot log in to queue": "Cannot log in to queue", + "Cannot log out of queue": "Cannot log out of queue", + "Cannot log in to all queues": "Cannot log in to all queues", + "Cannot log out of all queues": "Cannot log out of all queues", + "Logged-in operators": "Logged-in operators", + "No logged-in operators": "No operators logged in", "Pause": "Pause", + "Pause queue": "Pause {{name}}", + "Pause all queues": "Pause all queues", "End pause": "End pause", + "End pause on queue": "End pause on {{name}}", + "End pause on all queues": "End pause on all queues", + "Break": "Break", "Lunch break": "Lunch break", "Emergency": "Emergency", "Backend": "Backend", - "Min wait": "Min wait", - "Max wait": "Max wait", - "Queue operators": "Queue operators", - "Cannot retrieve queues": "Cannot retrieve queues", - "No calls": "No calls", - "No operators": "No operators", - "Select a tab": "Select a tab", - "Queues management": "Queues management", - "Calls": "Calls", - "calls": "calls", - "Statistics": "Statistics", - "Cannot retrieve calls": "Cannot retrieve calls", - "Time": "Time", - "Queue": "Queue", - "Name": "Name", - "Company": "Company", - "Details": "Details", - "Outcome": "Outcome", - "outcome_ANSWERED": "Answered", - "outcome_BUSY": "Busy", - "outcome_FAILED": "Failed", - "outcome_NO ANSWER": "No answer", - "outcome_RINGNOANSWER": "No answer", - "outcome_ABANDON": "Abandon", - "outcome_DONE": "Managed", - "outcome_COMPLETEAGENT": "Managed", - "outcome_COMPLETECALLER": "Managed", - "outcome_CONNECT": "Connected", - "outcome_ENTERQUEUE": "Queued", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Exit with IVR", - "Not managed": "Not managed", - "Managed": "Managed", - "All": "All", - "Calls filters": "Calls filters", - "There are no recent calls with current filters": "There are no recent calls with current filters", - "Last update": "Last update", - "every_time_interval_seconds": "every {{ timeInterval }} seconds", - "Settings": "Settings", - "Cannot retrieve stats": "Cannot retrieve stats", - "Operator statistics": "Operator statistics", - "Queue statistics": "Queue statistics", - "Login": "Login", - "Last login": "Last login", - "Last logout": "Last logout", - "Answered calls": "Answered calls", - "Outgoing calls": "Outgoing calls", - "Missed calls": "Missed calls", - "From last call": "From last call", - "Time at phone": "Time at phone", - "Calls duration": "Calls duration", - "Minimum": "Minimum", - "Maximum": "Maximum", - "Average": "Average", - "Total incoming": "Total incoming", - "Total outgoing": "Total outgoing", - "Download stats": "Download stats", - "Logon time": "Logon time", - "Pause time": "Pause time", - "Pause on logon": "Pause on logon", - "No queue calls": "No queue calls", - "Call details": "Call details", - "Call management": "Call management", - "Duration": "Duration", - "Hold": "Hold", - "Operator": "Operator", - "Caller": "Caller", - "Wait": "Wait", - "Position": "Position", - "You are about to logout from the following queues": "You are about to logout from the following queues" + "Cannot pause queue": "Cannot pause queue", + "Cannot pause all queues": "Cannot pause all queues", + "Cannot end pause on queue": "Cannot end pause on queue", + "Cannot end pause on all queues": "Cannot end pause on all queues", + "All queues": "All queues" }, "Lines": { "Lines management": "Lines management", @@ -692,7 +670,7 @@ "Speed dial edit message": "You've just edited a speed dial: {{extensionWaiting}}", "Speed dial edited": "Speed dial edited", "Favourites": "Favourites", - "No favourites": "No favourites found", + "No favourites": "No favourites yet", "Order by": "Order by", "A-Z": "Alphabetic A-Z", "Z-A": "Alphabetic Z-A", @@ -709,13 +687,15 @@ "New chat": "New chat", "No conversations": "No conversations", "No messages yet": "No messages yet", - "members": "members", - "You": "You", "Delete": "Delete", "Leave": "Leave", "Delete confirm": "Delete the conversation with \"{{name}}\"? Your copy of the messages is removed.", "Delete group confirm": "Delete the group \"{{name}}\" for everyone? Its messages are removed for all members.", - "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed." + "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed.", + "Members count_one": "{{count}} member", + "Members count_other": "{{count}} members", + "Last message by you": "You: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Last calls", @@ -725,7 +705,10 @@ "Oldest": "Oldest", "Call": "Call", "Calls_one": "Call", - "Calls_other": "Calls" + "Calls_other": "Calls", + "Open history": "Open history", + "No calls yet": "No calls yet", + "New call": "New call" }, "NavBars": { "Speed dials": "Speed dials", @@ -927,7 +910,11 @@ "Parking": "Parking", "Hold": "Hold", "No parked call": "No parked calls found", - "Click and hold to take current parking in call": "Click and hold to take current parking in call" + "No parked calls": "No parked calls", + "Pick up call in parking": "Pick up the call in parking {{name}}", + "Press and hold to pick up": "Press and hold to pick up the call", + "Parking timeout soon": "The parking time is running out", + "Parking timeout very soon": "The parking time is almost over" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +992,17 @@ }, "About": { "title": "Information", - "current_version": "Current version: nethlink {{version}}", + "current_version": "Version {{version}}", "update_available": "Update available for download", - "download": "Download the update" + "NethLink by": "NethLink by {{company}}", + "Open download page": "Open download page", + "Version available": "Version {{version}} is available" }, "CommandBar": { - "Placeholder": "Search contact or dial number...", "Call": "Call", - "Chat hint": "Chat (Ctrl/⌘+Enter)" + "Chat hint": "Chat (Ctrl/⌘+Enter)", + "Search placeholder": "Search contacts or dial a number", + "Search results": "Search results" }, "ScreenShare": { "Title": "Share screen", @@ -1081,6 +1071,7 @@ "Change it now to keep using the application": "Change it now to keep using the application.", "Password expires on {{date}}": "Password expires on {{date}}", "Your password is no longer expired": "Your password is no longer expired: sign in with your current password.", - "Password change is not available right now": "Password change is not available right now. Try again later." + "Password change is not available right now": "Password change is not available right now. Try again later.", + "Change": "Change" } } diff --git a/public/locales/it/translations.json b/public/locales/it/translations.json index 84fbb3ab..a71a3ea9 100644 --- a/public/locales/it/translations.json +++ b/public/locales/it/translations.json @@ -2,7 +2,17 @@ "Tray": { "Quit": "Chiudi", "Hide": "Nascondi", - "Show": "Mostra" + "Show": "Mostra", + "Theme": "Tema", + "System": "Sistema", + "Light": "Chiaro", + "Dark": "Scuro", + "Check for updates": "Controlla aggiornamenti", + "Download version": "Scarica la versione {{version}}", + "Up to date title": "NethLink è aggiornato", + "Up to date description": "La versione {{version}} è la più recente.", + "Update check failed title": "Impossibile verificare gli aggiornamenti", + "Update check failed description": "Controlla la connessione a internet e riprova." }, "Common": { "Showing": "Mostrando", @@ -87,7 +97,11 @@ "PlusOther_one": "+ {{count}} altro", "PlusOther_other": "+ {{count}} altri", "Copy": "Copia", - "Copied": "Copiato" + "Copied": "Copiato", + "Back": "Indietro", + "Clear search": "Azzera ricerca", + "Show password": "Mostra password", + "Hide password": "Nascondi password" }, "Login": { "Welcome": "Benvenuto", @@ -107,9 +121,7 @@ "Use Another Account": "Usa un altro account", "New Account title": "Ti diamo il benvenuto", "New Account description": "Accedere a NethLink con il nome utente e la password di NethVoice CTI.", - "Account List title": "Account disponibili", - "Account List description": "Scegliete un account per proseguire con NethLink.", - "Delete account": "Sei sicuro di voler eliminare {{username}}?", + "Account List description": "Gli account che hai usato su questo computer.", "Back": "Indietro", "User not authorized for NethLink": "Utente non autorizzato per NethLink", "Sign in with SSO": "Accedi con SSO", @@ -120,14 +132,23 @@ "OTP code": "Codice OTP", "OTP invalid": "Il codice inserito non è valido o è scaduto. Controlla la tua app di autenticazione e riprova.", "OTP verification failed": "Verifica OTP fallita", - "Two-Factor Authentication": "Autenticazione a Due Fattori", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero." + "Two-Factor Authentication": "Autenticazione a due fattori", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero.", + "Digit": "Cifra {{number}}" }, - "Continue": "Continua" + "Continue": "Continua", + "Add account": "Aggiungi account", + "Host step description": "Inserisci l'indirizzo del tuo NethVoice CTI.", + "Credentials description": "Accedi a {{host}} con nome utente e password di NethVoice CTI.", + "Choose an account": "Scegli un account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Rimuovi account", + "Remove account description": "L'account {{username}} verrà rimosso dall'elenco. Potrai accedere di nuovo con questo account in qualsiasi momento.", + "Remove": "Rimuovi" }, "SplashScreen": { "Description": "Benvenuti in NethLink, la soluzione desktop per comunicazioni senza confini. Effettua e ricevi chiamate, salva i contatti nella tua rubrica e molto altro ancora.", - "Initializing": "Avvio applicazione..." + "Initializing": "Avvio dell'applicazione…" }, "Notification": { "contact_created_title": "Contatto creato!", @@ -209,8 +230,7 @@ "Edit contact": "Modifica contatto", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Crea nuovo contatto", - "View details": "Vedi dettagli", + "View details": "Dettagli", "Details": "Dettagli", "No contacts found": "Nessun contatto trovato", "Try changing your search": "Prova a modificare la ricerca", @@ -238,7 +258,10 @@ "Province": "Provincia", "Postal code": "CAP", "Country": "Nazione", - "Social": "Social" + "Social": "Social", + "Details contact": "Dettagli {{name}}", + "Search results": "Risultati della ricerca", + "No phone number": "Nessun numero di telefono" }, "History": { "History": "Storico", @@ -305,7 +328,8 @@ "Video call": "Videochiamata", "Enable camera permission": "Abilita il permesso della fotocamera", "Busy": "Occupato", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Chiama {{number}}" }, "Applications": { "Applications": "Applicazioni", @@ -379,14 +403,14 @@ "Upload image to continue": "Carica immagine per continuare", "Wrong file type": "Formato file errato", "Delete profile picture": "Elimina immagine profilo", - "Devices": "Audio e Video", - "IncomingCalls": "Chiamate in Arrivo", + "Devices": "Audio e video", + "IncomingCalls": "Chiamate in arrivo", "Notifications": "Notifiche", "Ringtone": "Suoneria", "Time preferences": "Preferenze di tempo", - "Login/logout preferences": "Preferenze di entrata/uscita", - "Logout from queue automatically": "Esci dalla coda automaticamente", - "Login from queue automatically": "Entra dalla coda automaticamente", + "Login/logout preferences": "Preferenze di accesso e uscita", + "Logout from queue automatically": "Esci dalle code automaticamente", + "Login from queue automatically": "Accedi alle code automaticamente", "Pause from queue automatically": "Pausa dalla coda automaticamente", "When you exit the app": "Quando esci dall'app", "When you enter the app": "Quando entri nell'app", @@ -395,9 +419,9 @@ "Do not disturb": "Non disturbare", "Available presence": "Presence disponibili", "IP Phone": "Telefono IP", - "Only nethlink": "Solo Nethlink", - "ShortcutToCall": "Scorciatoia per Chiamare", - "CommandBarShortcut": "Scorciatoia per Command Bar", + "Only nethlink": "Solo NethLink", + "ShortcutToCall": "Scorciatoia per chiamare", + "CommandBarShortcut": "Scorciatoia per la barra dei comandi", "NotificationsDescription": "Gestisci le notifiche per le funzioni di chiamata e i contenuti generati dall'AI.", "NotificationsScopeDescription": "Le impostazioni si applicano al web phone e all'app desktop.", "CallSummaryNotifications": "Notifica riassunto chiamata", @@ -414,7 +438,6 @@ "Signed in as": "Accesso effettuato come", "Switch to light theme": "Imposta tema chiaro", "Switch to dark theme": "Imposta tema scuro", - "Logout": "Disconnetti", "Make and receive phone calls": "Effettua e ricevi telefonate.", "Forward incoming calls to another phone number": "Inoltra le chiamate in entrata a un altro numero di telefono.", "Do not disturb": "Non disturbare", @@ -429,22 +452,23 @@ "Voicemail": "Voicemail", "Mobile": "Cellulare", "Cellphone": "Cellulare", - "Activate voicemail": "Attiva voicemail", + "Activate voicemail": "Abilita voicemail", "Go to NethVoice CTI": "Vai a NethVoice CTI", "Pair device": "Abbina dispositivo", "Theme": "Tema", "Settings": "Impostazioni", "Shortcut": "Scorciatoia", - "Keyboard shortcut to call": "Scorciatoia per chiamare", - "Keyboard shortcut for command bar": "Scorciatoia per Command Bar", "Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo.", "Command bar shortcut title description": "Scegli una combinazione di tasti per aprire o nascondere la Command Bar. Per attivarla, premi la scorciatoia due volte di seguito.", "Shortcut subtitle description": "La scorciatoia deve includere almeno un tasto modificatore (Ctrl, Alt, Cmd). Evita di usare scorciatoie già presenti nel sistema.", "Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift. I tasti singoli senza modificatore (es. \"6\", \"R\") non sono ammessi.", - "Preferred devices": "Impostazioni Audio e Video", + "Preferred devices": "Impostazioni audio e video", "Microphone": "Microfono", "Speaker": "Altoparlante", - "Camera": "Video" + "Camera": "Video", + "Sign out": "Esci", + "Call shortcut title": "Scorciatoia da tastiera per chiamare", + "Command bar shortcut title": "Scorciatoia da tastiera per la barra dei comandi" }, "OperatorDrawer": { "Book": "Prenota", @@ -473,99 +497,53 @@ }, "Queues": { "Queues": "Code", - "Filter queues": "Filtro code", - "Login to all queues": "Accesso a tutte le code", - "Logout from all queues": "Disconnessione da tutte le code", - "Pause on all queues": "Pausa su tutte le code", - "End pause on all queues": "Termina la pausa su tutte le code", - "Collapse all queues": "Chiudere tutte le code", - "Expand all queues": "Espandi tutte le code", "No queues": "Nessuna coda", - "You are member of no queues": "Non si è membri di nessuna coda", - "Toggle favorite queue": "Attiva/disattiva la coda preferita", - "Total calls": "Chiamate totali", "Waiting calls": "Chiamate in attesa", - "Connected calls": "Chiamate collegate", - "Active operators": "Operatori attivi", - "Logged in": "Connesso", "On a break": "In pausa", - "Logged out": "Disconnesso", - "Logout": "Logout", - "Pause": "Pausa", - "End pause": "Fine pausa", - "Lunch break": "Pausa pranzo", - "Emergency": "Emergenza", - "Backend": "Backend", - "Min wait": "Attesa minima", "Max wait": "Attesa massima", - "Queue operators": "Operatori di coda", - "Cannot retrieve queues": "Impossibile recuperare le code", - "No calls": "Nessuna chiamata", - "No operators": "Nessun operatore", - "Select a tab": "Selezionare una scheda", - "Queues management": "Gestione delle code", - "Calls": "Chiamate", - "calls": "Chiamate", - "Statistics": "Statistiche", - "Cannot retrieve calls": "Impossibile recuperare le chiamate", - "Time": "Tempo", "Queue": "In coda", - "Name": "Nome", - "Company": "Azienda", - "Details": "Dettagli", - "Outcome": "Esito", - "outcome_ANSWERED": "Risposte", - "outcome_BUSY": "Occupato", - "outcome_FAILED": "Fallite", - "outcome_NO ANSWER": "Nessuna risposta", - "outcome_RINGNOANSWER": "Nessuna risposta", - "outcome_ABANDON": "Abbandonata", - "outcome_DONE": "Gestita", - "outcome_COMPLETEAGENT": "Gestito", - "outcome_COMPLETECALLER": "Gestita", - "outcome_CONNECT": "Connesso", - "outcome_ENTERQUEUE": "In coda", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Uscita con IVR", - "Not managed": "Non gestito", - "Managed": "Gestito", - "All": "Tutto", - "Calls filters": "Filtri per le chiamate", - "There are no recent calls with current filters": "Non ci sono chiamate recenti con i filtri attuali", - "Last update": "Ultimo aggiornamento", - "every_time_interval_seconds": "ogni {{ timeInterval }} secondi", - "Settings": "Impostazioni", - "Cannot retrieve stats": "Impossibile recuperare le statistiche", - "Operator statistics": "Statistiche degli operatori", - "Queue statistics": "Statistiche di coda", - "Login": "Accedi", - "Last login": "Ultimo accesso", - "Last logout": "Ultimo logout", - "Answered calls": "Chiamate risposte", - "Outgoing calls": "Chiamate in uscita", - "Missed calls": "Chiamata persa", - "From last call": "Dall'ultima chiamata", - "Time at phone": "Tempo al telefono", - "Calls duration": "Durata delle chiamate", - "Minimum": "Minimo", - "Maximum": "Massimo", - "Average": "Media", - "Total incoming": "Totale in entrata", - "Total outgoing": "Totale in uscita", - "Download stats": "Scarica le statistiche", - "Logon time": "Tempo di accesso", - "Pause time": "Tempo di pausa", - "Pause on logon": "Pausa all'accesso", - "No queue calls": "Nessuna chiamata in coda", - "Call details": "Dettagli della chiamata", - "Call management": "Gestione delle chiamate", - "Duration": "Durata", - "Hold": "Trattieni", "Operator": "Operatore", - "Caller": "Chiamante", "Wait": "Attendere", - "Position": "Posizione", - "You are about to logout from the following queues": "Si sta per effettuare il logout dalle code seguenti" + "waiting_calls_count_zero": "Nessuna chiamata in attesa", + "waiting_calls_count_one": "{{count}} chiamata in attesa", + "waiting_calls_count_other": "{{count}} chiamate in attesa", + "active_of_total": "{{active}} su {{total}}", + "Static member description": "Sei un membro statico di questa coda e non puoi uscire.", + "Queue not changed description": "La coda {{name}} non è cambiata. Riprova.", + "Some queues not changed description": "Alcune code non sono cambiate. Riprova.", + "No queues description": "Non sei membro di nessuna coda.", + "Queues in CTI description": "Statistiche e chiamate di ogni coda sono in NethVoice CTI.", + "Open NethVoice CTI": "Apri NethVoice CTI", + "Operators": "Operatori", + "Log in": "Accedi", + "Log out": "Esci", + "Log in to queue": "Accedi a {{name}}", + "Log out of queue": "Esci da {{name}}", + "Log in to all queues": "Accedi a tutte le code", + "Log out of all queues": "Esci da tutte le code", + "Logged in": "Connesso", + "Logged out": "Non connesso", + "Cannot log in to queue": "Impossibile accedere alla coda", + "Cannot log out of queue": "Impossibile uscire dalla coda", + "Cannot log in to all queues": "Impossibile accedere a tutte le code", + "Cannot log out of all queues": "Impossibile uscire da tutte le code", + "Logged-in operators": "Operatori connessi", + "No logged-in operators": "Nessun operatore connesso", + "Pause": "Pausa", + "Pause queue": "Metti in pausa {{name}}", + "Pause all queues": "Pausa su tutte le code", + "End pause": "Termina pausa", + "End pause on queue": "Termina la pausa su {{name}}", + "End pause on all queues": "Termina la pausa su tutte le code", + "Break": "Pausa", + "Lunch break": "Pausa pranzo", + "Emergency": "Emergenza", + "Backend": "Backend", + "Cannot pause queue": "Impossibile mettere in pausa la coda", + "Cannot pause all queues": "Impossibile mettere in pausa tutte le code", + "Cannot end pause on queue": "Impossibile terminare la pausa sulla coda", + "Cannot end pause on all queues": "Impossibile terminare la pausa su tutte le code", + "All queues": "Tutte le code" }, "Lines": { "Lines management": "Gestione linee", @@ -692,7 +670,7 @@ "Speed dial edit message": "Hai appena modificato una chiamata rapida: {{estensioneAttesa}}", "Speed dial edited": "Chiamata rapida modificata", "Favourites": "Preferiti", - "No favourites": "Nessun preferito trovato", + "No favourites": "Ancora nessun preferito", "Order by": "Ordina per", "A-Z": "Alfabetico A-Z", "Z-A": "Alfabetico Z-A", @@ -709,13 +687,15 @@ "New chat": "Nuova chat", "No conversations": "Nessuna conversazione", "No messages yet": "Nessun messaggio", - "members": "membri", - "You": "Tu", "Delete": "Elimina", "Leave": "Abbandona", "Delete confirm": "Eliminare la conversazione con \"{{name}}\"? La tua copia dei messaggi viene rimossa.", "Delete group confirm": "Eliminare il gruppo \"{{name}}\" per tutti? I suoi messaggi vengono rimossi per tutti i membri.", - "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa." + "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa.", + "Members count_one": "{{count}} membro", + "Members count_other": "{{count}} membri", + "Last message by you": "Tu: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Ultime chiamate", @@ -725,7 +705,10 @@ "Oldest": "Meno recenti", "Call": "Chiama", "Calls_one": "Chiamata", - "Calls_other": "Chiamate" + "Calls_other": "Chiamate", + "Open history": "Apri cronologia", + "No calls yet": "Nessuna chiamata ancora", + "New call": "Nuova chiamata" }, "NavBars": { "Speed dial": "Chiamata rapida", @@ -927,7 +910,11 @@ "Parking": "Parcheggio", "Hold": "Tieni premuto", "No parked call": "Nessuna chiamata parcheggiata trovata", - "Click and hold to take current parking in call": "Clicca e tieni premuto per riprendere la chiamata parcheggiata" + "No parked calls": "Nessuna chiamata parcheggiata", + "Pick up call in parking": "Riprendi la chiamata nel parcheggio {{name}}", + "Press and hold to pick up": "Tieni premuto per riprendere la chiamata", + "Parking timeout soon": "Il tempo di parcheggio sta per scadere", + "Parking timeout very soon": "Il tempo di parcheggio è quasi scaduto" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +992,17 @@ }, "About": { "title": "Informazioni", - "current_version": "Versione corrente: nethlink {{version}}", + "current_version": "Versione {{version}}", "update_available": "Aggiornamento disponibile per il download", - "download": "Scarica l'aggiornamento" + "NethLink by": "NethLink di {{company}}", + "Open download page": "Apri la pagina di download", + "Version available": "È disponibile la versione {{version}}" }, "CommandBar": { - "Placeholder": "Cerca contatto o componi numero...", "Call": "Chiama", - "Chat hint": "Chat (Ctrl/⌘+Invio)" + "Chat hint": "Chat (Ctrl/⌘+Invio)", + "Search placeholder": "Cerca contatti o componi un numero", + "Search results": "Risultati della ricerca" }, "ScreenShare": { "Title": "Condividi schermo", @@ -1081,6 +1071,7 @@ "Change it now to keep using the application": "Cambiala ora per continuare a usare l'applicazione.", "Password expires on {{date}}": "La password scade il {{date}}", "Your password is no longer expired": "La password non è più scaduta: accedi con la password attuale.", - "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi." + "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi.", + "Change": "Cambia" } } diff --git a/public/tray/blankDark.png b/public/tray/blankDark.png new file mode 100644 index 00000000..aac45b50 Binary files /dev/null and b/public/tray/blankDark.png differ diff --git a/public/tray/blankDark@2x.png b/public/tray/blankDark@2x.png new file mode 100644 index 00000000..4bdb4bfc Binary files /dev/null and b/public/tray/blankDark@2x.png differ diff --git a/public/tray/blankLight.png b/public/tray/blankLight.png new file mode 100644 index 00000000..e3e3b14d Binary files /dev/null and b/public/tray/blankLight.png differ diff --git a/public/tray/blankLight@2x.png b/public/tray/blankLight@2x.png new file mode 100644 index 00000000..9d4e7155 Binary files /dev/null and b/public/tray/blankLight@2x.png differ diff --git a/public/tray/blankTemplate.png b/public/tray/blankTemplate.png new file mode 100644 index 00000000..3391e295 Binary files /dev/null and b/public/tray/blankTemplate.png differ diff --git a/public/tray/blankTemplate@2x.png b/public/tray/blankTemplate@2x.png new file mode 100644 index 00000000..03e8952f Binary files /dev/null and b/public/tray/blankTemplate@2x.png differ diff --git a/public/tray/checkDark.png b/public/tray/checkDark.png new file mode 100644 index 00000000..989e021a Binary files /dev/null and b/public/tray/checkDark.png differ diff --git a/public/tray/checkDark@2x.png b/public/tray/checkDark@2x.png new file mode 100644 index 00000000..8343f5b8 Binary files /dev/null and b/public/tray/checkDark@2x.png differ diff --git a/public/tray/checkLight.png b/public/tray/checkLight.png new file mode 100644 index 00000000..805209a3 Binary files /dev/null and b/public/tray/checkLight.png differ diff --git a/public/tray/checkLight@2x.png b/public/tray/checkLight@2x.png new file mode 100644 index 00000000..4389f1a6 Binary files /dev/null and b/public/tray/checkLight@2x.png differ diff --git a/public/tray/checkTemplate.png b/public/tray/checkTemplate.png new file mode 100644 index 00000000..f0d91e6d Binary files /dev/null and b/public/tray/checkTemplate.png differ diff --git a/public/tray/checkTemplate@2x.png b/public/tray/checkTemplate@2x.png new file mode 100644 index 00000000..544f8a5c Binary files /dev/null and b/public/tray/checkTemplate@2x.png differ diff --git a/public/tray/devtoolsDark.png b/public/tray/devtoolsDark.png new file mode 100644 index 00000000..65c99f89 Binary files /dev/null and b/public/tray/devtoolsDark.png differ diff --git a/public/tray/devtoolsDark@2x.png b/public/tray/devtoolsDark@2x.png new file mode 100644 index 00000000..47aae001 Binary files /dev/null and b/public/tray/devtoolsDark@2x.png differ diff --git a/public/tray/devtoolsLight.png b/public/tray/devtoolsLight.png new file mode 100644 index 00000000..55202f81 Binary files /dev/null and b/public/tray/devtoolsLight.png differ diff --git a/public/tray/devtoolsLight@2x.png b/public/tray/devtoolsLight@2x.png new file mode 100644 index 00000000..c3f6ecbe Binary files /dev/null and b/public/tray/devtoolsLight@2x.png differ diff --git a/public/tray/devtoolsTemplate.png b/public/tray/devtoolsTemplate.png new file mode 100644 index 00000000..178a9ed7 Binary files /dev/null and b/public/tray/devtoolsTemplate.png differ diff --git a/public/tray/devtoolsTemplate@2x.png b/public/tray/devtoolsTemplate@2x.png new file mode 100644 index 00000000..68c1dfb1 Binary files /dev/null and b/public/tray/devtoolsTemplate@2x.png differ diff --git a/public/tray/downloadDark.png b/public/tray/downloadDark.png new file mode 100644 index 00000000..fdc9e58b Binary files /dev/null and b/public/tray/downloadDark.png differ diff --git a/public/tray/downloadDark@2x.png b/public/tray/downloadDark@2x.png new file mode 100644 index 00000000..34fe8737 Binary files /dev/null and b/public/tray/downloadDark@2x.png differ diff --git a/public/tray/downloadLight.png b/public/tray/downloadLight.png new file mode 100644 index 00000000..90149498 Binary files /dev/null and b/public/tray/downloadLight.png differ diff --git a/public/tray/downloadLight@2x.png b/public/tray/downloadLight@2x.png new file mode 100644 index 00000000..689fe9c2 Binary files /dev/null and b/public/tray/downloadLight@2x.png differ diff --git a/public/tray/downloadTemplate.png b/public/tray/downloadTemplate.png new file mode 100644 index 00000000..d798fd47 Binary files /dev/null and b/public/tray/downloadTemplate.png differ diff --git a/public/tray/downloadTemplate@2x.png b/public/tray/downloadTemplate@2x.png new file mode 100644 index 00000000..1289e2cf Binary files /dev/null and b/public/tray/downloadTemplate@2x.png differ diff --git a/public/tray/hideDark.png b/public/tray/hideDark.png new file mode 100644 index 00000000..b7f6fa61 Binary files /dev/null and b/public/tray/hideDark.png differ diff --git a/public/tray/hideDark@2x.png b/public/tray/hideDark@2x.png new file mode 100644 index 00000000..c6dc3719 Binary files /dev/null and b/public/tray/hideDark@2x.png differ diff --git a/public/tray/hideLight.png b/public/tray/hideLight.png new file mode 100644 index 00000000..6d25f0fd Binary files /dev/null and b/public/tray/hideLight.png differ diff --git a/public/tray/hideLight@2x.png b/public/tray/hideLight@2x.png new file mode 100644 index 00000000..c78603f0 Binary files /dev/null and b/public/tray/hideLight@2x.png differ diff --git a/public/tray/hideTemplate.png b/public/tray/hideTemplate.png new file mode 100644 index 00000000..aee9d11b Binary files /dev/null and b/public/tray/hideTemplate.png differ diff --git a/public/tray/hideTemplate@2x.png b/public/tray/hideTemplate@2x.png new file mode 100644 index 00000000..fdde833e Binary files /dev/null and b/public/tray/hideTemplate@2x.png differ diff --git a/public/tray/quitDark.png b/public/tray/quitDark.png new file mode 100644 index 00000000..7cc8e214 Binary files /dev/null and b/public/tray/quitDark.png differ diff --git a/public/tray/quitDark@2x.png b/public/tray/quitDark@2x.png new file mode 100644 index 00000000..c16b3933 Binary files /dev/null and b/public/tray/quitDark@2x.png differ diff --git a/public/tray/quitLight.png b/public/tray/quitLight.png new file mode 100644 index 00000000..db80022e Binary files /dev/null and b/public/tray/quitLight.png differ diff --git a/public/tray/quitLight@2x.png b/public/tray/quitLight@2x.png new file mode 100644 index 00000000..cab6f68c Binary files /dev/null and b/public/tray/quitLight@2x.png differ diff --git a/public/tray/quitTemplate.png b/public/tray/quitTemplate.png new file mode 100644 index 00000000..43b48c4c Binary files /dev/null and b/public/tray/quitTemplate.png differ diff --git a/public/tray/quitTemplate@2x.png b/public/tray/quitTemplate@2x.png new file mode 100644 index 00000000..707512b6 Binary files /dev/null and b/public/tray/quitTemplate@2x.png differ diff --git a/public/tray/showDark.png b/public/tray/showDark.png new file mode 100644 index 00000000..41ffbdaa Binary files /dev/null and b/public/tray/showDark.png differ diff --git a/public/tray/showDark@2x.png b/public/tray/showDark@2x.png new file mode 100644 index 00000000..15ff181a Binary files /dev/null and b/public/tray/showDark@2x.png differ diff --git a/public/tray/showLight.png b/public/tray/showLight.png new file mode 100644 index 00000000..6df0986b Binary files /dev/null and b/public/tray/showLight.png differ diff --git a/public/tray/showLight@2x.png b/public/tray/showLight@2x.png new file mode 100644 index 00000000..cf4ffcc6 Binary files /dev/null and b/public/tray/showLight@2x.png differ diff --git a/public/tray/showTemplate.png b/public/tray/showTemplate.png new file mode 100644 index 00000000..43374c6c Binary files /dev/null and b/public/tray/showTemplate.png differ diff --git a/public/tray/showTemplate@2x.png b/public/tray/showTemplate@2x.png new file mode 100644 index 00000000..b84767fc Binary files /dev/null and b/public/tray/showTemplate@2x.png differ diff --git a/public/tray/themeDark.png b/public/tray/themeDark.png new file mode 100644 index 00000000..656b1539 Binary files /dev/null and b/public/tray/themeDark.png differ diff --git a/public/tray/themeDark@2x.png b/public/tray/themeDark@2x.png new file mode 100644 index 00000000..da9ebb44 Binary files /dev/null and b/public/tray/themeDark@2x.png differ diff --git a/public/tray/themeLight.png b/public/tray/themeLight.png new file mode 100644 index 00000000..9ac92314 Binary files /dev/null and b/public/tray/themeLight.png differ diff --git a/public/tray/themeLight@2x.png b/public/tray/themeLight@2x.png new file mode 100644 index 00000000..35a0a649 Binary files /dev/null and b/public/tray/themeLight@2x.png differ diff --git a/public/tray/themeTemplate.png b/public/tray/themeTemplate.png new file mode 100644 index 00000000..330809c2 Binary files /dev/null and b/public/tray/themeTemplate.png differ diff --git a/public/tray/themeTemplate@2x.png b/public/tray/themeTemplate@2x.png new file mode 100644 index 00000000..5a528a4e Binary files /dev/null and b/public/tray/themeTemplate@2x.png differ diff --git a/public/tray/updateDark.png b/public/tray/updateDark.png new file mode 100644 index 00000000..bcb769ff Binary files /dev/null and b/public/tray/updateDark.png differ diff --git a/public/tray/updateDark@2x.png b/public/tray/updateDark@2x.png new file mode 100644 index 00000000..f90bc1f6 Binary files /dev/null and b/public/tray/updateDark@2x.png differ diff --git a/public/tray/updateLight.png b/public/tray/updateLight.png new file mode 100644 index 00000000..2a48b27e Binary files /dev/null and b/public/tray/updateLight.png differ diff --git a/public/tray/updateLight@2x.png b/public/tray/updateLight@2x.png new file mode 100644 index 00000000..0a22dd0d Binary files /dev/null and b/public/tray/updateLight@2x.png differ diff --git a/public/tray/updateTemplate.png b/public/tray/updateTemplate.png new file mode 100644 index 00000000..307b8abd Binary files /dev/null and b/public/tray/updateTemplate.png differ diff --git a/public/tray/updateTemplate@2x.png b/public/tray/updateTemplate@2x.png new file mode 100644 index 00000000..239a6d4c Binary files /dev/null and b/public/tray/updateTemplate@2x.png differ diff --git a/src/main/classes/controllers/NethLinkController.ts b/src/main/classes/controllers/NethLinkController.ts index 03c57809..63bccc66 100644 --- a/src/main/classes/controllers/NethLinkController.ts +++ b/src/main/classes/controllers/NethLinkController.ts @@ -35,9 +35,9 @@ export class NethLinkController { } } - sendUpdateNotification() { + sendUpdateNotification(update: { version: string; url: string }) { try { - this.window.emit(IPC_EVENTS.UPDATE_APP_NOTIFICATION) + this.window.emit(IPC_EVENTS.UPDATE_APP_NOTIFICATION, update) } catch (e) { Log.warning( 'error during send update notification to the NethLinkWindow: ', diff --git a/src/main/classes/controllers/TrayController.ts b/src/main/classes/controllers/TrayController.ts index 843189fa..85f4499a 100644 --- a/src/main/classes/controllers/TrayController.ts +++ b/src/main/classes/controllers/TrayController.ts @@ -3,8 +3,10 @@ import { MenuItem, MenuItemConstructorOptions, Tray, + app, nativeImage, nativeTheme, + shell, } from 'electron' import path from 'path' import { LoginController } from './LoginController' @@ -15,6 +17,8 @@ import { isDev } from '@shared/utils/utils' import { DevToolsController } from './DevToolsController' import { Log } from '@shared/utils/logger' import { t } from 'i18next' +import { AccountController } from './AccountController' +import { AvailableThemes } from '@shared/types' export type TrayUpdaterProps = { enableShowButton?: boolean @@ -53,6 +57,34 @@ export class TrayController { return image } + // a 16px icon of the menu, from public/tray (the @2x file is picked up on + // HiDPI screens): a template image on macOS, which follows the menu bar, + // the color of the system theme elsewhere + getMenuIcon( + name: + | 'show' + | 'hide' + | 'quit' + | 'devtools' + | 'theme' + | 'download' + | 'update' + | 'check' + | 'blank', + ) { + const variant = + process.platform === 'darwin' + ? 'Template' + : nativeTheme.shouldUseDarkColors + ? 'Dark' + : 'Light' + const image = nativeImage.createFromPath( + path.join(__dirname, `../../public/tray/${name}${variant}.png`), + ) + if (process.platform === 'darwin') image.setTemplateImage(true) + return image + } + changeIconByTheme(theme: 'light' | 'dark') { const image = this.getImage(theme) this.tray.setImage(image) @@ -76,6 +108,8 @@ export class TrayController { LoginController.instance.hide() else LoginController.instance.show() } + // the label of the item at once: the window events update it later + this.refresh() } } catch (e) { Log.warning( @@ -85,27 +119,68 @@ export class TrayController { } } + // the last options of the menu, to rebuild it when the theme or the update change + private lastProps: TrayUpdaterProps = { isShowButtonVisible: true } + // the newer release found by the update check, if any + private update?: { version: string; url: string } + // set by the main process: checks for updates now, from the menu + checkForUpdates?: () => void + + // rebuilds the menu with its last options, such as after a theme change + refresh() { + this.updateTray(this.lastProps) + } + + setUpdate(update?: { version: string; url: string }) { + this.update = update + this.updateTray(this.lastProps) + } + + private changeTheme(theme: AvailableThemes) { + AccountController.instance?.updateTheme(theme) + this.updateTray(this.lastProps) + } + updateTray( { enableShowButton, isShowButtonVisible }: TrayUpdaterProps = { isShowButtonVisible: true, }, ) { try { + this.lastProps = { enableShowButton, isShowButtonVisible } const _isShowButtonVisible = isShowButtonVisible === undefined ? true : isShowButtonVisible - // TODO: add check if window is focused and add the focus option - const label = store.store.account - ? NethLinkController.instance && - NethLinkController.instance.window?.isOpen() - ? `${t('Tray.Hide')} NethLink` - : `${t('Tray.Show')} NethLink` - : LoginController.instance && LoginController.instance.window?.isOpen() - ? `${t('Tray.Hide')} Login` - : `${t('Tray.Show')} Login` + const isWindowOpen = store.store.account + ? !!( + NethLinkController.instance && + NethLinkController.instance.window?.isOpen() + ) + : !!( + LoginController.instance && + LoginController.instance.window?.isOpen() + ) + const label = `${t(isWindowOpen ? 'Tray.Hide' : 'Tray.Show')} ${ + store.store.account ? 'NethLink' : 'Login' + }` + const currentTheme: AvailableThemes = + (store.store.account?.theme as AvailableThemes) || 'system' + // a check icon instead of a radio item: macOS would add a column for the + // check mark and push every icon of the menu to the right + const themeItem = (theme: AvailableThemes, labelKey: string) => + ({ + label: t(labelKey) as string, + icon: this.getMenuIcon(currentTheme === theme ? 'check' : 'blank'), + click: () => this.changeTheme(theme), + }) as MenuItemConstructorOptions + const menu: (MenuItemConstructorOptions | MenuItem)[] = [ + // the name and the version, as a title + { label: `NethLink ${app.getVersion()}`, enabled: false }, + { type: 'separator' }, { role: 'window', label: label + (store.assignedInstanceID || ''), + icon: this.getMenuIcon(isWindowOpen ? 'hide' : 'show'), commandId: 1, enabled: enableShowButton ?? false, visible: _isShowButtonVisible, @@ -113,21 +188,57 @@ export class TrayController { this.toggleWindow(enableShowButton ?? false) }, }, + ] + + // the theme of the account, once signed in + if (store.store.account) { + menu.push( + { type: 'separator' }, + { + label: t('Tray.Theme') as string, + icon: this.getMenuIcon('theme'), + enabled: false, + }, + themeItem('system', 'Tray.System'), + themeItem('light', 'Tray.Light'), + themeItem('dark', 'Tray.Dark'), + ) + } + + menu.push( + { type: 'separator' }, + this.update + ? { + label: t('Tray.Download version', { + version: this.update.version, + }) as string, + icon: this.getMenuIcon('download'), + click: () => shell.openExternal(this.update!.url), + } + : { + label: t('Tray.Check for updates') as string, + icon: this.getMenuIcon('update'), + enabled: !!this.checkForUpdates, + click: () => this.checkForUpdates?.(), + }, + { type: 'separator' }, { role: process.platform === 'win32' ? 'close' : 'window', label: `${t('Tray.Quit')} NethLink`, + icon: this.getMenuIcon('quit'), commandId: 2, enabled: enableShowButton ?? false, click: (_menuItem, _window, _event) => { AppController.safeQuit() }, }, - ] + ) if (isDev()) { menu.push({ role: 'window', label: 'DevTool', + icon: this.getMenuIcon('devtools'), commandId: 3, enabled: true, click: (menuItem, window, event) => { diff --git a/src/main/classes/windows/CommandBarWindow.ts b/src/main/classes/windows/CommandBarWindow.ts index 0c4746e3..d46efef2 100644 --- a/src/main/classes/windows/CommandBarWindow.ts +++ b/src/main/classes/windows/CommandBarWindow.ts @@ -17,7 +17,9 @@ export class CommandBarWindow extends BaseWindow { movable: false, resizable: false, skipTaskbar: true, - roundedCorners: true, + // the page draws its own rounded corners and border: the macOS mask has + // a larger radius and would cut the border at the corners + roundedCorners: false, parent: undefined, transparent: true, hiddenInMissionControl: true, diff --git a/src/main/classes/windows/LoginWindow.ts b/src/main/classes/windows/LoginWindow.ts index 8331dc6c..185bfdfb 100644 --- a/src/main/classes/windows/LoginWindow.ts +++ b/src/main/classes/windows/LoginWindow.ts @@ -4,6 +4,7 @@ import { BaseWindow } from './BaseWindow' import { LoginPageSize } from '@shared/constants' import { Log } from '@shared/utils/logger' import { debouncer } from '@shared/utils/utils' +import { syncDockWithWindows } from '@/lib/dock' export const LOGIN_WINDOW_WIDTH = 500 export class LoginWindow extends BaseWindow { @@ -74,6 +75,7 @@ export class LoginWindow extends BaseWindow { } async toggleVisibility() { + syncDockWithWindows() debouncer('loginToggleVisibility', async () => { TrayController.instance.updateTray({ enableShowButton: true, diff --git a/src/main/classes/windows/NethLinkWindow.ts b/src/main/classes/windows/NethLinkWindow.ts index 8310afb3..01e1a775 100644 --- a/src/main/classes/windows/NethLinkWindow.ts +++ b/src/main/classes/windows/NethLinkWindow.ts @@ -6,6 +6,7 @@ import { NethLinkPageSize } from '@shared/constants' import { Log } from '@shared/utils/logger' import { debouncer, delay } from '@shared/utils/utils' import { AccountController } from '../controllers' +import { syncDockWithWindows } from '@/lib/dock' export class NethLinkWindow extends BaseWindow { static instance: NethLinkWindow @@ -171,6 +172,8 @@ export class NethLinkWindow extends BaseWindow { } async toggleVisibility() { + // in the Dock and in Cmd+Tab while the window is open + syncDockWithWindows() debouncer('nethlinkToggleVisibility', async () => { await delay(250) TrayController.instance.updateTray({ diff --git a/src/main/lib/dock.ts b/src/main/lib/dock.ts new file mode 100644 index 00000000..f29e9e75 --- /dev/null +++ b/src/main/lib/dock.ts @@ -0,0 +1,19 @@ +import { app } from 'electron' +import { Log } from '@shared/utils/logger' +import { LoginController } from '@/classes/controllers/LoginController' +import { NethLinkController } from '@/classes/controllers/NethLinkController' + +// NethLink lives in the menu bar without a Dock icon. While the login or the +// main window is open, the icon is shown: without it macOS leaves the app out +// of the Dock and of Cmd+Tab +export function syncDockWithWindows() { + if (process.platform !== 'darwin' || !app.dock) return + const isAnyWindowOpen = + !!LoginController.instance?.window?.isOpen() || + !!NethLinkController.instance?.window?.isOpen() + if (isAnyWindowOpen && !app.dock.isVisible()) { + app.dock.show().catch((e) => Log.warning('cannot show the Dock icon', e)) + } else if (!isAnyWindowOpen && app.dock.isVisible()) { + app.dock.hide() + } +} diff --git a/src/main/lib/ipcEvents.ts b/src/main/lib/ipcEvents.ts index f42c4bd7..aed921fb 100644 --- a/src/main/lib/ipcEvents.ts +++ b/src/main/lib/ipcEvents.ts @@ -21,6 +21,7 @@ import { import { Log } from '@shared/utils/logger' import { NethLinkController } from '@/classes/controllers/NethLinkController' import { AppController } from '@/classes/controllers/AppController' +import { TrayController } from '@/classes/controllers/TrayController' import { store } from './mainStore' import { debouncer, getAccountUID, getPageFromQuery } from '@shared/utils/utils' import { NetworkController } from '@/classes/controllers/NetworkController' @@ -454,6 +455,8 @@ export function registerIpcEvents() { ipcMain.on(IPC_EVENTS.CHANGE_THEME, (_, theme) => { AccountController.instance.updateTheme(theme) + // the theme items of the tray menu + TrayController.instance?.refresh() }) ipcMain.on(IPC_EVENTS.PHONE_ISLAND_READY, () => { @@ -709,6 +712,17 @@ export function registerIpcEvents() { } }) + ipcMain.on(IPC_EVENTS.EMIT_QUEUE_MEMBER_UPDATE, (_, member) => { + try { + NethLinkController.instance.window.emit( + IPC_EVENTS.EMIT_QUEUE_MEMBER_UPDATE, + member, + ) + } catch (e) { + Log.error(e) + } + }) + ipcMain.on(IPC_EVENTS.EMIT_CALL_ACTIVE, (_) => { if (!hasActiveCall) { Log.info( diff --git a/src/main/main.ts b/src/main/main.ts index c746d1e5..e243ed52 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -1,5 +1,6 @@ import { app, + Notification, ipcMain, nativeTheme, powerMonitor, @@ -36,7 +37,16 @@ import { Log } from '@shared/utils/logger' import { NethLinkController } from './classes/controllers/NethLinkController' import { SplashScreenController } from './classes/controllers/SplashScreenController' import { delay, isDev } from '@shared/utils/utils' -import { IPC_EVENTS, GIT_RELEASES_URL } from '@shared/constants' +import { + IPC_EVENTS, + GIT_LATEST_RELEASE_URL, + GIT_RELEASES_URL, +} from '@shared/constants' +import { + findUpdate, + isTestingVersion, + ReleaseInfo, +} from '@shared/utils/version' import { NetworkController } from './classes/controllers/NetworkController' import { AppController } from './classes/controllers/AppController' import { @@ -180,6 +190,10 @@ async function startLocalization() { debug: isDev(), loadPath, }, + // the texts go to native notifications and menus, never to HTML + interpolation: { + escapeValue: false, + }, fallbackLng, debug: isDev(), } @@ -305,8 +319,15 @@ function attachOnReadyProcess() { app.on('activate', (e, isWindowOpen) => { Log.info('ACTIVATE WINDOW', e, isWindowOpen) - if (!isWindowOpen && !NethLinkController.instance.window.isOpen()) { - NethLinkController.instance.show() + if (isWindowOpen) return + // the Dock icon opens the window of the current state: NethLink when an + // account is signed in, the login otherwise + if (store.store?.account) { + if (!NethLinkController.instance?.window?.isOpen()) { + NethLinkController.instance?.show() + } + } else if (!LoginController.instance?.window?.isOpen()) { + LoginController.instance?.show() } }) SplashScreenController.instance.show() @@ -874,6 +895,8 @@ function changeNethlinkTheme() { } else { TrayController.instance?.changeIconByTheme(updatedSystemTheme) } + // the menu icons follow the system theme too + TrayController.instance?.refresh() } function attachThemeChangeListener() { @@ -994,6 +1017,9 @@ async function createNethLink(show: boolean = true) { await delay(1000) new PhoneIslandController() new ChatIslandController() + if (TrayController.instance) { + TrayController.instance.checkForUpdates = () => checkForUpdate(true) + } checkForUpdate() const account = store.get('account') as Account if (account) { @@ -1024,20 +1050,44 @@ async function createNethLink(show: boolean = true) { } } -async function checkForUpdate() { +// manual: asked from the tray menu, it says when there is nothing to update +async function checkForUpdate(manual = false) { try { - Log.info('Current app version:', app.getVersion(), 'check for updates...') - const latestVersionData = - await NetworkController.instance.get(GIT_RELEASES_URL) - Log.info('Head add version:', latestVersionData.name) - if (latestVersionData.name !== 'v' + app.getVersion() || isDev()) { - NethLinkController.instance.sendUpdateNotification() + const currentVersion = app.getVersion() + Log.info('Current app version:', currentVersion, 'check for updates...') + // a stable installation only needs the latest stable release, a testing + // one the last releases, testing ones included + const releases: ReleaseInfo[] = isTestingVersion(currentVersion) + ? await NetworkController.instance.get(GIT_RELEASES_URL) + : [await NetworkController.instance.get(GIT_LATEST_RELEASE_URL)] + const found = findUpdate(currentVersion, releases || []) + Log.info('Update found:', found?.tag_name || 'none') + const update = found + ? { version: found.tag_name.replace(/^v/, ''), url: found.html_url } + : undefined + TrayController.instance?.setUpdate(update) + if (update) { + NethLinkController.instance?.sendUpdateNotification(update) + } else if (manual) { + new Notification({ + title: i18next.t('Tray.Up to date title') as string, + body: i18next.t('Tray.Up to date description', { + version: currentVersion, + }) as string, + }).show() } } catch (error: any) { Log.warning( 'Skipping update check after network error', error?.message || error, ) + // a check asked from the menu always gets an answer + if (manual) { + new Notification({ + title: i18next.t('Tray.Update check failed title') as string, + body: i18next.t('Tray.Update check failed description') as string, + }).show() + } } } diff --git a/src/renderer/public/locales/en/translations.json b/src/renderer/public/locales/en/translations.json index f9705a1c..7e1a3da2 100644 --- a/src/renderer/public/locales/en/translations.json +++ b/src/renderer/public/locales/en/translations.json @@ -2,7 +2,17 @@ "Tray": { "Quit": "Quit", "Hide": "Hide", - "Show": "Show" + "Show": "Show", + "Theme": "Theme", + "System": "System", + "Light": "Light", + "Dark": "Dark", + "Check for updates": "Check for updates", + "Download version": "Download version {{version}}", + "Up to date title": "NethLink is up to date", + "Up to date description": "Version {{version}} is the latest one.", + "Update check failed title": "Cannot check for updates", + "Update check failed description": "Check the internet connection and try again." }, "Common": { "Showing": "Showing", @@ -87,7 +97,11 @@ "PlusOther_one": "+ {{count}} other", "PlusOther_other": "+ {{count}} others", "Copy": "Copy", - "Copied": "Copied" + "Copied": "Copied", + "Back": "Back", + "Clear search": "Clear search", + "Show password": "Show password", + "Hide password": "Hide password" }, "Login": { "Welcome": "Welcome", @@ -107,9 +121,7 @@ "Use Another Account": "Use another account", "New Account title": "Welcome", "New Account description": "Sign in to NethLink with your NethVoice CTI username and password.", - "Account List title": "Account list", - "Account List description": "Choose an account to continue to NethLink.", - "Delete account": "Are you sure you want to delete {{username}}?", + "Account List description": "The accounts you have used on this computer.", "Back": "Back", "User not authorized for NethLink": "User not authorized for NethLink", "Sign in with SSO": "Sign in with SSO", @@ -120,14 +132,23 @@ "OTP code": "OTP code", "OTP invalid": "The code you entered is invalid or has expired. Please check your authenticator app and try again.", "OTP verification failed": "OTP verification failed", - "Two-Factor Authentication": "Two-Factor Authentication", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code." + "Two-Factor Authentication": "Two-factor authentication", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.", + "Digit": "Digit {{number}}" }, - "Continue": "Continue" + "Continue": "Continue", + "Add account": "Add account", + "Host step description": "Enter the address of your NethVoice CTI.", + "Credentials description": "Sign in to {{host}} with your NethVoice CTI username and password.", + "Choose an account": "Choose an account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Remove account", + "Remove account description": "Account {{username}} will be removed from the list. You can sign in with it again at any time.", + "Remove": "Remove" }, "SplashScreen": { - "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to you phonebook and much more.", - "Initializing": "Initializing the application..." + "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to your phonebook and much more.", + "Initializing": "Initializing the application…" }, "Notification": { "contact_created_title": "Contact created!", @@ -209,8 +230,7 @@ "Edit contact": "Edit contact", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Create new contact", - "View details": "View details", + "View details": "Details", "Details": "Details", "No contacts found": "No contacts found", "Try changing your search": "Try changing your search", @@ -238,7 +258,10 @@ "Province": "Province", "Postal code": "Postal code", "Country": "Country", - "Social": "Social" + "Social": "Social", + "Details contact": "Details {{name}}", + "Search results": "Search results", + "No phone number": "No phone number" }, "History": { "History": "History", @@ -305,7 +328,8 @@ "Video call": "Video call", "Enable camera permission": "Enable camera permission", "Busy": "Busy", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Call {{number}}" }, "Applications": { "Applications": "Applications", @@ -346,7 +370,7 @@ "Refresh calls every": "Refresh calls every", "Load calls of last": "Load calls of last", "Cache cleared": "Cache cleared", - "Mobile App": "Mobile App", + "Mobile App": "Mobile app", "Generate QR code": "Generate QR code", "New QR code creation": "New QR code creation", "Generate": "Regenerate", @@ -379,14 +403,14 @@ "Upload image to continue": "Upload image to continue", "Wrong file type": "Wrong file type", "Delete profile picture": "Delete profile picture", - "Devices": "Audio and Video", - "IncomingCalls": "Incoming Calls", + "Devices": "Audio and video", + "IncomingCalls": "Incoming calls", "Notifications": "Notifications", "Ringtone": "Ringtone", "Time preferences": "Time preferences", - "Login/logout preferences": "Login/logout preferences", - "Logout from queue automatically": "Logout from queue automatically", - "Login from queue automatically": "Login from queue automatically", + "Login/logout preferences": "Sign-in and sign-out preferences", + "Logout from queue automatically": "Sign out of queues automatically", + "Login from queue automatically": "Sign in to queues automatically", "Pause from queue automatically": "Pause from queue automatically", "When you exit the app": "When you exit the app", "When you enter the app": "When you enter the app", @@ -395,9 +419,9 @@ "Do not disturb": "Do not disturb", "Available presence": "Available presence", "IP Phone": "IP Phone", - "Only nethlink": "Only Nethlink", - "ShortcutToCall": "Shortcut to Call", - "CommandBarShortcut": "Shortcut for Command Bar", + "Only nethlink": "Only NethLink", + "ShortcutToCall": "Shortcut to call", + "CommandBarShortcut": "Shortcut for the command bar", "NotificationsDescription": "Manage notifications for call features and AI-generated content.", "NotificationsScopeDescription": "Settings apply to web phone and desktop app.", "CallSummaryNotifications": "Call summary notifications", @@ -414,7 +438,6 @@ "Signed in as": "Signed in as", "Switch to light theme": "Switch to light theme", "Switch to dark theme": "Switch to dark theme", - "Logout": "Logout", "Make and receive phone calls": "Make and receive phone calls.", "Forward incoming calls to another phone number": "Forward incoming calls to another phone number.", "Do not disturb": "Do not disturb", @@ -429,22 +452,23 @@ "Voicemail": "Voicemail", "Mobile": "Mobile", "Cellphone": "Cellphone", - "Activate voicemail": "Activate voicemail", + "Activate voicemail": "Enable voicemail", "Go to NethVoice CTI": "Go to NethVoice CTI", "Pair device": "Pair device", "Theme": "Theme", "Settings": "Settings", "Shortcut": "Shortcut", - "Keyboard shortcut to call": "Keyboard shortcut to Call", - "Keyboard shortcut for command bar": "Keyboard shortcut for Command bar", "Shortcut title description": "Choose a keyboard shortcut to dial any selected number. ", - "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the Command Bar. To trigger it, press the shortcut twice in a row.", + "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the command bar. To trigger it, press the shortcut twice in a row.", "Shortcut subtitle description": "The shortcut must include at least one modifier key (Ctrl, Alt, Cmd). Avoid using system-reserved shortcuts.", "Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift. Single keys without a modifier (e.g. \"6\", \"R\") are not allowed.", - "Preferred devices": "Audio and Video settings", + "Preferred devices": "Audio and video settings", "Microphone": "Microphone", "Speaker": "Speaker", - "Camera": "Camera" + "Camera": "Camera", + "Sign out": "Sign out", + "Call shortcut title": "Keyboard shortcut to call", + "Command bar shortcut title": "Keyboard shortcut for the command bar" }, "OperatorDrawer": { "Book": "Book", @@ -473,99 +497,53 @@ }, "Queues": { "Queues": "Queues", - "Filter queues": "Filter queues", - "Login to all queues": "Login to all queues", - "Logout from all queues": "Logout from all queues", - "Pause on all queues": "Pause on all queues", - "End pause on all queues": "End pause on all queues", - "Collapse all queues": "Collapse all queues", - "Expand all queues": "Expand all queues", "No queues": "No queues", - "You are member of no queues": "You are member of no queues", - "Toggle favorite queue": "Toggle favorite queue", - "Total calls": "Total calls", "Waiting calls": "Waiting calls", - "Connected calls": "Connected calls", - "Active operators": "Active operators", - "Logged in": "Logged in", "On a break": "On a break", + "Max wait": "Max wait", + "Queue": "Queue", + "Operator": "Operator", + "Wait": "Wait", + "waiting_calls_count_zero": "No waiting calls", + "waiting_calls_count_one": "{{count}} waiting call", + "waiting_calls_count_other": "{{count}} waiting calls", + "active_of_total": "{{active}} of {{total}}", + "Static member description": "You are a static member of this queue and cannot log out.", + "Queue not changed description": "Queue {{name}} has not changed. Try again.", + "Some queues not changed description": "Some queues have not changed. Try again.", + "No queues description": "You are not a member of any queue.", + "Queues in CTI description": "Statistics and the calls of each queue are in NethVoice CTI.", + "Open NethVoice CTI": "Open NethVoice CTI", + "Operators": "Operators", + "Log in": "Log in", + "Log out": "Log out", + "Log in to queue": "Log in to {{name}}", + "Log out of queue": "Log out of {{name}}", + "Log in to all queues": "Log in to all queues", + "Log out of all queues": "Log out of all queues", + "Logged in": "Logged in", "Logged out": "Logged out", - "Logout": "Logout", + "Cannot log in to queue": "Cannot log in to queue", + "Cannot log out of queue": "Cannot log out of queue", + "Cannot log in to all queues": "Cannot log in to all queues", + "Cannot log out of all queues": "Cannot log out of all queues", + "Logged-in operators": "Logged-in operators", + "No logged-in operators": "No operators logged in", "Pause": "Pause", + "Pause queue": "Pause {{name}}", + "Pause all queues": "Pause all queues", "End pause": "End pause", + "End pause on queue": "End pause on {{name}}", + "End pause on all queues": "End pause on all queues", + "Break": "Break", "Lunch break": "Lunch break", "Emergency": "Emergency", "Backend": "Backend", - "Min wait": "Min wait", - "Max wait": "Max wait", - "Queue operators": "Queue operators", - "Cannot retrieve queues": "Cannot retrieve queues", - "No calls": "No calls", - "No operators": "No operators", - "Select a tab": "Select a tab", - "Queues management": "Queues management", - "Calls": "Calls", - "calls": "calls", - "Statistics": "Statistics", - "Cannot retrieve calls": "Cannot retrieve calls", - "Time": "Time", - "Queue": "Queue", - "Name": "Name", - "Company": "Company", - "Details": "Details", - "Outcome": "Outcome", - "outcome_ANSWERED": "Answered", - "outcome_BUSY": "Busy", - "outcome_FAILED": "Failed", - "outcome_NO ANSWER": "No answer", - "outcome_RINGNOANSWER": "No answer", - "outcome_ABANDON": "Abandon", - "outcome_DONE": "Managed", - "outcome_COMPLETEAGENT": "Managed", - "outcome_COMPLETECALLER": "Managed", - "outcome_CONNECT": "Connected", - "outcome_ENTERQUEUE": "Queued", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Exit with IVR", - "Not managed": "Not managed", - "Managed": "Managed", - "All": "All", - "Calls filters": "Calls filters", - "There are no recent calls with current filters": "There are no recent calls with current filters", - "Last update": "Last update", - "every_time_interval_seconds": "every {{ timeInterval }} seconds", - "Settings": "Settings", - "Cannot retrieve stats": "Cannot retrieve stats", - "Operator statistics": "Operator statistics", - "Queue statistics": "Queue statistics", - "Login": "Login", - "Last login": "Last login", - "Last logout": "Last logout", - "Answered calls": "Answered calls", - "Outgoing calls": "Outgoing calls", - "Missed calls": "Missed calls", - "From last call": "From last call", - "Time at phone": "Time at phone", - "Calls duration": "Calls duration", - "Minimum": "Minimum", - "Maximum": "Maximum", - "Average": "Average", - "Total incoming": "Total incoming", - "Total outgoing": "Total outgoing", - "Download stats": "Download stats", - "Logon time": "Logon time", - "Pause time": "Pause time", - "Pause on logon": "Pause on logon", - "No queue calls": "No queue calls", - "Call details": "Call details", - "Call management": "Call management", - "Duration": "Duration", - "Hold": "Hold", - "Operator": "Operator", - "Caller": "Caller", - "Wait": "Wait", - "Position": "Position", - "You are about to logout from the following queues": "You are about to logout from the following queues" + "Cannot pause queue": "Cannot pause queue", + "Cannot pause all queues": "Cannot pause all queues", + "Cannot end pause on queue": "Cannot end pause on queue", + "Cannot end pause on all queues": "Cannot end pause on all queues", + "All queues": "All queues" }, "Lines": { "Lines management": "Lines management", @@ -692,7 +670,7 @@ "Speed dial edit message": "You've just edited a speed dial: {{extensionWaiting}}", "Speed dial edited": "Speed dial edited", "Favourites": "Favourites", - "No favourites": "No favourites found", + "No favourites": "No favourites yet", "Order by": "Order by", "A-Z": "Alphabetic A-Z", "Z-A": "Alphabetic Z-A", @@ -709,13 +687,15 @@ "New chat": "New chat", "No conversations": "No conversations", "No messages yet": "No messages yet", - "members": "members", - "You": "You", "Delete": "Delete", "Leave": "Leave", "Delete confirm": "Delete the conversation with \"{{name}}\"? Your copy of the messages is removed.", "Delete group confirm": "Delete the group \"{{name}}\" for everyone? Its messages are removed for all members.", - "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed." + "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed.", + "Members count_one": "{{count}} member", + "Members count_other": "{{count}} members", + "Last message by you": "You: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Last calls", @@ -725,7 +705,10 @@ "Oldest": "Oldest", "Call": "Call", "Calls_one": "Call", - "Calls_other": "Calls" + "Calls_other": "Calls", + "Open history": "Open history", + "No calls yet": "No calls yet", + "New call": "New call" }, "NavBars": { "Speed dials": "Speed dials", @@ -927,7 +910,11 @@ "Parking": "Parking", "Hold": "Hold", "No parked call": "No parked calls found", - "Click and hold to take current parking in call": "Click and hold to take current parking in call" + "No parked calls": "No parked calls", + "Pick up call in parking": "Pick up the call in parking {{name}}", + "Press and hold to pick up": "Press and hold to pick up the call", + "Parking timeout soon": "The parking time is running out", + "Parking timeout very soon": "The parking time is almost over" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +992,17 @@ }, "About": { "title": "Information", - "current_version": "Current version: nethlink {{version}}", + "current_version": "Version {{version}}", "update_available": "Update available for download", - "download": "Download the update" + "NethLink by": "NethLink by {{company}}", + "Open download page": "Open download page", + "Version available": "Version {{version}} is available" }, "CommandBar": { - "Placeholder": "Search contact or dial number...", "Call": "Call", - "Chat hint": "Chat (Ctrl/⌘+Enter)" + "Chat hint": "Chat (Ctrl/⌘+Enter)", + "Search placeholder": "Search contacts or dial a number", + "Search results": "Search results" }, "ScreenShare": { "Title": "Share screen", @@ -1081,6 +1071,7 @@ "Change it now to keep using the application": "Change it now to keep using the application.", "Password expires on {{date}}": "Password expires on {{date}}", "Your password is no longer expired": "Your password is no longer expired: sign in with your current password.", - "Password change is not available right now": "Password change is not available right now. Try again later." + "Password change is not available right now": "Password change is not available right now. Try again later.", + "Change": "Change" } } diff --git a/src/renderer/public/locales/it/translations.json b/src/renderer/public/locales/it/translations.json index 84fbb3ab..a71a3ea9 100644 --- a/src/renderer/public/locales/it/translations.json +++ b/src/renderer/public/locales/it/translations.json @@ -2,7 +2,17 @@ "Tray": { "Quit": "Chiudi", "Hide": "Nascondi", - "Show": "Mostra" + "Show": "Mostra", + "Theme": "Tema", + "System": "Sistema", + "Light": "Chiaro", + "Dark": "Scuro", + "Check for updates": "Controlla aggiornamenti", + "Download version": "Scarica la versione {{version}}", + "Up to date title": "NethLink è aggiornato", + "Up to date description": "La versione {{version}} è la più recente.", + "Update check failed title": "Impossibile verificare gli aggiornamenti", + "Update check failed description": "Controlla la connessione a internet e riprova." }, "Common": { "Showing": "Mostrando", @@ -87,7 +97,11 @@ "PlusOther_one": "+ {{count}} altro", "PlusOther_other": "+ {{count}} altri", "Copy": "Copia", - "Copied": "Copiato" + "Copied": "Copiato", + "Back": "Indietro", + "Clear search": "Azzera ricerca", + "Show password": "Mostra password", + "Hide password": "Nascondi password" }, "Login": { "Welcome": "Benvenuto", @@ -107,9 +121,7 @@ "Use Another Account": "Usa un altro account", "New Account title": "Ti diamo il benvenuto", "New Account description": "Accedere a NethLink con il nome utente e la password di NethVoice CTI.", - "Account List title": "Account disponibili", - "Account List description": "Scegliete un account per proseguire con NethLink.", - "Delete account": "Sei sicuro di voler eliminare {{username}}?", + "Account List description": "Gli account che hai usato su questo computer.", "Back": "Indietro", "User not authorized for NethLink": "Utente non autorizzato per NethLink", "Sign in with SSO": "Accedi con SSO", @@ -120,14 +132,23 @@ "OTP code": "Codice OTP", "OTP invalid": "Il codice inserito non è valido o è scaduto. Controlla la tua app di autenticazione e riprova.", "OTP verification failed": "Verifica OTP fallita", - "Two-Factor Authentication": "Autenticazione a Due Fattori", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero." + "Two-Factor Authentication": "Autenticazione a due fattori", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero.", + "Digit": "Cifra {{number}}" }, - "Continue": "Continua" + "Continue": "Continua", + "Add account": "Aggiungi account", + "Host step description": "Inserisci l'indirizzo del tuo NethVoice CTI.", + "Credentials description": "Accedi a {{host}} con nome utente e password di NethVoice CTI.", + "Choose an account": "Scegli un account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Rimuovi account", + "Remove account description": "L'account {{username}} verrà rimosso dall'elenco. Potrai accedere di nuovo con questo account in qualsiasi momento.", + "Remove": "Rimuovi" }, "SplashScreen": { "Description": "Benvenuti in NethLink, la soluzione desktop per comunicazioni senza confini. Effettua e ricevi chiamate, salva i contatti nella tua rubrica e molto altro ancora.", - "Initializing": "Avvio applicazione..." + "Initializing": "Avvio dell'applicazione…" }, "Notification": { "contact_created_title": "Contatto creato!", @@ -209,8 +230,7 @@ "Edit contact": "Modifica contatto", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Crea nuovo contatto", - "View details": "Vedi dettagli", + "View details": "Dettagli", "Details": "Dettagli", "No contacts found": "Nessun contatto trovato", "Try changing your search": "Prova a modificare la ricerca", @@ -238,7 +258,10 @@ "Province": "Provincia", "Postal code": "CAP", "Country": "Nazione", - "Social": "Social" + "Social": "Social", + "Details contact": "Dettagli {{name}}", + "Search results": "Risultati della ricerca", + "No phone number": "Nessun numero di telefono" }, "History": { "History": "Storico", @@ -305,7 +328,8 @@ "Video call": "Videochiamata", "Enable camera permission": "Abilita il permesso della fotocamera", "Busy": "Occupato", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Chiama {{number}}" }, "Applications": { "Applications": "Applicazioni", @@ -379,14 +403,14 @@ "Upload image to continue": "Carica immagine per continuare", "Wrong file type": "Formato file errato", "Delete profile picture": "Elimina immagine profilo", - "Devices": "Audio e Video", - "IncomingCalls": "Chiamate in Arrivo", + "Devices": "Audio e video", + "IncomingCalls": "Chiamate in arrivo", "Notifications": "Notifiche", "Ringtone": "Suoneria", "Time preferences": "Preferenze di tempo", - "Login/logout preferences": "Preferenze di entrata/uscita", - "Logout from queue automatically": "Esci dalla coda automaticamente", - "Login from queue automatically": "Entra dalla coda automaticamente", + "Login/logout preferences": "Preferenze di accesso e uscita", + "Logout from queue automatically": "Esci dalle code automaticamente", + "Login from queue automatically": "Accedi alle code automaticamente", "Pause from queue automatically": "Pausa dalla coda automaticamente", "When you exit the app": "Quando esci dall'app", "When you enter the app": "Quando entri nell'app", @@ -395,9 +419,9 @@ "Do not disturb": "Non disturbare", "Available presence": "Presence disponibili", "IP Phone": "Telefono IP", - "Only nethlink": "Solo Nethlink", - "ShortcutToCall": "Scorciatoia per Chiamare", - "CommandBarShortcut": "Scorciatoia per Command Bar", + "Only nethlink": "Solo NethLink", + "ShortcutToCall": "Scorciatoia per chiamare", + "CommandBarShortcut": "Scorciatoia per la barra dei comandi", "NotificationsDescription": "Gestisci le notifiche per le funzioni di chiamata e i contenuti generati dall'AI.", "NotificationsScopeDescription": "Le impostazioni si applicano al web phone e all'app desktop.", "CallSummaryNotifications": "Notifica riassunto chiamata", @@ -414,7 +438,6 @@ "Signed in as": "Accesso effettuato come", "Switch to light theme": "Imposta tema chiaro", "Switch to dark theme": "Imposta tema scuro", - "Logout": "Disconnetti", "Make and receive phone calls": "Effettua e ricevi telefonate.", "Forward incoming calls to another phone number": "Inoltra le chiamate in entrata a un altro numero di telefono.", "Do not disturb": "Non disturbare", @@ -429,22 +452,23 @@ "Voicemail": "Voicemail", "Mobile": "Cellulare", "Cellphone": "Cellulare", - "Activate voicemail": "Attiva voicemail", + "Activate voicemail": "Abilita voicemail", "Go to NethVoice CTI": "Vai a NethVoice CTI", "Pair device": "Abbina dispositivo", "Theme": "Tema", "Settings": "Impostazioni", "Shortcut": "Scorciatoia", - "Keyboard shortcut to call": "Scorciatoia per chiamare", - "Keyboard shortcut for command bar": "Scorciatoia per Command Bar", "Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo.", "Command bar shortcut title description": "Scegli una combinazione di tasti per aprire o nascondere la Command Bar. Per attivarla, premi la scorciatoia due volte di seguito.", "Shortcut subtitle description": "La scorciatoia deve includere almeno un tasto modificatore (Ctrl, Alt, Cmd). Evita di usare scorciatoie già presenti nel sistema.", "Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift. I tasti singoli senza modificatore (es. \"6\", \"R\") non sono ammessi.", - "Preferred devices": "Impostazioni Audio e Video", + "Preferred devices": "Impostazioni audio e video", "Microphone": "Microfono", "Speaker": "Altoparlante", - "Camera": "Video" + "Camera": "Video", + "Sign out": "Esci", + "Call shortcut title": "Scorciatoia da tastiera per chiamare", + "Command bar shortcut title": "Scorciatoia da tastiera per la barra dei comandi" }, "OperatorDrawer": { "Book": "Prenota", @@ -473,99 +497,53 @@ }, "Queues": { "Queues": "Code", - "Filter queues": "Filtro code", - "Login to all queues": "Accesso a tutte le code", - "Logout from all queues": "Disconnessione da tutte le code", - "Pause on all queues": "Pausa su tutte le code", - "End pause on all queues": "Termina la pausa su tutte le code", - "Collapse all queues": "Chiudere tutte le code", - "Expand all queues": "Espandi tutte le code", "No queues": "Nessuna coda", - "You are member of no queues": "Non si è membri di nessuna coda", - "Toggle favorite queue": "Attiva/disattiva la coda preferita", - "Total calls": "Chiamate totali", "Waiting calls": "Chiamate in attesa", - "Connected calls": "Chiamate collegate", - "Active operators": "Operatori attivi", - "Logged in": "Connesso", "On a break": "In pausa", - "Logged out": "Disconnesso", - "Logout": "Logout", - "Pause": "Pausa", - "End pause": "Fine pausa", - "Lunch break": "Pausa pranzo", - "Emergency": "Emergenza", - "Backend": "Backend", - "Min wait": "Attesa minima", "Max wait": "Attesa massima", - "Queue operators": "Operatori di coda", - "Cannot retrieve queues": "Impossibile recuperare le code", - "No calls": "Nessuna chiamata", - "No operators": "Nessun operatore", - "Select a tab": "Selezionare una scheda", - "Queues management": "Gestione delle code", - "Calls": "Chiamate", - "calls": "Chiamate", - "Statistics": "Statistiche", - "Cannot retrieve calls": "Impossibile recuperare le chiamate", - "Time": "Tempo", "Queue": "In coda", - "Name": "Nome", - "Company": "Azienda", - "Details": "Dettagli", - "Outcome": "Esito", - "outcome_ANSWERED": "Risposte", - "outcome_BUSY": "Occupato", - "outcome_FAILED": "Fallite", - "outcome_NO ANSWER": "Nessuna risposta", - "outcome_RINGNOANSWER": "Nessuna risposta", - "outcome_ABANDON": "Abbandonata", - "outcome_DONE": "Gestita", - "outcome_COMPLETEAGENT": "Gestito", - "outcome_COMPLETECALLER": "Gestita", - "outcome_CONNECT": "Connesso", - "outcome_ENTERQUEUE": "In coda", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Uscita con IVR", - "Not managed": "Non gestito", - "Managed": "Gestito", - "All": "Tutto", - "Calls filters": "Filtri per le chiamate", - "There are no recent calls with current filters": "Non ci sono chiamate recenti con i filtri attuali", - "Last update": "Ultimo aggiornamento", - "every_time_interval_seconds": "ogni {{ timeInterval }} secondi", - "Settings": "Impostazioni", - "Cannot retrieve stats": "Impossibile recuperare le statistiche", - "Operator statistics": "Statistiche degli operatori", - "Queue statistics": "Statistiche di coda", - "Login": "Accedi", - "Last login": "Ultimo accesso", - "Last logout": "Ultimo logout", - "Answered calls": "Chiamate risposte", - "Outgoing calls": "Chiamate in uscita", - "Missed calls": "Chiamata persa", - "From last call": "Dall'ultima chiamata", - "Time at phone": "Tempo al telefono", - "Calls duration": "Durata delle chiamate", - "Minimum": "Minimo", - "Maximum": "Massimo", - "Average": "Media", - "Total incoming": "Totale in entrata", - "Total outgoing": "Totale in uscita", - "Download stats": "Scarica le statistiche", - "Logon time": "Tempo di accesso", - "Pause time": "Tempo di pausa", - "Pause on logon": "Pausa all'accesso", - "No queue calls": "Nessuna chiamata in coda", - "Call details": "Dettagli della chiamata", - "Call management": "Gestione delle chiamate", - "Duration": "Durata", - "Hold": "Trattieni", "Operator": "Operatore", - "Caller": "Chiamante", "Wait": "Attendere", - "Position": "Posizione", - "You are about to logout from the following queues": "Si sta per effettuare il logout dalle code seguenti" + "waiting_calls_count_zero": "Nessuna chiamata in attesa", + "waiting_calls_count_one": "{{count}} chiamata in attesa", + "waiting_calls_count_other": "{{count}} chiamate in attesa", + "active_of_total": "{{active}} su {{total}}", + "Static member description": "Sei un membro statico di questa coda e non puoi uscire.", + "Queue not changed description": "La coda {{name}} non è cambiata. Riprova.", + "Some queues not changed description": "Alcune code non sono cambiate. Riprova.", + "No queues description": "Non sei membro di nessuna coda.", + "Queues in CTI description": "Statistiche e chiamate di ogni coda sono in NethVoice CTI.", + "Open NethVoice CTI": "Apri NethVoice CTI", + "Operators": "Operatori", + "Log in": "Accedi", + "Log out": "Esci", + "Log in to queue": "Accedi a {{name}}", + "Log out of queue": "Esci da {{name}}", + "Log in to all queues": "Accedi a tutte le code", + "Log out of all queues": "Esci da tutte le code", + "Logged in": "Connesso", + "Logged out": "Non connesso", + "Cannot log in to queue": "Impossibile accedere alla coda", + "Cannot log out of queue": "Impossibile uscire dalla coda", + "Cannot log in to all queues": "Impossibile accedere a tutte le code", + "Cannot log out of all queues": "Impossibile uscire da tutte le code", + "Logged-in operators": "Operatori connessi", + "No logged-in operators": "Nessun operatore connesso", + "Pause": "Pausa", + "Pause queue": "Metti in pausa {{name}}", + "Pause all queues": "Pausa su tutte le code", + "End pause": "Termina pausa", + "End pause on queue": "Termina la pausa su {{name}}", + "End pause on all queues": "Termina la pausa su tutte le code", + "Break": "Pausa", + "Lunch break": "Pausa pranzo", + "Emergency": "Emergenza", + "Backend": "Backend", + "Cannot pause queue": "Impossibile mettere in pausa la coda", + "Cannot pause all queues": "Impossibile mettere in pausa tutte le code", + "Cannot end pause on queue": "Impossibile terminare la pausa sulla coda", + "Cannot end pause on all queues": "Impossibile terminare la pausa su tutte le code", + "All queues": "Tutte le code" }, "Lines": { "Lines management": "Gestione linee", @@ -692,7 +670,7 @@ "Speed dial edit message": "Hai appena modificato una chiamata rapida: {{estensioneAttesa}}", "Speed dial edited": "Chiamata rapida modificata", "Favourites": "Preferiti", - "No favourites": "Nessun preferito trovato", + "No favourites": "Ancora nessun preferito", "Order by": "Ordina per", "A-Z": "Alfabetico A-Z", "Z-A": "Alfabetico Z-A", @@ -709,13 +687,15 @@ "New chat": "Nuova chat", "No conversations": "Nessuna conversazione", "No messages yet": "Nessun messaggio", - "members": "membri", - "You": "Tu", "Delete": "Elimina", "Leave": "Abbandona", "Delete confirm": "Eliminare la conversazione con \"{{name}}\"? La tua copia dei messaggi viene rimossa.", "Delete group confirm": "Eliminare il gruppo \"{{name}}\" per tutti? I suoi messaggi vengono rimossi per tutti i membri.", - "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa." + "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa.", + "Members count_one": "{{count}} membro", + "Members count_other": "{{count}} membri", + "Last message by you": "Tu: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Ultime chiamate", @@ -725,7 +705,10 @@ "Oldest": "Meno recenti", "Call": "Chiama", "Calls_one": "Chiamata", - "Calls_other": "Chiamate" + "Calls_other": "Chiamate", + "Open history": "Apri cronologia", + "No calls yet": "Nessuna chiamata ancora", + "New call": "Nuova chiamata" }, "NavBars": { "Speed dial": "Chiamata rapida", @@ -927,7 +910,11 @@ "Parking": "Parcheggio", "Hold": "Tieni premuto", "No parked call": "Nessuna chiamata parcheggiata trovata", - "Click and hold to take current parking in call": "Clicca e tieni premuto per riprendere la chiamata parcheggiata" + "No parked calls": "Nessuna chiamata parcheggiata", + "Pick up call in parking": "Riprendi la chiamata nel parcheggio {{name}}", + "Press and hold to pick up": "Tieni premuto per riprendere la chiamata", + "Parking timeout soon": "Il tempo di parcheggio sta per scadere", + "Parking timeout very soon": "Il tempo di parcheggio è quasi scaduto" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +992,17 @@ }, "About": { "title": "Informazioni", - "current_version": "Versione corrente: nethlink {{version}}", + "current_version": "Versione {{version}}", "update_available": "Aggiornamento disponibile per il download", - "download": "Scarica l'aggiornamento" + "NethLink by": "NethLink di {{company}}", + "Open download page": "Apri la pagina di download", + "Version available": "È disponibile la versione {{version}}" }, "CommandBar": { - "Placeholder": "Cerca contatto o componi numero...", "Call": "Chiama", - "Chat hint": "Chat (Ctrl/⌘+Invio)" + "Chat hint": "Chat (Ctrl/⌘+Invio)", + "Search placeholder": "Cerca contatti o componi un numero", + "Search results": "Risultati della ricerca" }, "ScreenShare": { "Title": "Condividi schermo", @@ -1081,6 +1071,7 @@ "Change it now to keep using the application": "Cambiala ora per continuare a usare l'applicazione.", "Password expires on {{date}}": "La password scade il {{date}}", "Your password is no longer expired": "La password non è più scaduta: accedi con la password attuale.", - "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi." + "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi.", + "Change": "Cambia" } } diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index bd2911dc..08e9bdf2 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -1,3 +1,4 @@ +import classNames from 'classnames' import { Outlet, RouterProvider, createHashRouter } from 'react-router-dom' import { useInitialize } from '@/hooks/useInitialize' import { @@ -178,13 +179,28 @@ const Layout = ({ theme, page }: { theme?: AvailableThemes; page?: PAGES }) => { setIsCSSLoaded(true) } + // the theme also on , for what Headless UI moves to a portal in , + // such as the anchored menus; the islands keep their own theme handling + useEffect(() => { + if (page === PAGES.PHONEISLAND || page === PAGES.CHATISLAND) return + const root = document.documentElement + root.classList.remove('dark', 'light') + if (theme) root.classList.add(theme) + }, [theme, page]) + if (!isCSSLoaded) { return
} return ( <> -
+
diff --git a/src/renderer/src/components/EmptyList.tsx b/src/renderer/src/components/EmptyList.tsx index 6b8197b8..8d587d6e 100644 --- a/src/renderer/src/components/EmptyList.tsx +++ b/src/renderer/src/components/EmptyList.tsx @@ -1,6 +1,5 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import classNames from 'classnames' import { TimedComponent } from './TimedComponent' export interface EmptyListProps { @@ -11,20 +10,18 @@ export interface EmptyListProps { export const EmptyList = ({ icon, text, subtitle }: EmptyListProps) => { return ( -
-
- -
-
- +
+