Re:Gitea – A community-managed fork of Gogs
by bkcsoft on Monday January 02, 2017 @04:24PM
(#13304669)
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...
Re:Gitea – A community-managed fork of Gogs
by PascalW on Monday January 02, 2017 @07:00AM
(#13300641)
I haven't tried but I think you might be able to add this to your config to fix that:
[i18n]
LANGS = en-US
NAMES = English
https://gogs.io/docs/features/i18nEdit: tried and indeed it seems to work.
Re:Gitea – A community-managed fork of Gogs
by alkonaut on Monday January 02, 2017 @08:28AM
(#13301019)
Thanks, that worked perfectly.
Odd to implement i18n and then automatically choose based on UA, but not have a user option?
Re:Gitea – A community-managed fork of Gogs
by jhasse on Monday January 02, 2017 @08:32AM
(#13301043)
I can select the language on the bottom right of every page of my Gogs instance.
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.