2011-01-09 06:47:04 +01:00
|
|
|
#!/bin/bash
|
2011-01-06 14:57:46 +01:00
|
|
|
|
|
|
|
cd ${0/gettextize/}/..
|
|
|
|
SRCDIR=Source
|
2011-01-12 14:14:50 +01:00
|
|
|
CPP_FILE_LIST=$(find $SRCDIR \( -name '*.cpp' -o -name '*.h' -o -name '*.c' \) \
|
2011-01-14 04:05:02 +01:00
|
|
|
-a ! -path '*Debug*')
|
|
|
|
xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=SuccessAlertT \
|
|
|
|
--keyword=PanicAlertT --keyword=PanicYesNoT --keyword=AskYesNoT --keyword=_trans \
|
2011-07-15 16:49:34 +02:00
|
|
|
--keyword=CriticalAlertT --add-comments=i18n -p ./Languages/po -o dolphin-emu.pot \
|
|
|
|
$CPP_FILE_LIST --package-name="Dolphin Emu"
|
2011-01-09 06:47:04 +01:00
|
|
|
|
2011-04-06 15:58:03 +02:00
|
|
|
POTFILE=./Languages/po/dolphin-emu.pot
|
2011-03-14 14:33:11 +01:00
|
|
|
PO_FILES=$(find ./Languages/po -name '*.po')
|
2011-01-09 06:47:04 +01:00
|
|
|
for PO in $PO_FILES
|
|
|
|
do
|
|
|
|
msgmerge --quiet --update --backup=none -s $PO $POTFILE
|
|
|
|
done
|