_locale_export_remove_plural

Versions
4.6 – 7
_locale_export_remove_plural($entry)

Removes plural index information from a string

Code

includes/locale.inc, line 1294

<?php
function _locale_export_remove_plural($entry) {
  return preg_replace('/(@count)\[[0-9]\]/', '\\1', $entry);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.