Comment by alkonaut
9 years ago
Question to any gitea devs/users: How can I get rid of the (terrible) i18n?? I'm trying out the app but it's complete gibberish! It appears to do some kind of User Agent detected i18n - (which by the way an app should never do imho).
I just want english so I can have some kind of understanding of what I'm doing but I can't find the setting either in my user profile nor in the app configuration.
It is infact using `Accept-Language`-header and `lang`-cookie as seen in this[1] file on line 168, 184 and 196. This is according to W3C[2] a good starting point :)
[1] https://github.com/go-macaron/i18n/blob/ef57533c3b0fc2d8581d... [2] https://www.w3.org/International/questions/qa-accept-lang-lo...
I haven't tried but I think you might be able to add this to your config to fix that:
https://gogs.io/docs/features/i18n
Edit: tried and indeed it seems to work.
Thanks, that worked perfectly.
Odd to implement i18n and then automatically choose based on UA, but not have a user option?
I can select the language on the bottom right of every page of my Gogs instance.
1 reply →
Right. But I would you change `custom/conf/app.ini`