Skip to content

Extract 'plural' strings from clientside ts() - #26

Merged
eileenmcnaughton merged 1 commit into
civicrm:masterfrom
colemanw:plurals
Dec 31, 2025
Merged

eileenmcnaughton merged 1 commit into
civicrm:masterfrom
colemanw:plurals

Conversation

@colemanw

Copy link
Copy Markdown
Member

This supports the new feature added in civicrm/civicrm-core#34362

@mlutfy

mlutfy commented Dec 31, 2025

Copy link
Copy Markdown
Member

Looks good to me!

@eileenmcnaughton
eileenmcnaughton merged commit 1b235a7 into civicrm:master Dec 31, 2025
2 checks passed
Comment thread src/Parser/JsParser.php
Comment on lines +93 to +95
// PhpTreeParser outputs 2 blank msgstrs for plurals. TODO: Why?
$entry['msgstr[0]'] = '';
$entry['msgstr[1]'] = '';

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@mlutfy the "why" is a can of worms I left closed.

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.

3 participants