Allow extract translation from tips.xml
This commit is contained in:
parent
8b50536aae
commit
c1be829f0e
@ -54,10 +54,9 @@ def traverse(file, node, isChallenge, isGP, isKart, isTrack, isAchievements, lev
|
||||
# print "Label=", e.getAttribute("text"), " Comment=", comment
|
||||
line = ""
|
||||
if comment == None:
|
||||
line += "//I18N: " + file + "\n_(\"" + e.getAttribute("text") + "\")\n\n"
|
||||
line += "//I18N: " + file + "\n_(\"" + e.getAttribute("text").replace("\"", "\\\"") + "\")\n\n"
|
||||
else:
|
||||
line += "//I18N: " + file + "\n//I18N: " + comment + "\n_(\"" + e.getAttribute("text") + "\");\n\n"
|
||||
|
||||
f.write( line.encode( "utf-8" ) )
|
||||
|
||||
# don't recurse in children nodes for karts, they can contain sounds, etc. that should not be translated
|
||||
|
@ -14,6 +14,7 @@ XML_FILE_LIST="`find ./data \
|
||||
../supertuxkart-assets/tracks \
|
||||
../supertuxkart-assets/karts \
|
||||
-name 'achievements.xml' -or \
|
||||
-name 'tips.xml' -or \
|
||||
-name 'kart.xml' -or \
|
||||
-name 'track.xml' -or \
|
||||
-name 'scene.xml' -or \
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tips>
|
||||
<tipset id="general">
|
||||
<tip text="The GUI skin can be changed in the UI options."/>
|
||||
@ -15,11 +15,11 @@
|
||||
<tip text="Skidding makes you much faster, do it whenever safe."/>
|
||||
<tip text="The swatter can be used to remove bombs or parachutes."/>
|
||||
<tip text="You can't stop turning while skidding. Good kart orientation at the skid's start is paramount."/>
|
||||
<tip text="You get a startup boost if you start accelerating during "Set""/>
|
||||
<tip text="You get a startup boost if you start accelerating during "Set"."/>
|
||||
<tip text="Braking allows to get rid of parachutes quicker."/>
|
||||
<tip text="First and foremost, focus on where your kart is going."/>
|
||||
<tip text="The rescue key (button) is very useful."/>
|
||||
<tip text="Be careful when close to other karts, they may attack you !."/>
|
||||
<tip text="Be careful when close to other karts, they may attack you!"/>
|
||||
<tip text="Basketballs can be destroyed using precise backward shots with a bowling ball, cake or plunger."/>
|
||||
<tip text="Try to avoid crashing into other karts unless you want to throw them off the track."/>
|
||||
</tipset>
|
||||
|
Loading…
x
Reference in New Issue
Block a user