wmdeit_kaform/mkm.sh

11 lines
399 B
Bash
Raw Permalink Normal View History

2021-07-06 18:36:18 +02:00
#!/bin/sh
touch messages.po
xgettext --add-comments --from-code=utf-8 ka.php
msgmerge locale/en_US/LC_MESSAGES/messages.po messages.po > new.po
cp locale/en_US/LC_MESSAGES/messages.po locale/en_US/LC_MESSAGES/messages.po.bak
mv new.po locale/en_US/LC_MESSAGES/messages.po
rm locale/en_US/LC_MESSAGES/messages.mo
msgfmt locale/en_US/LC_MESSAGES/messages.po -o locale/en_US/LC_MESSAGES/messages.mo