2008-04-21 09:34:39 -04:00
|
|
|
# run this script from the root directory to re-generate the .pot file
|
|
|
|
#
|
|
|
|
# ./data/po/update_pot.sh
|
|
|
|
|
2010-01-31 13:21:15 -05:00
|
|
|
CPP_FILE_LIST="`find ./src -name '*.cpp' -print` `find ./src -name '*.hpp' -print`"
|
2009-12-22 16:57:15 -05:00
|
|
|
LISP_FILE_LIST="`find ./data -name '*.track' -print` `find ./data -name '*.challenge' -print` `find ./data -name '*.grandprix' -print`"
|
2010-02-15 19:33:41 -05:00
|
|
|
#XML_FILE_LIST=`find ./data -name '*.xml' -print`
|
2010-09-01 12:01:19 -04:00
|
|
|
OTHER_XML_FILES=`find ./data -name '*.stkgui' -print && find ./data -name '*.challenge' -print && find ./data -name '*.grandprix' -print && find ./data -name 'kart.xml' -print`
|
2008-05-09 14:39:48 -04:00
|
|
|
|
|
|
|
echo "--------------------"
|
2008-05-10 10:48:57 -04:00
|
|
|
echo " Source Files :"
|
2008-05-09 14:39:48 -04:00
|
|
|
echo "--------------------"
|
|
|
|
echo $CPP_FILE_LIST
|
2009-08-29 17:16:51 -04:00
|
|
|
|
2008-05-10 10:48:57 -04:00
|
|
|
echo "--------------------"
|
2010-09-01 12:01:19 -04:00
|
|
|
echo " XML Files :"
|
2008-05-10 10:48:57 -04:00
|
|
|
echo "--------------------"
|
2009-12-22 16:57:15 -05:00
|
|
|
echo $LISP_FILE_LIST
|
2010-09-01 12:01:19 -04:00
|
|
|
echo $OTHER_XML_FILES
|
2009-08-29 21:28:46 -04:00
|
|
|
|
|
|
|
# XML Files
|
2010-02-15 19:33:41 -05:00
|
|
|
python ./data/po/extract_strings_from_XML.py $OTHER_XML_FILES
|
2009-08-29 17:16:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-09 14:39:48 -04:00
|
|
|
echo "---------------------------"
|
|
|
|
echo " Generating .pot file..."
|
2009-08-29 17:16:51 -04:00
|
|
|
|
|
|
|
# C++ Files
|
2010-05-25 14:47:38 -04:00
|
|
|
xgettext -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot $CPP_FILE_LIST --package-name=supertuxkart
|
2009-08-29 17:16:51 -04:00
|
|
|
|
|
|
|
# Lisp files
|
2010-05-25 14:47:38 -04:00
|
|
|
xgettext -j -L lisp -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot $LISP_FILE_LIST --package-name=supertuxkart
|
2009-08-29 17:16:51 -04:00
|
|
|
|
|
|
|
# XML Files
|
2010-05-25 14:47:38 -04:00
|
|
|
xgettext -j -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot ./data/po/gui_strings.h --package-name=supertuxkart
|
2009-08-29 17:16:51 -04:00
|
|
|
|
2008-05-09 14:39:48 -04:00
|
|
|
echo " Done"
|
2010-05-25 14:47:38 -04:00
|
|
|
echo "---------------------------"
|