function _locale_export_remove_plural in Drupal 5
Same name and namespace in other branches
- 4 includes/locale.inc \_locale_export_remove_plural()
- 6 includes/locale.inc \_locale_export_remove_plural()
- 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 1321 - Admin-related functions for locale.module.
Code
function _locale_export_remove_plural($entry) {
return preg_replace('/(@count)\\[[0-9]\\]/', '\\1', $entry);
}