Remove dependence on database.

This commit is contained in:
Andrew McMillan 2007-11-03 18:07:32 +13:00
parent 5ee58e34b3
commit 0920c1ef31

View File

@ -18,14 +18,14 @@ sed -e 's/CHARSET/UTF-8/' <${PODIR}/messages.tmp >${PODIR}/messages.po
rm ${PODIR}/messages.tmp
for LOCALE in `psql -qAt -c 'SELECT locale FROM supported_locales;' caldav` ; do
for LOCALE in `grep VALUES dba/supported_locales.sql | cut -f2 -d"'"` ; do
if [ ! -f ${PODIR}/${LOCALE}.po ] ; then
cp ${PODIR}/messages.po ${PODIR}/${LOCALE}.po
fi
msgmerge --quiet --width 105 --update ${PODIR}/${LOCALE}.po ${PODIR}/messages.po
done
for LOCALE in `psql -qAt -c 'SELECT locale FROM supported_locales;' caldav` ; do
for LOCALE in `grep VALUES dba/supported_locales.sql | cut -f2 -d"'"` ; do
mkdir -p ${LOCALEDIR}/${LOCALE}/LC_MESSAGES
msgfmt ${PODIR}/${LOCALE}.po -o ${LOCALEDIR}/${LOCALE}/LC_MESSAGES/${APPLICATION}.mo
done