#!/bin/sh
# $Id: create_po_template.sh 17904 2008-08-23 14:28:51Z JensT $
#
#note: requires xgettext version 0.12.1 or greater
#
#Note: for version 1.4.2, to support email internationalisation, need to 
#add keyword i18n to xgettext call


##### CORE .pot ############
cat copyright-header.txt > gallery-core.pot
xgettext -LPHP				\
	--files-from=filelist-core	\
	--keyword=gTranslate:2		\
	--keyword=gTranslate:2,3	\
	--no-wrap 			\
	--msgid-bugs-address="gallery-translations@lists.sourceforge.net" \
	-o - | tail -n +7 >> gallery-core.pot

##### CONFIG .pot
cat copyright-header.txt > gallery-config.pot
xgettext -LPHP				\
	--files-from=filelist-config	\
	--keyword=gTranslate:2		\
	--keyword=gTranslate:2,3	\
	--no-wrap 			\
	--msgid-bugs-address="gallery-translations@lists.sourceforge.net" \
	-o - | tail -n +7 >> gallery-config.pot

##### COMMON .pot
cat copyright-header.txt > gallery-common.pot
xgettext -LPHP				\
	--files-from=filelist-common	\
	--keyword=gTranslate:2		\
	--keyword=gTranslate:2,3	\
	--no-wrap 			\
	--msgid-bugs-address="gallery-translations@lists.sourceforge.net" \
	-o - | tail -n +7 >> gallery-common.pot
