MastodonHelp/web/mustard/clitools/updtrans.bash
pezcurrel 066761f52a ...
2020-10-15 19:24:45 +02:00

17 lines
644 B
Bash
Executable file

#!/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 > 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 --no-wrap --update 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