Skip to content

MgdPhpParser - Extract noResultsText, button, createLabel and alt - #30

Merged
colemanw merged 1 commit into
masterfrom
mgd-searchkit-text-keys
Nov 11, 2026
Merged

colemanw merged 1 commit into
masterfrom
mgd-searchkit-text-keys

Conversation

@mattwire

Copy link
Copy Markdown
Contributor

Since civicrm-core #37639 (6.22), SearchDisplay::get translates every user-facing text of a display, using the domain of the extension that manages it. Managed *.mgd.php displays leave those texts bare, so the extractor has to find them by key. Four of them weren't on its list:

  • settings.noResultsText
  • settings.button
  • settings.editableRow.createLabel
  • settings.columns[].image.alt

The rest (label, title, description, text, empty_value, rewrite) were already covered by key name. examples/sk1.mgd.php gains one of each, and sk1.pot gains exactly those four strings.

SearchDisplay::get translates these display texts since civicrm-core #37639, so managed SearchKit displays leave them bare (without E::ts()) and the extractor has to find them by key.
@colemanw
colemanw merged commit 1757480 into master Nov 11, 2026
2 checks passed
@colemanw
colemanw deleted the mgd-searchkit-text-keys branch November 11, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants