Created
April 7, 2014 13:28
-
-
Save ikks/10020316 to your computer and use it in GitHub Desktop.
compile translation messages of all translatable django applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script will compile the translation messages of all translatable django applications | |
# Author: AxiaCore S.A.S. http://axiacore.com | |
langs="es" | |
a=`ls -l | grep ^d | awk '{print $9}'`; | |
curdir=`pwd` | |
for i in $a | |
do | |
filename=$curdir'/'$i'/locale/es/LC_MESSAGES/django.po' | |
if [ -f $filename ] | |
then | |
cd $i | |
django-admin.py compilemessages -l $langs | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment