function _locale_export_remove_plural in Drupal 6
Same name and namespace in other branches
- 4 includes/locale.inc \_locale_export_remove_plural()
- 5 includes/locale.inc \_locale_export_remove_plural()
- 7 includes/locale.inc \_locale_export_remove_plural()
Removes plural index information from a string
Related topics
1 call to _locale_export_remove_plural()
- _locale_export_po_generate in includes/
locale.inc - Generates the PO(T) file contents for given strings.
File
- includes/
locale.inc, line 1984 - Administration functions for locale.module.
Code
function _locale_export_remove_plural($entry) {
return preg_replace('/(@count)\\[[0-9]\\]/', '\\1', $entry);
}