To translate the photobooth, follow the steps below.
Make sure you have gettext
installed.
sudo apt install gettext
This pulls the most recent content from the source files.
xgettext photobooth/**/*.py -o photobooth/locale/messages.pot
export LOCALE_LANG=ex
msgmerge photobooth/locale/$LOCALE_LANG/LC_MESSAGES/photobooth.po photobooth/locale/messages.pot -o photobooth/locale/$LOCALE_LANG/LC_MESSAGES/photobooth.po
export LOCALE_LANG=ex
mkdir -p photobooth/locale/$LOCALE_LANG/LC_MESSAGES/
msginit -i photobooth/locale/messages.pot --locale=$LOCALE_LANG -o photobooth/locale/$LOCALE_LANG/LC_MESSAGES/photobooth.po
export LOCALE_LANG=ex
msgfmt photobooth/locale/$LOCALE_LANG/LC_MESSAGES/photobooth.po -o photobooth/locale/$LOCALE_LANG/LC_MESSAGES/photobooth.mo