Skip to content

Commit 6f194b8

Browse files
jolheisertechknowlogick
authored andcommitted
Moved defaults in defaults.go to setting.go (#5764)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
1 parent 6822a89 commit 6f194b8

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

modules/setting/defaults.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

modules/setting/setting.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ var (
286286
PullRequest: struct {
287287
WorkInProgressPrefixes []string
288288
}{
289-
WorkInProgressPrefixes: defaultPullRequestWorkInProgressPrefixes,
289+
WorkInProgressPrefixes: []string{"WIP:", "[WIP]"},
290290
},
291291
}
292292
RepoRootPath string
@@ -1141,11 +1141,17 @@ func NewContext() {
11411141

11421142
Langs = Cfg.Section("i18n").Key("LANGS").Strings(",")
11431143
if len(Langs) == 0 {
1144-
Langs = defaultLangs
1144+
Langs = []string{
1145+
"en-US", "zh-CN", "zh-HK", "zh-TW", "de-DE", "fr-FR", "nl-NL", "lv-LV",
1146+
"ru-RU", "uk-UA", "ja-JP", "es-ES", "pt-BR", "pl-PL", "bg-BG", "it-IT",
1147+
"fi-FI", "tr-TR", "cs-CZ", "sr-SP", "sv-SE", "ko-KR"}
11451148
}
11461149
Names = Cfg.Section("i18n").Key("NAMES").Strings(",")
11471150
if len(Names) == 0 {
1148-
Names = defaultLangNames
1151+
Names = []string{"English", "简体中文", "繁體中文(香港)", "繁體中文(台灣)", "Deutsch",
1152+
"français", "Nederlands", "latviešu", "русский", "Українська", "日本語",
1153+
"español", "português do Brasil", "polski", "български", "italiano",
1154+
"suomi", "Türkçe", "čeština", "српски", "svenska", "한국어"}
11491155
}
11501156
dateLangs = Cfg.Section("i18n.datelang").KeysHash()
11511157

0 commit comments

Comments
 (0)