Quantcast
Viewing all articles
Browse latest Browse all 294680

Replace format_plural with \Drupal::translation()->formatPlural()

Updated: Comment #7

Problem/Motivation

Follow-up from #2111349: Change notice: Move format_plural to the string translation service and format_interval to the date service. . Implementation of #2111349: Change notice: Move format_plural to the string translation service and format_interval to the date service. is not applied side-wide.

Proposed resolution

Implement #2111349: Change notice: Move format_plural to the string translation service and format_interval to the date service. by

1. Inject translation service in Base classes (ControllerBase, FormBase and PluginBase) and create a helper method.
2. Use static \Drupal::translation()->formatPlural() call on procedural and test methods.

Remaining tasks

Patch - In progress

User interface changes

N/A

API changes

N/A


Viewing all articles
Browse latest Browse all 294680

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>