#!/bin/bash
# update i18n informations

echo "creating po/POTFILES.in"
grep '_(' *.c *.h|cut -d: -f1 |sort -u > po/POTFILES.in

echo "extracting translatable strings"
for i in po/*.po;
do xgettext -d `basename $i .po` --keyword=_ --keyword=N_ -j -p po -C -f po/POTFILES.in;
done
