Skip to content

Commit 24beafa

Browse files
committed
fix: improved translations
1 parent 34fc8b5 commit 24beafa

File tree

6 files changed

+35
-23
lines changed

6 files changed

+35
-23
lines changed

public/locales/en/translations.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
"Upload image to continue": "Upload image to continue",
322322
"Wrong file type": "Wrong file type",
323323
"Delete profile picture": "Delete profile picture",
324-
"Devices": "Devices",
324+
"Devices": "Audio and Video",
325325
"Time preferences": "Time preferences",
326326
"Login/logout preferences": "Login/logout preferences",
327327
"Logout from queue automatically": "Logout from queue automatically",
@@ -367,9 +367,9 @@
367367
"Shortcut": "Shortcut",
368368
"Keyboard shortcut to call": "Keyboard shortcut to call",
369369
"Shortcut title description": "Choose a keyboard shortcut to dial any selected number. ",
370-
"Shortcut subtitle description": "Warning: avoid using system-reserved shortcuts.",
370+
"Shortcut subtitle description": "Avoid using system-reserved shortcuts.",
371371
"Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift",
372-
"Preferred devices": "Preferred devices",
372+
"Preferred devices": "Audio and Video settings",
373373
"Microphone": "Microphone",
374374
"Speaker": "Speaker",
375375
"Camera": "Camera"
@@ -898,7 +898,7 @@
898898
"Keys configuration information tooltip": "Configure line keys of your physical device",
899899
"Key position information tooltip": "Choose a position for your key",
900900
"Click on confirm": "Click on Confirm",
901-
"Inline warning message devices": "Changes to audio and video settings can only be applied if the main device is set to Web Phone, and your status is online."
901+
"Inline warning message devices": "Changes to audio and video settings can only be applied if the pair device is set to NethLink and your status is Online."
902902
},
903903
"DropdownContent": {
904904
"Microphones": "MICROPHONES",

public/locales/it/translations.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
"Upload image to continue": "Carica immagine per continuare",
322322
"Wrong file type": "Formato file errato",
323323
"Delete profile picture": "Elimina immagine profilo",
324-
"Devices": "Dispositivi",
324+
"Devices": "Audio e Video",
325325
"Time preferences": "Preferenze di tempo",
326326
"Login/logout preferences": "Preferenze di entrata/uscita",
327327
"Logout from queue automatically": "Esci dalla coda automaticamente",
@@ -367,9 +367,9 @@
367367
"Shortcut": "Scorciatoia",
368368
"Keyboard shortcut to call": "Scorciatoia per chiamare",
369369
"Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo.",
370-
"Shortcut subtitle description": "Attenzione: non usare scorciatoie già presenti nel sistema.",
370+
"Shortcut subtitle description": "Non usare scorciatoie già presenti nel sistema.",
371371
"Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift",
372-
"Preferred devices": "Dispositivi preferiti",
372+
"Preferred devices": "Impostazioni Audio e Video",
373373
"Microphone": "Microfono",
374374
"Speaker": "Altoparlante",
375375
"Camera": "Video"
@@ -898,7 +898,7 @@
898898
"Keys configuration information tooltip": "Configura i tasti linea del tuo telefono",
899899
"Key position information tooltip": "Scegli una posizione per il pulsante",
900900
"Click on confirm": "Clicca su Conferma",
901-
"Inline warning message devices": "Le modifiche relative alle impostazioni audio e video possono essere applicate solo se il dispositivo principale è impostato su Web Phone, e il proprio stato è online."
901+
"Inline warning message devices": "Le modifiche relative alle impostazioni audio e video possono essere applicate solo se il dispositivo abbinato è NethLink e il proprio stato è Online."
902902
},
903903
"DropdownContent": {
904904
"Microphones": "MICROFONI",

src/renderer/public/locales/en/translations.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
"Upload image to continue": "Upload image to continue",
322322
"Wrong file type": "Wrong file type",
323323
"Delete profile picture": "Delete profile picture",
324-
"Devices": "Devices",
324+
"Devices": "Audio and Video",
325325
"Time preferences": "Time preferences",
326326
"Login/logout preferences": "Login/logout preferences",
327327
"Logout from queue automatically": "Logout from queue automatically",
@@ -367,9 +367,9 @@
367367
"Shortcut": "Shortcut",
368368
"Keyboard shortcut to call": "Keyboard shortcut to call",
369369
"Shortcut title description": "Choose a keyboard shortcut to dial any selected number. ",
370-
"Shortcut subtitle description": "Warning: avoid using system-reserved shortcuts.",
370+
"Shortcut subtitle description": "Avoid using system-reserved shortcuts.",
371371
"Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift",
372-
"Preferred devices": "Preferred devices",
372+
"Preferred devices": "Audio and Video settings",
373373
"Microphone": "Microphone",
374374
"Speaker": "Speaker",
375375
"Camera": "Camera"
@@ -898,7 +898,7 @@
898898
"Keys configuration information tooltip": "Configure line keys of your physical device",
899899
"Key position information tooltip": "Choose a position for your key",
900900
"Click on confirm": "Click on Confirm",
901-
"Inline warning message devices": "Changes to audio and video settings can only be applied if the main device is set to Web Phone, and your status is online."
901+
"Inline warning message devices": "Changes to audio and video settings can only be applied if the pair device is set to NethLink and your status is Online."
902902
},
903903
"DropdownContent": {
904904
"Microphones": "MICROPHONES",

src/renderer/public/locales/it/translations.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
"Upload image to continue": "Carica immagine per continuare",
322322
"Wrong file type": "Formato file errato",
323323
"Delete profile picture": "Elimina immagine profilo",
324-
"Devices": "Dispositivi",
324+
"Devices": "Audio e Video",
325325
"Time preferences": "Preferenze di tempo",
326326
"Login/logout preferences": "Preferenze di entrata/uscita",
327327
"Logout from queue automatically": "Esci dalla coda automaticamente",
@@ -367,9 +367,9 @@
367367
"Shortcut": "Scorciatoia",
368368
"Keyboard shortcut to call": "Scorciatoia per chiamare",
369369
"Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo.",
370-
"Shortcut subtitle description": "Attenzione: non usare scorciatoie già presenti nel sistema.",
370+
"Shortcut subtitle description": "Non usare scorciatoie già presenti nel sistema.",
371371
"Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift",
372-
"Preferred devices": "Dispositivi preferiti",
372+
"Preferred devices": "Impostazioni Audio e Video",
373373
"Microphone": "Microfono",
374374
"Speaker": "Altoparlante",
375375
"Camera": "Video"
@@ -898,7 +898,7 @@
898898
"Keys configuration information tooltip": "Configura i tasti linea del tuo telefono",
899899
"Key position information tooltip": "Scegli una posizione per il pulsante",
900900
"Click on confirm": "Clicca su Conferma",
901-
"Inline warning message devices": "Le modifiche relative alle impostazioni audio e video possono essere applicate solo se il dispositivo principale è impostato su Web Phone, e il proprio stato è online."
901+
"Inline warning message devices": "Le modifiche relative alle impostazioni audio e video possono essere applicate solo se il dispositivo abbinato è NethLink e il proprio stato è Online."
902902
},
903903
"DropdownContent": {
904904
"Microphones": "MICROFONI",

src/renderer/src/components/Modules/NethVoice/BaseModule/ProfileDialog/SettingsSettings/SettingsDevicesDialog.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ export function SettingsDeviceDialog() {
229229
onBackdropClick={() => setIsDeviceDialogOpen(false)}
230230
/>
231231

232-
<div className='absolute top-0 left-0 w-screen h-screen flex justify-center items-center z-[205] pointer-events-none'>
233-
<div className='bg-bgLight dark:bg-bgDark text-bgDark dark:text-bgLight rounded-xl shadow-lg max-w-sm w-[90%] pointer-events-auto'>
232+
<div className='fixed inset-0 z-[205] overflow-y-auto pointer-events-none'>
233+
<div className='flex min-h-full items-center justify-center p-4 pointer-events-none'>
234+
<div className='bg-bgLight dark:bg-bgDark text-bgDark dark:text-bgLight rounded-xl shadow-lg max-w-sm w-full pointer-events-auto'>
234235
{/* Dialog content */}
235236
<div className='p-6 flex flex-col gap-4'>
236237
{/* Title */}
@@ -281,6 +282,7 @@ export function SettingsDeviceDialog() {
281282
</form>
282283
</div>
283284
</div>
285+
</div>
284286
</div>
285287
</>
286288
)

src/renderer/src/components/Modules/NethVoice/BaseModule/ProfileDialog/SettingsSettings/SettingsShortcutDialog.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Backdrop } from '../../Backdrop'
1010
import { CustomThemedTooltip } from '@renderer/components/Nethesis/CurstomThemedTooltip'
1111
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
1212
import { faXmark } from '@fortawesome/free-solid-svg-icons'
13+
import { InlineNotification } from '@renderer/components/Nethesis/InlineNotification'
1314

1415
export function SettingsShortcutDialog() {
1516
const [account, setAccount] = useSharedState('account')
@@ -133,7 +134,8 @@ export function SettingsShortcutDialog() {
133134
onBackdropClick={() => setIsShortcutDialogOpen(false)}
134135
/>
135136

136-
<div className='absolute top-0 left-0 w-screen h-screen flex justify-center items-center z-[205] pointer-events-none'>
137+
<div className='fixed inset-0 z-[205] overflow-y-auto pointer-events-none'>
138+
<div className='flex min-h-full items-center justify-center p-4 pointer-events-none'>
137139
<div className='bg-bgLight dark:bg-bgDark text-bgDark dark:text-bgLight rounded-xl shadow-lg max-w-sm w-[90%] pointer-events-auto'>
138140
{/* Dialog content */}
139141
<div className='p-6 flex flex-col gap-4'>
@@ -146,9 +148,16 @@ export function SettingsShortcutDialog() {
146148
<p className='text-center text-gray-600 dark:text-gray-300'>
147149
{t('TopBar.Shortcut title description')}{' '}
148150
</p>
149-
<p className='text-center font-semibold text-gray-600 dark:text-gray-300 leading-5 mt-[-0.3rem]'>
150-
{t('TopBar.Shortcut subtitle description')}{' '}
151-
</p>
151+
{/* Inline notification */}
152+
{(
153+
<InlineNotification
154+
title={t('Common.Warning')}
155+
type='warning'
156+
className=''
157+
>
158+
<p>{t('TopBar.Shortcut subtitle description')}</p>
159+
</InlineNotification>
160+
)}
152161

153162
{/* Form */}
154163
<form
@@ -174,7 +183,7 @@ export function SettingsShortcutDialog() {
174183
<Button
175184
variant='ghost'
176185
onClick={handleClearShortcut}
177-
className='mt-1'
186+
className='mt-3'
178187
size='inputSize'
179188
data-tooltip-id='tooltip-clear-shortcut'
180189
data-tooltip-content={t(
@@ -219,6 +228,7 @@ export function SettingsShortcutDialog() {
219228
</form>
220229
</div>
221230
</div>
231+
</div>
222232
</div>
223233
</>
224234
)

0 commit comments

Comments
 (0)