I sent a message to drupal-devel, but I should have put it here instead. Here's the deal: we recently upgraded to Drupal-cvs snapshot dated on the night of the 2nd to the 3rd of april. After the upgrade, no string could be translated, even if the DB was the same. All strings were in english when they should have been in english.
After investigation, I found that there was an odd string to int printf. Here is a fix:
Index: common.inc
===================================================================
RCS file: /home/inso/cvs/drupal/core/includes/common.inc,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- common.inc 2 Apr 2003 19:49:41 -0000 1.24
+++ common.inc 4 Apr 2003 19:29:12 -0000 1.25
@@ -772,7 +772,7 @@
}
function cache_get($key) {
- $cache = db_fetch_object(db_query("SELECT data, created FROM cache WHERE cid = '%d'", $key));
+ $cache = db_fetch_object(db_query("SELECT data, created FROM cache WHERE cid = '%s'", $key));
return $cache->data ? $cache : 0;
}
Comments
Comment #1
dries commentedComment #2
(not verified) commented