password icon indicating copy to clipboard operation
password copied to clipboard

How to translate?

Open nibelungen opened this issue 3 years ago • 2 comments

Hi,

thanks for the tool it exactly does what i need. But how can it be translated? I never used go so i just tried to translate the index.html file and build the image with the dockerfile. That does not work, there is always the same file, maybe it is already compiled in an file oder it gets updated while compiling the password binary? Maybe you can give me a litte hint/help?

Thanks in advance

nibelungen avatar Mar 12 '21 14:03 nibelungen

To update the index.html you need to execute make pack in the main directory: the file is bundled as a binary blob inside the cmd/password/bindata.go. To do so you need shuLhan/go-bindata installed in your PATH: go get github.com/shuLhan/go-bindata/cmd/go-bindata

May I ask to which language you want to translate the interface? Maybe this would be interesting for all users… We could add a translation through a Javascript interface (similar to my OTS project)…

Luzifer avatar Mar 12 '21 15:03 Luzifer

If translations become possible, I could probably make a PR translating it to Brazilian Portuguese—and maybe Spanish as well.

jamesponddotco avatar Mar 12 '21 15:03 jamesponddotco