Removed all line breaks from challenge files, since line breaking is not automatic
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4409 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a91591b7c4
commit
a7a802b918
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<challenge
|
<challenge
|
||||||
id="penguinplaygroundgp"
|
id="penguinplaygroundgp"
|
||||||
name="Win Penguin Playground Grand\nPrix"
|
name="Win Penguin Playground Grand Prix"
|
||||||
description="Win Penguin Playground Grand\nPrix with 3 'Racer' Level AI karts."
|
description="Win Penguin Playground Grand Prix with 3 'Racer' Level AI karts."
|
||||||
unlock-mode="FOLLOW_LEADER"
|
unlock-mode="FOLLOW_LEADER"
|
||||||
major="grandprix"
|
major="grandprix"
|
||||||
minor="quickrace"
|
minor="quickrace"
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<challenge
|
<challenge
|
||||||
id="worldsend"
|
id="worldsend"
|
||||||
name="Win the At World's End\nGrand Prix"
|
name="Win the At World's End Grand Prix"
|
||||||
description="Come first in the At World's End\nGrand Prix with 3 'Racer'\nLevel AI karts."
|
description="Come first in the At World's End Grand Prix with 3 'Racer' Level AI karts."
|
||||||
unlock-gp="alltracks"
|
unlock-gp="alltracks"
|
||||||
depend-on="islandfollow"
|
depend-on="islandfollow"
|
||||||
major="grandprix"
|
major="grandprix"
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<challenge
|
<challenge
|
||||||
id="islandfollow"
|
id="islandfollow"
|
||||||
name="Follow the Leader on a\nDesert Island"
|
name="Follow the Leader on a Desert Island"
|
||||||
description="Win a Follow the Leader race\nwith 3 AI karts\non a Desert Island."
|
description="Win a Follow the Leader race with 3 AI karts on a Desert Island."
|
||||||
unlock-gp="atworldsend"
|
unlock-gp="atworldsend"
|
||||||
depend-on="tothemoonandbackgp tollwayhead2head tollwaytime citytime"
|
depend-on="tothemoonandbackgp tollwayhead2head tollwaytime citytime"
|
||||||
major="single"
|
major="single"
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<challenge
|
<challenge
|
||||||
id="tothemoonandbackgp"
|
id="tothemoonandbackgp"
|
||||||
name="Win To the Moon and Back\nGrand Prix"
|
name="Win To the Moon and Back Grand Prix"
|
||||||
description="Win the To the Moon and Back\nGrand Prix with 3 'Racer'\nLevel AI karts."
|
description="Win the To the Moon and Back Grand Prix with 3 'Racer' Level AI karts."
|
||||||
unlock-gp="snagdrive"
|
unlock-gp="snagdrive"
|
||||||
depend-on="energyshiftingsands junglefollow"
|
depend-on="energyshiftingsands junglefollow"
|
||||||
major="grandprix"
|
major="grandprix"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<challenge
|
<challenge
|
||||||
id="energyshiftingsands"
|
id="energyshiftingsands"
|
||||||
name="Collect the Pharaohs Treasure"
|
name="Collect the Pharaohs Treasure"
|
||||||
description="Finish with at least 9 nitro \npoints on 3 laps of Shifting Sands\nin under 2:20 minutes."
|
description="Finish with at least 9 nitro points on 3 laps of Shifting Sands in under 2:20 minutes."
|
||||||
unlock-gp="tothemoonandback"
|
unlock-gp="tothemoonandback"
|
||||||
depend-on="energymathclass racetracktime"
|
depend-on="energymathclass racetracktime"
|
||||||
major="single"
|
major="single"
|
||||||
|
@ -3,7 +3,7 @@ import sys
|
|||||||
|
|
||||||
f = open('./data/po/gui_strings.h', 'w')
|
f = open('./data/po/gui_strings.h', 'w')
|
||||||
|
|
||||||
def traverse(node, isChallenge, level=0):
|
def traverse(file, node, isChallenge, level=0):
|
||||||
|
|
||||||
for e in node.childNodes:
|
for e in node.childNodes:
|
||||||
if e.localName == None:
|
if e.localName == None:
|
||||||
@ -20,9 +20,9 @@ def traverse(node, isChallenge, level=0):
|
|||||||
# print "Label=", e.getAttribute("name"), " Comment=", comment
|
# print "Label=", e.getAttribute("name"), " Comment=", comment
|
||||||
line = ""
|
line = ""
|
||||||
if comment == None:
|
if comment == None:
|
||||||
line += "_(\"" + e.getAttribute("name") + "\")\n\n"
|
line += "//I18N: " + file + "\n_(\"" + e.getAttribute("name") + "\")\n\n"
|
||||||
else:
|
else:
|
||||||
line += "//I18N: " + comment + "\n_(\"" + e.getAttribute("name") + "\");\n\n"
|
line += "//I18N: File : " + file + "\n//I18N: " + comment + "\n_(\"" + e.getAttribute("name") + "\");\n\n"
|
||||||
|
|
||||||
f.write( line )
|
f.write( line )
|
||||||
|
|
||||||
@ -30,9 +30,9 @@ def traverse(node, isChallenge, level=0):
|
|||||||
# print "Label=", e.getAttribute("description"), " Comment=", comment
|
# print "Label=", e.getAttribute("description"), " Comment=", comment
|
||||||
line = ""
|
line = ""
|
||||||
if comment == None:
|
if comment == None:
|
||||||
line += "_(\"" + e.getAttribute("description") + "\")\n\n"
|
line += "//I18N: " + file + "\n_(\"" + e.getAttribute("description") + "\")\n\n"
|
||||||
else:
|
else:
|
||||||
line += "//I18N: " + comment + "\n_(\"" + e.getAttribute("description") + "\");\n\n"
|
line += "//I18N: File : " + file + "\n//I18N: " + comment + "\n_(\"" + e.getAttribute("description") + "\");\n\n"
|
||||||
|
|
||||||
f.write( line )
|
f.write( line )
|
||||||
else:
|
else:
|
||||||
@ -40,14 +40,14 @@ def traverse(node, isChallenge, level=0):
|
|||||||
# print "Label=", e.getAttribute("text"), " Comment=", comment
|
# print "Label=", e.getAttribute("text"), " Comment=", comment
|
||||||
line = ""
|
line = ""
|
||||||
if comment == None:
|
if comment == None:
|
||||||
line += "_(\"" + e.getAttribute("text") + "\")\n\n"
|
line += "//I18N: " + file + "\n_(\"" + e.getAttribute("text") + "\")\n\n"
|
||||||
else:
|
else:
|
||||||
line += "//I18N: " + comment + "\n_(\"" + e.getAttribute("text") + "\");\n\n"
|
line += "//I18N: " + file + "\n//I18N: " + comment + "\n_(\"" + e.getAttribute("text") + "\");\n\n"
|
||||||
|
|
||||||
f.write( line )
|
f.write( line )
|
||||||
|
|
||||||
|
|
||||||
traverse(e, isChallenge, level+1)
|
traverse(file, e, isChallenge, level+1)
|
||||||
|
|
||||||
filenames = sys.argv[1:]
|
filenames = sys.argv[1:]
|
||||||
for file in filenames:
|
for file in filenames:
|
||||||
@ -58,5 +58,5 @@ for file in filenames:
|
|||||||
isChallenge = True
|
isChallenge = True
|
||||||
|
|
||||||
doc = xml.dom.minidom.parse(file)
|
doc = xml.dom.minidom.parse(file)
|
||||||
traverse(doc, isChallenge)
|
traverse(file, doc, isChallenge)
|
||||||
|
|
||||||
|
655
data/po/fr.po
655
data/po/fr.po
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user