Makefile 732 Bytes
Newer Older
1
POT=lib/Lutim/I18N/framapic.pot
2 3 4 5 6 7 8 9 10 11 12
SEDOPTS=-e "s@SOME DESCRIPTIVE TITLE@Lutim language file@" \
		-e "s@YEAR THE PACKAGE'S COPYRIGHT HOLDER@2015 Luc Didry@" \
		-e "s@CHARSET@utf8@" \
		-e "s@the PACKAGE package@the Lutim package@" \
		-e '/^\#\. (/{N;/\n\#\. (/{N;/\n.*\.\.\/default\//{s/\#\..*\n.*\#\./\#. (/g}}}' \
		-e '/^\#\. (/{N;/\n.*\.\.\/default\//{s/\n/ /}}' 
SEDOPTS2=-e '/^\#.*\.\.\/default\//,+3d'
XGETTEXT=carton exec ../../local/bin/xgettext.pl
CARTON=carton exec

locales:
13 14 15 16 17 18 19 20 21 22 23 24
	$(XGETTEXT) -D templates -D ../default/templates -o $(POT) 2>/dev/null
	sed $(SEDOPTS) -i $(POT)
	sed $(SEDOPTS2) -i $(POT)

push-locales: locales
	zanata-cli -q -B push

pull-locales:
	zanata-cli -q -B pull

stats-locales:
	zanata-cli -q stats