Make our Date header RFC-compliant. Redundant timezone info does not comply with...
[squirrelmail.git] / po / xgetpo
1 #!/bin/sh
2
3 # **
4 # ** This script regenerates main POT file
5 # **
6 # ** Philipe Mingo <mingo@rotedic.com>
7 # ** 
8 # **  $Id$
9 #
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
17 XGETTEXT_OPTIONS="--keyword=_ -keyword=N_ --keyword=ngettext:1,2 --default-domain=squirrelmail --no-location --add-comments=i18n"
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
28 cd ..
29 xgettext ${XGETTEXT_OPTIONS} \
30     src/*.php --output=po/squirrelmail.pot
31 xgettext ${XGETTEXT_OPTIONS} -j \
32     functions/*.php --output=po/squirrelmail.pot
33 xgettext ${XGETTEXT_OPTIONS} -j \
34     class/*.php --output=po/squirrelmail.pot
35 xgettext ${XGETTEXT_OPTIONS} -j \
36     class/mime/*.php --output=po/squirrelmail.pot
37 xgettext ${XGETTEXT_OPTIONS} -j \
38     class/deliver/*.php --output=po/squirrelmail.pot
39 xgettext ${XGETTEXT_OPTIONS} -j \
40     class/helper/*.php --output=po/squirrelmail.pot    
41 xgettext ${XGETTEXT_OPTIONS} -j \
42     class/l10n/*.php --output=po/squirrelmail.pot    
43 xgettext ${XGETTEXT_OPTIONS} -j \
44     include/*.php --output=po/squirrelmail.pot
45 xgettext ${XGETTEXT_OPTIONS} -j \
46     include/options/*.php --output=po/squirrelmail.pot
47 xgettext ${XGETTEXT_OPTIONS} -j \
48     images/themes/*/*.php --output=po/squirrelmail.pot
49     
50 # ** Plugins
51     
52 xgettext ${XGETTEXT_OPTIONS} -j \
53     plugins/abook_take/*.php --output=po/squirrelmail.pot
54 xgettext ${XGETTEXT_OPTIONS} -j \
55     plugins/administrator/*.php --output=po/squirrelmail.pot
56 xgettext ${XGETTEXT_OPTIONS} -j \
57     plugins/bug_report/*.php --output=po/squirrelmail.pot
58 xgettext ${XGETTEXT_OPTIONS} -j \
59     plugins/bug_report/templates/default/*.tpl --output=po/squirrelmail.pot
60 xgettext ${XGETTEXT_OPTIONS} -j \
61     plugins/calendar/*.php --output=po/squirrelmail.pot
62 xgettext ${XGETTEXT_OPTIONS} -j \
63     plugins/change_password/*.php --output=po/squirrelmail.pot
64 xgettext ${XGETTEXT_OPTIONS} -j \
65     plugins/change_password/backend/*.php --output=po/squirrelmail.pot
66 xgettext ${XGETTEXT_OPTIONS} -j \
67     plugins/filters/*.php --output=po/squirrelmail.pot
68 xgettext ${XGETTEXT_OPTIONS} -j \
69     plugins/fortune/*.php --output=po/squirrelmail.pot
70 xgettext ${XGETTEXT_OPTIONS} -j \
71     plugins/info/*.php --output=po/squirrelmail.pot
72 xgettext ${XGETTEXT_OPTIONS} -j \
73     plugins/listcommands/*.php --output=po/squirrelmail.pot
74 xgettext ${XGETTEXT_OPTIONS} -j \
75     plugins/mail_fetch/*.php --output=po/squirrelmail.pot
76 xgettext ${XGETTEXT_OPTIONS} -j \
77     plugins/message_details/*.php --output=po/squirrelmail.pot
78 xgettext ${XGETTEXT_OPTIONS} -j \
79     plugins/newmail/*.php --output=po/squirrelmail.pot
80 xgettext ${XGETTEXT_OPTIONS} -j \
81     plugins/sent_subfolders/*.php --output=po/squirrelmail.pot
82 xgettext ${XGETTEXT_OPTIONS} -j \
83     plugins/spamcop/*.php --output=po/squirrelmail.pot
84 xgettext ${XGETTEXT_OPTIONS} -j \
85     plugins/squirrelspell/*.php --output=po/squirrelmail.pot
86 xgettext ${XGETTEXT_OPTIONS} -j \
87     plugins/squirrelspell/modules/*.mod \
88     --output=po/squirrelmail.pot
89 xgettext ${XGETTEXT_OPTIONS} -j \
90     plugins/translate/*.php --output=po/squirrelmail.pot
91
92 # ** Templates
93
94 xgettext ${XGETTEXT_OPTIONS} -j \
95     templates/*.php --output=po/squirrelmail.pot
96 xgettext ${XGETTEXT_OPTIONS} -j \
97     templates/default/*.tpl --output=po/squirrelmail.pot
98 xgettext ${XGETTEXT_OPTIONS} -j \
99     templates/default_advanced/*.tpl --output=po/squirrelmail.pot
100     
101 # Independent strings
102
103 xgettext ${XGETTEXT_OPTIONS} -j \
104     po/independent_strings.txt --output=po/squirrelmail.pot
105
106 cd po