MastodonHelp/web/clitools/updtrans.bash

18 lines
645 B
Bash
Raw Normal View History

2020-10-15 19:24:45 +02:00
#!/bin/bash
BASEDIR=$(dirname "$0")
cd "$BASEDIR"
cd ../..
xgettext --no-wrap --from-code utf-8 --add-comments custard.php -o locale/custard.pot
2020-10-16 12:14:12 +02:00
msgen --no-wrap locale/custard.pot -o locale/it/en_US.UTF-8/LC_MESSAGES/custard.po
2020-10-15 19:24:45 +02:00
msgfmt locale/it/en_US.UTF-8/LC_MESSAGES/custard.po -o locale/it/en_US.UTF-8/LC_MESSAGES/custard.mo
2020-10-16 12:14:12 +02:00
msgmerge --update --no-wrap locale/en/en_US.UTF-8/LC_MESSAGES/custard.po locale/custard.pot
2020-10-15 19:24:45 +02:00
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