summaryrefslogtreecommitdiff
path: root/portal/tools/stringextract
blob: fc0c5f80d894cc325e8a464a8211558d2f970548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

if [ ! -r ../po/portal.pot ]; then
  echo "Error: Could not find ../po/portal.pot"
  echo "This script must be run from the tools/ directory."
  exit
fi

xgettext -kfunc_lang -kgettext -s -C -j -o ../po/portal.pot \
  ../template/*.html \
  ../template/about/*.html \
  ../template/admin/*.html \
  ../template/community/*.html \
  ../template/navigation/*.html \
  ../system/*.php \
  ../system/form/*.php \
  ../system/form/about/*.php \
  ../system/form/about/casestudies/*.php \
  ../system/form/support/*.php \
  ../system/global/*.php \
  ../system/page/*.php \
  ../admin/*.php