You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the current, buggy behavior
When running make-pot the i18n commando can not correctly extract plurals when there brackets in the discriminator.
Bug Report
Describe the current, buggy behavior
When running
make-pot
the i18n commando can not correctly extract plurals when there brackets in the discriminator.This is much like #225, but for PHP.
The reproduction example below is a minimal reproduction. The original case for us was code generated by Twig, which looks like
echo sprintf(_n("Reading time: %s minute", "Reading time: %s minutes", ($context['x'] ?? null), "demo"), ($context['x'] ?? null));
Describe how other contributors can replicate this bug
wp i18n make-pot
Describe what you would expect as the correct outcome
The resulting pot file should contain both Reading time and Download Time.
The text was updated successfully, but these errors were encountered: