From 119681cf7c6de8911efd4286a4cf59cb71df398d Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Fri, 27 Sep 2024 16:18:39 +0200 Subject: [PATCH] Add dashboard localization --- .github/workflows/Locales.yml | 7 +- dashboard/wivrn_en.ts | 635 ++++++++++++++++++++++++++++++++++ dashboard/wivrn_fr.ts | 635 ++++++++++++++++++++++++++++++++++ tools/check_messages.sh | 22 +- tools/update_messages.sh | 2 + 5 files changed, 1298 insertions(+), 3 deletions(-) create mode 100644 dashboard/wivrn_en.ts create mode 100644 dashboard/wivrn_fr.ts diff --git a/.github/workflows/Locales.yml b/.github/workflows/Locales.yml index 48a1ef4e..47d94382 100644 --- a/.github/workflows/Locales.yml +++ b/.github/workflows/Locales.yml @@ -9,7 +9,10 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies - run: sudo apt-get update && sudo apt-get install gettext + run: sudo apt-get update && sudo apt-get install gettext qt6-base-dev qt6-tools-dev qt6-l10n-tools - name: Check that .po files are up to date - run: tools/check_messages.sh + run: | + qtchooser -install qt6 $(which qmake6) + export QT_SELECT=qt6 + tools/check_messages.sh diff --git a/dashboard/wivrn_en.ts b/dashboard/wivrn_en.ts new file mode 100644 index 00000000..8207c4e3 --- /dev/null +++ b/dashboard/wivrn_en.ts @@ -0,0 +1,635 @@ + + + + + MainWindow + + + Start + Start + + + + Stop + Stop + + + + Settings + Settings + + + + For Steam games, set the command to: + For Steam games, set command to: + For Steam games, set command to: + + + + Copy to clipboard + Copy to clipboard + + + + Disconnect + Disconnect + + + + Field of view + Field of view + + + + Microphone + Microphone + + + + Speaker + Speaker + + + + WiVRn dashboard + WiVRn dashboard + + + + Server status + Server + Server status + + + + Stopped + Stopped + + + + Running + Running + + + + Eye gaze tracking + Eye gaze tracking + + + + Hand tracking + Hand tracking + + + + Supported codecs + Supported codecs + + + + Face tracking + Face tracking + + + + Available refresh rates + Available refresh rates + + + + Eye resolution + Eye resolution + + + + Preferred refresh rate + Preferred refresh rate + + + + &Exit + &Exit + + + + &Show + &Show + + + + Headset status + Headset status + + + + Wizard + Wizard + + + + Details + Details + + + + About + About + + + + Exit + Exit + + + + &Hide + &Hide + + + + QObject + + + WiVRn dashboard + WiVRn dashboard + + + + QWizard + + + &Next > + do not translate, the QWizard translation will be used + + + + + Settings + + + Settings + Settings + + + + Bitrate: + Bi&trate: + Bitrate: + + + + Foveation strength: + Foveation strength: + + + + nvenc (NVIDIA GPUs) + nvenc (NVIDIA GPUs) + + + + vaapi (AMD and Intel GPUs) + vaapi (AMD and Intel GPUs) + + + + x264 (software encoding) + x264 (software encoding) + + + + Encoder configuration: + Encoder configuration: + + + + Manual + Encoder + Manual + + + + Manual + Foveation + Manual + + + <html><head/><body><p>A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games.</p><p>A weaker foveation gives a uniform sharpness in the whole image.</p><p>The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking.</p></body></html> + <html><head/><body><p>A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games.</p><p>A weaker foveation gives a uniform sharpness in the whole image.</p><p>The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking.</p></body></html> + + + + Weaker + Weaker + + + + Stronger + Stronger + + + + Encoder + Encoder + + + + + Auto + Auto + + + + Automatic + Encoder + Automatic + + + + A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games. + +A weaker foveation gives a uniform sharpness in the whole image. + +The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking. + A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games. + +A weaker foveation gives a uniform sharpness in the whole image. + +The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking. + + + + Automatic + Foveation + Automatic + + + + WiVRn settings + WiVRn settings + + + + Codec + Codec + + + + Mbit/s + Mbit/s + + + + You can use several encoders in order to split the workload between your CPU and your GPU and reduce the latency. + You can use several encoders in order to split the workload between your CPU and your GPU and reduce the latency. + + + + % + % + + + + Wizard + + + Connection wizard + Connection wizard + + + + Welcome + Welcome + + + + Select your headset + Select your headset + + + + Install the WiVRn app on your headset + Install the WiVRn app on your headset + + + + You will need to have the WiVRn client installed on your headset. If the client is already installed, click "Skip". + You will need to have the WiVRn client installed on your headset. + You will need to have the WiVRn client installed on your headset. If the client is already installed, click "Skip". + + + + I want to sideload the client instead + I want to sideload the client instead + + + + Go to the store to install the client app on your headset. + Go to the store to install the client app on your headset. + + + Once this is done, click "Next". + Once this is done, click next. + Once this is done, click next. + + + + Downloading the WiVRn app + Downloading the WiVRn app + + + + Cancel + Cancel + + + + Downloading + Downloading + + + + Make sure your headset is in developer mode to continue. + Make sure your headset is in developer mode to continue. + + + + Run the following command to install the client: + Run the following command to install the client + Run the following command to install the client: + + + + + Copy to clipboard + Copy to clipboard + + + + Start the WiVRn app and connect to this computer + Start the WiVRn app and connect to this computer + + + + If the server is not visible or the connection fails, check that port 5353 (UDP) and 9757 (TCP and UDP) are open in your firewall. + If the server is not visible or the connection fails, check that port 5353 (UDP) and 9757 (TCP and UDP) are open in your firewall. + + + + Finished + Finished + + + + You can now start an OpenXR application on this computer. + You can now start an OpenXR application on this computer. + + + + For Steam games, set the command to: + For Steam games, set command to: + + + + main_window + + + &Show GUI + &Show GUI + + + + &Hide GUI + &Hide GUI + + + + &Exit + &Exit + + + + %1 ⨯ %2 + %1 ⨯ %2 + + + + + %1 Hz + %1 Hz + + + + + + Supported + Supported + + + + + + Not supported + Not supported + + + + Left eye: %1° ⨯ %2°, right eye: %3° ⨯ %4° + Left eye: %1° ⨯ %2°, right eye: %3° ⨯ %4° + + + + + %n channel(s), %1 Hz + %1 channel(s), %2 Hz + + %n channel, %1 Hz + %n channels, %1 Hz + + + + + + N/A + N/A + + + WiVRn + WiVRn + + + + Failed to start + Failed to start + + + + Crashed + Crashed + + + + Time out + Time out + + + + Read error + Read error + + + + Write error + write error + Write error + + + + Unknown error + Unknown error + + + Server error + Server error + + + + Failed to start server: +%1 + Failed to start server: +%1 + + + + Unknown error (%1), check logs + Unknown error (%1), check logs + + + + Start the WiVRn app on your headset and connect to "%1". + Start the WiVRn app on your headset and connect to "%1". + + + + If the server is not visible or the connection fails, check that port 5353 (UDP) and 9757 (TCP and UDP) are open in your firewall. + If the server is not visible or the connection fails, check that port 5353 (UDP) and 9757 (TCP and UDP) are open in your firewall. + + + + Connected + Connected + + + + Not connected + Not connected + + + + Cannot connect to avahi, make sure avahi-daemon service is started + Cannot connect to avahi, make sure avahi_daemon.service is started + Cannot connect to avahi, make sure avahi-daemon service is started + + + + Insufficient system resources + Insufficient system resources + + + + Server crashed: +%1 + Server crashed: +%1 + + + + Timeout starting server + Timeout starting server + + + + settings + + + Invalid settings + Invalid settings + + + + The encoder configuration is invalid, the default values will be restored. + The encoder configuration is invalid, the default values will be restored. + + + + Not all headsets and GPUs support AV1 + + Not all headsets and GPUs support AV1 + + + + + wizard + + + + Download + Download + + + + Other + Other + + + + How? + How? + + + + + Skip + Skip + + + + Start the WiVRn app on your headset and connect to "%1". + Start the WiVRn app on your headset and connect to "%1". + + + Downloading + Downloading + + + Download aborted + Download aborted + + + WiVRn + WiVRn + + + + Error downloading the client: +%1 + Error downloading the client: +%1 + + + Download error: %1 + Download error: % + Download error: %1 + + + + The headset is connected. + The headset is connected. + + + + The headset is not connected. + The headset is not connected. + + + diff --git a/dashboard/wivrn_fr.ts b/dashboard/wivrn_fr.ts new file mode 100644 index 00000000..55982522 --- /dev/null +++ b/dashboard/wivrn_fr.ts @@ -0,0 +1,635 @@ + + + + + MainWindow + + + Start + Démarrer + + + + Stop + Arrêter + + + + Settings + Paramètres + + + + For Steam games, set the command to: + For Steam games, set command to: + Pour les jeux Steam, définir la commande à : + + + + Copy to clipboard + Copier dans le presse-papier + + + + Disconnect + Déconnecter + + + + Field of view + Champ de vue + + + + Microphone + Microphone + + + + Speaker + Haut-parleur + + + + WiVRn dashboard + Tableau de bord de WiVRn + + + + Server status + Server + État du serveur + + + + Stopped + Arrêté + + + + Running + Démarré + + + + Eye gaze tracking + Suivi des yeux + + + + Hand tracking + Suivi des mains + + + + Supported codecs + Codecs supportés + + + + Face tracking + Suivi du visage + + + + Available refresh rates + Taux de rafraîchissment disponibles + + + + Eye resolution + Résolution par œil + + + + Preferred refresh rate + Taux de rafraîchisement préféré + + + + &Exit + &Quitter + + + + &Show + &Afficher + + + + Headset status + État du casque + + + + Wizard + Assistant + + + + Details + Détails + + + + About + À propos + + + + Exit + Quitter + + + + &Hide + &Cacher + + + + QObject + + + WiVRn dashboard + Tableau de bord de WiVRn + + + + QWizard + + + &Next > + do not translate, the QWizard translation will be used + + + + + Settings + + + Settings + Paramètres + + + + Bitrate: + Bi&trate: + Débit : + + + + Foveation strength: + Intensité de la fovéation: + + + + nvenc (NVIDIA GPUs) + nvenc (GPUs NVIDIA) + + + + vaapi (AMD and Intel GPUs) + vaapi (GPUs AMD et Intel) + + + + x264 (software encoding) + x264 (encodage logiciel) + + + + Encoder configuration: + Configuration de l'encodeur: + + + + Manual + Encoder + Manuelle + + + + Manual + Foveation + Manuelle + + + <html><head/><body><p>A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games.</p><p>A weaker foveation gives a uniform sharpness in the whole image.</p><p>The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking.</p></body></html> + <html><head/><body><p>Une fovéation plus forte rend l'image plus nette au centre qu'en périphérie et accélère le décodage. C'est un meilleur choix pour les jeux rapides.</p><p>Une fovéation plus faible donne une netteté uniforme sur toute l'image.</p><p>Les valeurs recommandées sont entre 20% et 50% pour les casques sans suivi des yeux et entre 50% et 70% pour les casques avec suivi des yeux.</p></body></html> + + + + Weaker + Plus faible + + + + Stronger + Plus forte + + + + Encoder + Encodeur + + + + + Auto + Automatique + + + + Automatic + Encoder + Automatique + + + + A stronger foveation makes the image sharper in the center than in the periphery and makes the decoding faster. This is better for fast paced games. + +A weaker foveation gives a uniform sharpness in the whole image. + +The recommended values are between 20% and 50% for headsets without eye tracking and between 50% and 70% for headsets with eye tracking. + Une fovéation plus forte rend l'image plus nette au centre qu'en périphérie et accélère le décodage. C'est un meilleur choix pour les jeux rapides. + +Une fovéation plus faible donne une netteté uniforme sur toute l'image. + +Les valeurs recommandées sont entre 20% et 50% pour les casques sans suivi des yeux et entre 50% et 70% pour les casques avec suivi des yeux. + + + + Automatic + Foveation + Automatique + + + + WiVRn settings + Paramètres de WiVRn + + + + Codec + Codec + + + + Mbit/s + Mbit/s + + + + You can use several encoders in order to split the workload between your CPU and your GPU and reduce the latency. + Vous pouvez utiliser plusieurs encodeurs pour partager le travail entre votre CPU et votre GPU et réduire la latence. + + + + % + % + + + + Wizard + + + Connection wizard + Assistant de connexion + + + + Welcome + Bienvenue + + + + Select your headset + Choisissez votre casque + + + + Install the WiVRn app on your headset + Installation de l'application WiVRn sur votre casque + + + + You will need to have the WiVRn client installed on your headset. If the client is already installed, click "Skip". + You will need to have the WiVRn client installed on your headset. + Vous aurez besoin d'avoir le client WiVRn installé sur votre casque. Si le client est déjà installé, cliquez sur « Passer ». + + + + I want to sideload the client instead + Je préfère installer le client manuellement + + + + Go to the store to install the client app on your headset. + Allez sur la boutique pour installer l'application client sur votre casque. + + + Once this is done, click "Next". + Once this is done, click next. + Une fois que c'est fait, cliquez sur suivant. + + + + Downloading the WiVRn app + Téléchargement de l'application WiVRn + + + + Cancel + Annuler + + + + Downloading + Téléchargement en cours + + + + Make sure your headset is in developer mode to continue. + Assurez-vous que le casque soit en mode développeur pour continuer. + + + + Run the following command to install the client: + Run the following command to install the client + Exécutez la commande suivante pour installer le client: + + + + + Copy to clipboard + Copier dans le presse-papier + + + + Start the WiVRn app and connect to this computer + Démarrez l'appli WiVRn et connectez-vous à cet ordinateur + + + + If the server is not visible or the connection fails, check that port 5353 (UDP) and 9757 (TCP and UDP) are open in your firewall. + Si le serveur n'est pas visible ou que la connexion échoue, vérifiez que les ports 5353 (UDP) et 9757 (TCP et UDP) sont ouverts dans votre pare-feu. + + + + Finished + Terminé + + + + You can now start an OpenXR application on this computer. + Vous pouvez maintenant démarrer une application OpenXR sur cet ordinateur. + + + + For Steam games, set the command to: + Pour les jeux Steam, définir la commande à : + + + + main_window + + + &Show GUI + &Afficher la GUI + + + + &Hide GUI + &Cacher la GUI + + + + &Exit + &Quitter + + + + %1 ⨯ %2 + %1 ⨯ %2 + + + + + %1 Hz + %1 Hz + + + + + + Supported + Supporté + + + + + + Not supported + Non supporté + + + + Left eye: %1° ⨯ %2°, right eye: %3° ⨯ %4° + Œil gauche: %1° ⨯ %2°, œil droit: %3° ⨯ %4° + + + + + %n channel(s), %1 Hz + %1 channel(s), %2 Hz + + %n canal, %1 Hz + %n canaux, %1 Hz + + + + + + N/A + Non disponible + + + WiVRn + WiVRn + + + + Failed to start + Impossible de démarrer + + + + Crashed + Planté + + + + Time out + Délai d'attente dépassé + + + + Read error + Erreur de lecture + + + + Write error + write error + Erreur d'écriture + + + + Unknown error + Erreur inconnue + + + Server error + Erreur du serveur + + + + Failed to start server: +%1 + Impossible de démarrer le serveur: +%1 + + + + Unknown error (%1), check logs + Erreur inconnue (%1), vérifier les logs + + + + Start the WiVRn app on your headset and connect to "%1". + Démarrez l'application WiVRn sur votre casque et connectez-vous à « %1 ». + + + + If the server is not visible or the connection fails, check that port 5353 (UDP) and 9757 (TCP and UDP) are open in your firewall. + Si le serveur n'est pas visible ou que la connexion échoue, vérifiez que les ports 5353 (UDP) et 9757 (TCP et UDP) sont ouverts dans votre pare-feu. + + + + Connected + Connecté + + + + Not connected + Non connecté + + + + Cannot connect to avahi, make sure avahi-daemon service is started + Cannot connect to avahi, make sure avahi_daemon.service is started + Impossible de se connecter à avahi, vérifiez que le service avahi-daemon est démarré + + + + Insufficient system resources + Ressources système insuffisantes + + + + Server crashed: +%1 + Le serveur a planté: +%1 + + + + Timeout starting server + Délai d'attente dépassé lors du démarrage du serveur + + + + settings + + + Invalid settings + Paramètres invalides + + + + The encoder configuration is invalid, the default values will be restored. + La configuration des encodeurs est invalide, les valeurs par défaut seront restaurées. + + + + Not all headsets and GPUs support AV1 + + Tous les casques et GPUs ne supportent pas AV1 + + + + + wizard + + + + Download + Télécharger + + + + Other + Autre + + + + How? + Comment ? + + + + + Skip + Passer + + + + Start the WiVRn app on your headset and connect to "%1". + Démarrez l'application WiVRn sur votre casque et connectez-vous à « %1 ». + + + Downloading + Téléchargement en cours + + + Download aborted + Téléchargement annulé + + + WiVRn + WiVRn + + + + Error downloading the client: +%1 + Erreur lors du téléchargement du client : +%1 + + + Download error: %1 + Download error: % + Erreur lors du téléchargement :%1 + + + + The headset is connected. + Le casque est connecté. + + + + The headset is not connected. + Le casque n'est pas connecté. + + + diff --git a/tools/check_messages.sh b/tools/check_messages.sh index e97b24fa..8cdfb6f3 100755 --- a/tools/check_messages.sh +++ b/tools/check_messages.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash + +set -e cd $(dirname $0)/.. @@ -25,4 +27,22 @@ done rm $WIVRN_POT +for i in $(find dashboard -name "wivrn_*.ts") +do + cp $i $i.bak + lupdate -silent dashboard/*.{cpp,ui} -ts $i + mv $i $i.new + mv $i.bak $i + + diff -U 3 -I '.*' $i $i.new + + if [ $? != 0 ] + then + RC=1 + fi + + rm $i.new +done + + exit $RC diff --git a/tools/update_messages.sh b/tools/update_messages.sh index ca87061a..7d742315 100755 --- a/tools/update_messages.sh +++ b/tools/update_messages.sh @@ -14,3 +14,5 @@ do done rm $WIVRN_POT + +lupdate dashboard/*.{cpp,ui} -ts dashboard/wivrn_*.ts