gtk: interface GTK4, préférences, versions, traductions, licence MIT

- interface gtkmm-4 : véhicules, ajout par VIN, mises à jour, dossier,
  téléchargement avec reprise et arrêt, choix de la clé, confirmation,
  écriture avec progression, fin avec guide d'installation ; travail
  dans un thread, résultats renvoyés via Glib::Dispatcher
- préférences : dossier de téléchargement, langue (système par défaut),
  recherche automatique de nouvelle version d'OpenPU
- recherche de nouvelle version (releases GitHub, format tags Gitea
  accepté) avec ouverture de la page dans le navigateur ;
  openpu-cli app-update
- versions : project(VERSION) + git describe régénéré à chaque build,
  openpu-cli --version, À propos, User-Agent, CHANGELOG, tools/release.sh
  (étiquette annotée, push vers tous les remotes, release GitHub)
- traductions gettext : textes anglais, fr.po complet (96 chaînes),
  extracteur de secours sans xgettext
- core : module job (téléchargement licence/fw/carte), liens des guides
  PDF, ordre des véhicules conservé (ordered_json)
- licence MIT (LICENSE, en-têtes SPDX) ; dépôt principal sur GitHub
- validé dans WSLg : parcours complet jusqu'à l'écriture d'une clé loop
  (FAT32 propre, fichiers téléchargés supprimés)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDASLCiN764v685boRVYar
