From 0920c1ef312b7e20f6b26a3cb1078ed57d961bdd Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 3 Nov 2007 18:07:32 +1300 Subject: [PATCH] Remove dependence on database. --- scripts/po/rebuild-translations.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/po/rebuild-translations.sh b/scripts/po/rebuild-translations.sh index 12c220fa..d28b1cb5 100755 --- a/scripts/po/rebuild-translations.sh +++ b/scripts/po/rebuild-translations.sh @@ -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