diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-08 20:55:34 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-08 20:55:34 -0700 |
commit | d01ac03790e3e5e34cabb611409041c1b565fae8 (patch) | |
tree | f49eed4dca885f96bdea8d44f1a2fd08cf39ad15 /includes | |
parent | 62b52c86f0cfddb884919b0e245823f8f5b43ad2 (diff) | |
download | brdo-d01ac03790e3e5e34cabb611409041c1b565fae8.tar.gz brdo-d01ac03790e3e5e34cabb611409041c1b565fae8.tar.bz2 |
Issue #504506 by andypost, Gábor Hojtsy: Fixed Drupal.formatPlural incorrectly handle complex plural rules.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/locale.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index 578b1b3c6..6154cf3c3 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -1863,7 +1863,7 @@ function _locale_rebuild_js($langcode = NULL) { // Construct the array for JavaScript translations. // Only add strings with a translation to the translations array. - $result = db_query("SELECT s.lid, s.source, t.translation FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.location LIKE '%.js%' AND s.textgroup = :textgroup AND t.translation IS NOT NULL", array(':language' => $language->language, ':textgroup' => 'default')); + $result = db_query("SELECT s.lid, s.source, t.translation FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.location LIKE '%.js%' AND s.textgroup = :textgroup", array(':language' => $language->language, ':textgroup' => 'default')); $translations = array(); foreach ($result as $data) { |