diff --git a/.mokogitea/workflows/pr-check.yml b/.mokogitea/workflows/pr-check.yml index 9d0cb35..473eeb2 100644 --- a/.mokogitea/workflows/pr-check.yml +++ b/.mokogitea/workflows/pr-check.yml @@ -202,10 +202,47 @@ jobs: ERRORS=0 WARNINGS=0 + # Require both en-GB and en-US language directories + LANG_ROOT=$(find . -path "*/language" -type d -not -path "./.git/*" 2>/dev/null | head -1) + if [ -z "$LANG_ROOT" ]; then + echo "No language/ directory found — skipping" + exit 0 + fi + + if [ ! -d "$LANG_ROOT/en-GB" ]; then + echo "::error::Missing en-GB language directory (${LANG_ROOT}/en-GB)" + ERRORS=$((ERRORS + 1)) + fi + if [ ! -d "$LANG_ROOT/en-US" ]; then + echo "::error::Missing en-US language directory (${LANG_ROOT}/en-US)" + ERRORS=$((ERRORS + 1)) + fi + + # Check that en-GB and en-US have matching .ini files + if [ -d "$LANG_ROOT/en-GB" ] && [ -d "$LANG_ROOT/en-US" ]; then + for GB_INI in "$LANG_ROOT/en-GB"/*.ini; do + [ ! -f "$GB_INI" ] && continue + US_INI="$LANG_ROOT/en-US/$(basename "$GB_INI")" + if [ ! -f "$US_INI" ]; then + echo "::error::$(basename "$GB_INI") exists in en-GB but missing from en-US" + ERRORS=$((ERRORS + 1)) + fi + done + for US_INI in "$LANG_ROOT/en-US"/*.ini; do + [ ! -f "$US_INI" ] && continue + GB_INI="$LANG_ROOT/en-GB/$(basename "$US_INI")" + if [ ! -f "$GB_INI" ]; then + echo "::error::$(basename "$US_INI") exists in en-US but missing from en-GB" + ERRORS=$((ERRORS + 1)) + fi + done + fi + # Find all .ini language files INI_FILES=$(find . -path "*/language/*/*.ini" -not -path "./.git/*" 2>/dev/null) if [ -z "$INI_FILES" ]; then - echo "No .ini language files found — skipping" + echo "No .ini language files found" + [ "$ERRORS" -gt 0 ] && exit 1 exit 0 fi diff --git a/update.xml b/update.xml deleted file mode 100644 index a2811be..0000000 --- a/update.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - Module - MokoJoomHero - MokoJoomHero — A Joomla hero image module by Moko Consulting - mod_mokojoomhero - module - site - {{VERSION}} - - - https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/releases/download/v{{VERSION}}/mod_mokojoomhero.zip - - - - 8.1 - - diff --git a/updates.xml b/updates.xml deleted file mode 100644 index d7f3abe..0000000 --- a/updates.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - Package - MokoJoomHero - Package - MokoJoomHero stable build. - pkg_mokojoomhero - package - 01.10.00 - 2026-06-04 - https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/releases/tag/stable - - https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/releases/download/stable/pkg_mokojoomhero-01.10.00.zip - - 740e19ad06e5cef442880aa621d58f4310859d1109142da65895bd9dec324834 - stable - https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/raw/branch/main/CHANGELOG.md - Moko Consulting - https://mokoconsulting.tech - - - - - - Module - MokoJoomHero - MokoJoomHero has been restructured as a package. Install pkg_mokojoomhero for the latest version. - mod_mokojoomhero - module - site - 01.10.00 - 2026-06-04 - https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/releases/tag/stable - - https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/releases/download/stable/pkg_mokojoomhero-01.10.00.zip - - 740e19ad06e5cef442880aa621d58f4310859d1109142da65895bd9dec324834 - stable - https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/raw/branch/main/CHANGELOG.md - Moko Consulting - https://mokoconsulting.tech - - -