localization #755
|
I've read and understand the scope section of the readme, so I expect this to be probably out of scope for the project, but figured I can at least ask 😄 I recently installed this on a server of mine for my dad to use to give him a simple interface to share files. His English is not the best so ideally I'd like to give him a Dutch UI. To be fair, it is simple enough that it's not actually a problem, but would be a nice QoL improvement. I'd PR something but I have next to no experience with go so I'd probably create something horrible 😛 No idea if there are nice i18n go libraries ready to use for something like this. Obviously if you end up going with this I can of course provide a Dutch translation. |
Replies: 1 comment 2 replies
|
Thanks for reaching out! Yeah, this is too far outside the scope for me internationalization in the product natively, but I can try to help you get something working for your use case. Changing the UI text is something you can do without much technical knowledge. You'd basically just need to open files and replace English text with Dutch text. Most of the UI is in the How are you running PicoShare? If you're just running it in Docker, you should be able to download the source for the latest release, unzip, replace English with Dutch, then run these commands in the directory you unzipped/modified: # Build a Docker image from source.
docker build --tag picoshare .
# Run the image you created above.
docker run \
--env "PORT=4001" \
--env "PS_SHARED_SECRET=somesecretpass" \
--publish 4001:4001/tcp \
--volume "${PWD}/data:/data" \
--name picoshare \
picoshareThe downside is that every time you update to new versions of PicoShare, you have to re-do all your translations. There's a way to preserve your translations locally and still update somewhat painless by learning to use git, but that's a big step up in complexity. |
Thanks for reaching out!
Yeah, this is too far outside the scope for me internationalization in the product natively, but I can try to help you get something working for your use case.
Changing the UI text is something you can do without much technical knowledge. You'd basically just need to open files and replace English text with Dutch text. Most of the UI is in the
templatesfolder, so you'd change "Upload" to "Uploaden." Error messages and stuff would still be in English, and those are fixable too but a little more work to hunt them down in Go code.How are you running PicoShare?
If you're just running it in Docker, you should be able to download the source for the latest release, unz…