Fix the output file to the correct one in the new i18n compile loop
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 13 Dec 2014 16:03:26 +0000 (10:03 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 13 Dec 2014 16:04:10 +0000 (10:04 -0600)
devtools/update_translations.sh

index abc96be6f70f011ee1eb8c148e77f4e256526841..d82fab1ff658635a12c7227dd3307d89032e00f4 100755 (executable)
@@ -58,7 +58,7 @@ echo "==> Compiling .mo files"
 for file in `find mediagoblin/i18n/ -name "*.po"`; do
     if [ "$file" != "mediagoblin/i18n/jbo/LC_MESSAGES/mediagoblin.po" ]; then 
         ./bin/pybabel compile -i $file \
-                      -d mediagoblin/i18n/ \
+                      -o `dirname $file`/mediagoblin.mo \
                       -l `echo $file | awk -F / '{ print $3 }'`;
     else
         echo "Skipping $file which pybabel can't compile :(";