Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

String Plural Form

Security covered Under active development 2 sites

Part of the String ecosystem · 6 projects

This module allows site administrators to manage plural forms for translatable strings directly through the Drupal interface. It offers a user-friendly way to select appropriate plural rules for different languages without needing to manually edit PO files.

Define and manage Plural forms for Translatable strings. The module provides necessary User Interface to manage Plural forms in a Drupal site.

Features

- As a site admin you would be able to select appropriate plural form for all enabled languages
- Provides a plugin system that can be used to develop custom Plural Forms via other modules

Drupal Core provides a mechanism to update Plural forms by uploading a PO file. However this may not be convenient solution for everybody. By enabling and using this module, Site Admins can select one of the available Plural Forms rules for a given language.

Post-Installation

After enabling the module, visit "/admin/config/regional/language/string-plural-form" to as Site Admin to configure the rules.

Additional Requirements

This modules doesn't have any other dependency than Drupal Core and Locale module which ships with Drupal.

N/A

Similar projects

- Plural formula configurator
- Locale Plural Formula (Unsupported Abandoned)

Following Issues are being worked on to improve the experience int his area,

- #2882617: String version of plural formula is not available, exported .po files contain an incorrect default
- #2273889: Don't use one language's plural index formula with another language's string in the case of untranslated strings using format_plural().
- #2660338: Deprecate locale_get_plural
- #3496223: Plural Formula gets ignored for Singular Case for languages where Singular Form is not found in the first index

Supporting this Module

- N/A

Community Documentation

- N/A

Other References

Following Links provides better understanding around handling of Plural Forms in Drupal

- Gettext Plural Forms Manual
- #519736: Plurals
- #566390: Apply locale import protection to the plural forms

Drupal 10–11

Ask your assistant about String Plural Form

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Jan 11, 2025
1.x-dev Dev 10–11 Dec 25, 2024