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`"
|
2011-01-10 18:04:27 -05:00
|
|
|
XML_FILE_LIST="`find ./data -name 'track.xml' -print` `find ./data -name '*.challenge' -print` `find ./data -name '*.grandprix' -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 "--------------------"
|
2011-01-10 18:04:27 -05:00
|
|
|
echo $XML_FILE_LIST
|
2010-09-01 12:01:19 -04:00
|
|
|
echo $OTHER_XML_FILES
|
2009-08-29 21:28:46 -04:00
|
|
|
|
|
|
|
# XML Files
|
2011-01-23 19:11:56 -05:00
|
|
|
python ./data/po/extract_strings_from_XML.py $XML_FILE_LIST $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
|
2011-05-26 09:02:15 -04:00
|
|
|
xgettext -d supertuxkart -s --keyword=_ --keyword=N_ --keyword=_LTR --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
|
2011-03-30 13:12:29 -04:00
|
|
|
#xgettext -j -L lisp -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot $XML_FILE_LIST --package-name=supertuxkart
|
2009-08-29 17:16:51 -04:00
|
|
|
|
|
|
|
# XML Files
|
2011-03-30 13:16:58 -04:00
|
|
|
xgettext -j -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot --from-code=UTF-8 ./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 "---------------------------"
|