1.20.x gettext.inc _locale_export_remove_plural($entry)

Removes plural index information from a string.

Related topics

File

includes/gettext.inc, line 1112
Gettext parsing and generating API.

Code

function _locale_export_remove_plural($entry) {
  return preg_replace('/(@count)\[[0-9]\]/', '\\1', $entry);
}