mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-28 11:14:54 -04:00
[I18N] Makefile + gitignore
(cherry picked from commit68c744111d) (cherry picked from commit30d7c4a899) (cherry picked from commit220ac0a6d3) (cherry picked from commit21cb16af95) (cherry picked from commit41a9373e3e) (cherry picked from commit69030f7803) (cherry picked from commit92c4d4d2e6) (cherry picked from commitc1bfd1730e) (cherry picked from commit18a9a9e73c) (cherry picked from commit07f9882073) (cherry picked from commite71b8061d4)
This commit is contained in:
parent
2aaee4f7c4
commit
225b30f1f7
2 changed files with 9 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -116,3 +116,6 @@ prime/
|
|||
|
||||
# Manpage
|
||||
/man
|
||||
|
||||
# Generated merged Forgejo+Gitea language files
|
||||
/options/locale/locale_*
|
||||
|
|
|
|||
14
Makefile
14
Makefile
|
|
@ -829,10 +829,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
|
||||
merge-locales:
|
||||
$(GO) run build/merge-forgejo-locales.go
|
||||
|
||||
.PHONY: security-check
|
||||
security-check:
|
||||
go run $(GOVULNCHECK_PACKAGE) ./...
|
||||
|
|
@ -996,13 +1000,7 @@ lockfile-check:
|
|||
|
||||
.PHONY: update-translations
|
||||
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
|
||||
generate-license:
|
||||
|
|
|
|||
Loading…
Reference in a new issue