Take ∞
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc
2025-08-27 15:17:51 -04:00
parent 9f219d2cf0
commit a11bc4c14f
2 changed files with 4 additions and 16 deletions

View File

@ -21,10 +21,10 @@ steps:
commands:
- apk add patchutils git make
- cd /drone/src
- make update-pot-po-metadata
- sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.pot
- git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse --allow-empty
- sleep 2
- make check-pot-changes
- git diff
- git diff-files --exit-code
depends_on:
- xgettext-go

View File

@ -85,19 +85,7 @@ update-pot:
.PHONY: update-pot-po-metadata
update-pot-po-metadata:
@sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.po pkg/i18n/locales/*.pot*
.PHONY: check-pot-changes
check-pot-changes:
@if git diff-files --quiet; then \
echo "No .pot changes!"; \
exit 0; \
else \
git status; \
git diff; \
echo ".pot changes!"; \
exit 1; \
fi
@sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.po pkg/i18n/locales/*.pot
.PHONY: build-mo
build-mo: