From 820e4294a62a93f4ee8e60b595a430bc36c1e937 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 18 Jan 2015 15:55:58 -0600 Subject: [PATCH] Compile .po files to the LC_MESSAGES subdir This ought to make both python's gettext and pootle happy :P --- devtools/update_translations_pootle.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/update_translations_pootle.sh b/devtools/update_translations_pootle.sh index 507a917c..1a299de8 100755 --- a/devtools/update_translations_pootle.sh +++ b/devtools/update_translations_pootle.sh @@ -44,8 +44,9 @@ echo "==> Compiling .mo files" for file in `find mediagoblin/i18n/ -name "*.po"`; do if [ "$file" != "mediagoblin/i18n/jbo/mediagoblin.po" ] && \ [ "$file" != "mediagoblin/i18n/templates/en/mediagoblin.po" ]; then + mkdir -p `dirname $file`/LC_MESSAGES/; ./bin/pybabel compile -i $file \ - -o `dirname $file`/mediagoblin.mo \ + -o `dirname $file`/LC_MESSAGES/mediagoblin.mo \ -l `echo $file | awk -F / '{ print $3 }'`; else echo "Skipping $file which pybabel can't compile :(";