diff --git a/.gitignore b/.gitignore index 231a950..a5722c3 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ print_*.pdf 20??-??-?? build dist +**/photobooth.mo + diff --git a/photobooth/locale/de.mo b/photobooth/locale/de.mo deleted file mode 100644 index 506d208..0000000 Binary files a/photobooth/locale/de.mo and /dev/null differ diff --git a/photobooth/locale/de.po b/photobooth/locale/de/LC_MESSAGES/photobooth.po similarity index 79% rename from photobooth/locale/de.po rename to photobooth/locale/de/LC_MESSAGES/photobooth.po index bbc5e14..280eacd 100644 --- a/photobooth/locale/de.po +++ b/photobooth/locale/de/LC_MESSAGES/photobooth.po @@ -1,11 +1,18 @@ + msgid "" msgstr "" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: POEditor.com\n" -"Project-Id-Version: Photobooth\n" +"Project-Id-Version: Photobooth\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2018-08-23 16:13+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" "Language: de\n" +"Language-Team: de \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.6.0\n" #: photobooth/gui/Qt5Gui/Frames.py:50 msgid "Start photobooth" @@ -155,87 +162,91 @@ msgstr "Wartezeit auf Nachbearbeitungsbildschirm [s]" msgid "Overwrite displayed error message:" msgstr "Ersetze angezeigte Fehlermeldung:" -#: photobooth/gui/Qt5Gui/Frames.py:617 +#: photobooth/gui/Qt5Gui/Frames.py:633 msgid "Camera module:" msgstr "Kamera Modul:" -#: photobooth/gui/Qt5Gui/Frames.py:681 photobooth/gui/Qt5Gui/Frames.py:684 +#: photobooth/gui/Qt5Gui/Frames.py:634 +msgid "Camera rotation:" +msgstr "" + +#: photobooth/gui/Qt5Gui/Frames.py:698 photobooth/gui/Qt5Gui/Frames.py:701 msgid "Select file" msgstr "Datei auswählen" -#: photobooth/gui/Qt5Gui/Frames.py:692 +#: photobooth/gui/Qt5Gui/Frames.py:709 msgid "Number of shots per picture:" msgstr "Anzahl Fotos pro Bild:" -#: photobooth/gui/Qt5Gui/Frames.py:693 +#: photobooth/gui/Qt5Gui/Frames.py:710 msgid "Size of assembled picture [px]:" msgstr "Größe des fertigen Bildes [px]:" -#: photobooth/gui/Qt5Gui/Frames.py:694 +#: photobooth/gui/Qt5Gui/Frames.py:711 msgid "Min. distance between shots [px]:" msgstr "Min. Abstand der Fotos im Bild [px]:" -#: photobooth/gui/Qt5Gui/Frames.py:695 +#: photobooth/gui/Qt5Gui/Frames.py:712 msgid "Omit last picture:" msgstr "Letztes Foto weg lassen:" -#: photobooth/gui/Qt5Gui/Frames.py:696 +#: photobooth/gui/Qt5Gui/Frames.py:713 msgid "Background image:" msgstr "Hintergrundbild:" -#: photobooth/gui/Qt5Gui/Frames.py:717 photobooth/gui/Qt5Gui/Frames.py:721 +#: photobooth/gui/Qt5Gui/Frames.py:734 photobooth/gui/Qt5Gui/Frames.py:738 msgid "Select directory" msgstr "Verzeichnis auswählen:" -#: photobooth/gui/Qt5Gui/Frames.py:729 +#: photobooth/gui/Qt5Gui/Frames.py:746 msgid "Output directory (strftime possible):" msgstr "Ausgabeverzeichnis (strftime möglich):" -#: photobooth/gui/Qt5Gui/Frames.py:730 +#: photobooth/gui/Qt5Gui/Frames.py:747 msgid "Basename of files (strftime possible):" msgstr "Dateiname (strftime möglich):" -#: photobooth/gui/Qt5Gui/Frames.py:731 +#: photobooth/gui/Qt5Gui/Frames.py:748 msgid "Keep single shots:" msgstr "Einzelfotos behalten:" -#: photobooth/gui/Qt5Gui/Frames.py:781 +#: photobooth/gui/Qt5Gui/Frames.py:798 msgid "Enable GPIO:" msgstr "GPIO aktivieren:" -#: photobooth/gui/Qt5Gui/Frames.py:782 +#: photobooth/gui/Qt5Gui/Frames.py:799 msgid "Exit button pin (BCM numbering):" msgstr "Pin für Beenden-Schalter (BCM-Numm.):" -#: photobooth/gui/Qt5Gui/Frames.py:783 +#: photobooth/gui/Qt5Gui/Frames.py:800 msgid "Trigger button pin (BCM numbering):" msgstr "Pin für Auslöser (BCM-Numm.):" -#: photobooth/gui/Qt5Gui/Frames.py:784 +#: photobooth/gui/Qt5Gui/Frames.py:801 msgid "Idle lamp pin (BCM numbering):" msgstr "Pin für Leerlauf-Lampe (BCM-Numm.):" -#: photobooth/gui/Qt5Gui/Frames.py:785 +#: photobooth/gui/Qt5Gui/Frames.py:802 msgid "RGB LED pins (BCM numbering):" msgstr "Pins für RGB-LEDs (BCM-Numm.):" -#: photobooth/gui/Qt5Gui/Frames.py:826 +#: photobooth/gui/Qt5Gui/Frames.py:843 msgid "Enable printing:" msgstr "Drucken aktivieren:" -#: photobooth/gui/Qt5Gui/Frames.py:827 +#: photobooth/gui/Qt5Gui/Frames.py:844 msgid "Module:" msgstr "Modul:" -#: photobooth/gui/Qt5Gui/Frames.py:828 +#: photobooth/gui/Qt5Gui/Frames.py:845 msgid "Print to PDF (for debugging):" msgstr "In PDF drucken (für Debugging):" -#: photobooth/gui/Qt5Gui/Frames.py:829 +#: photobooth/gui/Qt5Gui/Frames.py:846 msgid "Ask for confirmation before printing:" msgstr "Bestätigung vor Druckvorgang nötig:" -#: photobooth/gui/Qt5Gui/Frames.py:830 +#: photobooth/gui/Qt5Gui/Frames.py:847 msgid "Paper size [mm]:" msgstr "Papiergröße [mm]:" diff --git a/photobooth/locale/en.mo b/photobooth/locale/en.mo deleted file mode 100644 index 931e53c..0000000 Binary files a/photobooth/locale/en.mo and /dev/null differ diff --git a/photobooth/locale/en.po b/photobooth/locale/en/LC_MESSAGES/photobooth.po similarity index 79% rename from photobooth/locale/en.po rename to photobooth/locale/en/LC_MESSAGES/photobooth.po index 3b6ce82..ace3bda 100644 --- a/photobooth/locale/en.po +++ b/photobooth/locale/en/LC_MESSAGES/photobooth.po @@ -1,11 +1,18 @@ + msgid "" msgstr "" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: POEditor.com\n" -"Project-Id-Version: Photobooth\n" +"Project-Id-Version: Photobooth\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2018-08-23 16:13+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" "Language: en\n" +"Language-Team: en \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.6.0\n" #: photobooth/gui/Qt5Gui/Frames.py:50 msgid "Start photobooth" @@ -155,87 +162,91 @@ msgstr "Postprocess timeout [s]:" msgid "Overwrite displayed error message:" msgstr "Overwrite displayed error message:" -#: photobooth/gui/Qt5Gui/Frames.py:617 +#: photobooth/gui/Qt5Gui/Frames.py:633 msgid "Camera module:" msgstr "Camera module:" -#: photobooth/gui/Qt5Gui/Frames.py:681 photobooth/gui/Qt5Gui/Frames.py:684 +#: photobooth/gui/Qt5Gui/Frames.py:634 +msgid "Camera rotation:" +msgstr "" + +#: photobooth/gui/Qt5Gui/Frames.py:698 photobooth/gui/Qt5Gui/Frames.py:701 msgid "Select file" msgstr "Select file" -#: photobooth/gui/Qt5Gui/Frames.py:692 +#: photobooth/gui/Qt5Gui/Frames.py:709 msgid "Number of shots per picture:" msgstr "Number of shots per picture:" -#: photobooth/gui/Qt5Gui/Frames.py:693 +#: photobooth/gui/Qt5Gui/Frames.py:710 msgid "Size of assembled picture [px]:" msgstr "Size of assembled picture [px]:" -#: photobooth/gui/Qt5Gui/Frames.py:694 +#: photobooth/gui/Qt5Gui/Frames.py:711 msgid "Min. distance between shots [px]:" msgstr "Min. distance between shots [px]:" -#: photobooth/gui/Qt5Gui/Frames.py:695 +#: photobooth/gui/Qt5Gui/Frames.py:712 msgid "Omit last picture:" msgstr "Omit last picture:" -#: photobooth/gui/Qt5Gui/Frames.py:696 +#: photobooth/gui/Qt5Gui/Frames.py:713 msgid "Background image:" msgstr "Background image:" -#: photobooth/gui/Qt5Gui/Frames.py:717 photobooth/gui/Qt5Gui/Frames.py:721 +#: photobooth/gui/Qt5Gui/Frames.py:734 photobooth/gui/Qt5Gui/Frames.py:738 msgid "Select directory" msgstr "Select directory" -#: photobooth/gui/Qt5Gui/Frames.py:729 +#: photobooth/gui/Qt5Gui/Frames.py:746 msgid "Output directory (strftime possible):" msgstr "Output directory (strftime possible):" -#: photobooth/gui/Qt5Gui/Frames.py:730 +#: photobooth/gui/Qt5Gui/Frames.py:747 msgid "Basename of files (strftime possible):" msgstr "Basename of files (strftime possible):" -#: photobooth/gui/Qt5Gui/Frames.py:731 +#: photobooth/gui/Qt5Gui/Frames.py:748 msgid "Keep single shots:" msgstr "Keep single shots:" -#: photobooth/gui/Qt5Gui/Frames.py:781 +#: photobooth/gui/Qt5Gui/Frames.py:798 msgid "Enable GPIO:" msgstr "Enable GPIO:" -#: photobooth/gui/Qt5Gui/Frames.py:782 +#: photobooth/gui/Qt5Gui/Frames.py:799 msgid "Exit button pin (BCM numbering):" msgstr "Exit button pin (BCM numbering):" -#: photobooth/gui/Qt5Gui/Frames.py:783 +#: photobooth/gui/Qt5Gui/Frames.py:800 msgid "Trigger button pin (BCM numbering):" msgstr "Trigger button pin (BCM numbering):" -#: photobooth/gui/Qt5Gui/Frames.py:784 +#: photobooth/gui/Qt5Gui/Frames.py:801 msgid "Idle lamp pin (BCM numbering):" msgstr "Idle lamp pin (BCM numbering):" -#: photobooth/gui/Qt5Gui/Frames.py:785 +#: photobooth/gui/Qt5Gui/Frames.py:802 msgid "RGB LED pins (BCM numbering):" msgstr "RGB LED pins (BCM numbering):" -#: photobooth/gui/Qt5Gui/Frames.py:826 +#: photobooth/gui/Qt5Gui/Frames.py:843 msgid "Enable printing:" msgstr "Enable printing:" -#: photobooth/gui/Qt5Gui/Frames.py:827 +#: photobooth/gui/Qt5Gui/Frames.py:844 msgid "Module:" msgstr "Module:" -#: photobooth/gui/Qt5Gui/Frames.py:828 +#: photobooth/gui/Qt5Gui/Frames.py:845 msgid "Print to PDF (for debugging):" msgstr "Print to PDF (for debugging):" -#: photobooth/gui/Qt5Gui/Frames.py:829 +#: photobooth/gui/Qt5Gui/Frames.py:846 msgid "Ask for confirmation before printing:" msgstr "Ask for confirmation before printing:" -#: photobooth/gui/Qt5Gui/Frames.py:830 +#: photobooth/gui/Qt5Gui/Frames.py:847 msgid "Paper size [mm]:" msgstr "Paper size [mm]:" diff --git a/photobooth/locale/es.mo b/photobooth/locale/es.mo deleted file mode 100644 index 93f896d..0000000 Binary files a/photobooth/locale/es.mo and /dev/null differ diff --git a/photobooth/locale/es.po b/photobooth/locale/es/LC_MESSAGES/photobooth.po similarity index 80% rename from photobooth/locale/es.po rename to photobooth/locale/es/LC_MESSAGES/photobooth.po index 86518c8..fe4767c 100644 --- a/photobooth/locale/es.po +++ b/photobooth/locale/es/LC_MESSAGES/photobooth.po @@ -1,11 +1,18 @@ + msgid "" msgstr "" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: POEditor.com\n" -"Project-Id-Version: Photobooth\n" +"Project-Id-Version: Photobooth\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2018-08-23 16:13+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" "Language: es\n" +"Language-Team: es \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.6.0\n" #: photobooth/gui/Qt5Gui/Frames.py:50 msgid "Start photobooth" @@ -155,87 +162,91 @@ msgstr "Tiempo fuera de postproceso [s]:" msgid "Overwrite displayed error message:" msgstr "Sobrescribir mensaje de error mostrado:" -#: photobooth/gui/Qt5Gui/Frames.py:617 +#: photobooth/gui/Qt5Gui/Frames.py:633 msgid "Camera module:" msgstr "Módulo de cámara:" -#: photobooth/gui/Qt5Gui/Frames.py:681 photobooth/gui/Qt5Gui/Frames.py:684 +#: photobooth/gui/Qt5Gui/Frames.py:634 +msgid "Camera rotation:" +msgstr "" + +#: photobooth/gui/Qt5Gui/Frames.py:698 photobooth/gui/Qt5Gui/Frames.py:701 msgid "Select file" msgstr "Seleccione archivo" -#: photobooth/gui/Qt5Gui/Frames.py:692 +#: photobooth/gui/Qt5Gui/Frames.py:709 msgid "Number of shots per picture:" msgstr "Número de tomas por imagen:" -#: photobooth/gui/Qt5Gui/Frames.py:693 +#: photobooth/gui/Qt5Gui/Frames.py:710 msgid "Size of assembled picture [px]:" msgstr "Tamaño de imagen ensamblada [px]:" -#: photobooth/gui/Qt5Gui/Frames.py:694 +#: photobooth/gui/Qt5Gui/Frames.py:711 msgid "Min. distance between shots [px]:" msgstr "Distancia min. entre tomas [px]:" -#: photobooth/gui/Qt5Gui/Frames.py:695 +#: photobooth/gui/Qt5Gui/Frames.py:712 msgid "Omit last picture:" msgstr "Omitir último imagen:" -#: photobooth/gui/Qt5Gui/Frames.py:696 +#: photobooth/gui/Qt5Gui/Frames.py:713 msgid "Background image:" msgstr "Imagen de fondo:" -#: photobooth/gui/Qt5Gui/Frames.py:717 photobooth/gui/Qt5Gui/Frames.py:721 +#: photobooth/gui/Qt5Gui/Frames.py:734 photobooth/gui/Qt5Gui/Frames.py:738 msgid "Select directory" msgstr "Seleccione directorio" -#: photobooth/gui/Qt5Gui/Frames.py:729 +#: photobooth/gui/Qt5Gui/Frames.py:746 msgid "Output directory (strftime possible):" msgstr "Directorio de salida (strfhora posible):" -#: photobooth/gui/Qt5Gui/Frames.py:730 +#: photobooth/gui/Qt5Gui/Frames.py:747 msgid "Basename of files (strftime possible):" msgstr "Nombre base de archivos (strfhora posible):" -#: photobooth/gui/Qt5Gui/Frames.py:731 +#: photobooth/gui/Qt5Gui/Frames.py:748 msgid "Keep single shots:" msgstr "Guardar fotos sueltas:" -#: photobooth/gui/Qt5Gui/Frames.py:781 +#: photobooth/gui/Qt5Gui/Frames.py:798 msgid "Enable GPIO:" msgstr "Habilitar GPIO:" -#: photobooth/gui/Qt5Gui/Frames.py:782 +#: photobooth/gui/Qt5Gui/Frames.py:799 msgid "Exit button pin (BCM numbering):" msgstr "Pin de botón salir (numeración BCM):" -#: photobooth/gui/Qt5Gui/Frames.py:783 +#: photobooth/gui/Qt5Gui/Frames.py:800 msgid "Trigger button pin (BCM numbering):" msgstr "Pon de botón gatillo (numeración BCM ):" -#: photobooth/gui/Qt5Gui/Frames.py:784 +#: photobooth/gui/Qt5Gui/Frames.py:801 msgid "Idle lamp pin (BCM numbering):" msgstr "Pin lámpara espera (numeración BCM):" -#: photobooth/gui/Qt5Gui/Frames.py:785 +#: photobooth/gui/Qt5Gui/Frames.py:802 msgid "RGB LED pins (BCM numbering):" msgstr "Pins LED RGB (numeración BCM):" -#: photobooth/gui/Qt5Gui/Frames.py:826 +#: photobooth/gui/Qt5Gui/Frames.py:843 msgid "Enable printing:" msgstr "Habilitar impresión:" -#: photobooth/gui/Qt5Gui/Frames.py:827 +#: photobooth/gui/Qt5Gui/Frames.py:844 msgid "Module:" msgstr "Módulo:" -#: photobooth/gui/Qt5Gui/Frames.py:828 +#: photobooth/gui/Qt5Gui/Frames.py:845 msgid "Print to PDF (for debugging):" msgstr "Imprimir a PDF (para debugging):" -#: photobooth/gui/Qt5Gui/Frames.py:829 +#: photobooth/gui/Qt5Gui/Frames.py:846 msgid "Ask for confirmation before printing:" msgstr "Pedir confirmar antes de imprimir:" -#: photobooth/gui/Qt5Gui/Frames.py:830 +#: photobooth/gui/Qt5Gui/Frames.py:847 msgid "Paper size [mm]:" msgstr "Tamaño de papel [mm]:" diff --git a/photobooth/locale/fr.mo b/photobooth/locale/fr.mo deleted file mode 100644 index d961bcb..0000000 Binary files a/photobooth/locale/fr.mo and /dev/null differ diff --git a/photobooth/locale/fr.po b/photobooth/locale/fr/LC_MESSAGES/photobooth.po similarity index 80% rename from photobooth/locale/fr.po rename to photobooth/locale/fr/LC_MESSAGES/photobooth.po index a9593cf..5801e24 100644 --- a/photobooth/locale/fr.po +++ b/photobooth/locale/fr/LC_MESSAGES/photobooth.po @@ -1,11 +1,18 @@ + msgid "" msgstr "" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: POEditor.com\n" -"Project-Id-Version: Photobooth\n" +"Project-Id-Version: Photobooth\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2018-08-23 16:13+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" "Language: fr\n" +"Language-Team: fr \n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.6.0\n" #: photobooth/gui/Qt5Gui/Frames.py:50 msgid "Start photobooth" @@ -155,87 +162,91 @@ msgstr "Délai de post-traitement" msgid "Overwrite displayed error message:" msgstr "Remplacement des messages d'erreur affichés :" -#: photobooth/gui/Qt5Gui/Frames.py:617 +#: photobooth/gui/Qt5Gui/Frames.py:633 msgid "Camera module:" msgstr "Module d'appareil photo :" -#: photobooth/gui/Qt5Gui/Frames.py:681 photobooth/gui/Qt5Gui/Frames.py:684 +#: photobooth/gui/Qt5Gui/Frames.py:634 +msgid "Camera rotation:" +msgstr "" + +#: photobooth/gui/Qt5Gui/Frames.py:698 photobooth/gui/Qt5Gui/Frames.py:701 msgid "Select file" msgstr "Sélectionner le fichier" -#: photobooth/gui/Qt5Gui/Frames.py:692 +#: photobooth/gui/Qt5Gui/Frames.py:709 msgid "Number of shots per picture:" msgstr "Nombre de capture par image :" -#: photobooth/gui/Qt5Gui/Frames.py:693 +#: photobooth/gui/Qt5Gui/Frames.py:710 msgid "Size of assembled picture [px]:" msgstr "Taille de l'image assemblée [px] :" -#: photobooth/gui/Qt5Gui/Frames.py:694 +#: photobooth/gui/Qt5Gui/Frames.py:711 msgid "Min. distance between shots [px]:" msgstr "Distance minim" -#: photobooth/gui/Qt5Gui/Frames.py:695 +#: photobooth/gui/Qt5Gui/Frames.py:712 msgid "Omit last picture:" msgstr "Omettre la dernière image :" -#: photobooth/gui/Qt5Gui/Frames.py:696 +#: photobooth/gui/Qt5Gui/Frames.py:713 msgid "Background image:" msgstr "Image d'arrière-plan :" -#: photobooth/gui/Qt5Gui/Frames.py:717 photobooth/gui/Qt5Gui/Frames.py:721 +#: photobooth/gui/Qt5Gui/Frames.py:734 photobooth/gui/Qt5Gui/Frames.py:738 msgid "Select directory" msgstr "Sélectionner le dossier" -#: photobooth/gui/Qt5Gui/Frames.py:729 +#: photobooth/gui/Qt5Gui/Frames.py:746 msgid "Output directory (strftime possible):" msgstr "Répertoire de sortie (strftime possible) :" -#: photobooth/gui/Qt5Gui/Frames.py:730 +#: photobooth/gui/Qt5Gui/Frames.py:747 msgid "Basename of files (strftime possible):" msgstr "Nom de base des fichiers (strftime possible) :" -#: photobooth/gui/Qt5Gui/Frames.py:731 +#: photobooth/gui/Qt5Gui/Frames.py:748 msgid "Keep single shots:" msgstr "Garder les images séparées :" -#: photobooth/gui/Qt5Gui/Frames.py:781 +#: photobooth/gui/Qt5Gui/Frames.py:798 msgid "Enable GPIO:" msgstr "Activer les GPIO :" -#: photobooth/gui/Qt5Gui/Frames.py:782 +#: photobooth/gui/Qt5Gui/Frames.py:799 msgid "Exit button pin (BCM numbering):" msgstr "Pin de bouton de sortie (numérotation BCM) :" -#: photobooth/gui/Qt5Gui/Frames.py:783 +#: photobooth/gui/Qt5Gui/Frames.py:800 msgid "Trigger button pin (BCM numbering):" msgstr "Pin de bouton de déclenchement (numérotation BCM) :" -#: photobooth/gui/Qt5Gui/Frames.py:784 +#: photobooth/gui/Qt5Gui/Frames.py:801 msgid "Idle lamp pin (BCM numbering):" msgstr "Pin pour lampe de veille (numérotation BCM) :" -#: photobooth/gui/Qt5Gui/Frames.py:785 +#: photobooth/gui/Qt5Gui/Frames.py:802 msgid "RGB LED pins (BCM numbering):" msgstr "Pins pour LED RGB (numérotation BCM) :" -#: photobooth/gui/Qt5Gui/Frames.py:826 +#: photobooth/gui/Qt5Gui/Frames.py:843 msgid "Enable printing:" msgstr "Permettre l'impression :" -#: photobooth/gui/Qt5Gui/Frames.py:827 +#: photobooth/gui/Qt5Gui/Frames.py:844 msgid "Module:" msgstr "Module :" -#: photobooth/gui/Qt5Gui/Frames.py:828 +#: photobooth/gui/Qt5Gui/Frames.py:845 msgid "Print to PDF (for debugging):" msgstr "Imprimer en PDF (à des fins de débogage)" -#: photobooth/gui/Qt5Gui/Frames.py:829 +#: photobooth/gui/Qt5Gui/Frames.py:846 msgid "Ask for confirmation before printing:" msgstr "Demander une confirmation avant impression :" -#: photobooth/gui/Qt5Gui/Frames.py:830 +#: photobooth/gui/Qt5Gui/Frames.py:847 msgid "Paper size [mm]:" msgstr "Taille du papier [mm] :" diff --git a/setup.cfg b/setup.cfg index 10cc972..009ae59 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,6 +2,16 @@ input_dirs = photobooth output_file = photobooth/locale/messages.pot +[init_catalog] +domain = photobooth +input_file = photobooth/locale/messages.pot +output_dir = photobooth/locale + +[update_catalog] +domain = photobooth +input_file = photobooth/locale/messages.pot +output_dir = photobooth/locale + [compile_catalog] domain = photobooth directory = photobooth/locale diff --git a/setup.py b/setup.py index f63646b..2f2481f 100644 --- a/setup.py +++ b/setup.py @@ -28,9 +28,21 @@ from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path +# To compile message catalogs +from setuptools.command.sdist import sdist here = path.abspath(path.dirname(__file__)) + +class Sdist(sdist): + """Custom ``sdist`` command to ensure that mo files are always created.""" + + def run(self): + self.run_command('compile_catalog') + # sdist is an old style class so super cannot be used. + sdist.run(self) + + # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() @@ -196,6 +208,7 @@ setup( # # In this case, 'data_file' will be installed into '/my_data' # data_files=[('my_data', ['data/data_file'])], # Optional + # To provide executable scripts, use entry points in preference to the # "scripts" keyword. Entry points provide cross-platform support and allow