Commit a4af1fe2 authored by Mircea Bardac's avatar Mircea Bardac

get application translations from outsite the build dir


git-svn-id: svn+ssh://svn.psi-im.org/home/psi/svn/win-installer/trunk@37 2d3a5ac0-73f9-4639-b284-2310bd1da355
parent 154642f4
......@@ -5,7 +5,7 @@
all: languages files build
languages:
@cd tools; ./preplang
@cd tools; ./preplang ../app/psi_lang
files:
@# detect zip file in build dir and use it
......
......@@ -12,6 +12,8 @@
import os
import string
import array
import sys
import shutil
# create build paths if they do not exist
if not os.path.exists("../build"):
......@@ -34,7 +36,9 @@ for s in fmap.readlines():
langmap[langsettings[0]]=langsettings[1:]
langlist={}
for file in os.listdir("../build/psi_lang"):
for file in os.listdir(sys.argv[1]):
if os.path.isdir(sys.argv[1]+"/"+file): continue
shutil.copyfile(sys.argv[1]+"/"+file, "../build/psi_lang/"+file);
if (not langmap.has_key(file)):
print "!Language definition not found for file: "+file+" (skipped)"
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment