? install_json.patch
? language_code.patch
Index: modules/locale/locale.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/locale/locale.module,v
retrieving revision 1.192
diff -u -p -r1.192 locale.module
--- modules/locale/locale.module	14 Sep 2007 18:05:33 -0000	1.192
+++ modules/locale/locale.module	28 Sep 2007 13:14:54 -0000
@@ -501,7 +501,7 @@ function _locale_batch_import($filepath,
   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;
