view scripts/install-po.sh @ 788:abfa4f7e89a0 pyntnclick

Update scripts to handle moved po directory
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 26 Jan 2013 20:09:49 +0200
parents 087d3ff0aa08
children 42cfafa20437
line wrap: on
line source

#!/bin/sh

# Compiles and installs translation catalogs

set -eu

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