Merge pull request '[I18N] in the home page replace GitHub with Forgejo' (#482) from dachary/forgejo:wip-github into forgejo-i18n
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/482 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
30b1c3271f
|
@ -56,6 +56,11 @@ func renameGiteaForgejo(filename string) []byte {
|
|||
scanner.Split(bufio.ScanLines)
|
||||
for scanner.Scan() {
|
||||
line := scanner.Text()
|
||||
|
||||
if strings.HasPrefix(line, "license_desc=") {
|
||||
line = strings.Replace(line, "GitHub", "Forgejo", 1)
|
||||
}
|
||||
|
||||
if strings.HasPrefix(line, "[") && strings.HasSuffix(line, "]") {
|
||||
out = append(out, []byte("\n"+line+"\n")...)
|
||||
} else if strings.HasPrefix(line, "settings.web_hook_name_gitea") {
|
||||
|
|
Reference in New Issue