Fix the output file to the correct one in the new i18n compile loop

This commit is contained in:
Christopher Allan Webber 2014-12-13 10:03:26 -06:00
parent f5a829fabf
commit 1439e4965f

View File

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