Install translation to correct directories

This commit is contained in:
kaetemi 2014-02-09 02:25:44 +01:00
parent 352f2a297f
commit c1f81ca284
2 changed files with 12 additions and 1 deletions

View file

@ -27,6 +27,7 @@
# #
from buildsite import * from buildsite import *
import os
# *** COMMON NAMES AND PATHS *** # *** COMMON NAMES AND PATHS ***
CommonName = "data_shard" CommonName = "data_shard"
@ -39,8 +40,12 @@ CommonPath = "common/" + CommonName
CopyDirectSourceDirectories = [ ] CopyDirectSourceDirectories = [ ]
CopyDirectSourceDirectories += [ DataShardDirectory ] CopyDirectSourceDirectories += [ DataShardDirectory ]
CopyDirectSourceDirectories += [ LeveldesignDataShardDirectory ] CopyDirectSourceDirectories += [ LeveldesignDataShardDirectory ]
CopyDirectSourceDirectories += [ TranslationDirectory + "/translated" ]
CopyDirectSourceFiles = [ ] CopyDirectSourceFiles = [ ]
translationFileList = os.listdir(TranslationDirectory + "/translated")
for fileName in translationFileList:
if fileName != ".svn" and fileName != ".." and fileName != "." and fileName != "*.*":
if fileName.endswith(".txt"):
CopyDirectSourceFiles += [ TranslationDirectory + "/translated/" + fileName ]
# *** SOURCE DIRECTORIES IN LEVELDESIGN *** # *** SOURCE DIRECTORIES IN LEVELDESIGN ***

View file

@ -27,6 +27,7 @@
# #
from buildsite import * from buildsite import *
import os
# *** COMMON NAMES AND PATHS *** # *** COMMON NAMES AND PATHS ***
CommonName = "gamedev" CommonName = "gamedev"
@ -39,6 +40,11 @@ CommonPath = "common/" + CommonName
CopyDirectSourceDirectories = [ ] CopyDirectSourceDirectories = [ ]
CopyDirectSourceDirectories += [ GamedevDirectory ] CopyDirectSourceDirectories += [ GamedevDirectory ]
CopyDirectSourceFiles = [ ] CopyDirectSourceFiles = [ ]
translationFileList = os.listdir(TranslationDirectory + "/translated")
for fileName in translationFileList:
if fileName != ".svn" and fileName != ".." and fileName != "." and fileName != "*.*":
if fileName.endswith(".uxt") or (fileName.endswith(".txt") and (fileName.startswith("skill_") or fileName.startswith("item_") or fileName.startswith("creature_") or fileName.startswith("sbrick_") or fileName.startswith("sphrase_") or fileName.startswith("place_") or fileName.startswith("faction_") or fileName.startswith("title_") or fileName.startswith("outpost_"))):
CopyDirectSourceFiles += [ TranslationDirectory + "/translated/" + fileName ]
# *** SOURCE DIRECTORIES IN LEVELDESIGN *** # *** SOURCE DIRECTORIES IN LEVELDESIGN ***