MastodonHelp/web/clitools/updtrans.bash
pezcurrel 5ec1354546 ...
2020-10-18 06:53:27 +02:00

17 lines
645 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 -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