summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-28 18:11:27 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-28 18:11:27 +0000
commitebfbaa3fdae910594aed240ae9fc647c717b34ed (patch)
tree2db55b8de3c0e5b385571a0fa7a9ef720d4f7f18
parentb03af772d7940ea95e3e28af081658bd7f2e99cd (diff)
downloadbrdo-ebfbaa3fdae910594aed240ae9fc647c717b34ed.tar.gz
brdo-ebfbaa3fdae910594aed240ae9fc647c717b34ed.tar.bz2
#179234 by myself: language code regular experssion was too greedy for simple langcode.po names
-rw-r--r--modules/locale/locale.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 03e4fbfa0..95d1fe9d3 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -501,7 +501,7 @@ function _locale_batch_import($filepath, &$context) {
include_once 'includes/locale.inc';
// The filename is either {langcode}.po or {prefix}.{langcode}.po, so
// we can extract the language code to use for the import from the end.
- if (preg_match('!(/|\.)([^\.]+)\.po$!', $filepath, $langcode)) {
+ if (preg_match('!(/|\.)([^\./]+)\.po$!', $filepath, $langcode)) {
$file = (object) array('filename' => basename($filepath), 'filepath' => $filepath);
_locale_import_read_po('db-store', $file, LOCALE_IMPORT_KEEP, $langcode[2]);
$context['results'][] = $filepath;