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