mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Update translate/transifex for new GUI paths
This commit is contained in:
parent
3b88ee623b
commit
57f121178c
12
build.go
12
build.go
@ -285,20 +285,20 @@ func xdr() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func translate() {
|
func translate() {
|
||||||
os.Chdir("gui/lang")
|
os.Chdir("gui/assets/lang")
|
||||||
runPipe("lang-en-new.json", "go", "run", "../../cmd/translate/main.go", "lang-en.json", "../index.html")
|
runPipe("lang-en-new.json", "go", "run", "../../../cmd/translate/main.go", "lang-en.json", "../../index.html")
|
||||||
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/lang")
|
os.Chdir("gui/assets/lang")
|
||||||
runPrint("go", "run", "../../cmd/transifexdl/main.go")
|
runPrint("go", "run", "../../../cmd/transifexdl/main.go")
|
||||||
os.Chdir("../..")
|
os.Chdir("../../..")
|
||||||
assets()
|
assets()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user