[I18N] Makefile + gitignore

(cherry picked from commit 68c744111d)
(cherry picked from commit 30d7c4a899)
(cherry picked from commit 220ac0a6d3)
(cherry picked from commit 21cb16af95)
(cherry picked from commit 41a9373e3e)
(cherry picked from commit 69030f7803)
(cherry picked from commit 92c4d4d2e6)
fnetx 2022-12-14 19:56:57 +01:00 committed by Loïc Dachary
parent 378ed6a21e
commit c1bfd1730e
No known key found for this signature in database
GPG Key ID: 992D23B392F9E4F2
2 changed files with 9 additions and 8 deletions

.gitignore vendored
View File

@ -115,3 +115,6 @@ prime/
# Manpage
# Generated merged Forgejo+Gitea language files

View File

@ -768,10 +768,14 @@ generate: generate-backend
generate-backend: $(TAGS_PREREQ) generate-go
.PHONY: generate-go
generate-go: $(TAGS_PREREQ)
generate-go: $(TAGS_PREREQ) merge-locales
@echo "Running go generate..."
@CC= GOOS= GOARCH= $(GO) generate -tags '$(TAGS)' $(GO_PACKAGES)
.PHONY: merge-locales
$(GO) run build/merge-forgejo-locales.go
.PHONY: security-check
go run $(GOVULNCHECK_PACKAGE) -v ./...
@ -936,13 +940,7 @@ lockfile-check:
.PHONY: update-translations
mkdir -p ./translations
cd ./translations && curl -L https://crowdin.com/download/project/gitea.zip > gitea.zip && unzip gitea.zip
rm ./translations/gitea.zip
$(SED_INPLACE) -e 's/="/=/g' -e 's/"$$//g' ./translations/*.ini
$(SED_INPLACE) -e 's/\\"/"/g' ./translations/*.ini
mv ./translations/*.ini ./options/locale/
rmdir ./translations
# noop to detect merge conflicts (potentially needs updating the scripts) and avoid breaking with Gitea
.PHONY: generate-license