This commit is contained in:
yann64andClaude Opus 5.5 committed 2026-11-28 19:54:04 +01:00
1 parent 6a7a2f1ee9
commit 384aaf78c6
62 files changed
+3029 -20

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
# Translations (gettext). Source strings are English; add a language by adding <lang>.po and
# listing it in LINGUAS.
find_package(Gettext)
if(NOT GETTEXT_FOUND)
message(WARNING "gettext (msgfmt) not found: translations are not built")
return()
endif()
file(STRINGS LINGUAS OPENPU_LINGUAS REGEX "^[^#]")
foreach(lang IN LISTS OPENPU_LINGUAS)
set(mo ${CMAKE_BINARY_DIR}/locale/${lang}/LC_MESSAGES/openpu.mo)
add_custom_command(OUTPUT ${mo}
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/locale/${lang}/LC_MESSAGES
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${mo} ${CMAKE_CURRENT_SOURCE_DIR}/${lang}.po
DEPENDS ${lang}.po)
list(APPEND OPENPU_MO_FILES ${mo})
install(FILES ${mo} DESTINATION ${CMAKE_INSTALL_LOCALEDIR}/${lang}/LC_MESSAGES)
endforeach()
add_custom_target(translations ALL DEPENDS ${OPENPU_MO_FILES})
# `cmake --build . --target pot` refreshes the template from the sources.
find_program(XGETTEXT xgettext)
if(XGETTEXT)
add_custom_target(pot
COMMAND ${XGETTEXT} --keyword=_ --keyword=N_ --from-code=UTF-8 --package-name=openpu
--add-comments=TRANSLATORS -o ${CMAKE_CURRENT_SOURCE_DIR}/openpu.pot
${PROJECT_SOURCE_DIR}/src/ui-gtk/main_window.cpp
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
endif()
+1
View File
@@ -0,0 +1 @@
fr
+316
View File
@@ -0,0 +1,316 @@
# French translation of OpenPU.
msgid ""
msgstr ""
"Project-Id-Version: openpu\n"
"Language: fr\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Crony (navigation)"
msgstr "Crony (avec navigation)"
msgid "Crony (no navigation)"
msgstr "Crony (sans navigation)"
msgid "unknown head unit"
msgstr "autoradio inconnu"
msgid "version %1, %2"
msgstr "version %1, %2"
msgid "The update server cannot be reached. Check your Internet connection."
msgstr "Le serveur de mises à jour est injoignable. Vérifiez votre connexion Internet."
msgid "The update server returned an error. Try again later."
msgstr "Le serveur de mises à jour a renvoyé une erreur. Réessayez plus tard."
msgid "This VIN is not valid."
msgstr "Ce VIN n'est pas valide."
msgid "Your saved data cannot be read"
msgstr "Vos données enregistrées sont illisibles"
msgid "Back"
msgstr "Retour"
msgid "About OpenPU"
msgstr "À propos d'OpenPU"
msgid ""
"Download Peugeot head unit updates (system and navigation map) and prepare the USB stick, on "
"Linux and Haiku.\n"
"\n"
"Independent project, not affiliated with Stellantis or Peugeot."
msgstr ""
"Téléchargez les mises à jour de l'autoradio Peugeot (système et cartographie) et préparez la "
"clé USB, sous Linux et Haiku.\n"
"\n"
"Projet indépendant, sans lien avec Stellantis ni Peugeot."
msgid "Source code"
msgstr "Code source"
msgid "Cannot save the vehicle list"
msgstr "Impossible d'enregistrer la liste des véhicules"
msgid "My vehicles"
msgstr "Mes véhicules"
msgid "Add your vehicle with its VIN (17 characters, on the registration document, field E)."
msgstr "Ajoutez votre véhicule avec son VIN (17 caractères, sur le certificat d'immatriculation, champ E)."
msgid "Add a vehicle"
msgstr "Ajouter un véhicule"
msgid "Remove"
msgstr "Supprimer"
msgid "Check for updates"
msgstr "Rechercher les mises à jour"
msgid "download not finished"
msgstr "téléchargement inachevé"
msgid "Remove %1?"
msgstr "Supprimer %1 ?"
msgid "Downloaded files that were not written to a USB stick yet are deleted too."
msgstr "Les fichiers téléchargés qui n'ont pas encore été copiés sur une clé USB seront aussi supprimés."
msgid "Cancel"
msgstr "Annuler"
msgid ""
"The VIN (vehicle identification number) is written in field E of the registration document and "
"at the bottom of the windscreen."
msgstr ""
"Le VIN (numéro d'identification du véhicule) figure au champ E du certificat d'immatriculation "
"et en bas du pare-brise."
msgid "VIN"
msgstr "VIN"
msgid "Name"
msgstr "Nom"
msgid "e.g. 208 or Family car"
msgstr "par ex. 208 ou Voiture familiale"
msgid "Add"
msgstr "Ajouter"
msgid "A VIN has 17 characters and starts with VF3 or VR3."
msgstr "Un VIN comporte 17 caractères et commence par VF3 ou VR3."
msgid "Checking the vehicle…"
msgstr "Vérification du véhicule…"
msgid "This vehicle is unknown to the update service."
msgstr "Ce véhicule est inconnu du service de mises à jour."
msgid "This vehicle has no head unit that can be updated with a USB stick."
msgstr "Ce véhicule n'a pas d'autoradio pouvant être mis à jour par clé USB."
msgid "Download folder:"
msgstr "Dossier de téléchargement :"
msgid "Change…"
msgstr "Modifier…"
msgid "Installation guide"
msgstr "Guide d'installation"
msgid "Download"
msgstr "Télécharger"
msgid "Looking for updates…"
msgstr "Recherche des mises à jour…"
msgid "No update is available: your head unit is up to date."
msgstr "Aucune mise à jour disponible : votre autoradio est à jour."
msgid "Select the updates to download:"
msgstr "Sélectionnez les mises à jour à télécharger :"
msgid "System (firmware)"
msgstr "Système (firmware)"
msgid "Navigation map"
msgstr "Cartographie"
msgid "Download folder"
msgstr "Dossier de téléchargement"
msgid "Cannot save the settings"
msgstr "Impossible d'enregistrer les réglages"
msgid "Not enough free space"
msgstr "Espace libre insuffisant"
msgid ""
"%1 are needed in %2 but only %3 are free. If a previous download of these files is already in "
"this folder, it will be resumed and may fit."
msgstr ""
"%1 sont nécessaires dans %2 mais seuls %3 sont libres. Si un téléchargement précédent de ces "
"fichiers se trouve déjà dans ce dossier, il sera repris et pourra tenir."
msgid "Download anyway"
msgstr "Télécharger quand même"
msgid "Downloading"
msgstr "Téléchargement"
msgid "You can close the application: the download will resume where it stopped next time."
msgstr "Vous pouvez fermer l'application : le téléchargement reprendra là où il s'est arrêté."
msgid "Stop"
msgstr "Arrêter"
msgid "License"
msgstr "Licence"
msgid "waiting"
msgstr "en attente"
msgid "Connecting…"
msgstr "Connexion…"
msgid "Cannot write the file: %1"
msgstr "Impossible d'écrire le fichier : %1"
msgid "The download failed: %1"
msgstr "Le téléchargement a échoué : %1"
msgid "Download interrupted"
msgstr "Téléchargement interrompu"
msgid "The files already downloaded are kept; start again to resume."
msgstr "Les fichiers déjà téléchargés sont conservés ; relancez pour reprendre."
msgid "done"
msgstr "terminé"
msgid "Time left: %1"
msgstr "Temps restant : %1"
msgid "(connection lost, attempt %1)"
msgstr "(connexion perdue, tentative %1)"
msgid "Prepare the USB stick"
msgstr "Préparer la clé USB"
msgid "This USB stick is too small."
msgstr "Cette clé USB est trop petite."
msgid "Refresh"
msgstr "Actualiser"
msgid "Erase and write"
msgstr "Effacer et écrire"
msgid "Computing the required size…"
msgstr "Calcul de la taille nécessaire…"
msgid "A downloaded file is damaged"
msgstr "Un fichier téléchargé est endommagé"
msgid "Download the update again."
msgstr "Téléchargez à nouveau la mise à jour."
msgid "Plug in a USB stick of at least %1. It will be completely erased and formatted (FAT32)."
msgstr "Branchez une clé USB d'au moins %1. Elle sera entièrement effacée et formatée (FAT32)."
msgid "USB drives cannot be listed: "
msgstr "Impossible de lister les clés USB : "
msgid "too small"
msgstr "trop petite"
msgid "No USB stick found. Plug one in, then refresh."
msgstr "Aucune clé USB trouvée. Branchez-en une, puis actualisez."
msgid "Erase %1?"
msgstr "Effacer %1 ?"
msgid "Everything on this USB stick will be lost."
msgstr "Tout le contenu de cette clé USB sera perdu."
msgid "Writing the USB stick"
msgstr "Écriture de la clé USB"
msgid "Do not unplug the USB stick."
msgstr "Ne débranchez pas la clé USB."
msgid "Checking the downloaded files…"
msgstr "Vérification des fichiers téléchargés…"
msgid "Permission to format the USB stick was refused."
msgstr "L'autorisation de formater la clé USB a été refusée."
msgid "The USB stick could not be prepared"
msgstr "La clé USB n'a pas pu être préparée"
msgid "Formatting the USB stick…"
msgstr "Formatage de la clé USB…"
msgid "Copying the license…"
msgstr "Copie de la licence…"
msgid "Copying the update…"
msgstr "Copie de la mise à jour…"
msgid "Ejecting the USB stick…"
msgstr "Éjection de la clé USB…"
msgid "The USB stick is ready"
msgstr "La clé USB est prête"
msgid ""
"You can unplug the USB stick. With the engine running, plug it into the vehicle and follow the "
"instructions on the screen. The installation can take a long time: do not stop the engine."
msgstr ""
"Vous pouvez débrancher la clé USB. Moteur tournant, branchez-la dans le véhicule et suivez les "
"instructions à l'écran. L'installation peut être longue : ne coupez pas le moteur."
msgid "Finish"
msgstr "Terminer"
msgid "Preferences"
msgstr "Préférences"
msgid "Check for a new version of OpenPU"
msgstr "Rechercher une nouvelle version d'OpenPU"
msgid "Menu"
msgstr "Menu"
msgid "OpenPU is up to date"
msgstr "OpenPU est à jour"
msgid "Version %1 is the latest version."
msgstr "La version %1 est la plus récente."
msgid "Cannot check for a new version"
msgstr "Impossible de rechercher une nouvelle version"
msgid "OpenPU %1 is available"
msgstr "OpenPU %1 est disponible"
msgid "You are using version %1. Do you want to download the new version?"
msgstr "Vous utilisez la version %1. Voulez-vous télécharger la nouvelle version ?"
msgid "Later"
msgstr "Plus tard"
msgid "Language"
msgstr "Langue"
msgid "System language"
msgstr "Langue du système"
msgid "The new language is used the next time OpenPU starts."
msgstr "La nouvelle langue sera utilisée au prochain démarrage d'OpenPU."
msgid "Check for a new version of OpenPU at startup"
msgstr "Rechercher une nouvelle version d'OpenPU au démarrage"
+401
View File
@@ -0,0 +1,401 @@
msgid ""
msgstr ""
"Project-Id-Version: openpu\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src\ui-gtk\main_window.cpp:54
msgid "Crony (navigation)"
msgstr ""
#: src\ui-gtk\main_window.cpp:55
msgid "Crony (no navigation)"
msgstr ""
#: src\ui-gtk\main_window.cpp:58
msgid "unknown head unit"
msgstr ""
#: src\ui-gtk\main_window.cpp:63
#, qt-format
msgid "version %1, %2"
msgstr ""
#: src\ui-gtk\main_window.cpp:70
msgid "The update server cannot be reached. Check your Internet connection."
msgstr ""
#: src\ui-gtk\main_window.cpp:73
msgid "The update server returned an error. Try again later."
msgstr ""
#: src\ui-gtk\main_window.cpp:75
msgid "This VIN is not valid."
msgstr ""
#: src\ui-gtk\main_window.cpp:104
msgid "Your saved data cannot be read"
msgstr ""
#: src\ui-gtk\main_window.cpp:109
msgid "Back"
msgstr ""
#: src\ui-gtk\main_window.cpp:113 src\ui-gtk\main_window.cpp:219
msgid "Preferences"
msgstr ""
#: src\ui-gtk\main_window.cpp:114
msgid "Check for a new version of OpenPU"
msgstr ""
#: src\ui-gtk\main_window.cpp:115
msgid "About OpenPU"
msgstr ""
#: src\ui-gtk\main_window.cpp:118
msgid "Menu"
msgstr ""
#: src\ui-gtk\main_window.cpp:181
msgid "OpenPU is up to date"
msgstr ""
#: src\ui-gtk\main_window.cpp:182
#, qt-format
msgid "Version %1 is the latest version."
msgstr ""
#: src\ui-gtk\main_window.cpp:185
msgid "Cannot check for a new version"
msgstr ""
#: src\ui-gtk\main_window.cpp:195
#, qt-format
msgid "OpenPU %1 is available"
msgstr ""
#: src\ui-gtk\main_window.cpp:197
#, qt-format
msgid "You are using version %1. Do you want to download the new version?"
msgstr ""
#: src\ui-gtk\main_window.cpp:201
msgid "Later"
msgstr ""
#: src\ui-gtk\main_window.cpp:201 src\ui-gtk\main_window.cpp:625
msgid "Download"
msgstr ""
#: src\ui-gtk\main_window.cpp:231 src\ui-gtk\main_window.cpp:705
msgid "Download folder"
msgstr ""
#: src\ui-gtk\main_window.cpp:238 src\ui-gtk\main_window.cpp:608
msgid "Change…"
msgstr ""
#: src\ui-gtk\main_window.cpp:247
msgid "Language"
msgstr ""
#: src\ui-gtk\main_window.cpp:252
msgid "System language"
msgstr ""
#: src\ui-gtk\main_window.cpp:258
msgid "The new language is used the next time OpenPU starts."
msgstr ""
#: src\ui-gtk\main_window.cpp:271 src\ui-gtk\main_window.cpp:286 src\ui-gtk\main_window.cpp:718
msgid "Cannot save the settings"
msgstr ""
#: src\ui-gtk\main_window.cpp:279
msgid "Check for a new version of OpenPU at startup"
msgstr ""
#: src\ui-gtk\main_window.cpp:338
msgid "Download Peugeot head unit updates (system and navigation map) and prepare the USB stick, on Linux and Haiku.\n\nIndependent project, not affiliated with Stellantis or Peugeot."
msgstr ""
#: src\ui-gtk\main_window.cpp:344
msgid "Source code"
msgstr ""
#: src\ui-gtk\main_window.cpp:356
msgid "Cannot save the vehicle list"
msgstr ""
#: src\ui-gtk\main_window.cpp:370
msgid "My vehicles"
msgstr ""
#: src\ui-gtk\main_window.cpp:372
msgid "Add your vehicle with its VIN (17 characters, on the registration document, field E)."
msgstr ""
#: src\ui-gtk\main_window.cpp:392 src\ui-gtk\main_window.cpp:486
msgid "Add a vehicle"
msgstr ""
#: src\ui-gtk\main_window.cpp:393 src\ui-gtk\main_window.cpp:457
msgid "Remove"
msgstr ""
#: src\ui-gtk\main_window.cpp:394
msgid "Check for updates"
msgstr ""
#: src\ui-gtk\main_window.cpp:425
msgid "download not finished"
msgstr ""
#: src\ui-gtk\main_window.cpp:455
#, qt-format
msgid "Remove %1?"
msgstr ""
#: src\ui-gtk\main_window.cpp:456
msgid "Downloaded files that were not written to a USB stick yet are deleted too."
msgstr ""
#: src\ui-gtk\main_window.cpp:457 src\ui-gtk\main_window.cpp:741 src\ui-gtk\main_window.cpp:982
msgid "Cancel"
msgstr ""
#: src\ui-gtk\main_window.cpp:488
msgid "The VIN (vehicle identification number) is written in field E of the registration document and at the bottom of the windscreen."
msgstr ""
#: src\ui-gtk\main_window.cpp:496
msgid "VIN"
msgstr ""
#: src\ui-gtk\main_window.cpp:498
msgid "Name"
msgstr ""
#: src\ui-gtk\main_window.cpp:503
msgid "e.g. 208 or Family car"
msgstr ""
#: src\ui-gtk\main_window.cpp:517
msgid "Add"
msgstr ""
#: src\ui-gtk\main_window.cpp:535
msgid "A VIN has 17 characters and starts with VF3 or VR3."
msgstr ""
#: src\ui-gtk\main_window.cpp:541
msgid "Checking the vehicle…"
msgstr ""
#: src\ui-gtk\main_window.cpp:558
msgid "This vehicle is unknown to the update service."
msgstr ""
#: src\ui-gtk\main_window.cpp:562
msgid "This vehicle has no head unit that can be updated with a USB stick."
msgstr ""
#: src\ui-gtk\main_window.cpp:604
msgid "Download folder:"
msgstr ""
#: src\ui-gtk\main_window.cpp:617 src\ui-gtk\main_window.cpp:1118
msgid "Installation guide"
msgstr ""
#: src\ui-gtk\main_window.cpp:651
msgid "Looking for updates…"
msgstr ""
#: src\ui-gtk\main_window.cpp:685
msgid "No update is available: your head unit is up to date."
msgstr ""
#: src\ui-gtk\main_window.cpp:688
msgid "Select the updates to download:"
msgstr ""
#: src\ui-gtk\main_window.cpp:690 src\ui-gtk\main_window.cpp:803
msgid "System (firmware)"
msgstr ""
#: src\ui-gtk\main_window.cpp:695 src\ui-gtk\main_window.cpp:807
msgid "Navigation map"
msgstr ""
#: src\ui-gtk\main_window.cpp:736
msgid "Not enough free space"
msgstr ""
#: src\ui-gtk\main_window.cpp:738
#, qt-format
msgid "%1 are needed in %2 but only %3 are free. If a previous download of these files is already in this folder, it will be resumed and may fit."
msgstr ""
#: src\ui-gtk\main_window.cpp:741
msgid "Download anyway"
msgstr ""
#: src\ui-gtk\main_window.cpp:763
msgid "Downloading"
msgstr ""
#: src\ui-gtk\main_window.cpp:765
msgid "You can close the application: the download will resume where it stopped next time."
msgstr ""
#: src\ui-gtk\main_window.cpp:786 src\ui-gtk\main_window.cpp:1014
msgid "Stop"
msgstr ""
#: src\ui-gtk\main_window.cpp:799 src\ui-gtk\main_window.cpp:849
msgid "License"
msgstr ""
#: src\ui-gtk\main_window.cpp:799
msgid "waiting"
msgstr ""
#: src\ui-gtk\main_window.cpp:812
msgid "Connecting…"
msgstr ""
#: src\ui-gtk\main_window.cpp:829
#, qt-format
msgid "Cannot write the file: %1"
msgstr ""
#: src\ui-gtk\main_window.cpp:830
#, qt-format
msgid "The download failed: %1"
msgstr ""
#: src\ui-gtk\main_window.cpp:839
msgid "Download interrupted"
msgstr ""
#: src\ui-gtk\main_window.cpp:840
msgid "The files already downloaded are kept; start again to resume."
msgstr ""
#: src\ui-gtk\main_window.cpp:849
msgid "done"
msgstr ""
#: src\ui-gtk\main_window.cpp:859
#, qt-format
msgid "Time left: %1"
msgstr ""
#: src\ui-gtk\main_window.cpp:861
#, qt-format
msgid "(connection lost, attempt %1)"
msgstr ""
#: src\ui-gtk\main_window.cpp:886
msgid "Prepare the USB stick"
msgstr ""
#: src\ui-gtk\main_window.cpp:897 src\ui-gtk\main_window.cpp:970
msgid "This USB stick is too small."
msgstr ""
#: src\ui-gtk\main_window.cpp:901
msgid "Refresh"
msgstr ""
#: src\ui-gtk\main_window.cpp:910 src\ui-gtk\main_window.cpp:982
msgid "Erase and write"
msgstr ""
#: src\ui-gtk\main_window.cpp:920
msgid "Computing the required size…"
msgstr ""
#: src\ui-gtk\main_window.cpp:934 src\ui-gtk\main_window.cpp:1055
msgid "A downloaded file is damaged"
msgstr ""
#: src\ui-gtk\main_window.cpp:934 src\ui-gtk\main_window.cpp:1055
msgid "Download the update again."
msgstr ""
#: src\ui-gtk\main_window.cpp:941
#, qt-format
msgid "Plug in a USB stick of at least %1. It will be completely erased and formatted (FAT32)."
msgstr ""
#: src\ui-gtk\main_window.cpp:956
msgid "USB drives cannot be listed: "
msgstr ""
#: src\ui-gtk\main_window.cpp:961
msgid "too small"
msgstr ""
#: src\ui-gtk\main_window.cpp:964
msgid "No USB stick found. Plug one in, then refresh."
msgstr ""
#: src\ui-gtk\main_window.cpp:980
#, qt-format
msgid "Erase %1?"
msgstr ""
#: src\ui-gtk\main_window.cpp:981
msgid "Everything on this USB stick will be lost."
msgstr ""
#: src\ui-gtk\main_window.cpp:1000
msgid "Writing the USB stick"
msgstr ""
#: src\ui-gtk\main_window.cpp:1001
msgid "Do not unplug the USB stick."
msgstr ""
#: src\ui-gtk\main_window.cpp:1026 src\ui-gtk\main_window.cpp:1072
msgid "Checking the downloaded files…"
msgstr ""
#: src\ui-gtk\main_window.cpp:1046
msgid "Permission to format the USB stick was refused."
msgstr ""
#: src\ui-gtk\main_window.cpp:1061
msgid "The USB stick could not be prepared"
msgstr ""
#: src\ui-gtk\main_window.cpp:1074
msgid "Formatting the USB stick…"
msgstr ""
#: src\ui-gtk\main_window.cpp:1077
msgid "Copying the license…"
msgstr ""
#: src\ui-gtk\main_window.cpp:1078
msgid "Copying the update…"
msgstr ""
#: src\ui-gtk\main_window.cpp:1080
msgid "Ejecting the USB stick…"
msgstr ""
#: src\ui-gtk\main_window.cpp:1111
msgid "The USB stick is ready"
msgstr ""
#: src\ui-gtk\main_window.cpp:1113
msgid "You can unplug the USB stick. With the engine running, plug it into the vehicle and follow the instructions on the screen. The installation can take a long time: do not stop the engine."
msgstr ""
#: src\ui-gtk\main_window.cpp:1126
msgid "Finish"
msgstr ""