writeas-gtk
writeas-gtk copied to clipboard
Make the app translatable
Thanks for the suggestion -- do you have any hints on the best way to implement this?
@thebaer The localization and internationalization story in Go isn't great, but I've worked on it a bit and would be happy to help. Using the facilities that have started to emerge in golang.org/x/text/message it's not too bad to roll your own. I had some trouble getting my catalog generation just right, but I can put those scripts online at some point and save you the trouble if you're using Go's template mechanism. If you're using Printf's heavily the package should support that out of the box.
EDIT: oops, I thought this was the writefreely repo for some reason. This is probably not applicable to the GTK app. Sorry :)
I think you have to deal with po files like elementary developpers do. For example in elementary Code app it looks like this https://github.com/elementary/code/tree/master/po
You can take a look to the official documentation here : https://elementary.io/fr/docs/code/getting-started#Adding-Translations