#!/bin/bash

for i in membership sikteeri services; do
	(cd $i && django-admin.py compilemessages)
done

#!/bin/bash

NEW=$1

# If new strings have been introduced, translations need
# to be updated.
#
# Run:
#
# ./compile-translations.sh new

for i in membership sikteeri services; do
	(
		cd $i
		if [ "$1" = "new" ]; then
			django-admin.py makemessages -a
			django-admin.py makemessages -a -e js
		fi
		django-admin.py compilemessages
	)
done

Add parameter for new strings in translations
Add parameter for new strings in translations
