From c1f81ca2846027ae099cad6eccff1c5019bfb228 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 9 Feb 2014 02:25:44 +0100 Subject: [PATCH] Install translation to correct directories --- workspace/common/data_shard/directories.py | 7 ++++++- workspace/common/gamedev/directories.py | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/workspace/common/data_shard/directories.py b/workspace/common/data_shard/directories.py index 9c67516..a7458f6 100644 --- a/workspace/common/data_shard/directories.py +++ b/workspace/common/data_shard/directories.py @@ -27,6 +27,7 @@ # from buildsite import * +import os # *** COMMON NAMES AND PATHS *** CommonName = "data_shard" @@ -39,8 +40,12 @@ CommonPath = "common/" + CommonName CopyDirectSourceDirectories = [ ] CopyDirectSourceDirectories += [ DataShardDirectory ] CopyDirectSourceDirectories += [ LeveldesignDataShardDirectory ] -CopyDirectSourceDirectories += [ TranslationDirectory + "/translated" ] 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 *** diff --git a/workspace/common/gamedev/directories.py b/workspace/common/gamedev/directories.py index cc8af2e..26653a6 100644 --- a/workspace/common/gamedev/directories.py +++ b/workspace/common/gamedev/directories.py @@ -27,6 +27,7 @@ # from buildsite import * +import os # *** COMMON NAMES AND PATHS *** CommonName = "gamedev" @@ -39,6 +40,11 @@ CommonPath = "common/" + CommonName CopyDirectSourceDirectories = [ ] CopyDirectSourceDirectories += [ GamedevDirectory ] 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 ***