root/trunk/tools/makemsgs

Revision 1218, 0.8 kB (checked in by rats, 6 months ago)

Updated language tools

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2
3 set -e
4
5 if [ $1 ] && [ -d $1 ]; then
6         GUI=${1}/
7 else
8         GUI=../gui/
9 fi
10
11 if [ ! -f ${GUI}/index.php ]; then
12         if [ -f ${GUI}/gui/index.php ]; then
13                 GUI=${GUI}/gui/
14         fi
15 fi
16
17 if [ ! -f ${GUI}/index.php ]; then
18         echo "${GUI} isn't a valid gui/ location!"
19         exit 1
20 fi
21
22 #/usr/bin/xgettext --language=PHP --output-dir=${GUI}../language-files/po --copyright-holder=ispCP\ Team --keyword=tr --no-wrap ${GUI}*.php ${GUI}*/*.php --default-domain=ispCP --output=ispCP.pot
23 /usr/bin/xgettext --language=PHP --output-dir=${GUI}../language-files/po --copyright-holder=ispCP\ Team --keyword=tr --no-wrap ${GUI}/include/i18n.php ${GUI}*.php ${GUI}*/*.php --default-domain=ispCP --output=ispCP.pot --no-location
24
25 sed --in-place 's/msgid "encoding"/#. Please ignore this entry\nmsgid "encoding"/' ${GUI}../language-files/po/ispCP.pot
26
27 exit 1
Note: See TracBrowser for help on using the browser.