view install-po.sh @ 778:98cdb7458225 pyntnclick

create-upload, why do you exist?
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 18:23:07 +0200
parents 43b49f1de828
children
line wrap: on
line source

#!/bin/sh

# Compiles and installs translation catalogs

for pofile in po/*.po; do
  molang=`echo $pofile | sed -e 's#po/\(.*\)\\.po#\\1#'`;
  mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`;
  mkdir -p data/locale/$molang/LC_MESSAGES
  msgfmt $pofile -o data/locale/$molang/LC_MESSAGES/suspended-sentence.mo
done