Skip to content

Commit

Permalink
Fix small styling changes (#164)
Browse files Browse the repository at this point in the history
Added 5 pixel to room name input box so logo is no longer mixing with the label.
Updated tranlsations that were not in the language files + created script to look for occurances. (also added some missing hu translations)
Update labels for media device chooser, it is no longer mixing with the shadow of the media device preview.
  • Loading branch information
N7Remus authored Nov 8, 2023
1 parent 7064fa6 commit 35a6a84
Show file tree
Hide file tree
Showing 25 changed files with 241 additions and 32 deletions.
11 changes: 11 additions & 0 deletions checkmissing_translations.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
results=$(grep -r 'id:' ./src/components/translated/translatedComponents.tsx | cut -d "'" -f 2 | awk '!a[$0]++')

for result in $results; do
files_with_result=$(grep -rl "$result" ./src/translations/)
if [ -z "$files_with_result" ]; then
echo "Result '$result' not found in any files"
#else
# echo "Result '$result' found in the following file(s):"
# echo "$files_with_result"
fi
done
16 changes: 8 additions & 8 deletions src/components/devicechooser/DeviceChooser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export const ChooserDiv = styled('div')(({ theme }) => ({
margin: theme.spacing(2, 0)
}));

export const StyledInputLabel = styled(InputLabel)(({ theme }) => ({
padding: theme.spacing(0, 0.5),
backgroundColor: 'white',
}));

const DeviceChooser = ({
value,
setValue,
Expand All @@ -41,12 +36,17 @@ const DeviceChooser = ({
disabled,
devices,
}: DeviceChooserProps): JSX.Element => {
const label = devices.length ? devicesLabel : noDevicesLabel;
const labelId = new Date().getUTCMilliseconds();

return (
<FormControl variant='outlined' fullWidth>
<StyledInputLabel>
{ devices.length ? devicesLabel : noDevicesLabel }
</StyledInputLabel>
<InputLabel id={`device-simple-select-helper-label-${labelId}`}>
{ label }
</InputLabel>
<Select
labelId={`device-simple-select-helper-label-${labelId}`}
label={label}
value={devices.length ? (value || '') : ''}
onChange={(event) => {
if (event.target.value)
Expand Down
2 changes: 1 addition & 1 deletion src/components/genericdialog/GenericDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const GenericDialog = ({
<StyledDialogTitle>
{ title }
</StyledDialogTitle>
<StyledDialogContent>
<StyledDialogContent style={{ paddingTop: 5 }}>
{ content }
</StyledDialogContent>
<StyledDialogActions>
Expand Down
11 changes: 10 additions & 1 deletion src/translations/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/dk.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"tooltip.unMuteScreenSharing": "Unmute screen share",
"unsupportedBrowser.bodyText": "This meeting service requires a functionality that is not supported by your browser. Please upgrade, or switch to a different browser or check your settings. Supported browsers:",
"unsupportedBrowser.titleUnsupportedBrowser": "Detected unsupported browser!",
"unsupportedBrowser.titlewebrtcUnavailable": "Required functionality not available in your browser!"
"unsupportedBrowser.titlewebrtcUnavailable": "Required functionality not available in your browser!",
"room.errorJoiningRoom": "Error while joining the room",
"device.shareScreen": "Share screen",
"filesharing.downloadError": "Download failed",
"settings.lastN": "Visible participants",
"settings.confirmOnExit": "Confirm on exit",
"svc.mgmtUnavailable": "Management service: Unavailable",
"svc.mediaNodeUnavailable": "Media-node service: Unavailable",
"svc.mediaConnectionNodeError": "Media-node service: Connection error",
"svc.mediaConnectionNodeSuccess": "Media-Node service: Got connection"
}
11 changes: 10 additions & 1 deletion src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
13 changes: 11 additions & 2 deletions src/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"settings.notificationSounds": "Értesítések hangjelzéssel",
"settings.opusDtx": "Engedélyezze az Opus szakaszos átvitelt (DTX)",
"settings.opusFec": "Engedélyezze az Opus továbbítási hibajavítást (FEC)",
"settings.opusPtime": "Válassza ki az Opus időkeret méretét",
"settings.opusPtime": "Válaszd ki az Opus időkeret méretét",
"settings.permanentTopBar": "Állandó felső sáv",
"settings.recordingsPreferredMimeType": "Válaszd ki felvételhez használandó média típust",
"settings.resolution": "Válaszd ki a videoeszközöd felbontását",
Expand Down Expand Up @@ -268,5 +268,14 @@
"settings.backgroundBlur": "Háttér elmosás",
"settings.blurBackgroundNotSupported": "A háttér elmosás nem támogatott",
"settings.enableBlurBackground": "Háttér elmosás engedélyezése",
"settings.tryToLoadAudioDevices": "Audioeszközök betöltése"
"settings.tryToLoadAudioDevices": "Audioeszközök betöltése",
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": "Látható résztvevők",
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/kk.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/lv.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"unsupportedBrowser.titlewebrtcUnavailable": "Funksjonalitet som kreves er ikke tilgjengelig i denne nettleseren",
"settings.tryToLoadAudioDevices": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
11 changes: 10 additions & 1 deletion src/translations/tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,14 @@
"settings.tryToLoadAudioDevices": null,
"settings.backgroundBlur": null,
"settings.enableBlurBackground": null,
"settings.blurBackgroundNotSupported": null
"settings.blurBackgroundNotSupported": null,
"room.errorJoiningRoom": null,
"device.shareScreen": null,
"filesharing.downloadError": null,
"settings.lastN": null,
"settings.confirmOnExit": null,
"svc.mgmtUnavailable": null,
"svc.mediaNodeUnavailable": null,
"svc.mediaConnectionNodeError": null,
"svc.mediaConnectionNodeSuccess": null
}
Loading

0 comments on commit 35a6a84

Please sign in to comment.