Problem/Motivation

Drupal already has code like $interval_output = $this->formatPlural($interval->m, '@count month', '@count months', [], ['langcode' => $options['langcode']]);

So we can reuse this.

Proposed resolution

Use formatPlural instead of t('month') and t('months').

Remaining tasks

User interface changes

New translatable strings - but core already has them.

API changes

None

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review

  • alexpott committed a445fe02 on 2.1.x
    task: #3584698 Use formatPlural for month strings in selector
    
    By:...
alexpott’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.