mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-11 13:03:14 +01:00
[I18N] in the home page replace GitHub with Forgejo
The english string that shows on the home page to encourage for contribution no longer reference GitHub. But some translations still do. In this context, and this context only, replace it with Forgejo even though it may not be correct in some cases. Refs: https://codeberg.org/forgejo/forgejo/pulls/450
This commit is contained in:
parent
c728ce8b32
commit
71de77f5ae
1 changed files with 5 additions and 0 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue