Fix location of build translation scripts.

This commit is contained in:
kluppy 2016-01-13 19:56:42 +10:00
parent 5fa8b42fac
commit df7fea4412

View File

@ -411,19 +411,19 @@ func xdr() {
func translate() { func translate() {
os.Chdir("gui/default/assets/lang") os.Chdir("gui/default/assets/lang")
runPipe("lang-en-new.json", "go", "run", "../../../script/translate.go", "lang-en.json", "../../") runPipe("lang-en-new.json", "go", "run", "../../../../script/translate.go", "lang-en.json", "../../../")
os.Remove("lang-en.json") os.Remove("lang-en.json")
err := os.Rename("lang-en-new.json", "lang-en.json") err := os.Rename("lang-en-new.json", "lang-en.json")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
os.Chdir("../../..") os.Chdir("../../../..")
} }
func transifex() { func transifex() {
os.Chdir("gui/default/assets/lang") os.Chdir("gui/default/assets/lang")
runPrint("go", "run", "../../../script/transifexdl.go") runPrint("go", "run", "../../../../script/transifexdl.go")
os.Chdir("../../..") os.Chdir("../../../..")
assets() assets()
} }