|
Lines 10-16
Link Here
|
| 10 |
PODIR="po" |
10 |
PODIR="po" |
| 11 |
LOCALEDIR="locale" |
11 |
LOCALEDIR="locale" |
| 12 |
APPLICATION="davical" |
12 |
APPLICATION="davical" |
| 13 |
AWL_LOCATION="../awl" |
13 |
AWL_LOCATION="/usr/share/php/awl/inc" |
| 14 |
|
14 |
|
| 15 |
if [ ! -d "${AWL_LOCATION}" ]; then |
15 |
if [ ! -d "${AWL_LOCATION}" ]; then |
| 16 |
AWL_LOCATION="`find .. -type d -name 'awl-*.*'`" |
16 |
AWL_LOCATION="`find .. -type d -name 'awl-*.*'`" |
|
Lines 25-31
fi
Link Here
|
| 25 |
|
25 |
|
| 26 |
egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1 |
26 |
egrep -l '(i18n|translate)' htdocs/*.php inc/*.php inc/ui/*.php > ${PODIR}/pofilelist.tmp1 |
| 27 |
sed "s:../awl:${AWL_LOCATION}:" ${PODIR}/pofilelist.txt >> ${PODIR}/pofilelist.tmp1 |
27 |
sed "s:../awl:${AWL_LOCATION}:" ${PODIR}/pofilelist.txt >> ${PODIR}/pofilelist.tmp1 |
| 28 |
sort ${PODIR}/pofilelist.tmp1 | uniq > ${PODIR}/pofilelist.tmp |
28 |
sed "s:/awl/inc/:/awl/:" ${PODIR}/pofilelist.tmp1 >> ${PODIR}/pofilelist.tmp2 |
|
|
29 |
sort ${PODIR}/pofilelist.tmp2 | uniq > ${PODIR}/pofilelist.tmp |
| 29 |
xgettext --no-location --add-comments=Translators --keyword=translate --keyword=i18n --output=${PODIR}/messages.tmp -s -f ${PODIR}/pofilelist.tmp |
30 |
xgettext --no-location --add-comments=Translators --keyword=translate --keyword=i18n --output=${PODIR}/messages.tmp -s -f ${PODIR}/pofilelist.tmp |
| 30 |
sed 's.^"Content-Type: text/plain; charset=CHARSET\\n"."Content-Type: text/plain; charset=UTF-8\\n".' ${PODIR}/messages.tmp > ${PODIR}/messages.pot |
31 |
sed 's.^"Content-Type: text/plain; charset=CHARSET\\n"."Content-Type: text/plain; charset=UTF-8\\n".' ${PODIR}/messages.tmp > ${PODIR}/messages.pot |
| 31 |
rm ${PODIR}/messages.tmp ${PODIR}/pofilelist.tmp ${PODIR}/pofilelist.tmp1 |
32 |
rm ${PODIR}/messages.tmp ${PODIR}/pofilelist.tmp ${PODIR}/pofilelist.tmp1 |