mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 04:05:42 +01:00
[I18N] Makefile + gitignore
(cherry picked from commit68c744111d
) (cherry picked from commit30d7c4a899
) (cherry picked from commitdd055526a8
) (cherry picked from commit098e709b0c
) (cherry picked from commit2271f5a8d3
) (cherry picked from commit06798f3e08
) (cherry picked from commit31c7dc0dcb
) (cherry picked from commitbb80efd62f
) (cherry picked from commitfe6d9f1672
) (cherry picked from commitab4cae9857
) (cherry picked from commit3e84897381
)
This commit is contained in:
parent
4dfe759611
commit
99272834bb
2 changed files with 9 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -115,3 +115,6 @@ prime/
|
||||||
|
|
||||||
# Manpage
|
# Manpage
|
||||||
/man
|
/man
|
||||||
|
|
||||||
|
# Generated merged Forgejo+Gitea language files
|
||||||
|
/options/locale/locale_*
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -772,10 +772,14 @@ generate: generate-backend
|
||||||
generate-backend: $(TAGS_PREREQ) generate-go
|
generate-backend: $(TAGS_PREREQ) generate-go
|
||||||
|
|
||||||
.PHONY: generate-go
|
.PHONY: generate-go
|
||||||
generate-go: $(TAGS_PREREQ)
|
generate-go: $(TAGS_PREREQ) merge-locales
|
||||||
@echo "Running go generate..."
|
@echo "Running go generate..."
|
||||||
@CC= GOOS= GOARCH= $(GO) generate -tags '$(TAGS)' $(GO_PACKAGES)
|
@CC= GOOS= GOARCH= $(GO) generate -tags '$(TAGS)' $(GO_PACKAGES)
|
||||||
|
|
||||||
|
.PHONY: merge-locales
|
||||||
|
merge-locales:
|
||||||
|
$(GO) run build/merge-forgejo-locales.go
|
||||||
|
|
||||||
.PHONY: security-check
|
.PHONY: security-check
|
||||||
security-check:
|
security-check:
|
||||||
go run $(GOVULNCHECK_PACKAGE) -v ./...
|
go run $(GOVULNCHECK_PACKAGE) -v ./...
|
||||||
|
@ -934,13 +938,7 @@ lockfile-check:
|
||||||
|
|
||||||
.PHONY: update-translations
|
.PHONY: update-translations
|
||||||
update-translations:
|
update-translations:
|
||||||
mkdir -p ./translations
|
# noop to detect merge conflicts (potentially needs updating the scripts) and avoid breaking with Gitea
|
||||||
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
|
|
||||||
|
|
||||||
.PHONY: generate-license
|
.PHONY: generate-license
|
||||||
generate-license:
|
generate-license:
|
||||||
|
|
Loading…
Reference in a new issue