stk-code_catmod/data/po/update_pot.sh
hikerstk 6f55d4de70 1) Enhanced lisp scanner and parser to handle translations, i.e.
strings marked as _("translate me")
2) Added _() for all names and descriptions for the tracks and GPs
3) Improved update_pot.sh to create the entries for all track and
   GP files.
4) Updated supertuxkart.pot to include all GPs and tracks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-05-10 14:48:57 +00:00

22 lines
718 B
Bash
Executable File

# run this script from the root directory to re-generate the .pot file
#
# ./data/po/update_pot.sh
CPP_FILE_LIST=`find ./src -name '*.cpp' -print`
PERL_FILE_LIST="./data/tracks/*/*.track ./data/*.cup"
echo "--------------------"
echo " Source Files :"
echo "--------------------"
echo $CPP_FILE_LIST
echo "--------------------"
echo " Data Files :"
echo "--------------------"
echo $PERL_FILE_LIST
echo "---------------------------"
echo " Generating .pot file..."
xgettext -d supertuxkart -s --keyword=_ -p ./data/po -o supertuxkart.pot $CPP_FILE_LIST
xgettext -j -L perl -d supertuxkart -s --keyword=_ -p ./data/po -o supertuxkart.pot $PERL_FILE_LIST
echo " Done"
echo "---------------------------"