You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
380 B

#!/bin/bash
# Compiles portable object (.po) files into machine object (.mo) files
# Requires GNU gettext
# Install with: apt-get install gettext
arrLocales=($PWD/*/);
# compiles message catalogs to binary format
for f in "${arrLocales[@]}"; do
echo -n `msgfmt -o ${f}LC_MESSAGES/messages.mo ${f}LC_MESSAGES/messages.po`
echo "Compiled ${f}LC_MESSAGES/messages.po"
done