files are present in the project
but there is no language menu
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 :(
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.
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
:and
defaultLangs
is defined inmodules/setting/defaults.go
:So if you create another PR that modifies this file, ukrainian should appear in the menu by default.