Prevent endless recursive sent subfolder names - see: http://thread.gmane.org/gmane...
[squirrelmail.git] / po / xgetpo
CommitLineData
02473506 1#!/bin/sh
503a49a4 2
d38329ce 3# This script regenerates main POT file
5e9a440b 4#
d38329ce 5# Philipe Mingo <mingo@rotedic.com>
6#
7# $Id$
d2181f2c 8
9# force use of same locale in order to keep same sorting order
10LC_ALL=en_US.ISO8859-1
11LANG=en_US.ISO8859-1
12export LC_ALL LANG
13
14# set common gettext options
b986936a 15XGETTEXT_OPTIONS="--keyword=_ -keyword=N_ --keyword=ngettext:1,2 --default-domain=squirrelmail --no-location --add-comments=i18n"
859f2151 16
17# Allows controlling language option
18# (gettext v.0.10.40 = -C, gettext 0.11+ = -L php).
fb46f458 19if [ $SM_LANG_C ] ; then
859f2151 20 XGETTEXT_OPTIONS="${XGETTEXT_OPTIONS} -C";
fb46f458 21else
22 XGETTEXT_OPTIONS="${XGETTEXT_OPTIONS} -L php";
859f2151 23fi
859f2151 24
e7a2b2b3 25cd ..
5e9a440b 26xgettext ${XGETTEXT_OPTIONS} \
e7a2b2b3 27 src/*.php --output=po/squirrelmail.pot
5e9a440b 28xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 29 class/*.php --output=po/squirrelmail.pot
5e9a440b 30xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 31 class/*/*.php --output=po/squirrelmail.pot
5e9a440b 32xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 33 functions/*.php --output=po/squirrelmail.pot
5e9a440b 34xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 35 functions/template/*.php --output=po/squirrelmail.pot
5e9a440b 36xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 37 images/themes/*/*.php --output=po/squirrelmail.pot
5e9a440b 38xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 39 include/*.php --output=po/squirrelmail.pot
0f98b4c7 40xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 41 include/options/*.php --output=po/squirrelmail.pot
d38329ce 42
43# Plugins
44
5e9a440b 45xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 46 plugins/administrator/*.php --output=po/squirrelmail.pot
5e9a440b 47xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 48 plugins/bug_report/*.php --output=po/squirrelmail.pot
5e9a440b 49xgettext ${XGETTEXT_OPTIONS} -j \
082fb7fd 50 plugins/bug_report/templates/default/*.tpl --output=po/squirrelmail.pot
51xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 52 plugins/calendar/*.php --output=po/squirrelmail.pot
5e9a440b 53xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 54 plugins/change_password/*.php --output=po/squirrelmail.pot
b8923d20 55xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 56 plugins/change_password/backend/*.php --output=po/squirrelmail.pot
b8923d20 57xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 58 plugins/filters/*.php --output=po/squirrelmail.pot
5e9a440b 59xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 60 plugins/fortune/*.php --output=po/squirrelmail.pot
5e9a440b 61xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 62 plugins/info/*.php --output=po/squirrelmail.pot
5e9a440b 63xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 64 plugins/listcommands/*.php --output=po/squirrelmail.pot
5e9a440b 65xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 66 plugins/listcommands/templates/default/*.tpl --output=po/squirrelmail.pot
67xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 68 plugins/mail_fetch/*.php --output=po/squirrelmail.pot
5e9a440b 69xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 70 plugins/message_details/*.php --output=po/squirrelmail.pot
5e9a440b 71xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 72 plugins/newmail/*.php --output=po/squirrelmail.pot
5e9a440b 73xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 74 plugins/preview_pane/*.php --output=po/squirrelmail.pot
75xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 76 plugins/sent_subfolders/*.php --output=po/squirrelmail.pot
5e9a440b 77xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 78 plugins/spamcop/*.php --output=po/squirrelmail.pot
5e9a440b 79xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 80 plugins/squirrelspell/*.php --output=po/squirrelmail.pot
5e9a440b 81xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 82 plugins/squirrelspell/class/*.php --output=po/squirrelmail.pot
83xgettext ${XGETTEXT_OPTIONS} -j \
84 plugins/squirrelspell/modules/*.mod --output=po/squirrelmail.pot
5e9a440b 85xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 86 plugins/translate/*.php --output=po/squirrelmail.pot
405ea34b 87
d38329ce 88# Templates
f008af86 89
a3f7bbd8 90xgettext ${XGETTEXT_OPTIONS} -j \
91 templates/*.php --output=po/squirrelmail.pot
92xgettext ${XGETTEXT_OPTIONS} -j \
93 templates/default/*.tpl --output=po/squirrelmail.pot
00e6f990 94xgettext ${XGETTEXT_OPTIONS} -j \
d38329ce 95 templates/default/plugins/fortune/*.tpl --output=po/squirrelmail.pot
96xgettext ${XGETTEXT_OPTIONS} -j \
97 templates/default/plugins/listcommands/*.tpl --output=po/squirrelmail.pot
98xgettext ${XGETTEXT_OPTIONS} -j \
00e6f990 99 templates/default_advanced/*.tpl --output=po/squirrelmail.pot
d38329ce 100
f008af86 101# Independent strings
a3f7bbd8 102
5e9a440b 103xgettext ${XGETTEXT_OPTIONS} -j \
e7a2b2b3 104 po/independent_strings.txt --output=po/squirrelmail.pot
3fd1252d 105
d38329ce 106# print stats
107msgfmt --statistics ${SM_LOCALES_PATH}/po/squirrelmail.pot -o /dev/null
108
e7a2b2b3 109cd po