#!/bin/sh
# $Id: create_po_template.sh 14478 2006-09-08 15:15:00Z 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 +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 +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 +7 >> gallery-common.pot
