Language for not logged in users #2384

Closed
opened 2025-11-02 04:34:24 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @Monter on GitHub (Oct 7, 2018).

  • Gitea version (or commit ref): latest and olders
  • Database (use [x]):
    • [x ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • [x ] Yes (provide example URL)

Description

How to set up gitea so that visitors to the site without login will by default turn on the selected language instead of compatible with the visitor browser?
For example, I would like to set up to always activate the English language.

Originally created by @Monter on GitHub (Oct 7, 2018). - Gitea version (or commit ref): latest and olders - Database (use `[x]`): - [x ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x ] Yes (provide example URL) ## Description How to set up gitea so that visitors to the site without login will by default turn on the selected language instead of compatible with the visitor browser? For example, I would like to set up to always activate the English language.
GiteaMirror added the type/featureissue/stale labels 2025-11-02 04:34:24 -06:00
Author
Owner

@pjanx commented on GitHub (Oct 7, 2018):

You can always remove undesired languages. And perhaps you should, translations have very mixed quality.

[i18n]
LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR
NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어
@pjanx commented on GitHub (Oct 7, 2018): You can always remove undesired languages. And perhaps you should, translations have very mixed quality. ``` [i18n] LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어 ```
Author
Owner

@adelowo commented on GitHub (Oct 7, 2018):

Looks like a duplicate of https://github.com/go-gitea/gitea/issues/4884

@adelowo commented on GitHub (Oct 7, 2018): Looks like a duplicate of https://github.com/go-gitea/gitea/issues/4884
Author
Owner

@Monter commented on GitHub (Oct 7, 2018):

You can always remove undesired languages

I know, but this is not a solution to the problem. By removing languages and leaving two basic ones (eg English and your own) despite setting English as default after logging in, visitors from my country will by default receive an interface in a language other than English. And I would like English to be the default, leaving the site visitor to change language.

@Monter commented on GitHub (Oct 7, 2018): > You can always remove undesired languages I know, but this is not a solution to the problem. By removing languages and leaving two basic ones (eg English and your own) despite setting English as default after logging in, visitors from my country will by default receive an interface in a language other than English. And I would like English to be the default, leaving the site visitor to change language.
Author
Owner

@stale[bot] commented on GitHub (Jan 7, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 7, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Feb 22, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Feb 22, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Author
Owner

@lesderid commented on GitHub (Jun 14, 2019):

Was this fixed?

@lesderid commented on GitHub (Jun 14, 2019): Was this fixed?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2384