MastodonHelp/web/clitools/updtrans.bash
pezcurrel 20a9cec2b5 ...
2020-10-20 22:06:00 +02:00

17 lines
647 B
Bash
Executable file

#!/bin/bash
BASEDIR=$(dirname "$0")
cd "$BASEDIR"
cd ../site
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