From 71de77f5ae59617eadda9e4992f1867a7acb7f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sun, 5 Mar 2023 15:55:39 +0100 Subject: [PATCH] [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 --- build/merge-forgejo-locales.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/merge-forgejo-locales.go b/build/merge-forgejo-locales.go index 4368fa9571..0e6b345f23 100644 --- a/build/merge-forgejo-locales.go +++ b/build/merge-forgejo-locales.go @@ -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") {