Fixed unicode string extraction + update catalog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8123 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
03fb11823b
commit
53daba9de8
@ -18,7 +18,7 @@ def traverse(file, node, isChallenge, isGP, isKart, isTrack, level=0):
|
||||
comment = e.getAttribute("I18N")
|
||||
|
||||
if isChallenge or isGP or isKart or isTrack:
|
||||
if e.hasAttribute("name"):
|
||||
if e.hasAttribute("name") and len(e.getAttribute("name")) > 0:
|
||||
#print "Label=", e.getAttribute("name"), " Comment=", comment
|
||||
line = ""
|
||||
if comment == None:
|
||||
@ -29,7 +29,7 @@ def traverse(file, node, isChallenge, isGP, isKart, isTrack, level=0):
|
||||
f.write( line.encode( "utf-8" ) )
|
||||
|
||||
# challenges and GPs can have a description file; karts don't
|
||||
if e.hasAttribute("description"):
|
||||
if e.hasAttribute("description") and len(e.getAttribute("description")) > 0:
|
||||
# print "Label=", e.getAttribute("description"), " Comment=", comment
|
||||
line = ""
|
||||
if comment == None:
|
||||
@ -39,7 +39,7 @@ def traverse(file, node, isChallenge, isGP, isKart, isTrack, level=0):
|
||||
|
||||
f.write( line.encode( "utf-8" ) )
|
||||
else:
|
||||
if e.hasAttribute("text"):
|
||||
if e.hasAttribute("text") and len(e.getAttribute("text")) > 0:
|
||||
# print "Label=", e.getAttribute("text"), " Comment=", comment
|
||||
line = ""
|
||||
if comment == None:
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -32,7 +32,7 @@ xgettext -d supertuxkart -s --keyword=_ --keyword=_LTR --add-comments="I18N:"
|
||||
#xgettext -j -L lisp -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot $XML_FILE_LIST --package-name=supertuxkart
|
||||
|
||||
# XML Files
|
||||
xgettext -j -d supertuxkart -s --keyword=_ --add-comments="I18N:" -p ./data/po -o supertuxkart.pot --from-code=UTF-16 ./data/po/gui_strings.h --package-name=supertuxkart
|
||||
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 "---------------------------"
|
||||
|
Loading…
x
Reference in New Issue
Block a user