mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 13:51:29 +01: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
) (cherry picked from commit225b30f1f7
) (cherry picked from commitfdf9891003
) (cherry picked from commitdf2f413476
) (cherry picked from commitb01c755aaf
) (cherry picked from commitacd4275acb
) [I18N] Add Locale merger script (squash: compile on windows) Fixes: https://codeberg.org/forgejo/forgejo/issues/798 (cherry picked from commitb47b205e85
) (cherry picked from commit1521f0bfd6
) (cherry picked from commit7f988de42c
) (cherry picked from commitd26b491312
) (cherry picked from commit60136bac66
) (cherry picked from commit915bb4b354
) (cherry picked from commit3e1b42a8ca
) (cherry picked from commit18d8fc075f
) (cherry picked from commit1d9f95687b
) (cherry picked from commite49da1a90d
) (cherry picked from commita182baed8a
) (cherry picked from commit3e48a87c00
) (cherry picked from commite0bb406c14
) (cherry picked from commite45ec160f9
) (cherry picked from commite89ec6d008
) (cherry picked from commit80eb392c5c
) (cherry picked from commitd0bce1b613
) (cherry picked from commit8debcf86ea
) (cherry picked from commita9bc3c54d7
) (cherry picked from commitd5595e4156
) (cherry picked from commit25cef0fad3
) (cherry picked from commite4d15446ff
) (cherry picked from commit77ceb2a795
) (cherry picked from commit61ebe5c536
) (cherry picked from commit9377e1d1f2
) (cherry picked from commit7a90ba2922
)
This commit is contained in:
parent
f9655eebeb
commit
bc65d42a83
2 changed files with 9 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -117,3 +117,6 @@ prime/
|
||||||
|
|
||||||
# Manpage
|
# Manpage
|
||||||
/man
|
/man
|
||||||
|
|
||||||
|
# Generated merged Forgejo+Gitea language files
|
||||||
|
/options/locale/locale_*
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -796,10 +796,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:
|
||||||
|
@CC= GOOS= GOARCH= $(GO) run build/merge-forgejo-locales.go
|
||||||
|
|
||||||
.PHONY: security-check
|
.PHONY: security-check
|
||||||
security-check:
|
security-check:
|
||||||
go run $(GOVULNCHECK_PACKAGE) ./...
|
go run $(GOVULNCHECK_PACKAGE) ./...
|
||||||
|
@ -972,13 +976,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