You are here

function _locale_export_remove_plural in Drupal 4

Same name and namespace in other branches
  1. 5 includes/locale.inc \_locale_export_remove_plural()
  2. 6 includes/locale.inc \_locale_export_remove_plural()
  3. 7 includes/locale.inc \_locale_export_remove_plural()

Removes plural index information from a string

1 call to _locale_export_remove_plural()
_locale_export_po in includes/locale.inc
Exports a Portable Object (Template) file for a language

File

includes/locale.inc, line 1218
Admin-related functions for locale.module.

Code

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