service locale.plural.formula in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/locale.services.yml \locale.plural.formula
- 9 core/modules/locale/locale.services.yml \locale.plural.formula
Class
Drupal\locale\PluralFormula7 string references to locale.plural.formula
- LocaleImportFunctionalTest::testStandalonePoFile in core/
modules/ locale/ tests/ src/ Functional/ LocaleImportFunctionalTest.php - Tests import of standalone .po files.
- locale_get_plural in core/
modules/ locale/ locale.module - Returns plural form index for a specific number.
- NumericFormatPluralTest::testNumericFormatPlural in core/
modules/ views/ tests/ src/ Functional/ Plugin/ NumericFormatPluralTest.php - Tests plural formatting setting on a numeric views handler.
- PluralTranslatableMarkup::getPluralIndex in core/
lib/ Drupal/ Core/ StringTranslation/ PluralTranslatableMarkup.php - Gets the plural index through the gettext formula.
- PoDatabaseWriter::setHeader in core/
modules/ locale/ src/ PoDatabaseWriter.php - Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().
File
- core/
modules/ locale/ locale.services.yml - core/modules/locale/locale.services.yml
View source
- class: Drupal\locale\PluralFormula
- arguments:
- - '@language_manager'
- - '@state'