Gitea: please add a Ukrainian language

Created on 28 Apr 2018  ·  12Comments  ·  Source: go-gitea/gitea

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

kinproposal kintranslation

Most helpful comment

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.

All 12 comments

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

So this can be closed, right?

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

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

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

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

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

closed by #4036

not work :(

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.

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

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.

Was this page helpful?
0 / 5 - 0 ratings