#!/bin/sh

# **
# ** This script regenerates main PO file
# **
# ** Philipe Mingo <mingo@rotedic.com>
# ** 
# **  $Id: xgetpo,v 1.16 2002/02/09 15:12:57 philippe_mingo Exp $ 
cd ../..
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail \
    -C squirrelmail/src/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/functions/*.php --output-dir=squirrelmail/po/
    
# ** Plugins
    
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/filters/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/squirrelspell/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/squirrelspell/modules/*.mod \
    --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/translate/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/newmail/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/mail_fetch/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/bug_report/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/sent_subfolders/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/calendar/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/listcommands/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/delete_move_next/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/plugins/administrator/*.php --output-dir=squirrelmail/po/
#xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
#    -C squirrelmail/plugins/spamcop/*.php --output-dir=squirrelmail/po/
xgettext --keyword=_ -keyword=N_  --default-domain=squirrelmail -j \
    -C squirrelmail/po/independent_strings.txt --output-dir=squirrelmail/po/

cd squirrelmail/po
