Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the app translatable #23

Open
NathanBnm opened this issue Jan 24, 2019 · 3 comments · May be fixed by #25
Open

Make the app translatable #23

NathanBnm opened this issue Jan 24, 2019 · 3 comments · May be fixed by #25

Comments

@NathanBnm
Copy link

No description provided.

@thebaer
Copy link
Member

thebaer commented Jan 24, 2019

Thanks for the suggestion -- do you have any hints on the best way to implement this?

@SamWhited
Copy link

SamWhited commented Jan 24, 2019

@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 :)

@NathanBnm
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants