diff --git a/Makefile.am b/Makefile.am
index e07362fd56b2d9eaf329461c26d06270d1ef1342..6d58f38cc2ec2407dc4487e51b2743f906f6ccc2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,3 +19,6 @@ EXTRA_DIST = \
 	t/edugain.xml \
 	t/lib.pm \
 	$(TESTS)
+
+extract:
+	xgettext.pl -D lib -D templates --plugin 'perl=*'