Skip to content

fix: update version landing pages with new i18n references#773

Open
mcdurdin wants to merge 1 commit into
masterfrom
fix/764-i18n-version-landing-pages-and-refactor-definePageScope
Open

fix: update version landing pages with new i18n references#773
mcdurdin wants to merge 1 commit into
masterfrom
fix/764-i18n-version-landing-pages-and-refactor-definePageScope

Conversation

@mcdurdin
Copy link
Copy Markdown
Member

@mcdurdin mcdurdin commented Jun 3, 2026

  • Update the call to downloadSection() in version landing pages to match the new identifiers used in ui/downloads.php. Fixes the base issue for the versioned landing pages.

  • Refactor Locale::definePageScope to declare standard $_m_<domain> variable and _m_<domain>() function, so that we can skip the Locale initialization boilerplate in more places. Also make it possible to declare multiple scopes (supporting includes in the future), and make the function idempotent.

  • Update references to [$]_m* to the common pattern provided in Locale::definePageScope.

  • Add version landing pages to _test/ so that they are crawled in the link checker.

Fixes: #764
Fixes: KEYMAN-COM-3H1
Test-bot: skip

* Update the call to `downloadSection()` in version landing pages to
  match the new identifiers used in ui/downloads.php. Fixes the base
  issue for the versioned landing pages.

* Refactor `Locale::definePageScope` to declare standard `$_m_<domain>`
  variable and `_m_<domain>()` function, so that we can skip the Locale
  initialization boilerplate in more places. Also make it possible to
  declare multiple scopes (supporting includes in the future), and make
  the function idempotent.

* Update references to `[$]_m*` to the common pattern provided in
  `Locale::definePageScope`.

* Add version landing pages to _test/ so that they are crawled in the
  link checker.

Fixes: #764
Fixes: KEYMAN-COM-3H1
Test-bot: skip
@keymanapp-test-bot
Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

@mcdurdin mcdurdin requested a review from darcywong00 June 3, 2026 11:47
@github-actions github-actions Bot added the fix label Jun 3, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Keyman Jun 3, 2026
@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S30 milestone Jun 3, 2026
@mcdurdin mcdurdin requested a review from ermshiperete June 3, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

bug: 10-15 versioned landing pages have php errors due to _m_downloads() missing

2 participants