view scripts/install-po.sh @ 782:6a3440c8be8d pyntnclick

The title needs to be lazily translated. It's evaluated before we set up gettext
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 19:13:07 +0200
parents 087d3ff0aa08
children abfa4f7e89a0
line wrap: on
line source

#!/bin/sh

# Compiles and installs translation catalogs

set -eu

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
  scripts/msgfmt.py -o data/locale/$molang/LC_MESSAGES/suspended-sentence.mo $pofile
done