please add a Ukrainian language #1738

Closed
opened 2025-11-02 04:11:44 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @andruwa13 on GitHub (Apr 28, 2018).

files are present in the project
gitea options locale at master go-gitea gitea 2018-04-28 21-08-44

but there is no language menu
andruwa13 - - gitea git with a cup of tea 2018-04-28 21-10-24

andruwa13 - - gitea git with a cup of tea 2018-04-28 21-10-09

Originally created by @andruwa13 on GitHub (Apr 28, 2018). files are present in the project ![gitea options locale at master go-gitea gitea 2018-04-28 21-08-44](https://user-images.githubusercontent.com/5846351/39399552-67829906-4b28-11e8-929a-e7d47e7536bf.png) but there is no language menu ![andruwa13 - - gitea git with a cup of tea 2018-04-28 21-10-24](https://user-images.githubusercontent.com/5846351/39399560-9f557f42-4b28-11e8-8382-c0eed519ccdb.png) ![andruwa13 - - gitea git with a cup of tea 2018-04-28 21-10-09](https://user-images.githubusercontent.com/5846351/39399563-a88e7546-4b28-11e8-8541-e3bb1c26afb0.png)
GiteaMirror added the type/proposalmodifies/translation labels 2025-11-02 04:11:44 -06:00
Author
Owner

@lunny commented on GitHub (Apr 29, 2018):

The languages could be changed on the app.ini file.

@lunny commented on GitHub (Apr 29, 2018): The languages could be changed on the app.ini file.
Author
Owner

@daviian commented on GitHub (May 24, 2018):

So this can be closed, right?

@daviian commented on GitHub (May 24, 2018): So this can be closed, right?
Author
Owner

@andruwa13 commented on GitHub (May 24, 2018):

@daviian no, the site does not have the opportunity to choose the Ukrainian language

@andruwa13 commented on GitHub (May 24, 2018): @daviian no, the [site](https://try.gitea.io) does not have the opportunity to choose the Ukrainian language
Author
Owner

@daviian commented on GitHub (May 24, 2018):

@andruwa13 ok, now I get it. You want try.gitea.io to enable Ukrainian.

@daviian commented on GitHub (May 24, 2018): @andruwa13 ok, now I get it. You want `try.gitea.io` to enable Ukrainian.
Author
Owner

@andruwa13 commented on GitHub (May 24, 2018):

@daviian with a new installation, there is also no Ukrainian language by default

@andruwa13 commented on GitHub (May 24, 2018): @daviian with a new installation, there is also no Ukrainian language by default
Author
Owner

@daviian commented on GitHub (May 24, 2018):

@andruwa13 Like @lunny said you can adjust the list of languages in app.ini

@daviian commented on GitHub (May 24, 2018): @andruwa13 Like @lunny said you can adjust the list of languages in app.ini
Author
Owner

@lunny commented on GitHub (May 24, 2018):

@bkcsoft I think this is not a bug, it's a new language of gitea.

@lunny commented on GitHub (May 24, 2018): @bkcsoft I think this is not a bug, it's a new language of gitea.
Author
Owner

@lunny commented on GitHub (May 24, 2018):

closed by #4036

@lunny commented on GitHub (May 24, 2018): closed by #4036
Author
Owner

@andruwa13 commented on GitHub (May 24, 2018):

not work :(

@andruwa13 commented on GitHub (May 24, 2018): not work :(
Author
Owner

@apricote commented on GitHub (May 24, 2018):

The PR only modified the app.ini.sample. The actual app.ini used in the try.gitea.io deployment would need to be updated too.

@apricote commented on GitHub (May 24, 2018): The PR only modified the `app.ini.sample`. The actual `app.ini` used in the `try.gitea.io` deployment would need to be updated too.
Author
Owner

@andruwa13 commented on GitHub (May 24, 2018):

new install Gitea, there is also no Ukrainian language :(
installation - gitea git with a cup of tea 2018-05-24 20-08-39

@andruwa13 commented on GitHub (May 24, 2018): new install Gitea, there is also no Ukrainian language :( ![installation - gitea git with a cup of tea 2018-05-24 20-08-39](https://user-images.githubusercontent.com/5846351/40500774-844fd510-5f8e-11e8-964f-843878a4cc51.png)
Author
Owner

@apricote commented on GitHub (May 24, 2018):

You have to configure it in your custom app.ini to take effect. The file changed in the PR is not the default that your clean install will use, only a sample of what you could use.

The actual default is loaded in modules/setting/setting.go#L1090:

Langs = Cfg.Section("i18n").Key("LANGS").Strings(",")
if len(Langs) == 0 {
	Langs = defaultLangs
}

and defaultLangs is defined in modules/setting/defaults.go:

var (
	defaultLangs     = strings.Split("en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR", ",")
	defaultLangNames = strings.Split("English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어", ",")
)

So if you create another PR that modifies this file, ukrainian should appear in the menu by default.

@apricote commented on GitHub (May 24, 2018): You have to configure it in your custom `app.ini` to take effect. The file changed in the PR is **not** the default that your clean install will use, only a **sample** of what you could use. The actual default is loaded in [`modules/setting/setting.go#L1090`](https://github.com/go-gitea/gitea/blob/master/modules/setting/setting.go#L1090): ```go Langs = Cfg.Section("i18n").Key("LANGS").Strings(",") if len(Langs) == 0 { Langs = defaultLangs } ``` and `defaultLangs` is defined in [`modules/setting/defaults.go`](https://github.com/go-gitea/gitea/blob/master/modules/setting/defaults.go): ```go var ( defaultLangs = strings.Split("en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR", ",") defaultLangNames = strings.Split("English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어", ",") ) ``` So if you create another PR that modifies this file, ukrainian should appear in the menu by default.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1738