Index: locale.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/locale.module,v
retrieving revision 1.105
diff -u -F^f -r1.105 locale.module
--- locale.module	12 Aug 2004 18:00:11 -0000	1.105
+++ locale.module	16 Aug 2004 13:49:16 -0000
@@ -179,7 +179,7 @@ function locale($string) {
       else {
         db_query("INSERT INTO {locales_source} (location, source) VALUES ('%s', '%s')", request_uri(), $string);
         if ($locale) {
-          $lid = db_fetch_object(db_query("SELECT lid FROM {locales_source} WHERE location = '%s' AND source = '%s'", request_uri(), $string));
+          $lid = db_fetch_object(db_query("SELECT lid FROM {locales_source} WHERE source = '%s'", $string));
           db_query("INSERT INTO {locales_target} (lid, locale) VALUES (%d, '%s')", $lid->lid, $locale);
         }
       }
