6f55d4de70
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
22 lines
718 B
Bash
Executable File
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 "---------------------------" |