#!/bin/bash

FILES=`ls lemonldap-ng-manager/site/htdocs/static/languages/* \
        lemonldap-ng-portal/site/htdocs/static/languages/* \
        lemonldap-ng-portal/site/templates/common/mail/*|grep -v en.json|grep -v fr.json`

touch -a -m -t 200001181205.09 $FILES

tx pull

for file in $FILES; do
	js_beautify -s=1 -w $file
	perl -i -pe 's/^ //;s/": "/":"/' $file
done
git checkout lemonldap-ng-manager/site/htdocs/static/languages/fr.json \
	lemonldap-ng-portal/site/htdocs/static/languages/fr.json \
	lemonldap-ng-portal/site/templates/common/mail/fr.json
