Greatly improved translator feature

The translator feature has been completely rewritten, and can now
convert any game language to any other.
This commit is contained in:
Raum0x2A
2021-05-20 19:22:17 -06:00
parent 6d3a57d31c
commit 94f9b4e15c
3 changed files with 124 additions and 161 deletions

View File

@@ -54,7 +54,7 @@ func init() {
if err != nil {
panic(errors.New("can not load: " + fileloc[x]))
}
err = ioutil.WriteFile(NmsTemp+"/"+fileloc[x], []byte(data), 0644)
err = ioutil.WriteFile(NmsTemp+"/assets/lang/"+fileloc[x], []byte(data), 0644)
if err != nil {
panic(errors.New("can not write " + fileloc[x] + " to temp dir"))
}