Skip to content

Extractor for SK managed file which have implicit ts - #25

Merged
mlutfy merged 2 commits into
civicrm:masterfrom
samuelsov:skextractor
May 28, 2026
Merged

mlutfy merged 2 commits into
civicrm:masterfrom
samuelsov:skextractor

Conversation

@samuelsov

Copy link
Copy Markdown
Contributor

Complement to civicrm/civicrm-core#33901 where we remove ts from SK managed files to make string translatable dynamically.

We need to change the extractor to get those strings in transifex even if they don't have ts() anymore.

@samuelsov
samuelsov marked this pull request as draft December 17, 2025 22:55
@shaneonabike

Copy link
Copy Markdown
Contributor

jenkins test please

Comment thread tests/Command/ExtractCommandTest.php Outdated
$cases[] = array(array("examples/ex4.cmd", "examples/ex4.hlp", "examples/ex4.install", "examples/ex4.module", "examples/ex4.tpl", "examples/ex4.js", "examples/ex4.cmd2", "examples/ex4.txt"), "examples/ex4.pot");
$cases[] = array(array("examples/ex5.html"), "examples/ex5.pot");
$cases[] = array(array("examples/Event.setting.php"), "examples/event.setting.pot");
$cases[] = array(array("examples/sk1.mgd.php"), "examples/sk1.mgd.pot");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mismatch: File is named sk1.pot and the $cases reference sk1.mgd.pot. They should match.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @totten ! I took the liberty of updating the test.

@eileenmcnaughton

Copy link
Copy Markdown
Contributor

@mlutfy is this mergeable?

@mlutfy
mlutfy merged commit 0ce9333 into civicrm:master May 28, 2026
2 checks passed
@mlutfy

mlutfy commented May 28, 2026

Copy link
Copy Markdown
Member

Reviewed with @samuelsov at the sprint and took the liberty to merge.

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.

5 participants