Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #90: Missing Strings in .po-files #137

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Screenshots produced using `CameraDummy` that produces unicolor images.
* Based on [Python 3](https://www.python.org/), [Pillow](https://pillow.readthedocs.io), and [Qt5](https://www.qt.io/developers/)

### History
I started this project for my own wedding in 2015.
I started this project for my own wedding in 2015.
See [Version 0.1](https://github.com/reuterbal/photobooth/tree/v0.1) for the original version.
Github user [hackerb9](https://github.com/hackerb9/photobooth) forked this version and added a print functionality.
However, I was not happy with the original software design and the limited options provided by the previously used [pygame](https://www.pygame.org) GUI library and thus abandoned the original version.
Expand All @@ -57,6 +57,25 @@ Default settings are stored in [`defaults.cfg`](photobooth/defaults.cfg) and can
The software design is very modular.
Feel free to add new postprocessing components, a GUI based on some other library, etc.

## Adding new strings to translate

```
$ python setup.py extract_messages --output-file photobooth/locale/messages.pot
$ python setup.py update_catalog -l en -i photobooth/locale/messages.pot -o photobooth/locale/en/LC_MESSAGES/photobooth.po
$ python setup.py update_catalog -l es -i photobooth/locale/messages.pot -o photobooth/locale/es/LC_MESSAGES/photobooth.po
$ python setup.py update_catalog -l de -i photobooth/locale/messages.pot -o photobooth/locale/de/LC_MESSAGES/photobooth.po
$ python setup.py update_catalog -l fr -i photobooth/locale/messages.pot -o photobooth/locale/fr/LC_MESSAGES/photobooth.po
```

## Update translations

```
$ python setup.py compile_catalog --directory photobooth/locale --locale fr
$ python setup.py compile_catalog --directory photobooth/locale --locale es
$ python setup.py compile_catalog --directory photobooth/locale --locale en
$ python setup.py compile_catalog --directory photobooth/locale --locale de
```

## Feedback and bugs
I appreciate any feedback or bug reports.
Please submit them via the [Issue tracker](https://github.com/reuterbal/photobooth/issues/new?template=bug_report.md) and always include your `photobooth.log` file (is created automatically in the top folder) and a description of your hardware and software setup.
Expand All @@ -65,6 +84,5 @@ I am also happy to hear any success stories! Feel free to [submit them here](htt

If you find this application useful, please consider [buying me a coffee](https://www.buymeacoffee.com/reuterbal).


## License
I provide this code under AGPL v3. See [LICENSE](https://github.com/reuterbal/photobooth/blob/master/LICENSE.txt).
2 changes: 1 addition & 1 deletion photobooth/gui/GuiPostprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ def __init__(self, printer_module, paper_size, is_pdf, **kwargs):

def get(self, picture):

return PostprocessItem('Print', lambda: self._printer.print(picture))
return PostprocessItem(_('Print'), lambda: self._printer.print(picture))
2 changes: 1 addition & 1 deletion photobooth/gui/Qt5Gui/Frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __init__(self, num_picture, num_x, num_y, skip):
self._text = _('Picture {} of {}...').format(num_picture,
num_pictures)
else:
self._text = 'Taking a photo...'
self._text = _('Taking a photo...')

self.initFrame()

Expand Down
Binary file modified photobooth/locale/de/LC_MESSAGES/photobooth.mo
Binary file not shown.
138 changes: 95 additions & 43 deletions photobooth/locale/de/LC_MESSAGES/photobooth.po
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@

msgid ""
msgstr ""
"Project-Id-Version: Photobooth\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2019-06-07 22:40+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: de\n"
"Language-Team: de <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Photobooth\n"
"Language: de\n"
"Generated-By: Babel 2.7.0\n"

#: photobooth/gui/GuiPostprocessor.py:112
msgid "Print"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:50
msgid "Start photobooth"
Expand Down Expand Up @@ -51,6 +62,10 @@ msgstr "für {} Fotos..."
msgid "Picture {} of {}..."
msgstr "Foto {} von {}..."

#: photobooth/gui/Qt5Gui/Frames.py:151
msgid "Taking a photo..."
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:342
msgid "Start over"
msgstr "Nochmal"
Expand All @@ -71,11 +86,11 @@ msgstr "Uhrzeit:"
msgid "Set system date and time:"
msgstr "Systemzeit ändern:"

#: photobooth/gui/Qt5Gui/Frames.py:396 photobooth/gui/Qt5Gui/Frames.py:486
#: photobooth/gui/Qt5Gui/Frames.py:396 photobooth/gui/Qt5Gui/Frames.py:487
msgid "Save and restart"
msgstr "Speichern & Neustart"

#: photobooth/gui/Qt5Gui/Frames.py:400 photobooth/gui/Qt5Gui/Frames.py:490
#: photobooth/gui/Qt5Gui/Frames.py:400 photobooth/gui/Qt5Gui/Frames.py:491
msgid "Cancel"
msgstr "Abbrechen"

Expand Down Expand Up @@ -107,151 +122,188 @@ msgstr "GPIO"
msgid "Printer"
msgstr "Drucker"

#: photobooth/gui/Qt5Gui/Frames.py:494
#: photobooth/gui/Qt5Gui/Frames.py:479
msgid "Mailer"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:495
msgid "Restore defaults"
msgstr "Zurücksetzen"

#: photobooth/gui/Qt5Gui/Frames.py:553
#: photobooth/gui/Qt5Gui/Frames.py:554
msgid "Enable fullscreen:"
msgstr "Vollbild aktivieren:"

#: photobooth/gui/Qt5Gui/Frames.py:554
#: photobooth/gui/Qt5Gui/Frames.py:555
msgid "Gui module:"
msgstr "GUI Modul:"

#: photobooth/gui/Qt5Gui/Frames.py:555
#: photobooth/gui/Qt5Gui/Frames.py:556
msgid "Window size [px]:"
msgstr "Fenstergröße [px]:"

#: photobooth/gui/Qt5Gui/Frames.py:556
#: photobooth/gui/Qt5Gui/Frames.py:557
msgid "Hide cursor:"
msgstr "Mauszeiger ausblenden:"

#: photobooth/gui/Qt5Gui/Frames.py:557
#: photobooth/gui/Qt5Gui/Frames.py:558
msgid "Appearance:"
msgstr "Erscheinungsbild:"

#: photobooth/gui/Qt5Gui/Frames.py:597
#: photobooth/gui/Qt5Gui/Frames.py:598
msgid "Show preview during countdown:"
msgstr "Vorschau während Countdown zeigen:"

#: photobooth/gui/Qt5Gui/Frames.py:598
#: photobooth/gui/Qt5Gui/Frames.py:599
msgid "Greeter time before countdown [s]:"
msgstr "Wartezeit auf Begrüßungsbildschirm [s]:"

#: photobooth/gui/Qt5Gui/Frames.py:599
#: photobooth/gui/Qt5Gui/Frames.py:600
msgid "Countdown time [s]:"
msgstr "Countdown-Dauer [s]:"

#: photobooth/gui/Qt5Gui/Frames.py:600
#: photobooth/gui/Qt5Gui/Frames.py:601
msgid "Picture display time [s]:"
msgstr "Anzeigedauer fertiges Bild [s]:"

#: photobooth/gui/Qt5Gui/Frames.py:601
#: photobooth/gui/Qt5Gui/Frames.py:602
msgid "Postprocess timeout [s]:"
msgstr "Wartezeit auf Nachbearbeitungsbildschirm [s]"

#: photobooth/gui/Qt5Gui/Frames.py:602
#: photobooth/gui/Qt5Gui/Frames.py:603
msgid "Overwrite displayed error message:"
msgstr "Ersetze angezeigte Fehlermeldung:"

#: photobooth/gui/Qt5Gui/Frames.py:617
#: photobooth/gui/Qt5Gui/Frames.py:634
msgid "Camera module:"
msgstr "Kamera Modul:"

#: photobooth/gui/Qt5Gui/Frames.py:681 photobooth/gui/Qt5Gui/Frames.py:684
#: photobooth/gui/Qt5Gui/Frames.py:635
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
msgid "Omit last picture:"
#: photobooth/gui/Qt5Gui/Frames.py:712
#, fuzzy
msgid "Skip pictures:"
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]:"

#: photobooth/gui/Qt5Gui/Frames.py:904
msgid "Enable Mailer:"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:905
msgid "Sender mail address:"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:906
msgid "Recipient mail address:"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:907
msgid "Mail subject"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:908
msgid "Mail message:"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:909
msgid "SMTP server:"
msgstr ""

#: photobooth/gui/Qt5Gui/Frames.py:910
msgid "Server requires auth:"
msgstr ""

#: photobooth/gui/Qt5Gui/PyQt5Gui.py:164
msgid "Starting the photobooth..."
msgstr "Starte die Photobooth..."

#: photobooth/gui/Qt5Gui/PyQt5Gui.py:214
#: photobooth/gui/Qt5Gui/PyQt5Gui.py:217
msgid "Processing picture..."
msgstr "Bild wird erzeugt..."

#: photobooth/gui/Qt5Gui/PyQt5Gui.py:286
#: photobooth/gui/Qt5Gui/PyQt5Gui.py:290
msgid "Confirmation"
msgstr "Bestätigung"

#: photobooth/gui/Qt5Gui/PyQt5Gui.py:287
#: photobooth/gui/Qt5Gui/PyQt5Gui.py:291
msgid "Quit Photobooth?"
msgstr "Photobooth beenden?"

Binary file modified photobooth/locale/en/LC_MESSAGES/photobooth.mo
Binary file not shown.
Loading