You are here

function _locale_export_remove_plural in Translation template extractor 8

Removes plural index information from a string.

1 call to _locale_export_remove_plural()
_potx_translation_export in ./potx.inc
Export translations with a specific language.

File

./potx.locale.inc, line 75
Contains locale functions that were removed in Drupal 8.

Code

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