News for hackers. Stuff that matters.
Re:Gitea – A community-managed fork of Gogs by alkonaut on Monday January 02, 2017 @05:04AM (#13300234)
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.

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/i18n

Edit: 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.
Re:Gitea – A community-managed fork of Gogs by alkonaut on Monday January 02, 2017 @09:21AM (#13301249)
Lol: it's the same in Gitea. I spent a lot of time carefully going through every settings page I could find, did not look in the footer.
Re:Gitea – A community-managed fork of Gogs by lunny on Monday January 02, 2017 @07:56AM (#13300880)
Right. But I would you change `custom/conf/app.ini`