String update
[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 XGETTEXT_OPTIONS="--keyword=_ -keyword=N_ --keyword=ngettext:1,2 --default-domain=squirrelmail --no-location --add-comments"
11
12 # Allows controlling language option
13 # (gettext v.0.10.40 = -C, gettext 0.11+ = -L php).
14 if [ $SM_LANG_PHP ] ; then
15  XGETTEXT_OPTIONS="${XGETTEXT_OPTIONS} -L php";
16 else
17  XGETTEXT_OPTIONS="${XGETTEXT_OPTIONS} -C";
18 fi
19   
20
21 cd ..
22 xgettext ${XGETTEXT_OPTIONS} \
23     src/*.php --output=po/squirrelmail.pot
24 xgettext ${XGETTEXT_OPTIONS} -j \
25     functions/*.php --output=po/squirrelmail.pot
26 xgettext ${XGETTEXT_OPTIONS} -j \
27     class/*.php --output=po/squirrelmail.pot
28 xgettext ${XGETTEXT_OPTIONS} -j \
29     class/mime/*.php --output=po/squirrelmail.pot
30 xgettext ${XGETTEXT_OPTIONS} -j \
31     class/deliver/*.php --output=po/squirrelmail.pot
32 xgettext ${XGETTEXT_OPTIONS} -j \
33     class/helper/*.php --output=po/squirrelmail.pot    
34 xgettext ${XGETTEXT_OPTIONS} -j \
35     class/l10n/*.php --output=po/squirrelmail.pot    
36 xgettext ${XGETTEXT_OPTIONS} -j \
37     include/*.php --output=po/squirrelmail.pot
38 xgettext ${XGETTEXT_OPTIONS} -j \
39     include/options/*.php --output=po/squirrelmail.pot
40 xgettext ${XGETTEXT_OPTIONS} -j \
41     images/themes/*/*.php --output=po/squirrelmail.pot
42     
43 # ** Plugins
44     
45 xgettext ${XGETTEXT_OPTIONS} -j \
46     plugins/abook_take/*.php --output=po/squirrelmail.pot
47 xgettext ${XGETTEXT_OPTIONS} -j \
48     plugins/administrator/*.php --output=po/squirrelmail.pot
49 xgettext ${XGETTEXT_OPTIONS} -j \
50     plugins/bug_report/*.php --output=po/squirrelmail.pot
51 xgettext ${XGETTEXT_OPTIONS} -j \
52     plugins/calendar/*.php --output=po/squirrelmail.pot
53 xgettext ${XGETTEXT_OPTIONS} -j \
54     plugins/change_password/*.php --output=po/squirrelmail.pot
55 xgettext ${XGETTEXT_OPTIONS} -j \
56     plugins/change_password/backend/*.php --output=po/squirrelmail.pot
57 xgettext ${XGETTEXT_OPTIONS} -j \
58     plugins/filters/*.php --output=po/squirrelmail.pot
59 xgettext ${XGETTEXT_OPTIONS} -j \
60     plugins/fortune/*.php --output=po/squirrelmail.pot
61 xgettext ${XGETTEXT_OPTIONS} -j \
62     plugins/info/*.php --output=po/squirrelmail.pot
63 xgettext ${XGETTEXT_OPTIONS} -j \
64     plugins/listcommands/*.php --output=po/squirrelmail.pot
65 xgettext ${XGETTEXT_OPTIONS} -j \
66     plugins/mail_fetch/*.php --output=po/squirrelmail.pot
67 xgettext ${XGETTEXT_OPTIONS} -j \
68     plugins/message_details/*.php --output=po/squirrelmail.pot
69 xgettext ${XGETTEXT_OPTIONS} -j \
70     plugins/newmail/*.php --output=po/squirrelmail.pot
71 xgettext ${XGETTEXT_OPTIONS} -j \
72     plugins/sent_subfolders/*.php --output=po/squirrelmail.pot
73 xgettext ${XGETTEXT_OPTIONS} -j \
74     plugins/spamcop/*.php --output=po/squirrelmail.pot
75 xgettext ${XGETTEXT_OPTIONS} -j \
76     plugins/squirrelspell/*.php --output=po/squirrelmail.pot
77 xgettext ${XGETTEXT_OPTIONS} -j \
78     plugins/squirrelspell/modules/*.mod \
79     --output=po/squirrelmail.pot
80 xgettext ${XGETTEXT_OPTIONS} -j \
81     plugins/translate/*.php --output=po/squirrelmail.pot
82
83 xgettext ${XGETTEXT_OPTIONS} -j \
84     po/independent_strings.txt --output=po/squirrelmail.pot
85
86 cd po