From 19a02efd21dfb8d0ca9f00fb6bbf8a223fb61186 Mon Sep 17 00:00:00 2001 From: Mats Date: Sun, 1 Dec 2024 20:14:02 +0100 Subject: [PATCH] more translation fixes --- client/public/en.lang | 4 +- client/src/components/voice/VoicePeerBox.jsx | 42 +++++++++----------- client/src/components/voice/ui/NoPeers.jsx | 19 +++++---- 3 files changed, 30 insertions(+), 35 deletions(-) diff --git a/client/public/en.lang b/client/public/en.lang index 7f02f93993..4b75a43a15 100644 --- a/client/public/en.lang +++ b/client/public/en.lang @@ -77,7 +77,7 @@ vc.empty.description=Voice chat is more fun together! Here's how you can connect vc.empty.move.title=Move closer to other players vc.empty.move.description=Voice chat works based on proximity. Find and approach other players! vc.empty.channel.title=Join a voice chat channel -vc.empty.channel.description=Some servers have voice chat channels. Check if there's a channel you can join! do "/channel list" to see all available channels. +vc.empty.channel.description=Some servers have voice chat channels. Check if there's a channel you can join! vc.empty.invite.title=Invite your friends vc.empty.invite.description=Let others know about voice chat - they might not have enabled it yet! vc.muteMicrophone=Mute @@ -96,6 +96,7 @@ vc.youAreModerating=Watch out! you are now a moderator, you can now hear everyon vc.noMicInputYetTitle=We're having trouble hearing you! vc.noMicInputYetBody=Please make sure that you have the correct microphone selected, or try lowering your noise gate. vc.peersHiddenTitle=Voicechat players are hidden +vc.peersHiddenTitle=Server privacy setting vc.peersHiddenText=This server has disabled the ability to see who is in voice chat to prevent unfair advantages, you can still hear them though. vc.isTalking=is talking vc.people=people @@ -117,6 +118,7 @@ vc.channel.leaveCurrentFirst=Leave Current Channel First vc.channel.noPermissions=No permissions vc.channel.join=Join Channel + settings.voicechat.echocancel.title=Echo cancellation settings.voicechat.echocancel.body=This will attempt to cancel out any echo that your microphone picks up, this is useful if you're using speakers instead of headphones but may make your harder to hear on some platforms. settings.voicechat.echocancel.button=Enable echo cancellation diff --git a/client/src/components/voice/VoicePeerBox.jsx b/client/src/components/voice/VoicePeerBox.jsx index 0f2ec3fa57..0514491249 100644 --- a/client/src/components/voice/VoicePeerBox.jsx +++ b/client/src/components/voice/VoicePeerBox.jsx @@ -1,6 +1,7 @@ import React from 'react'; import { connect } from 'react-redux'; import { Tooltip } from 'react-tooltip'; +import { Info } from 'lucide-react'; import { VoicePeerRow } from './VoicePeerRow'; import { msg } from '../../client/OpenAudioAppContainer'; import EmptyVoiceState from './ui/NoPeers'; @@ -38,31 +39,24 @@ function VoicePeerBox(props) { if (shouldBeHidden) { return ( -
-
{peerMessage}
-
-
+
+
+

+ {msg('vc.peersHiddenTitle')} +

-
-
-
- - - -
-
-

{msg('vc.peersHiddenTitle')}

-

{msg('vc.peersHiddenText')}

-
+
+
+
+ +
+
+

+ {msg('vc.peersHiddenTitle')} +

+

+ {msg('vc.peersHiddenText')} +

diff --git a/client/src/components/voice/ui/NoPeers.jsx b/client/src/components/voice/ui/NoPeers.jsx index 130c73bf82..5938b592f0 100644 --- a/client/src/components/voice/ui/NoPeers.jsx +++ b/client/src/components/voice/ui/NoPeers.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { Users, ArrowRight, Radio, MapPin, } from 'lucide-react'; +import { msg } from '../../../client/OpenAudioAppContainer'; function EmptyVoiceState() { return ( @@ -37,33 +38,31 @@ function EmptyVoiceState() {

- Looking for Someone? + {msg('vc.empty.title')}

- {/* eslint-disable-next-line react/no-unescaped-entities */} - Voice chat is more fun together! Here's how you can connect with others: + {msg('vc.empty.description')}

{/* Action Cards */}
} /> } - onClick={() => window.open('https://openaudiomc.net/docs/channels', '_blank')} isLink /> } />