diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-01-18 15:55:58 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-01-18 16:02:44 -0600 |
commit | 820e4294a62a93f4ee8e60b595a430bc36c1e937 (patch) | |
tree | f7827298c62fc60f3a506351b790230fb45205de /devtools | |
parent | dfea462c8eb51aa7947489997cda3b157e72f210 (diff) | |
download | mediagoblin-820e4294a62a93f4ee8e60b595a430bc36c1e937.tar.lz mediagoblin-820e4294a62a93f4ee8e60b595a430bc36c1e937.tar.xz mediagoblin-820e4294a62a93f4ee8e60b595a430bc36c1e937.zip |
Compile .po files to the LC_MESSAGES subdir
This ought to make both python's gettext and pootle happy :P
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/update_translations_pootle.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 :("; |