Skip to content

Script the split: dev/split-locales.sh and the pack repo template #513

Open

Description

@caseysoftware

dev/split-locales.sh <code> on a fresh clone of core, after #496 is merged:

git clone --no-local web2project split-de && cd split-de
git filter-repo --path locales/de/ --path-rename locales/de/:
# Polish also takes its old folder name:
#   git filter-repo --path locales/po/ --path locales/pl/ \
#     --path-rename locales/po/: --path-rename locales/pl/:

Then one commit adding the template:

  • README.md from locales/README.md (Document the language pack format in locales/README.md #508): language, maintainers, coverage badge, install commands, how to contribute
  • LICENSE (core's Clear BSD text)
  • CODEOWNERS
  • .github/workflows/check.yml: on push, PR and weekly, check out core at the branch for core_version and run dev/locale-coverage.php; fail on any .php file, an invalid locale.ini or an .inc that won't parse; post coverage and missing keys to the job summary; on main, update the badge JSON on a badges branch (shields.io endpoint badge)
  • .github/workflows/release.yml: on a v* tag, build locale-<code>-<version>.zip holding the <code>/ folder and attach it to a GitHub Release

Check: git log shows the original authors back to 2009, and diff -r against locales/<code>/ at the split commit shows only the template commit.

Part of #497.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions