Skip to content

Instantly share code, notes, and snippets.

@martinsam
Last active December 17, 2015 00:59
Show Gist options
  • Save martinsam/5525185 to your computer and use it in GitHub Desktop.
Save martinsam/5525185 to your computer and use it in GitHub Desktop.
pre-commit - Check po
if check_po /home/sam/opquast/pdn/locale/fr/LC_MESSAGES/django.po | grep 'FUZZY'; then
echo "\033[44m----------------------------------------------------\033[0m"
echo "\033[31m FUZZY présent dans locale/fr/LC_MESSAGES/django.po\033[0m"
exit 1
else
echo -n "\033[32m"
check_po /home/sam/opquast/pdn/locale/fr/LC_MESSAGES/django.po
echo -n "\033[0m"
fi
Install https://github.com/martinsam/check_po
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment