Do not output line numbers for strings that come from XML, since XML comments are extracted from a fake .h ffile and their location in that intermediary file has no use
This commit is contained in:
parent
671e3829a4
commit
13bfee5ce1
File diff suppressed because it is too large
Load Diff
@ -36,18 +36,20 @@ python ./data/po/extract_strings_from_XML.py $XML_FILE_LIST
|
|||||||
echo "---------------------------"
|
echo "---------------------------"
|
||||||
echo " Generating .pot file..."
|
echo " Generating .pot file..."
|
||||||
|
|
||||||
|
# XML Files
|
||||||
|
xgettext -d supertuxkart -s --keyword=_ --add-comments="I18N:" \
|
||||||
|
-p ./data/po -o supertuxkart.pot \
|
||||||
|
--no-location --from-code=UTF-8 ./data/po/gui_strings.h \
|
||||||
|
--package-name=supertuxkart
|
||||||
|
|
||||||
# C++ Files
|
# C++ Files
|
||||||
xgettext -d supertuxkart -s --keyword=_ --keyword=N_ --keyword=_LTR \
|
xgettext -j -d supertuxkart -s --keyword=_ --keyword=N_ --keyword=_LTR \
|
||||||
--keyword=_C:1c,2 --keyword=_P:1,2 \
|
--keyword=_C:1c,2 --keyword=_P:1,2 \
|
||||||
--keyword=_CP:1c,2,3 --add-comments="I18N:" \
|
--keyword=_CP:1c,2,3 --add-comments="I18N:" \
|
||||||
-p ./data/po -o supertuxkart.pot $CPP_FILE_LIST \
|
-p ./data/po -o supertuxkart.pot $CPP_FILE_LIST \
|
||||||
--package-name=supertuxkart
|
--package-name=supertuxkart
|
||||||
|
|
||||||
# XML Files
|
|
||||||
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
|
|
||||||
|
|
||||||
echo " Done"
|
echo " Done"
|
||||||
echo "---------------------------"
|
echo "---------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user