#!/bin/bash BASEDIR=$(dirname "$0") cd "$BASEDIR" cd ../.. xgettext --no-wrap --from-code utf-8 --add-comments custard.php -o locale/custard.pot msgen --no-wrap locale/custard.pot -o locale/it/en_US.UTF-8/LC_MESSAGES/custard.po msgfmt locale/it/en_US.UTF-8/LC_MESSAGES/custard.po -o locale/it/en_US.UTF-8/LC_MESSAGES/custard.mo msgmerge --update --no-wrap locale/en/en_US.UTF-8/LC_MESSAGES/custard.po locale/custard.pot echo "Ora puoi editare «locale/en/en_US.UTF-8/LC_MESSAGES/custard.po», poi premi invio per salvare il file .mo" read msgfmt locale/en/en_US.UTF-8/LC_MESSAGES/custard.po -o locale/en/en_US.UTF-8/LC_MESSAGES/custard.mo