aboutsummaryrefslogtreecommitdiffstats
path: root/devtools
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-01-18 15:55:58 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2015-01-18 16:02:44 -0600
commit820e4294a62a93f4ee8e60b595a430bc36c1e937 (patch)
treef7827298c62fc60f3a506351b790230fb45205de /devtools
parentdfea462c8eb51aa7947489997cda3b157e72f210 (diff)
downloadmediagoblin-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-xdevtools/update_translations_pootle.sh3
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 :(";