summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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;