summaryrefslogtreecommitdiff
path: root/pocompile.sh
blob: b895b9aebcf48b0e2da2b57e8f164f5b99770d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Helper script to compile all .po files in the i18n directroy into .mo files.

# Copied from porthole :)
cd i18n
for ITEM in *.po; do
	ITEM2=${ITEM/.po/}
	LANG=${ITEM2/_??/}
	mkdir ${LANG}/LC_MESSAGES -p
	msgfmt ${ITEM} -o ${LANG}/LC_MESSAGES/portato.mo
done