#!/bin/sh

# Make the kmess.pot file.
make -C .. -f admin/Makefile.common package-messages

echo
echo 'Consider updating kmess.pot before running mergetrans'
echo 'Remove the following entries:'
echo '- "..."'
echo '- key combinations, search for "+"'
echo '- widget names, search for "[a-z][A-Z]"'
echo

# xgettext -C -ki18n -kI18N_NOOP -ktranslate -kaliasLocale \
#          -o messages.po
#          -x "`kde-config --prefix`/include/kde.pot" \
# 		 ../kmess/*.cpp \
# 		 ../kmess/chat/*.cpp \
# 		 ../kmess/contact/*.cpp \
# 		 ../kmess/dialogs/*.cpp \
# 		 ../kmess/network/applications/*.cpp \
# 		 ../kmess/network/*.cpp \
# 		 ../kmess/notification/*.cpp \
# 		 ../kmess/settings/*.cpp
# 
# rm -rf kmess.pot
# mv messages.po kmess.pot 
