view scripts/install-po.sh @ 789:1466365bd395 pyntnclick

Add a test for loading a resource with a dialect.
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 20:11:17 +0200
parents abfa4f7e89a0
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